[FFmpeg-devel] [PATCH] avformat/hlsenc: start_number new options

Bodecs Bela bodecsb at vivanet.hu
Fri Jan 6 16:07:24 EET 2017


Dear All,

in avformat/hlsenc the start_number option starts the playlist sequence 
number
(#EXT-X-MEDIA-SEQUENCE) from the specified number. Unless hls_flags
single_file is set, it also specifies starting sequence numbers of
segment and subtitle filenames. Sometimes it is usefull to have unique
starting numbers at each run, but currently it is only achiveable by
setting this parameter manually.
This patch enables to set start_number parameter automatically for
practically unique numbers. If start_number is set to -1, then
the start number will be the seconds since epoch (1970-01-01 00:00:00).
If set to -2, then the start number will be based on the current
date/time value as YYYYmmddHHMMSS. e.g. 20161231235659.


thank you,

Bela Bodecs

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-hlsenc-start_number-new-options.patch
Type: text/x-patch
Size: 4814 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170106/e51ed571/attachment.bin>


More information about the ffmpeg-devel mailing list