Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949075 - media-video/vlc-3.0.21-r0 and -r3 w/ USE=vaapi on Intel Xe(?) shows black video screen under wayland
Summary: media-video/vlc-3.0.21-r0 and -r3 w/ USE=vaapi on Intel Xe(?) shows black vid...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-30 16:23 UTC by Stefan Trenker
Modified: 2025-02-09 09:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vlc 3.0.21-r3 console log (emerge-info-vlc-3.0.21-r3,11.22 KB, text/plain)
2025-01-30 16:23 UTC, Stefan Trenker
Details
emerge --info (emerge-info-vlc-3.0.21-r3,11.22 KB, text/plain)
2025-01-30 16:24 UTC, Stefan Trenker
Details
vlc-3.0.21-r3 console log now correct attachment (vlc-3.0.21-r3-Plasma-console-log,1.51 KB, text/plain)
2025-01-30 16:27 UTC, Stefan Trenker
Details
Ffprobe of the used video file (ffprobe-of-video-file,4.28 KB, text/plain)
2025-01-30 16:28 UTC, Stefan Trenker
Details
hwinfo --short (hwinfo--short,3.94 KB, text/plain)
2025-01-30 16:29 UTC, Stefan Trenker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Trenker 2025-01-30 16:23:08 UTC
Created attachment 917916 [details]
vlc 3.0.21-r3 console log

media-video/vlc-3.0.21-r3 only shows a black video screen when desktop (Plasma or Gnome) uses wayland.

The Error does not show up when Plasma- or Gnome-Desktop runs with X11.

media-video/vlc-3.0.21-r1 works as expected.

Please find attached vlc-logs when started directly from console.

As a workaround i have maskt vlv-3.0.21-r3.
Comment 1 Stefan Trenker 2025-01-30 16:24:45 UTC
Created attachment 917917 [details]
emerge --info
Comment 2 Stefan Trenker 2025-01-30 16:27:06 UTC
Created attachment 917918 [details]
vlc-3.0.21-r3 console log now correct attachment
Comment 3 Stefan Trenker 2025-01-30 16:28:13 UTC
Created attachment 917919 [details]
Ffprobe of the used video file
Comment 4 Stefan Trenker 2025-01-30 16:29:18 UTC
Created attachment 917920 [details]
hwinfo --short
Comment 5 Andreas Sturmlechner gentoo-dev 2025-01-30 17:50:57 UTC
Works fine for me, fwiw.
Comment 6 Stefan Trenker 2025-01-30 19:22:56 UTC
(In reply to Andreas Sturmlechner from comment #5)
> Works fine for me, fwiw.

Hmmm ...

what's wrong with my setup?
Comment 7 Stefan Trenker 2025-01-30 20:26:25 UTC
When i revert the ffmpeg-patch introduced in 3.0.21-r3 (${P}-vaapi-w-ffmpeg5.patch) to the one from 3.0.21-r1 (${PN}-3.0.21-vaapi-without-ffmpeg4.patch) it works again for me.

Maybe this patch probably has an issue with Wayland/Intel Xe graphics
Comment 8 Andreas Sturmlechner gentoo-dev 2025-01-31 16:12:18 UTC
It would be interesting to see if you have the same problem with media-video/vlc-3.0.21-r0.
Comment 9 Andreas Sturmlechner gentoo-dev 2025-01-31 16:30:43 UTC
(In reply to Stefan Trenker from comment #7)
> Maybe this patch probably has an issue with Wayland/Intel Xe graphics
I'd put the blame on Intel Xe drivers for now, pending the aforementioned -r0 testing. At least on my Intel HD Graphics 515 it works fine as well within Plasma Wayland session.
Comment 10 Stefan Trenker 2025-02-02 13:09:09 UTC
(In reply to Andreas Sturmlechner from comment #8)
> It would be interesting to see if you have the same problem with
> media-video/vlc-3.0.21-r0.

I assume media-video/vlc-3.0.21-r0 is identical with media-video/vlc-3.0.21?

Emerging media-video/vlc-3.0.21 requires ffmpeg-4 and this throws lots of dependency conflicts. To much for downgrading.

Portage update emerged vlc-3.0.21 in September 2024 and it was updated to -r1 in November 2024. During this time period vlc worked fine for me but with an older kernel. Must have been 6.10 or 6.11.

I have tested -r3 with 6.13.0 as well. Still back screen on Wayland. 

On https://gitlab.freedesktop.org/drm/intel/-/issues?page=13&state=opened i cannot find anything related. Opening a new issue there will end up with finger pointing to vlc i guess.
Comment 11 Andreas Sturmlechner gentoo-dev 2025-02-02 13:51:53 UTC
(In reply to Stefan Trenker from comment #10)
> (In reply to Andreas Sturmlechner from comment #8)
> Emerging media-video/vlc-3.0.21 requires ffmpeg-4 and this throws lots of
> dependency conflicts. To much for downgrading.
You can always temporarily downgrade ffmpeg-4 using --nodeps, then build vlc-3.0.21-r0 against that.

(In reply to Stefan Trenker from comment #10)
> Portage update emerged vlc-3.0.21 in September 2024 and it was updated to
> -r1 in November 2024. During this time period vlc worked fine for me but
> with an older kernel. Must have been 6.10 or 6.11.
> 
> I have tested -r3 with 6.13.0 as well. Still back screen on Wayland. 
The logical thing to test then would be a kernel version of that older series.
Comment 12 Stefan Trenker 2025-02-02 14:41:10 UTC
(In reply to Andreas Sturmlechner from comment #11)
> (In reply to Stefan Trenker from comment #10)
> > (In reply to Andreas Sturmlechner from comment #8)
> > Emerging media-video/vlc-3.0.21 requires ffmpeg-4 and this throws lots of
> > dependency conflicts. To much for downgrading.
> You can always temporarily downgrade ffmpeg-4 using --nodeps, then build
> vlc-3.0.21-r0 against that.

I should have thought for that myself.
 
> (In reply to Stefan Trenker from comment #10)
> > Portage update emerged vlc-3.0.21 in September 2024 and it was updated to
> > -r1 in November 2024. During this time period vlc worked fine for me but
> > with an older kernel. Must have been 6.10 or 6.11.
> > 
> > I have tested -r3 with 6.13.0 as well. Still back screen on Wayland. 
> The logical thing to test then would be a kernel version of that older
> series.

Downgrade to ffmpeg-4 and vlc-3.0.21 vlc still shows the same black screen on Wayland on kernels 6.6.74, 6.12.12, and 6.13.0. 

I know for sure it worked September to November 2024. But my system environment at all advanced with the regular portage ebuild updates. Last Year i was on Plasma/KF 5, now its 6. Wayland has received some updates as well. Its not 100% comparable now.
Comment 13 Andreas Sturmlechner gentoo-dev 2025-02-02 19:33:54 UTC
Xe firmware may have also changed together with your kernel updates, so that's another thing to test for - and double check you're not missing any for your hardware.

The difference between VLC 3.0.21-r0 to -r1 and -r3 comes down to USE=vaapi:
- r0 has vaapi support bound to ffmpeg-4, hence those conflicts you encountered
- r1 had ffmpeg vaapi support disabled, fixing conflicts by loss of avcodec_vaapi
- r3 reinstated avcodec_vaapi for >=ffmpeg-5 by means of an upstream VLC patch

There's certainly no general known problem with Plasma 6 Wayland and VLC (or any other video player for that matter), as I am exclusively in Wayland sessions as well using AMD and Intel hardware.
Comment 14 Stefan Trenker 2025-02-06 19:33:07 UTC
(In reply to Andreas Sturmlechner from comment #13)
> Xe firmware may have also changed together with your kernel updates, so
> that's another thing to test for - and double check you're not missing any
> for your hardware.

I have no idea how to load older GuC-Firmware during boot. Renaming the current firmware file does not force loading a lower firmware version.