[x264-devel] Bug#667573: x264: 10 bit builds

Jonathan Rosser jonathan.rosser at rd.bbc.co.uk
Fri Oct 12 11:00:06 CEST 2012


On 10/12/12 09:15, Nicolas George wrote:
> Le primidi 21 vendémiaire, an CCXXI, Fabian Greffrath a écrit :
>> How about Debian's alternatives system? I think it is easier to use
>> and more consistent than a LD_LIBRARY_PATH hack.
> 
> AFAIK, the alternative system requires root privileges to change the
> selected alternative, whereas LD_LIBRARY_PATH can be changed by any user on
> a per-encode basis. Several encodes can be started with different
> LD_LIBRARY_PATH, and therefore different bit depth. The only limitation with
> that system is that a single process is limited to a single bit depth.
> 
> Of course, the alternative system could be used on top of that, to allow to
> configure the default bit depth, when no LD_LIBRARY_PATH is specified.
> 

I agree. There are different cases here, mine was the most complex where
I need to decide at runtime if 8 or 10 bit was needed.

As others have said this can be achieved by using a suitable arrangement
of dlopen() to select the required library.

>From a debian packaging point of view, the key thing is what is the
correct way to package up and install the 10 bit version alongside the 8
bit.

>From an x264 perspective, is there anything that needs to be done to the
build system to support this in a clean way.

Regards,
Jonathan.



More information about the x264-devel mailing list