-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Installing two configurations of one formula side-by-side #48902
Comments
This isn't easy but one way to do this is to make a copy of the x264 formula with a different name; it might be easiest to set up a local tap, which is just a directory which is a git repository that contains a checked-in x264-10bit.rb. You can tap it like |
@tdsmith Thanks for the advice, I'll give that a try. |
If ffmpeg is linked to libx264 dynamically rather than statically, then it will adapt automatically to the bit depth supported by the run-time libx264, regardless of the version used at build time. This way it’s possible to work either 8-bit or 10-bit in each ffmpeg command. However you cannot combine 8-bit and 10-bit in the same command, you need two distinct commands. |
@retokromer Yep, I'm trying to do that right now. (following this advice on Stack Exchange under "Second Way") |
My solution to this problem is rather primitive, but it's easier to manage than a local tap.
|
Let us know if there's anything we can practically do to help further here, Thanks! 😃 |
The script above fails. |
ffmpeg will not encode 10-bit video unless x264 is compiled with 10-bit support. But, it doesn't encode 8-bit video with 10-bit x264. I don't want to lose the ability to encode 8-bit video.
This means that I need to have two copies of x264 installed, and switch between them using ffmpeg's
LD_LIBRARY_PATH
variable.Ideally, what I'd like to do is have the vanilla 8-bit x264 be the canonical version (using
brew install x264
), but then have another version (brew install x264 --with-10-bit
) with some unique name (like x264-10bit). brew would ideally know about both versions and would update both whenever I runbrew upgrade
.I don't know how to accomplish this today, unless I missed something in the manual.
The text was updated successfully, but these errors were encountered: