commit:     578cded83f841a4316b40f33383297b7a716d243
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 18 05:49:55 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Feb 18 06:12:44 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=578cded8

media-video/ffmpeg: add USE=opencolorio in live

Other packages in the tree have USE=color-management for this
dependency, but ffmpeg also has USE=lcms that is color management
related and they are not used in the same way. Users also do not
really need to set this globally if they just want "color management"
given all this does is add a filter that most users won't be using.

Debated using USE=ocio because the filter is named "ocio", but
USE=opencolorio may be more recognizable and matches the configure
option (minus having lib in front, but not going to add more lib*
USE as been trying to do away with them).

opencolorio does not have multilib, but as usual I feel we shouldn't
add "new" multilib support just for ffmpeg, rather unlikely that
32-bit multilib users will need new things with ancient software
(can file a bug if they really need it).

opencolorio also has less keywords than ffmpeg, but may not be worth
matching. Will look at what still needs masking when ffmpeg-9 releases.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-video/ffmpeg/ffmpeg-9999.ebuild | 2 ++
 media-video/ffmpeg/metadata.xml       | 1 +
 2 files changed, 3 insertions(+)

diff --git a/media-video/ffmpeg/ffmpeg-9999.ebuild 
b/media-video/ffmpeg/ffmpeg-9999.ebuild
index f85f52b92f51..f6fee8eda83d 100644
--- a/media-video/ffmpeg/ffmpeg-9999.ebuild
+++ b/media-video/ffmpeg/ffmpeg-9999.ebuild
@@ -89,6 +89,7 @@ FFMPEG_IUSE_MAP=(
        lzma
        modplug:libmodplug
        nvenc:cuvid,ffnvcodec,nvdec,nvenc
+       opencolorio:^libopencolorio # no multilib
        ocr:libtesseract
        openal
        opencl
@@ -241,6 +242,7 @@ COMMON_DEPEND="
        )
        lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
        modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] )
+       opencolorio? ( media-libs/opencolorio:= )
        ocr? ( app-text/tesseract:=[${MULTILIB_USEDEP}] )
        openal? ( media-libs/openal[${MULTILIB_USEDEP}] )
        opencl? ( virtual/opencl[${MULTILIB_USEDEP}] )

diff --git a/media-video/ffmpeg/metadata.xml b/media-video/ffmpeg/metadata.xml
index 22255582e1f5..93462adb5b07 100644
--- a/media-video/ffmpeg/metadata.xml
+++ b/media-video/ffmpeg/metadata.xml
@@ -63,6 +63,7 @@
                </flag>
                <flag name="libsoxr">Enable use of the audio resampler from 
<pkg>media-libs/soxr</pkg></flag>
                <flag name="lv2">Enable use of filters through 
<pkg>media-libs/lv2</pkg></flag>
+               <flag name="opencolorio">Enable use of color management filters 
via <pkg>media-libs/opencolorio</pkg></flag>
                <flag name="ocr">Enable Optical Character Recognition (OCR) 
filter support via <pkg>app-text/tesseract</pkg></flag>
                <flag name="openh264">Enable H.264 encoding support via 
<pkg>media-libs/openh264</pkg></flag>
                <flag name="openmpt">Enable MPTM tracked music files decoding 
support via <pkg>media-libs/libopenmpt</pkg></flag>

Reply via email to