[FFmpeg-user] DASH Setting Fragment/Segment size properly

Ghaffar Ahmed ghaffar3 at hotmail.com
Thu Sep 24 10:04:04 EEST 2020

How to set the segment size and fragment size properly. I have played around with the settings but can't seem to achieve what i require

ffmpeg -re -i "XXX.mxf" -pix_fmt yuv420p -vsync 1 -map 0:v:0 -map 0:a:0 -c:a aac -c:v libx264 -use_template 1 -use_timeline 1 -init_seg_name  "init-stream$RepresentationID$-$Bandwidth$.mp4" -media_seg_name "chunk-stream$RepresentationID$-$Number%05d$.$ext$" -b:v 12000k -b:a 128k -ac 2 -profile:v main -level:v 3.0  -s 1920x1080 -r 25 -vsync passthrough -increment_tc 1 -adaptation_sets "id=0,streams=v id=1,streams=a" -window_size 5 -frag_duration 0.01 -seg_duration 5  -dash_segment_type auto -f dash "stream.mpd"

How can I keep the video chunk size to a minimum of 2secs each chunk ?

More information about the ffmpeg-user mailing list