[FFmpeg-devel] [PATCH] avformat/hlsenc: added segment file deletion

Michael Niedermayer michaelni at gmx.at
Wed Dec 10 23:57:47 CET 2014

On Wed, Dec 10, 2014 at 03:31:00PM +0000, Christian Suloway wrote:
> On 12/9/14, 7:44 PM, "Michael Niedermayer" <michaelni at gmx.at> wrote:
> >On Mon, Dec 08, 2014 at 10:25:05AM -0600, Christian Suloway wrote:
> >> This option flag deletes segment files removed from the playlist after a
> >> period of time equal to the duration of the segment plus the duration of
> >> the playlist.
> >
> >can you explain the usecase for this ?
> >isnt -hls_wrap <num> already achieving this more or less ?
> -hls_wrap <num> does achieve this more or less, but the option has been
> proposed for two reasons:
> (1) Simplify compliance with HLS Internet-Draft
> (http://tools.ietf.org/html/draft-pantos-http-live-streaming) section
> 6.2.2., Live Playlists:
>    When the server removes a Media Segment URI from the Playlist, the
>    corresponding Media Segment MUST remain available to clients for a
>    period of time equal to the duration of the segment plus the duration
>    of the longest Playlist file distributed by the server containing
>    that segment.  Removing a Media Segment earlier than that can
>    interrupt in-progress playback.
> The playlist length/duration can change without computation and
> modification to the -hls_wrap <num> argument.
> (2) Although not required in the HLS Internet-Draft, it can be useful to
> have the sequence number in the segment URI for tracking when logging and
> making modifications to playlists.

hmm, ok, applied


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141210/d533bb79/attachment.asc>

More information about the ffmpeg-devel mailing list