[FFmpeg-user] how to define ts name format for hls

qw applemax82 at 163.com
Thu May 26 13:00:52 CEST 2016


Hi,

I use the following command to convert one mp4 file into one m3u8 file and several segment ts files:

ffmpeg -y -i sourceFile.mp4 -vbsf h264_mp4toannexb -strict -3 -c:v copy -c:a copy -f hls -hls_time 10 output.m3u8

ts file name format is output name+segment number+.ts.

How to define the format of ts file name? For example, the format is output name+time+other string+segment number+.ts.

Thanks!

B.R.

Andrew



More information about the ffmpeg-user mailing list