Closed Bug 1902781 Opened 1 year ago Closed 1 year ago

Youtube video switches from AV1 to VP9 for no reason.

Categories

(Core :: Graphics, defect)

Firefox 127
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: abspack, Unassigned)

References

Details

Attachments

(2 files)

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

Steps to reproduce:

Go watch this vid in 4K: https://www.youtube.com/watch?v=8BPxtvVJwhw on a Linux System.

Actual results:

Video type changes from AV1 to VP9 at 0:20.

Expected results:

Video should play in AV1 because I have the necessary hardware which is an AMD Radeon RX 6600.

The issue is reproducible.

The Bugbug bot thinks this bug should belong to the 'Core::Graphics' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics
Product: Firefox → Core

I am on Xubuntu 24.04 with Mesa 24.0.5.

I can't repro this here on Lubuntu 24.04 with Mesa 23.2.1-1-ubuntu3.1-22.04.2 (as shown in about:support), I have not tested yet on Mesa 24.0.5, that system has a Radeon RX 6700 XT so it should be similar, and about:support shows support for AV1 decoding in hardware.

What I did see in YouTube's Stats For Nerds (in the right click menu on the video) is that it was VP09 before I pressed play (autoplay is off by default) and buffered ~10 seconds or more of the video in that mode, then pressing play it showed that video format for those 10 seconds and switched to AV1, then I changed to 4K video quality from the dropdown, and it remained AV1 codec, I haven't seen it switch to VP09.

It's possible that my about:support differs from yours, do you mind attaching the text from about:support as that contains some important information on media decoding? To do so, click either of the copy to clipboard buttons at the top, which can be pasted into an attachment on this bug using Attach New File in the Attachments section above.

It is also possible that YouTube are experimenting with VP09 fallback under some circumstances, but I am not familiar with their logic for that - it would certainly make sense to stay on AV1 for 4K video as the bandwidth usage is lower (which is better from their perspective, even if it means software decoding is used).

Flags: needinfo?(abspack)
Attachment #9407662 - Attachment description: about:support on a Lubuntu 24.04 system wtih Radeon RX 6700 XT → about:support on a Lubuntu 24.04 system with Radeon RX 6700 XT
Severity: -- → S3
Attached file about support.txt
Flags: needinfo?(abspack)

For me the video starts with AV1. Maybe this has to do with the Youtube settings. If you login into Youtube and go to the settings available in the sidebar there you find the category "playback and performance". I've set the setting "always prefer AV1".

Also Youtube starts playing in 4K because Youtube remembers which resolution I preferred the last time in the last video.

AMD VAAPI (bug 1837140) is affected by bug 1902227. May or may not be related.

@Darkspirit Seems unrelated because I am on Mesa 24.0.5.

@Ashley Hale [:ahale]: Would you mind if you can try to reproduce this bug with your Lubuntu system?
https://bugzilla.mozilla.org/show_bug.cgi?id=1900215
Many thanks!

See Also: → 1902771
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: