[FFmpeg-user] how to read fontconfig cfg file from a path relative to ffmpeg binary?

Helmut Tessarek ml at evermeet.cx
Mon Aug 27 01:07:15 CEST 2012


I'm compiling a static ffmpeg binary with fontconfig.
Now ffmpeg (or actually the library which was statically linked to ffmpeg) is
looking for the configuration files in a directory which does not exist on
other systems.
I need to have the library looking for the config files relative to the static
binary.

e.g.:

binary:
	/path/to/binary/ffmpeg
config files:
	/path/to/binary/conf.d
	/path/to/binary/fonts.conf
or
	/path/to/binary/cfg/conf.d
	/path/to/binary/cfg/fonts.conf

Any ideas how I can do this?

Cheers,
  Helmut


More information about the ffmpeg-user mailing list