[FFmpeg-user] how to transcode mp4 file into hls stream

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Apr 25 09:43:06 CEST 2016

qw <applemax82 <at> 163.com> writes:

> ffmpeg -y -i input.mp4 -vbsf h264_mp4toannexb -c:v libx264 
> -c:a libfdk_aac -f hls -hls_list_size 10
> -hls_wrap 10 ./output.m3u8

Please remember that when asking questions on this mailing 
list, you are expected to both provide the command line you 
tested and the complete, uncut console output.

> How to make 10 ts files so that each ts file has almost same size?

You have to tell the encoder that you want constant bitrate 
by specifying a bitrate, x264 defaults to constant quality.

Carl Eugen

More information about the ffmpeg-user mailing list