[FFmpeg-user] frag_duration ignored when segmentation is used

Gyan gyandoshi at gmail.com
Fri Oct 5 08:18:14 EEST 2018


On Fri, Oct 5, 2018 at 12:05 AM André Hänsel <andre at webkr.de> wrote:

>
> But this doesn't, it generates a normal MP4 (ftyp-free-mdat-moov):
> ffmpeg -i rtsp://192.168.1.202:554/ch01.264 -map 0:0 -c:v copy
> -frag_duration 4000000 -f segment -segment_time 12 -segment_format mp4
> out-%03d.mp4
>

Options for the child muxer have to be relayed using segment_format_options
i.e.

-segment_format_options frag_duration=4000000

Gyan


More information about the ffmpeg-user mailing list