Closed patatetom closed 9 months ago
you need to use a software renderer, like vo=drm, or allow mpv to access your gpu from qemu
This should be fixed in master I believe.
duplicate of #12193
--vo=drm
is KO 👎 :
# mpv deschiens.mp4 --vo=drm
(+) Video --vid=1 (*) (h264 480x360 25.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/drm/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/drm/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[vo/drm/drm] Failed to acquire DRM master: Device or resource busy
[vo/drm/drm] Failed to commit ModeSetting atomic request: Permission denied
[vo/drm] Failed to set CRTC for connector 31: Permission denied
[vo/drm/drm] Failed to commit ModeSetting atomic request: Permission denied
[vo/drm/drm] Failed to restore previous mode
[vo/drm/drm] Failed to drop DRM master: Invalid argument
Error opening/initializing the selected video_out (--vo) device.
Video: no video
Exiting... (Errors when loading file)
but --vo=x11
is OK 👍 :
# mpv deschiens.mp4 --vo=x11
(+) Video --vid=1 (*) (h264 480x360 25.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
[E] pw.loop [loop.c:67 pw_loop_new()] 0x55d275c7a020: can't make support.system handle: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1342:(snd_func_refer) error evaluating name
ALSA lib conf.c:5204:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM default
[ao/alsa] Playback open error: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[ao/jack] cannot open server
[ao] Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.
Audio: no audio
VO: [x11] 480x360 yuv420p
V: 00:00:03 / 00:02:03 (3%) Cache: 120s/9MB
Exiting... (Quit)
it seems that switching to x11 in fine is what was done with the previous version :
# mpv --version
mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Mon Feb 20 07:38:49 2023
FFmpeg library versions:
libavutil 57.28.100
libavcodec 59.37.100
libavformat 59.27.100
libswscale 6.7.100
libavfilter 8.44.100
libswresample 4.7.100
FFmpeg version: n5.1.2
# mpv deschiens.mp4
(+) Video --vid=1 (*) (h264 480x360 25.000fps)
(+) Audio --aid=1 (*) (aac 2ch 44100Hz)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
pci id for fd 10: 1234:1111, driver (null)
MESA-LOADER: failed to open bochs-drm: /usr/lib/dri/bochs-drm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: bochs-drm
pci id for fd 11: 1234:1111, driver (null)
kmsro: driver missing
[vo/gpu] Failed to create GBM surface.
[vo/gpu] Failed to setup GBM.
libEGL warning: DRI2: failed to authenticate
[vo/gpu-next/opengl] Suspected software renderer or indirect context.
[vo/gpu-next] Can't handle VT release - signal already used
[vo/gpu-next/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
pci id for fd 14: 1234:1111, driver (null)
MESA-LOADER: failed to open bochs-drm: /usr/lib/dri/bochs-drm_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: bochs-drm
pci id for fd 15: 1234:1111, driver (null)
kmsro: driver missing
[vo/gpu-next] Failed to create GBM surface.
[vo/gpu-next] Failed to setup GBM.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] No Xvideo support found.
[vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[vaapi] Failed to initialize VAAPI: unknown libva error
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
[E] pw.loop [loop.c:83 pw_loop_new()] 0x561611a9d420: can't make support.system handle: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
[ao/alsa] Playback open error: No such file or directory
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[ao/jack] cannot open server
[ao] Failed to initialize audio driver 'jack'
Could not open/initialize audio device -> no sound.
Audio: no audio
VO: [x11] 480x360 yuv420p
V: 00:00:00 / 00:02:03 (1%) Cache: 122s/9MB
Exiting... (Quit)
Important Information
Provide following Information:
mpv version mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects built on Sun Jul 23 05:49:29 2023 libplacebo version: v5.264.1 FFmpeg version: n6.0 FFmpeg library versions: libavutil 58.2.100 libavcodec 60.3.100 libavformat 60.3.100 libswscale 7.1.100 libavfilter 9.3.100 libswresample 4.10.100
Linux Distribution and Version archlinux uptodate
Source of the mpv binary archlinux package
If known which version of mpv introduced the problem latest 0.36.0 (no problem with previous 0.35.1)
Window Manager and version openbox 3.6.1
GPU driver and version no GPU (qemu)
Expected behavior
video playback :-)
Actual behavior
I'm developing a live system based on archlinux and I'm testing it under qemu : mpv fails to play my video file under qemu, which was not the case with the previous version of mpv. under qemu too, ffplay plays the same video file without any problem. the problem only occurs under qemu as mpv works normally on my host system (archlinux too).
Log file