Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Movies with Alpha are displayed Premultiplied with black #4983
Hi, we have issues with transparent videos withe well know premul/unpremult stuff
why ? because the decoder multiply the rvb channel with the alpha channel, then display it so you end up with a premultiplied image "bug"
So what mpv should do is
This is tricky stuff but for example quicktime file with a codec compatible with an alpha channel do contain some bit about the source mode if it's a premult on or not. Some image file format too implies it, for example pngs file are always unpremultiplied.
Maybe a first step for MPV should be to do nothing, so at least unpremultiplied stuff are ok to play without bug
PS: maybe you need more media format like a prores4444 file ? please let me know
mpv version latest
Yes there is some sort of alpha mode flag in the header because Graphics Apps like Adobe After effect switch to the right mode with mov files. But I don't know where to look exactly but ffmprobe don't see any differences between the two mov files provided...