[Libav-user] how to generate fragmented mp4 files via ffmpeg library

Roger Pack rogerdpack2 at gmail.com
Wed Jan 13 07:14:09 CET 2016


On 1/12/16, Roger Pack <rogerdpack2 at gmail.com> wrote:
> On 12/22/15, 方柏棟 <berton1679 at gmail.com> wrote:
>> Dear All,
>> I have bunch of .h264 raw data, could any one tell me how to use ffmpeg
>> library to mux .h264 to  fragmented mp4 files.
>> I only know how to generate fragmented mp4 file via ffmpeg.exe, like
>> below,
>>
>> ffmpeg -i xx.h264 -vcodec copy -an -f mp4 -reset_timestamps 0 \
>> -movflags empty_moov+default_base_moof+frag_keyframe -loglevel quiet
>> xxx.mp4
>
> this generated multiple mp4 files?
> Anyway since you are using libav you "control" which frames are sent
> in, so you can monitor and create new files when required.


There is also the "segment" muxer I wonder if that could be
called/setup programmatically (unfortunately I do not use libav* much
so cannot offer much help).


More information about the Libav-user mailing list