[FFmpeg-devel] [PATCH] resend: add segment_path for save segment movie

Steven lingjiujianke at gmail.com
Thu Nov 28 23:26:25 CET 2013



发自我的 iPhone

> 在 2013年11月26日,2:22,Stefano Sabatini <stefasab at gmail.com> 写道:
> 
> On date Friday 2013-11-22 13:25:44 +0100, Stefano Sabatini encoded:
>> On date Monday 2013-10-28 10:26:57 +0100, Stefano Sabatini encoded:
>> [...]
>>> I don't think this approach is correct. Indeed we should distinguish
>>> the filename where the file is written (oc->filename) from the
>>> filename which is displayed on the output list file.
>>> 
>>> Note that your approach won't work for example on Windows, where "/"
>>> is not recognized as a file separator.
>>> 
>>> I see two solutions.
>>> 
>>> 1. we *always* print on the list file the segment file basename (the
>>>   filename stripped of the prefix path), as it is done in hlsenc.c
>> 
>> Implemented this way.
>> -- 
>> FFmpeg = Fiendish & Fostering Martial Pacific Earthshaking Gnome
> 
>> From 2821d24d5a7b4746a2aaad2391bc0a21a1cdecb9 Mon Sep 17 00:00:00 2001
>> From: Stefano Sabatini <stefasab at gmail.com>
>> Date: Fri, 22 Nov 2013 12:49:05 +0100
>> Subject: [PATCH] lavf/segment: add segment_list_entry_prefix option
>> 
>> This option allows to add a prefix to the segment list entry filenames.
>> 
>> Also set by default the list entry filenames to the corresponding
>> segment basename, consistent with the HLS muxer.
>> 
>> Based on an idea by Steven Liu <lingjiujianke at gmail.com>.
>> ---
>> doc/muxers.texi       |  8 +++++++-
>> libavformat/segment.c | 21 +++++++++++++++++++--
>> 2 files changed, 26 insertions(+), 3 deletions(-)
> 
> Applied.
> -- 
Thanks Stefano,

    That's ok,:-)

Steven Liu


More information about the ffmpeg-devel mailing list