
Let’s say that I start ffmpeg at time T then after 10 seconds (at T+10) I start VLC. I have a binary file with raw h264 data which is arranged like that NAL (SPS), NAL (PPS), NAL (Frame), NAL (SPS), NAL (PPS). If there is a significant delay between the start of ffmpeg and the start of VLC, then that delay will be noticeable in the playback.

In VLC I use this URL and it also works fine, but only if I start VLC immediately after I start ffmpeg. I can stop and reopen VLC and it keeps going realtime.īut I need this stream to also be viewed in browser (in a HTML5 video), so I normally use this for output_URL: And this delay is constant, it does not depend on when I start VLC. The delay is 1-2 seconds, which is acceptable. I start ffmpeg, then after some time I start VLC with this URL and it plays (almost) real time. ffmpeg -i in.mp4 -vcodec copy -acodec copy -vbsf h264changespsremovesei -mapmetadata -1 out.


This build is crippled in most other ways, so rename it or don't put it in your path. If I set the output_URL to this: udp://127.0.0.1:5000?pkt_size=1316 1 Use ffmpeg from direct264, a modded version of an old ffmpeg build with a custom filter to modify H264 bitstreams. movflags frag_keyframe+empty_moov+faststart \ I’m transcoding a MJPEG stream to H264/MP4 using ffmpeg.
