Bug 2299025 - Firefox cannot play AV1 videos
Summary: Firefox cannot play AV1 videos
Keywords:
Status: CLOSED DUPLICATE of bug 2299031
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 40
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gecko Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-20 12:29 UTC by Yannick Defais
Modified: 2024-07-22 08:33 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-07-22 08:33:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Playing AV1 video from youtube on Firefox (63.55 KB, image/png)
2024-07-20 12:30 UTC, Yannick Defais
no flags Details


Links
System ID Private Priority Status Summary Last Updated
RPM Fusion 7007 0 P1 RESOLVED Backport a patch for the upcoming mesa 24.1.4 to fix corrupted AV1 decoding with radeonsi 2024-07-21 18:52:23 UTC
Red Hat Bugzilla 2299031 0 unspecified CLOSED mesa 24.1.4 breaks AV1 video playback in firefox on amdgpu 2024-08-14 00:21:47 UTC

Description Yannick Defais 2024-07-20 12:29:19 UTC
Since last update (including MESA, might be related), firefox cannot play AV1 video from youtube correctly.
e.g. https://www.youtube.com/watch?v=ezCzq2VFxgg

Reproducible: Always

Steps to Reproduce:
1.Play a youtube video woth AV1 codec in Firefox ( e.g. https://www.youtube.com/watch?v=ezCzq2VFxgg)
2.There is some garbage on the top left corner

Actual Results:  
Video is messed up.

Expected Results:  
Normal video output

Installed Packages
Name         : mesa-dri-drivers
Version      : 24.1.4
Release      : 2.fc40

Comment 1 Yannick Defais 2024-07-20 12:30:39 UTC
Created attachment 2040047 [details]
Playing AV1 video from youtube on Firefox

Comment 2 Yannick Defais 2024-07-20 12:33:28 UTC
System information :
# Rapport d’informations du système
---

- **MB :**                         ASRock X670E Taichi
- **Memory :**                                    32,0 Gio
- **CPU :**                                 AMD Ryzen™ 7 7700 × 16
- **GPU :**                            AMD Radeon™ RX 7900 XTX
- **GPU 1 :**                          AMD Radeon™ Graphics

## Informations liées au logiciel :
- **Bios version :**                   3.01
- **OS :**              Fedora Linux 40 (Workstation Edition)
- **Construction du système d’exploitation :**     (null)
- **Type de système d’exploitation :**             64 bits
- **GNOME :**                           46
- **display server :**                       Wayland
- **Kernel version :**                           Linux 6.9.9-200.fc40.x86_64

Comment 3 Yannick Defais 2024-07-20 18:00:18 UTC
It can start with a nice image, then turn into garbage after a few seconds (~20 seconds).

Comment 4 Yannick Defais 2024-07-21 08:44:35 UTC
I did some more testing about this issue:

I did a fresh install of F40 workstation ( Fedora-Workstation-Live-x86_64-40-1.14.iso, sha256sum: dd1faca950d1a8c3d169adf2df4c3644ebb62f8aac04c401f2393e521395d613  Fedora-Workstation-Live-x86_64-40-1.14.iso)

Without no updates, just the packages from the ISO, Firefox can play AV1 videos. Then I updated to current and did nothing else. At that point it triggers the bug. Then I did downgrade all mesa packages to the previous version:
Using this command I found the packages installed from mesa
$ dnf list mesa*
I then grabbed the previous version from this URL:
https://koji.fedoraproject.org/koji/buildinfo?buildID=2485648

$ ls
mesa-dri-drivers-24.1.2-8.fc40.x86_64.rpm  mesa-libEGL-24.1.2-8.fc40.x86_64.rpm  mesa-libGL-24.1.2-8.fc40.x86_64.rpm     mesa-va-drivers-24.1.2-8.fc40.x86_64.rpm
mesa-filesystem-24.1.2-8.fc40.x86_64.rpm   mesa-libgbm-24.1.2-8.fc40.x86_64.rpm  mesa-libglapi-24.1.2-8.fc40.x86_64.rpm  mesa-vulkan-drivers-24.1.2-8.fc40.x86_64.rpm

I downgraded those packages using this command:
$ LC_ALL=C sudo dnf install *
Last metadata expiration check: 0:00:20 ago on Sun Jul 21 10:28:22 2024.
Dependencies resolved.
=============================================================================================================================================================================================================================
 Package                                                     Architecture                                   Version                                               Repository                                            Size
=============================================================================================================================================================================================================================
Downgrading:
 mesa-dri-drivers                                            x86_64                                         24.1.2-8.fc40                                         @commandline                                          26 M
 mesa-filesystem                                             x86_64                                         24.1.2-8.fc40                                         @commandline                                          21 k
 mesa-libEGL                                                 x86_64                                         24.1.2-8.fc40                                         @commandline                                         141 k
 mesa-libGL                                                  x86_64                                         24.1.2-8.fc40                                         @commandline                                         177 k
 mesa-libgbm                                                 x86_64                                         24.1.2-8.fc40                                         @commandline                                          48 k
 mesa-libglapi                                               x86_64                                         24.1.2-8.fc40                                         @commandline                                          51 k
 mesa-va-drivers                                             x86_64                                         24.1.2-8.fc40                                         @commandline                                         4.0 M
 mesa-vulkan-drivers                                         x86_64                                         24.1.2-8.fc40                                         @commandline                                          17 M

Transaction Summary
=============================================================================================================================================================================================================================
Downgrade  8 Packages

Total size: 47 M
Is this ok [y/N]:y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                     1/1 
  Downgrading      : mesa-filesystem-24.1.2-8.fc40.x86_64                                                                                                                                                               1/16 
  Downgrading      : mesa-va-drivers-24.1.2-8.fc40.x86_64                                                                                                                                                               2/16 
  Downgrading      : mesa-libglapi-24.1.2-8.fc40.x86_64                                                                                                                                                                 3/16 
  Downgrading      : mesa-dri-drivers-24.1.2-8.fc40.x86_64                                                                                                                                                              4/16 
  Downgrading      : mesa-libgbm-24.1.2-8.fc40.x86_64                                                                                                                                                                   5/16 
  Downgrading      : mesa-libEGL-24.1.2-8.fc40.x86_64                                                                                                                                                                   6/16 
  Downgrading      : mesa-libGL-24.1.2-8.fc40.x86_64                                                                                                                                                                    7/16 
  Downgrading      : mesa-vulkan-drivers-24.1.2-8.fc40.x86_64                                                                                                                                                           8/16 
  Cleanup          : mesa-libEGL-24.1.4-2.fc40.x86_64                                                                                                                                                                   9/16 
  Cleanup          : mesa-libGL-24.1.4-2.fc40.x86_64                                                                                                                                                                   10/16 
  Cleanup          : mesa-libgbm-24.1.4-2.fc40.x86_64                                                                                                                                                                  11/16 
  Cleanup          : mesa-libglapi-24.1.4-2.fc40.x86_64                                                                                                                                                                12/16 
  Cleanup          : mesa-dri-drivers-24.1.4-2.fc40.x86_64                                                                                                                                                             13/16 
  Cleanup          : mesa-va-drivers-24.1.4-2.fc40.x86_64                                                                                                                                                              14/16 
  Cleanup          : mesa-filesystem-24.1.4-2.fc40.x86_64                                                                                                                                                              15/16 
  Cleanup          : mesa-vulkan-drivers-24.1.4-2.fc40.x86_64                                                                                                                                                          16/16 
  Running scriptlet: mesa-vulkan-drivers-24.1.4-2.fc40.x86_64                                                                                                                                                          16/16 

Downgraded:
  mesa-dri-drivers-24.1.2-8.fc40.x86_64  mesa-filesystem-24.1.2-8.fc40.x86_64      mesa-libEGL-24.1.2-8.fc40.x86_64  mesa-libGL-24.1.2-8.fc40.x86_64  mesa-libgbm-24.1.2-8.fc40.x86_64  mesa-libglapi-24.1.2-8.fc40.x86_64 
  mesa-va-drivers-24.1.2-8.fc40.x86_64   mesa-vulkan-drivers-24.1.2-8.fc40.x86_64 

Complete!


After that, the video in AV1 codec from Youtube plays correctly in Firefox. Thus, AFAICT the culprit is upgrading mesa from 24.1.2-8 to 24.1.4-2.

Comment 5 Yannick Defais 2024-07-21 09:16:07 UTC
My report seems to be a duplicate of #2299031

Comment 6 José Expósito 2024-07-22 08:33:58 UTC
Yes, it is the same report as https://bugzilla.redhat.com/show_bug.cgi?id=2299031

As mentioned by Neal here:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29400#note_2496638

This update should fix it:
https://bodhi.fedoraproject.org/updates/FEDORA-2024-810afc5c2e

*** This bug has been marked as a duplicate of bug 2299031 ***


Note You need to log in before you can comment on or make changes to this bug.