[FFmpeg-user] Need help using segment muxer to create mpegts segment every 10 second.

Ly Tran Cong lytc at vega.com.vn
Fri Jan 13 04:22:50 CET 2012

> Try to add:
> -flags -global_header
> just after -vbsf h264_mp4toannexb and tell me if it works for you (and
> yes overall poor error reporting from ffmpeg/libav*).
It works,
Here is my command
ffmpeg -i udp:// -r 25 -c:a libfaac -ab:a 48k -ac:a
2 -c:v libx264 -s:v 320x240 -b:v 150k -aspect:v 16:9 -map 0 -vbsf
h264_mp4toannexb -flags -global_header -f segment -segment_time 10
-segment_list test.m3u8 -segment_format mpegts stream%05d.ts

Waiting for next ffmpeg release.

More information about the ffmpeg-user mailing list