h264/avc video colors are washed out using vaapi HW decoder
Categories
(Core :: Audio/Video: Playback, defect, P5)
Tracking
()
People
(Reporter: b.desconocido, Unassigned)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Steps to reproduce:
I set h264/avc acceleration settings media.ffmpeg.vaapi.enabled to true
Using stock AMD GPU driver on Ubuntu 21.04.
Test video: any Youtube video with codec forced to h264
Desktop: GNOME/Wayland.
GPU: Radeon RX 470 8GB
Monitor: AOC U2777PQU (30bpp on Windows)
Scaling: 200%
Resolution: UHD
Actual results:
When media.ffmpeg.vaapi.enabled is set to true, colors on any h264/avc videos are washed out, brightness and contrast looks way off. No other content except HW accelerated videos is affected. If I revert this option and restart the FF, colors are back to normal. See the comparison in the attachments, top half with vaapi enabled, bottom - disabled.
Expected results:
No washed/pale colors, normal brightness and contrast levels
Reporter | ||
Comment 1•3 years ago
|
||
Update. Tested on laptop with Iris 540 graphics (vaapi implementation is "indel-media-driver"), colors are washed out too.
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
I can confirm this bug on two GPUs. The color space is wrong using VAAPI.
GPU #1
Description AMD STONEY (DRM 3.41.0, 5.13.0-22-generic, LLVM 12.0.1)
Vendor ID 0x1002
Device ID 0x98e4
Driver Vendor mesa/radeonsi
Driver Version 21.2.2.0
GPU #2
Description Mesa DRI Intel(R) HD Graphics (BYT)
Vendor ID 0x8086
Device ID 0x0f31
Driver Vendor mesa/i965
Driver Version 21.2.2.0
Comment 4•3 years ago
|
||
In this screenshot the video is correctly rendered - black level in the video is the same as the background frame. VAAPI disabled.
Comment 5•3 years ago
|
||
In this screenshot the video is incorrectly rendered - black level in the video is not black and is different from the background frame. VAAPI enabled.
Updated•2 years ago
|
Description
•