Closed Bug 1743980 Opened 4 years ago Closed 4 years ago

Wrong black and white levels when using hardware decoding.

Categories

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

Firefox 94
defect

Tracking

()

RESOLVED DUPLICATE of bug 1726186

People

(Reporter: kokoko3k, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Steps to reproduce:

System is Archlinux on kernel 5.15.5 running on an Haswell GPU.

I enabled vaapi decoding in firefox by using the settings described here:
https://wiki.archlinux.org/title/Firefox#Hardware_video_acceleration

Hardware decoding is working fine in youtube on my hardware when using h264ify, for example; i can confirm because intel_gpu_top reports gpu video decoding in use.
I opened the following videos:
https://www.youtube.com/watch?v=aXHcRiSK_ys
https://www.youtube.com/watch?v=J3pF2jkQ4vc

It should display a perfect black and white, and it does if i don't use hardware decoding.

Actual results:

What i see from the videos are typical limited color levels in the range: 16..235

Expected results:

See full range colors: 0..255.

NOTE that downloading that videos and playing back with other software like mpv and using hardware decoding has correct color levels.

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

This seems a VAAPI issue. Set the Severity to S4 for now. Feel free to change it.
Martin, would you mind having a look?

Flags: needinfo?(stransky)

Thanks for the report! A few days ago, black was a bit brighter and white was a bit darker, but it's fixed today.
Reproducible with: mozregression --launch 2021-11-29 --pref media.ffmpeg.vaapi.enabled:true media.rdd-ffmpeg.enabled:true -a https://www.youtube.com/watch?v=aXHcRiSK_ys -a https://www.youtube.com/watch?v=J3pF2jkQ4vc

No longer blocks: egl-linux-vaapi
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Flags: needinfo?(stransky)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.