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

Steven Liu lingjiujianke at gmail.com
Tue Feb 7 07:51:43 EET 2017


2017-02-05 23:09 GMT+08:00 Steven Liu <lingjiujianke at gmail.com>:

>
>
> 2017-02-05 4:38 GMT+08:00 Bodecs Bela <bodecsb at vivanet.hu>:
>
>>
>>
>> 2017.02.04. 20:45 keltezéssel, Hendrik Leppkes írta:
>>
>>> 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?
>>>
>> the segment file names are predictable.
>> In live streaming enviroment somebody predicting the segment name may see
>> the program some seconds earlier than any other viewer by downloading
>> continously the unpublished segment. (with one segment duration seconds
>> earlier)
>> if the currently writed segment name is constant you may prohibit to
>> acces it in web server config
>>
>> - Hendrik
>>> _______________________________________________
>>> ffmpeg-devel mailing list
>>> ffmpeg-devel at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>>
>>
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>
>
> will push after 24 hours
>

Pushed!



Thanks


More information about the ffmpeg-devel mailing list