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

Robert Krüger krueger
Wed Apr 14 11:39:44 CEST 2010


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-override-datadir.patch
Type: application/octet-stream
Size: 1436 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100414/657b93c9/attachment.obj>
-------------- next part --------------






More information about the ffmpeg-devel mailing list