Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use compatible decoders for videos with alpha channel #15553

Open
Zipdox2 opened this issue Dec 21, 2024 · 0 comments
Open

Use compatible decoders for videos with alpha channel #15553

Zipdox2 opened this issue Dec 21, 2024 · 0 comments

Comments

@Zipdox2
Copy link

Zipdox2 commented Dec 21, 2024

Expected behavior of the wanted feature

MPV's default decoder selection doesn't consider whether the decoder can decode the alpha channel if a video has it. Hardware decoders typically do not support decoding the alpha channel. Additionally, the default VP8 and VP9 decoders don't either, libvpx and libvpx-vp9 have to be specified in the config.

Presently in order to play transparent videos I have to use this config:

background=none
vd=libvpx-vp9,libvpx
hwdec-codecs=h264,vc1,hevc,av1,prores

This completely disables hardware decoding for VP8 and VP9, regardless of whether the video has an alpha channel.

MPV should check if the video has an alpha channel and choose an appropriate decoder to decode it. Only this config should be necessary:

background=none

Alternative behavior of the wanted feature

No response

Log File

No response

Sample Files

kinda.hot.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant