Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955015 - media-video/mpv-0.40.0 fails to play fullscreen using nvidia-drivers-470.x
Summary: media-video/mpv-0.40.0 fails to play fullscreen using nvidia-drivers-470.x
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-28 07:11 UTC by Klaus Ethgen
Modified: 2025-04-28 10:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Ethgen 2025-04-28 07:11:44 UTC
The bug might be in media-video/mpv version 0.40.0-r1 or in media-libs/libplacebo (version 7.349.0) media-libs/libplacebo did not change in the latest update, it is more likely to be in media-video/mpv.

When running mpv with -fs to play a (local) video on fullscreen, I get the following error:
```
[vo/gpu/libplacebo] vk->CreateSwapchainKHR(...): VK_ERROR_INITIALIZATION_FAILED (../libplacebo-v7.349.0/src/vulkan/swapchain.c:622)
[vo/gpu/libplacebo] Failed (re)creating swapchain!
Could not initialize video chain.
Video: no video
```

And only audio is played. Not even a blank screen.

When I start the same video not in full screen, I get some glitches but even switching to fullscreen works.

Additional Info:
- I use x11-drivers/nvidia-drivers-470.256.02-r2 as my GTX 680 is not supported by newer drivers
- Same goes for kernel: sys-kernel/gentoo-kernel-bin-6.6.85

Going back to media-video/mpv-0.39.0-r1 fixes the bug.
Comment 1 Ionen Wolkens gentoo-dev 2025-04-28 07:53:02 UTC
Cannot reproduce with 570 drivers and, with 470, that sounds more like driver bugs with vulkan really which we cannot do much about.

There is a probable reason that it started happening though, mpv-0.40 switched to using vulkan by default and these old (unsupported) drivers likely have problems with it, but you can revert that behaviour.

Aka ensure USE=egl is set on mpv and try `mpv --gpu-api=opengl` instead, you can put that in your mpv.conf (gpu-api=opengl) or alternatively disable USE=vulkan entirely.

Alternatively may also want to try if --vo=gpu-next --gpu-api=vulkan fares better when using vulkan (gpu-next will become default eventually).

There is also the option to switch to using nouveau, has poor performance and support but it's good enough to get a working display for old cards.
Comment 2 Ionen Wolkens gentoo-dev 2025-04-28 10:31:26 UTC
(In reply to Ionen Wolkens from comment #1)
> Alternatively may also want to try if --vo=gpu-next --gpu-api=vulkan fares
> better when using vulkan (gpu-next will become default eventually).
Then again, given the vo/gpu/libplacebo, sounds like you are already using gpu-next.