[FFmpeg-user] Building tips for dual x264 (8-bit/10-bit) and building ffmpeg against these (dual ffmpeg bins)

Douglas Marsh ffmpeg at dx9s.net
Wed Oct 4 02:46:23 EEST 2017


On 2017-10-03 14:09, Carl Eugen Hoyos wrote:

> Either use pkg-config or pass (--extra-cflags and) --extra-ldflags
> to configure so it can find the intended installation.
> (I don't know if there is an extra header, so ldflags may be
> sufficient)
> 

Found a way to do it entirely package maintainer way:

$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/x264-10bit/libx264.so.148
$ ffmpeg -h encoder=libx264

Encoder libx264 [libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:
     General capabilities: delay threads
     Threading capabilities: auto
     Supported pixel formats: yuv420p10le yuv422p10le yuv444p10le nv20le
libx264 AVOptions:
[...]

Where normally it reads:

Encoder libx264 [libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10]:
     General capabilities: delay threads
     Threading capabilities: auto
     Supported pixel formats: yuv420p yuvj420p yuv422p yuvj422p yuv444p 
yuvj444p nv12 nv16 nv21

This is with the distro-built x264 (which has both 8/10-bit versions, 10 
has to be explicitly loaded). So a shell script wrapper around ffmpeg or 
other programs that use the x264 library SHOULD be good enough for most 
programs.

Gonna try on a few other programs and see what works or breaks.

--Doug (dx9s)


More information about the ffmpeg-user mailing list