Closed Bug 1733933 Opened 3 years ago Closed 2 years ago

h264/avc video colors are washed out using vaapi HW decoder

Categories

(Core :: Audio/Video: Playback, defect, P5)

Firefox 92
defect

Tracking

()

RESOLVED DUPLICATE of bug 1743577

People

(Reporter: b.desconocido, Unassigned)

Details

Attachments

(3 files)

Attached image ISOPALE.png

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

Update. Tested on laptop with Iris 540 graphics (vaapi implementation is "indel-media-driver"), colors are washed out too.

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.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P5

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

Attached image No VAAPI.png

In this screenshot the video is correctly rendered - black level in the video is the same as the background frame. VAAPI disabled.

Attached image VAAPI.png

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.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1743577
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: