[vlc-devel] [PATCH] Naming patterns for HLS segments

David Glaude david.glaude at gmail.com
Sat Apr 14 23:06:43 CEST 2012


+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:
YYYYMMDD-HHMMSSFF-HHMMSSFF

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



More information about the vlc-devel mailing list