[Libav-user] Demuxing elementary H.264 stream

Gal Bar Mashiah galbarm at gmail.com
Wed Aug 5 16:45:46 CEST 2015

I'm invoking ffmpeg with the following args:
ffmpeg -i - -vcodec copy -an -f mp4 -reset_timestamps 1 -blocksize 30000
-movflags empty_moov+default_base_moof+frag_keyframe -loglevel quiet -

The purpose is to feed it (through stdin) raw h.264 stream, and get
(through stdout) fragmented mp4.

It works well when I give it demuxed h264 (each frame prefixed with 3 bytes
of 0 0 1) but I'd prefer letting ffmpeg do the demuxing for me.
Is there a way?
Gal Bar Mashiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150805/8dc97687/attachment.html>

More information about the Libav-user mailing list