[vlc-devel] [PATCH] Naming patterns for HLS segments
sergio at ammirata.net
Sun Apr 15 07:18:06 CEST 2012
You are looking at it the wrong way. Keep the regular numbering scheme and add a feature to persist the current index to a file after every playlist/segment is written to disk. This protocol already assumes that you have write access somewhere, so adding another small .index file will not hurt anything. Then, at startup read the file and use that to initialize the numbering scheme.
On Apr 14, 2012, at 5:06 PM, David Glaude <david.glaude at gmail.com> wrote:
> +1 this
> Le 13 avril 2012 20:00, Rémi Denis-Courmont <remi at remlab.net> a écrit :
>> Still, do you really need a linear counter? I would expect you only need a
>> monotonic counter. Then I would much prefer YYYYMMDDhhmmss over Epoch.
> This is much more readable... human browsable.
> It is sufficient if the lenght of a HLS chunck is know in advance and
> not too short (1s or less might introduce problem).
> By listing all the required files, it is rather easy to make a VOD
> version with is a portion of the initial live streaming.
> You may want to consider the start and stop time.
> I work with system that encode filename as:
> The first HHMMSSFF is for the start time and second HHMMSSFF is for
> the end time.
> This might be very important because HLS chunck might not be 1 second in lenght.
> "FF" is for Frame number (from 00 to 24 AFAIR) because this is the
> kind of precision you may want have.
> David Glaude
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
More information about the vlc-devel