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

Ronald S. Bultje rsbultje
Thu Apr 15 20:17:44 CEST 2010


Hi,

On Thu, Apr 15, 2010 at 2:02 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Wed, Apr 14, 2010 at 11:39:44AM +0200, Robert Kr?ger wrote:
>> 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
[..]
>> ?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

I think it's useful, but this patch lacks documentation thus
completely removing its utility. Please document it in 1-2 locations,
e.g. ffmpeg --help in the relevant part, manpage, etc.

Ronald



More information about the ffmpeg-devel mailing list