[GH-ISSUE #3288] mpv: failure with gpu/vdpau options (AMD gpu with mesa drivers) #2065

Closed
opened 2026-05-05 08:44:17 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @ghost on GitHub (Mar 21, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3288

Hi!

Here is the options I use:

hwdec=vdpau-copy
vo=gpu
profile=gpu-hq
gpu-api=vulkan
gpu-context=x11vk

firejail mpv "my_video.mp4" output:

[vo/gpu/vulkan/libplacebo] Failed creating instance: VK_ERROR_EXTENSION_NOT_PRESENT
[vo/gpu/vulkan/libplacebo] Failed initializing vulkan instance
[vo/gpu] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (--vo) device.

mpv "my_video.mp4" runs fine.

Notes:

  • Removing the options makes mpv run fine within firejail too.
  • Using openGL instead of vulkan does not work either, mpv runs indefinitly.

Thanks for your help!

EDIT: Vulkan gpu API works with @rusty-snake fix.
Still stuck without vulkan: see my other comment

Originally created by @ghost on GitHub (Mar 21, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3288 Hi! Here is the options I use: ``` hwdec=vdpau-copy vo=gpu profile=gpu-hq gpu-api=vulkan gpu-context=x11vk ``` `firejail mpv "my_video.mp4"` output: ``` [vo/gpu/vulkan/libplacebo] Failed creating instance: VK_ERROR_EXTENSION_NOT_PRESENT [vo/gpu/vulkan/libplacebo] Failed initializing vulkan instance [vo/gpu] Failed initializing any suitable GPU context! Error opening/initializing the selected video_out (--vo) device. ``` `mpv "my_video.mp4"` runs fine. Notes: - Removing the options makes `mpv` run fine within firejail too. - Using openGL instead of vulkan *does not work* either, `mpv` runs indefinitly. Thanks for your help! EDIT: Vulkan gpu API works with @rusty-snake fix. Still stuck without vulkan: see my other comment
gitea-mirror 2026-05-05 08:44:17 -06:00
  • closed this issue
  • added the
    graphics
    label
Author
Owner

@rusty-snake commented on GitHub (Mar 21, 2020):

Duplicate of #3107? Try this fix: 08061fb590

<!-- gh-comment-id:602025354 --> @rusty-snake commented on GitHub (Mar 21, 2020): Duplicate of #3107? Try this fix: https://github.com/netblue30/firejail/commit/08061fb590acda23d9f8fff4eebdd1366caf65fa
Author
Owner

@ghost commented on GitHub (Mar 21, 2020):

Thanks @rusty-snake;

So that solves the vulkan run. However, when using these options:

hwdec=vdpau-copy
vo=gpu
profile=gpu-hq

mpv runs indefinitly without video nor sound. I tried to strace without firejail to find the accessed files and did some adjustements but no luck so far.

<!-- gh-comment-id:602064044 --> @ghost commented on GitHub (Mar 21, 2020): Thanks @rusty-snake; So that solves the vulkan run. However, when using these options: ``` hwdec=vdpau-copy vo=gpu profile=gpu-hq ``` `mpv` runs indefinitly without video nor sound. I tried to strace without firejail to find the accessed files and did some adjustements but no luck so far.
Author
Owner

@ghost commented on GitHub (Mar 21, 2020):

Alright, another quick research and test and I have to ignore seccomp, then mpv launches.

Thanks!

<!-- gh-comment-id:602064408 --> @ghost commented on GitHub (Mar 21, 2020): Alright, another quick research and test and I have to ignore `seccomp`, then mpv launches. Thanks!
Author
Owner

@rusty-snake commented on GitHub (Mar 21, 2020):

mesa, amd, seccomp? #3219, #3267.

Try seccomp !kcmp

<!-- gh-comment-id:602071526 --> @rusty-snake commented on GitHub (Mar 21, 2020): mesa, amd, seccomp? #3219, #3267. Try `seccomp !kcmp`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2065
No description provided.