[FFmpeg-devel] [PATCH] Install preset files from ffpresets/ to ${prefix}/share/ffmpeg

Robert Swain robert.swain
Sun Jan 25 23:25:45 CET 2009


2009/1/24 Stefano Sabatini <stefano.sabatini-lala at poste.it>:
> On date Saturday 2009-01-24 19:11:16 +0000, Robert Swain encoded:
>> 2009/1/24 Diego Biurrun <diego at biurrun.de>:
>> > On Sat, Jan 24, 2009 at 05:22:14PM +0000, Robert Swain wrote:
>> >>
>> >> See attached.
>> >
>> > Patch is OK from my side now, but I think you still need to get things
>> > figured out with Stephano...
>>
>> It's a dirty hack, but we could check the prefix and if not equal to
>> /usr or /usr/local we could install to ~/.ffmpeg/. I don't like it but
>> it wouldn't be too bad I guess.
>
> I don't think this is a good idea, programs shouldn't mess with the
> user's home unless explicitely told so.
>
>> It wouldn't really be too bad to install them anyway. They just
>> won't be used until something is done about the use issue and the
>> -vpre option does take a path to a file as well so it's not
>> completely in vain.
>
> I agree, I think it's safe to apply your patch, then we'll add datadir
> presets support when we'll address the datadir export issue.

Now M?ns has applied a patch to add datadir and export it to
config.mak and config.h, how about these patches?

install_presets - Add (un)installation targets to the top Makefile to
install the presets appropriately.
use_presets - Alter opt_preset() in ffmpeg.c to use FFMPEG_DATADIR
rather than /usr and /usr/local.

Best regards,
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20090125-2211-install_presets.diff
Type: text/x-diff
Size: 1339 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090125/221a90bc/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20090125-2212-use_presets.diff
Type: text/x-diff
Size: 1335 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090125/221a90bc/attachment-0001.diff>



More information about the ffmpeg-devel mailing list