I am transcoding video files to different video profiles for multi-variant
VOD streaming. But I am getting inconsistent #EXT-X-TARGETDURATION.

The command I am using is
*ffmpeg -y -i input.mp4 -c:a aac -ac 2 -ab 64k -ar 44100 -pix_fmt yuv420p
-c:v libx264 -preset slow -b:v 1200k -maxrate 1200k -minrate 1200k -bufsize
1200k -g 90 -profile:v baseline -level 3.1 -vf "scale=-2:360" -x264opts
"keyint=90:min-keyint=90:no-scenecut" -movflags +faststart -hls_time 9
-hls_list_size 0 -hls_flags single_file input_360.m3u8*

PS: The other commands are similar with differing bitrate and scale values.

Resulting m3u8 file contains EXT-X-TARGETDURATION as 10 in some and 12 in
others.

Appreciate if someone sheds light on how this is calculated and how it can
be set to be the same across profiles.

Regards,

*Rahul*
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to