On Wed, May 6, 2026 at 5:36 PM Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
I was looking for opencl lut3d filter (i think mpv uses lcms2 + opengl to drive its color-managed output)
And there was patch, since last year, but it not yet merged
https://ffmpeg.org/pipermail/ffmpeg-devel/2025-June/346001.html
Usage after patching ffmpeg git: ./ffmpeg -i ~/6029.mp4 -init_hw_device opencl -vf format=bgra,hwupload,lut3d_opencl=/home/guest/botva/src/src/LinearTransformation/BT601_NTSC_to_BT2020_HLG.cube,hwdownload,format=bgra -frames 10000 -c:v libx264 -preset ultrafast -c:a copy -f mp4 /dev/shm/3dlut.mp4 took me some time to figure out full string.
also there was inverse tonemapping (SDR to HDR) filter, slo not merged yet
https://ffmpeg.org/pipermail/ffmpeg-devel/2025-July/346244.html
but I think patch was incomplete? It modifies file that does not exist yet (may be it used normal tonmapping filter sources as renamed base and then added on that?)