[FFmpeg-devel] [PATCH v3] avformat/hlsenc: add hls_flag option to write segments to temporary file until complete

Hendrik Leppkes h.leppkes at gmail.com
Sat Feb 4 21:45:55 EET 2017

On Sat, Feb 4, 2017 at 6:55 PM, Aman Gupta <ffmpeg at tmm1.net> wrote:
> From: Aman Gupta <aman at tmm1.net>
> Adds a `-hls_flags +temp_file` which will write segment data to
> filename.tmp, and then rename to filename when the segment is complete.
> This patch is similar in spirit to one used in Plex's ffmpeg fork, and
> allows a transcoding webserver to ensure incomplete segment files are
> never served up accidentally.

Wouldnt a segment only show up in the playlist when its finished? How
can they be served accidentally?

- Hendrik

More information about the ffmpeg-devel mailing list