[FFmpeg-devel] [PATCH] Override datadir via environment variable

Robert Krüger krueger
Thu Apr 15 20:11:19 CEST 2010


On 15.04.2010, at 20:02, Michael Niedermayer wrote:

> On Wed, Apr 14, 2010 at 11:39:44AM +0200, Robert Kr?ger wrote:
>> 
>> Hi,
>> 
>> the following patch allows to override the data/presets directory via an environment variable FFMPEG_DATADIR.
>> 
>> The use cases for this (in my case) are:
>> - You have to deploy ffmpeg on multiple machines but use different locations (that's where the compiled-in default won't help) for presets and you want to either have multiple users use the same presets or simply do not have control (company policies, whatever) over where to put stuff
>> - You want to have a self-contained bundle of scripts and ffmpeg including binary and presets which does not require any installation
>> 
>> The lookup order now (directories) is:
>> 
>> FFMPEG_DATADIR if set
>> HOME/.ffmpeg if HOME is set
>> compiled in FFMPEG_DATADIR
>> 
>> Regards,
>> 
>> Robert
>> 
> 
>> ffmpeg.c |   11 +++++++----
>> 1 file changed, 7 insertions(+), 4 deletions(-)
>> 17cbbae6ae21eca556eb108c53ae57a33300c8b2  ffmpeg-override-datadir.patch
> 
> if people want this feature, i dont mind, if none of the devels wants it
> then iam against it
> 

fair enough. So I'll wait and hope.

Thanks,

Robert




More information about the ffmpeg-devel mailing list