Bug 7009

Summary: ffmpeg lags behind ffmpeg-free
Product: Fedora Reporter: lnicola
Component: ffmpegAssignee: Dominik 'Rathann' Mierzejewski <dominik>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: kwizart, leigh123linux
Priority: P1    
Version: f40   
Hardware: x86_64   
OS: GNU/Linux   
URL: https://www.youtube.com/watch?v=o8FWjrYrXlg
namespace:
Attachments: screenshot of hardware decode

Description lnicola 2024-07-22 11:29:57 CEST
It's currently at ffmpeg 6.1.1-14.fc40, compared to ffmpeg-free 6.1.1-19.fc40. Notably, it seems to be missing the fix for CVE-2023-49528 and breaks VA-API AV1 playback in Firefox: https://bugzilla.redhat.com/show_bug.cgi?id=2299031.
Comment 1 lnicola 2024-07-22 11:46:49 CEST
My bad, ffmpeg-6.1.1-14.fc40 should actually have the VA-API fix (I checked the changelog, but for some reason thought it last updated in June), but it doesn't work for me.
Comment 2 leigh scott 2024-07-22 12:42:46 CEST
I can't reproduce the issue in firefox, does the issue reproduce in any other player (mpv)?

$ inxi -G
Graphics:
  Device-1: AMD Renoir [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 24.1.1 driver: X:
    loaded: amdgpu unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    resolution: 3840x2160~60Hz
  API: EGL v: 1.5 drivers: radeonsi,swrast platforms: x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.4 renderer: AMD
    Radeon Graphics (radeonsi renoir LLVM 18.1.6 DRM 3.57
    6.10.0-64.fc41.x86_64)
  API: Vulkan v: 1.3.283 drivers: N/A surfaces: xcb,xlib


I don't use firefox so don't know if any options need to be enabled for vaapi.
Comment 3 lnicola 2024-07-22 12:47:32 CEST
No, mpv works fine. Tested with both Fedora and Mozilla builds of Firefox. I have media.ffmpeg.vaapi.enabled enabled in about:config.

Note that I didn't test with ffmpeg-free yet.
Comment 4 leigh scott 2024-07-22 13:04:21 CEST
Created attachment 2573 [details]
screenshot of hardware decode
Comment 5 lnicola 2024-07-22 13:14:21 CEST
Perhaps your GPU doesn't support that?

Anyway, I switched back to ffmpeg-free and mesa-va-drivers, and it's still not working, which seems to indicate that the rpmfusion packages are not to blame.
Comment 6 leigh scott 2024-07-22 13:56:55 CEST
https://bugzilla.redhat.com/show_bug.cgi?id=2299031
Comment 7 lnicola 2024-07-22 14:00:14 CEST
Yeah, let's close this, sorry for the confusion.