It should be noted that e.g. YouTube uses an ancient version of FFmpeg that will decode 10-bit video incorrectly. Suggestion: Use shared linking with an 8-bit libx264.so as usual, but ship a 10-bit libx264.so as well. As far as I know, it’s possible to just use LD_PRELOAD or something with that.