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

Moritz Barsnick barsnick at gmx.net
Thu May 26 13:33:23 CEST 2016


On Thu, May 26, 2016 at 19:00:52 +0800, qw wrote:
> How to define the format of ts file name? For example, the format is output name+time+other string+segment number+.ts.

https://www.ffmpeg.org/ffmpeg-formats.html#Options-4

  hls_segment_filename filename
    Set the segment filename. Unless hls_flags single_file is set
    filename is used as a string format with the segment number:

See also "use_localtime", but note: "The segment number (%d) is not
available in this mode."

Moritz


More information about the ffmpeg-user mailing list