Questions tagged [h.264]
H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression
2,666
questions
0
votes
0
answers
17
views
How to convert from "element" to "Frame-Type& Time -Stamp" on "gstream" code?
How to convert from "element" to "Frame-Type& Time -Stamp" on "gstream" code?
(I'd appreciate it if you could tell me a little bit, even if it's a small thing.)
I ...
0
votes
0
answers
23
views
FFmpeg.AutoGen decoding an image using av_image_copy_to_buffer
I try to use FFmpeg.AutoGen.av_image_copy_to_buffer to get decoded data into my application defined frame_buffer like so:
bytes_decoded = ffmpeg.av_image_copy_to_buffer(frame_data, buffer_size, frame-&...
2
votes
1
answer
57
views
Problem parsing timing info from an SPS inside an avcC box
I am trying to parse an SPS inside an avcC box in a MP4 file. For some reason, I don't get the expected timing values while everything else is fine. Using a hex editor, I extracted these bytes to ...
-1
votes
1
answer
55
views
Decode MP4 h264 RTP Video Stream C++
I want to send a mp4 video which is h264 encoded to another C++ Application and get raw video data.
I'm sending rtp packets using ffmpeg using following command:
ffmpeg -re -i video.mp4 -pix_fmt ...
0
votes
0
answers
29
views
High latency when reading latest frame from H264 stream with FFmpeg
I have an app in c# that receives a H264 video stream of Android device's screen from scrcpy-server (https://github.com/Genymobile/scrcpy).
I want to continously get the latest image from the stream ...
0
votes
1
answer
14
views
gstreamer: use d3d11h264dec after h264depay not negociated
I'm trying to setup a pipeline on gstreamer to decode a RTP stream with h264 encoding using GPU decode d3d11h264dec.
So far, I've made it work using avdec_h264 along with rtp pay/depay:
gst-launch-1.0 ...
0
votes
1
answer
30
views
Drop Ethernet frames in an existing communication using BPF
Is it possible to apply Berkeley Packet Filter (BPF) to an existing socket communication of another application on a Ubuntu 20.04 system?
The goal is to intentionally introduce package losses in the ...
1
vote
1
answer
84
views
QtWebengine 5.15.10 with proprietary codecs, build problems on Ubuntu 22.04
I wrote an application with QtWebEngine, but I need support for the h264 codec and QtWebEngine doesn't include it by default because of patent problems, or so I heard.
That's why I decided to build ...
0
votes
0
answers
33
views
What is this initial delay when using FFmpeg?
I have a C# application that receives H264 stream through a socket. I want to continuously get the latest image from that stream as a byte array.
Here's how I start ffmpeg.
var ffmpegInfo = new ...
-1
votes
0
answers
16
views
Stream Python Scritp Output to HTTP
I need to stream a video that come from a python scritp via HTTP service, like:
start python script and expose the video in one test uri with specified port.
For now i can see the video by ffplay with ...
-1
votes
0
answers
29
views
Getting h264 stream of DJI Action 2 with ffmpeg (Raspberry Pi)
I have a DJI Action 2 cam which is connected to my Raspberry Pi in webcam mode.
My goal is to save the h264 stream to a local file.
H264 should be a valid format:
root@raspberrypi:/home/pi# v4l2-ctl -...
0
votes
0
answers
50
views
FFmpeg extracts black image from H264 stream
I have a C# application that receives H264 stream through a socket. I want to continuously get the latest image from that stream.
Here's what I did with FFmpeg 5.0.1, just a rough sample to get ONE ...
0
votes
1
answer
20
views
How to combine jpeg frames with uncompressed mono audio into an h264 stream or any other format processed by web browsers out of the box?
So I have an esp32 which captures images and sound. The esp32-camera library already returns the jpeg encoded buffer. The audio however is uncompressed and is just a digital representation of signal ...
-1
votes
1
answer
27
views
Converting .avi to mov using ffmpeg
ffmpeg.exe -i input.avi output.mov
The above command works but
ffmpeg.exe -i input.avi -c:v libx264 -c:a output.mov
fails. But I'm jot able to figure out why
-1
votes
0
answers
76
views
How to decode H264 stream to image byte array with ffmpeg in C#?
I have an application in C# that receives H264 stream from a socket.
The stream is in Annex B format. I want to decode the stream to individual image as a byte array.
I saw this code snippet using ...
1
vote
0
answers
89
views
how to efficiently decode h264 encoded rtsp stream and use it to opencv-python at 30 FPS
I'm just doing yolo object detection with opencv code snippet:
cap = cv2.VideoCapture("rtsp://admin:asv@123@192.168.1.24:554/main?tcp", cv2.CAP_FFMPEG)
show = True
while show:
ref, img ...
0
votes
0
answers
9
views
Gstreamer: cannot play the first file produced by mulitfilesink
Did anybody encounter the above? I was doing dynamic pipeline involving attach/removing a bin containing a queue and a multifilesink plugin. Was trying to record and split the video/audio file in 60 ...
0
votes
0
answers
24
views
Android use MediaMuxer combine h264+aac stream, but i found some questions
here is my question:
I use Android Apis "MediaMuxer" to combine h264 stream and aac stream to mp4 file,when I want to stop record,so I call this:mMediaMuxer.stop(),and the mp4 file can play ...
0
votes
0
answers
42
views
Save cv::Mat images as raw yuv file
I have a video of several cv::Mat RGB frames that I need to store as videos with lossless encoding on Jetson Xavier NX. In this process, I need to convert the RGB frames to YUV444 and then use Jetson'...
0
votes
0
answers
49
views
Same bitrate but different resolutions when using ffmpeg
I am encoding a video with the same bitrate (so it will result in the same file size), but under different resolutions (say 540p, 630p, and 720p). What does ffmpeg change that would make the file size ...
0
votes
0
answers
55
views
Detect packets in a bytestream H264 video feed
We have an SDK that expects packets as shown in the output of
ffprobe -show_packets video_file.mp4
codec_type=video
stream_index=0
pts=N/A
pts_time=N/A
dts=N/A
dts_time=N/A
duration=48000
...
-1
votes
1
answer
78
views
Maintain keyframes when transcoding and removing b-frames
I need to transcode a video from H.265 in a .mov container to H.264 in a .mkv container and would like to remove b-frames. The command to do that with ffmpeg is relatively straightforward [0], but it ...
0
votes
0
answers
33
views
When I receive vlc file streaming using Python's video capture, error occured
opencv version : 3.4.1
ffmpeg version : 3.4.8-0ubuntu0.2
os : ubuntu 18.04
streaming code
vlc -vvv /my/video/path.mp4 --play-and-exit :sout=#rtp{sdp=rtsp://127.0.0.1:8554/} :sout-keep
python code(...
0
votes
0
answers
57
views
streaming IR camera pipeline doesn't work with x-h264 encoder
I'm trying to learn Gstreamer for a project that I'm doing.
I need to stream a video from an IR camera - infiray tiny1-c connected to a raspberry pi to a windows computer using UDP with x-h264 encoder ...
0
votes
1
answer
135
views
Gstreamer: Is there way to convert h264 video-stream from byte-stream to avc format
I would need the above mentioned method to convert h264 stream with stream format byte-stream to avc (sort of packetized format) in order for it to be fed into matroskamux
I have used C codes to ...
0
votes
0
answers
60
views
Extending Media Foundation Encoder to support 10-bit video encoding
The HEVC Media Foundation Encoder in Windows will only encode 8-bit video. My GFX NVidia card also supports 10-bit HDR and alpha-mode video encoding, so I decided to create my own IMFTransform to use ...
0
votes
0
answers
14
views
i am getting a h264 / h265 video format data through tcp now i want to send data to rtmp ex: nginx i have tried through socket but it not work
Following is the code I have tried to send data on rtmp
Socket s=new Socket(rtmp ip,port);
DataOutputStream dout=new DataOutputStream(s.getOutputStream());
dout.writeUTF(bytes);
...
0
votes
0
answers
73
views
ffmpeg H.264 to VP9 always creates larger output files on Zoom Meeting Recordings
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 0 -crf 30 -pass 1 -an -f null -row-mt 1 NUL && ^
ffmpeg -i input.mp4 -c:v libvpx-vp9 -b:v 0 -crf 30 -pass 2 -c:a libopus -row-mt 1 output.webm
input....
0
votes
0
answers
95
views
Video conversion (using ffmpeg) fails only on apache server
I'm trying to convert a video using latest static build of ffmpeg and following command:
ffmpeg -report -y -loglevel info -i en--story-video.mp4 -c:v libx264 -preset slow -crf 22 -c:a copy en--story-...
0
votes
0
answers
274
views
Cannot find a proper format for codec ‘h264’ (id 28), pixel format ‘none’
I downloaded jocover’s git hub ffmpeg and compiled it to stream the video to the web on the Jetsonano board
However, i tried
ffmpeg -c:vh264_nvmpi -i /dev/video -f null -
Cannot find a proper format ...
0
votes
1
answer
151
views
Flutter. Play raw h264 from WebSocket
I'm trying to display live video in flutter coming from video server. Video server sends raw h264 video through websocket. I know that this video can be played in browser by jmuxer library. For now I ...
0
votes
0
answers
62
views
Why is safari browser not able to play h.264 high10 with pixel format yuv420p10le video?
I have read and found that Safari Supports HDR as well as H264 Codecs.
But When I generate HDR video using h.264 codecs using ffmpeg, the safari gives error in playing the video which chrome is easily ...
0
votes
1
answer
114
views
Various profiles and settings in H264 AVC codec
When I convert a video with ffmpeg, and use mediaInfo to review the metadata, I see the followings for the video codec:
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Baseline@L3.1 ...
0
votes
1
answer
102
views
How to extract encoded transport stream frames from a video file?
Searching for a method to extract from video stream (.m2t or .ts file) a certain frames as is, encoded. OpenCV also extracts frames easily but decodes them immediately.
Given:
A .ts or .m2t file with ...
0
votes
1
answer
52
views
D3D11 CORRUPTION : CopySubresourceRegion:Sixth parameter is corrupt or NULL?
Decode h264 via ffmpeg d3d11va,i successfully get a frame,but when i copy resource,i got this error..
ret = avcodec_receive_frame(avctx, frame);//it's OK;
dctx->CopySubresourceRegion(...
0
votes
0
answers
85
views
Use gstreamer to stream video to AWS Kinesis video stream from H264 USB camera on Windows
Finally I managed to compile the AWS kinesis producer SDK and kvssink plugin on Win 10. I thought that is the difficult part. But now I am having issue streaming video from my H264 USB camera which ...
0
votes
0
answers
262
views
How can I stream with gstreamer WebRTC protocol (webrtcsink-webrtcsrc-webrtcbin) between jetson nano and PC (gstreamer version 1.14.5)?
I need an example to streaming with webrtcsink-webrtcsrc-webrtcbin using gst-launch-1.0 between
Jetson nano (gstreamer version 1.14.5) and PC (gstreamer version 1.20).
Give a pipeline that will send a ...
-2
votes
1
answer
156
views
FFmpeg not cropping video correctly
I'm using ffmpeg as:
ffmpeg -i "video.webm" -c:v libx264 -vf "crop=in_w:in_h:in_w/2:in_h" -ss 00:02:56.000 -to 00:03:02.750 cut.mp4 -y
to get left side of screen to crop out right ...
0
votes
0
answers
129
views
Unexpected U/V plane offset with WIndows Media Foundation H264 decoder
While decoding H264 video via Windows Media Foundation using IMFSourceReader, I am seeing an unexpected y-offset in the U/V plane data. By trial and error, I have found an adjustment that seems to ...
0
votes
1
answer
161
views
LibVLCSharp Play H264 video stream in WPF
I am developing a project based on ADB to transmit mobile phone screen, and transmit H264 video stream to PC through socket, but LibVLCSharp is in a frozen screen situation after playing, the screen ...
0
votes
1
answer
27
views
"Weird" NALU multiplexing from Parrot Anafi RTSP stream
The RTP NALU stream of a Parrot Anafi drone provided via RTSP seems to kind of "multiplex" several NAL units into a bigger outer NAL unit at RTP level. Trying to use a GStreamer pipeline, ...
0
votes
1
answer
83
views
Gstreamer. Sending multiple files via rtp
I built a pipeline that reads one file and sends it via rtp
gst-launch-1.0 filesrc location="00001.mp4" ! qtdemux ! h264parse ! avdec_h264 ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 ...
2
votes
1
answer
168
views
PyAV inconsistency when parsing packets from h264 frames
When producing H.264 frames and decoding them using pyAV, packets are parsed from frames only when invoking the parse methods twice.
Consider the following test H.264 input, created using:
ffmpeg -f ...
0
votes
1
answer
84
views
OpencV + ffmpeg corrupting lossless video frames?
It seems that Opencv + FFMPEG is corrupting lossless video frames.
First I establish that the video is lossless with this test
gst-launch-1.0.exe {RAW_IMAGE_SOURCE} ! video/x-raw,width=1280,height=480,...
0
votes
0
answers
36
views
Saving some (not all) decoded H.264 video stream frames with original quality and not screen resolution
I have an H.264 video stream coming form server to Android device. I want user to be able to get single frames of this stream with original quality and not with screen resolution, and simultaneously ...
0
votes
1
answer
52
views
Stream published to open source RTMP servers does not appear on resttream.io
I’m obtaining H.264 video from a DJI drone in an Android library I wrote. From there the video is distributed via WebRTC to many subscribers. This works.
Now one came to the idea if it would be ...
0
votes
0
answers
67
views
Streaming H.264 video stream with Android MediaCodec when user must have the ability to save a frame with original size. Optimized solution?
Firstly, I know using OpenGL ES is more optimized, yet here not a choice.
So, when user would be able to save frames with original size in a H.264 live-stream, there are two scenarios, which would ...
0
votes
1
answer
129
views
How to optimize video decoding across CPU / GPU?
I have a video processing pipeline that reads live RTSP streams and does some CV filtering over each image. I find that my CV filter takes up low utilization on the GPU. My bottle neck seems to be the ...
1
vote
0
answers
72
views
Encoding H.264 video using OpenH264
I'm currently trying to figure out how to encode video using OpenH264, but I just can't figure out what to put into the SSourcePicture structure. What does the iStride field represent? What does the ...
1
vote
1
answer
78
views
Modifying SPS and PPS ids in H.264 bitstream
What is the best way to modify seq_parameter_set_id and pic_parameter_set_id in an H.264 bitstream?
A bit of background:
My encoder (NVENC) is producing some bitstreams with SPS and PPS ids of 1 or 2. ...