[FFmpeg-devel] [PATCH 1/2] cache protocol: allow cache files to be retained

Timothy Lee timothy.ty.lee at gmail.com
Sat Apr 1 02:25:01 EEST 2017

On 03/31/2017 09:09 PM, Michael Niedermayer wrote:
> On Fri, Mar 31, 2017 at 01:27:11PM +1100, Timothy Lee wrote:
>> Hi,
>> This patch allows the name of the cache file to be specified, and
>> retains the file after use.  This was marked as a TODO item inside
>> cache.c
>> If the filename is not specified, the cache protocol reverts back to
>> the original behavior of using a temporary file.
> keeping files cached should if enabled be automatic and not require
> a per file specification of options.
> more like the cache in your browser or OS, you look at a file and
> it gets cached. if too many have been looked at and the cache exceeds
> some space limit the longest ago used gets dropped
> something like that
I see.  The original intention of the patch was to allow saving of the 
incoming stream.

In that case, I'll create a 'capture' protocol driver instead, and leave 
the 'cache' driver untouched.  Thanks.

Timothy Lee

More information about the ffmpeg-devel mailing list