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

Michael Niedermayer michaelni
Thu Apr 15 20:02:37 CEST 2010

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:
> 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


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100415/96e18810/attachment.pgp>

More information about the ffmpeg-devel mailing list