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

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


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.
GL!
-roger-


More information about the Libav-user mailing list