mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.77k stars 2.86k forks source link

segfault (core dumped) #12934

Closed patatetom closed 9 months ago

patatetom commented 9 months ago

Important Information

Provide following Information:

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).

mpv --no-config --log-file=output.txt 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/drm] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
pci id for fd 11: 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)
pci id for fd 12: 1234:1111, driver (null)
kmsro: driver missing
[vo/gpu] Failed to create GBM surface.
[vo/gpu] Failed to setup GBM.
[vo/gpu] Failed to commit atomic request: Function not implemented

Log file

[   0.000][d][global] user path: '/tmp/output.txt' -> '/tmp/output.txt'
[   0.011][v][cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[   0.011][v][cplayer]  built on Sun Jul 23 05:49:29 2023
[   0.011][v][cplayer] libplacebo version: v5.264.1
[   0.011][v][cplayer] FFmpeg version: n6.0
[   0.011][v][cplayer] FFmpeg library versions:
[   0.011][v][cplayer]    libavutil       58.2.100
[   0.011][v][cplayer]    libavcodec      60.3.100
[   0.011][v][cplayer]    libavformat     60.3.100
[   0.011][v][cplayer]    libswscale      7.1.100
[   0.011][v][cplayer]    libavfilter     9.3.100
[   0.011][v][cplayer]    libswresample   4.10.100
[   0.011][v][cplayer] 
[   0.011][v][cplayer] Configuration: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dlibmpv=true -Dcaca=disabled -Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled -Dlibarchive=enabled -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[   0.011][v][cplayer] List of enabled features: alsa av-channel-layout avif_muxer build-date cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs luajit manpage-build memfd_create noexecstack pipewire posix posix_shm pulse rubberband rubberband-3 shaderc stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vk_khr_display vt.h vulkan wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zimg zimg-st428 zlib
[   0.011][v][cplayer] Command line options: '--no-config' '--log-file=/tmp/output.txt' 'deschiens.mp4'
[   0.011][v][cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[   0.011][v][cplayer]  built on Sun Jul 23 05:49:29 2023
[   0.011][v][cplayer] libplacebo version: v5.264.1
[   0.011][v][cplayer] FFmpeg version: n6.0
[   0.011][v][cplayer] FFmpeg library versions:
[   0.011][v][cplayer]    libavutil       58.2.100
[   0.011][v][cplayer]    libavcodec      60.3.100
[   0.011][v][cplayer]    libavformat     60.3.100
[   0.011][v][cplayer]    libswscale      7.1.100
[   0.011][v][cplayer]    libavfilter     9.3.100
[   0.011][v][cplayer]    libswresample   4.10.100
[   0.011][v][cplayer] 
[   0.011][v][cplayer] Configuration: -Db_lto=true -Db_pie=true -Dpython.bytecompile=1 -Dlibmpv=true -Dcaca=disabled -Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled -Dlibarchive=enabled -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[   0.011][v][cplayer] List of enabled features: alsa av-channel-layout avif_muxer build-date cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs luajit manpage-build memfd_create noexecstack pipewire posix posix_shm pulse rubberband rubberband-3 shaderc stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vk_khr_display vt.h vulkan wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zimg zimg-st428 zlib
[   0.011][d][global] home path: '' -> '-'
[   0.011][d][global] user path: '~~home/' -> ''
[   0.011][d][global] user path: '~~old_home/' -> ''
[   0.011][v][cplayer] Setting option 'config' = 'no' (flags = 8)
[   0.011][v][cplayer] Setting option 'log-file' = '/tmp/output.txt' (flags = 8)
[   0.011][d][global] user path: '/tmp/output.txt' -> '/tmp/output.txt'
[   0.011][d][osc] Loading lua script @osc.lua...
[   0.011][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.011][d][stats] Loading lua script @stats.lua...
[   0.011][d][console] Loading lua script @console.lua...
[   0.011][d][auto_profiles] Loading lua script @auto_profiles.lua...
[   0.011][v][cplayer] Waiting for scripts...
[   0.011][d][auto_profiles] loading mp.defaults
[   0.011][d][auto_profiles] loading @auto_profiles.lua
[   0.011][d][console] loading mp.defaults
[   0.011][d][console] loading @console.lua
[   0.011][d][stats] loading mp.defaults
[   0.011][d][stats] loading @stats.lua
[   0.011][d][ytdl_hook] loading mp.defaults
[   0.011][d][ytdl_hook] loading @ytdl_hook.lua
[   0.011][d][ytdl_hook] reading options for ytdl_hook 
[   0.011][d][ytdl_hook] script-opts/ytdl_hook.conf not found. 
[   0.011][d][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.011][d][osc] loading mp.defaults
[   0.011][d][osc] loading @osc.lua
[   0.012][d][stats] reading options for stats 
[   0.012][d][stats] script-opts/stats.conf not found. 
[   0.012][d][stats] lua-settings/stats.conf not found. 
[   0.012][d][console] reading options for console 
[   0.012][d][console] script-opts/console.conf not found. 
[   0.012][d][console] lua-settings/console.conf not found. 
[   0.012][d][auto_profiles] Exiting...
[   0.014][d][osd/libass] ASS library version: 0x1701000 (runtime 0x1701000)
[   0.014][v][osd/libass] libass API version: 0x1701000
[   0.014][v][osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[   0.014][v][osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)
[   0.014][v][osd/libass] Setting up fonts...
[   0.015][d][osc] reading options for osc 
[   0.015][d][osc] script-opts/osc.conf not found. 
[   0.015][d][osc] lua-settings/osc.conf not found. 
[   0.018][v][osd/libass] Using font provider fontconfig
[   0.018][v][osd/libass] Done.
[   0.019][d][cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"]
[   0.019][d][cplayer] Run command: define-section, flags=64, args=[name="showhide_wc", contents="mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", flags="force"]
[   0.019][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.019][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.019][d][cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-binding osc/__keybinding5\nshift+mbtn_left script-binding osc/__keybinding6\nmbtn_right script-binding osc/__keybinding7\nmbtn_mid script-binding osc/__keybinding8\nwheel_up script-binding osc/__keybinding9\nwheel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_right_dbl ignore\n", flags="force"]
[   0.019][d][cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""]
[   0.019][d][cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"]
[   0.019][d][cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""]
[   0.019][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-visibility=auto"]
[   0.019][v][cplayer] Set property: shared-script-properties -> 1
[   0.019][v][cplayer] Set property: user-data/osc/visibility="auto" -> 1
[   0.019][d][cplayer] Run command: disable-section, flags=64, args=[name="input"]
[   0.019][d][cplayer] Run command: disable-section, flags=64, args=[name="window-controls"]
[   0.019][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.019][v][cplayer] Set property: shared-script-properties -> 1
[   0.019][v][cplayer] Set property: user-data/osc/margins={"l":0,"r":0,"b":0,"t":0} -> 1
[   0.020][v][cplayer] Done loading scripts.
[   0.020][d][global] state path: 'watch_later' -> '-'
[   0.020][d][global] state path: 'watch_later' -> '-'
[   0.020][v][cplayer] Running hook: ytdl_hook/on_load
[   0.020][v][ytdl_hook] ytdl:// hook 
[   0.020][v][ytdl_hook] not a ytdl:// url 
[   0.021][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.021][v][cplayer] Set property: shared-script-properties -> 1
[   0.021][v][cplayer] Set property: user-data/osc/margins={"l":0,"r":0,"b":0,"t":0} -> 1
[   0.021][d][osc] osc_init 
[   0.021][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.021][v][cplayer] Set property: shared-script-properties -> 1
[   0.021][v][cplayer] Set property: user-data/osc/margins={"l":0,"r":0,"b":0,"t":0} -> 1
[   0.021][d][osd/libass] ASS library version: 0x1701000 (runtime 0x1701000)
[   0.021][v][osd/libass] libass API version: 0x1701000
[   0.021][v][osd/libass] libass source: commit: 0.17.1-0-ge8ad72accd3a84268275a9385beb701c9284e5b3-dirty
[   0.021][v][osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 8.3.0 (COMPLEX)
[   0.021][v][osd/libass] Setting up fonts...
[   0.024][v][ifo_dvdnav] Opening deschiens.mp4
[   0.024][v][bdmv/bluray] Opening deschiens.mp4
[   0.024][v][file] Opening deschiens.mp4
[   0.024][d][file] resize stream to 131072 bytes, drop 0 bytes
[   0.025][d][file] Stream opened successfully.
[   0.025][v][demux] Trying demuxers for level=normal.
[   0.025][d][demux] Trying demuxer: disc (force-level: normal)
[   0.025][d][demux] Trying demuxer: edl (force-level: normal)
[   0.025][d][demux] Trying demuxer: cue (force-level: normal)
[   0.025][d][demux] Trying demuxer: rawaudio (force-level: normal)
[   0.025][d][demux] Trying demuxer: rawvideo (force-level: normal)
[   0.025][d][demux] Trying demuxer: mkv (force-level: normal)
[   0.025][d][demux] Trying demuxer: libarchive (force-level: normal)
[   0.027][d][demux] Trying demuxer: lavf (force-level: normal)
[   0.028][v][osd/libass] Using font provider fontconfig
[   0.028][v][osd/libass] Done.
[   0.028][d][cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="", flags="default"]
[   0.028][d][cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.028][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"]
[   0.028][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.028][d][cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"]
[   0.028][d][cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.028][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"]
[   0.028][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.028][d][cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"]
[   0.031][d][cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.031][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"]
[   0.031][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[   0.031][v][lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[   0.032][v][file] stream level seek from 131072 to 10233665
[   0.032][v][demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[   0.032][v][cplayer] Opening done: deschiens.mp4
[   0.032][v][find_files] Loading external files in .
[   0.032][v][cplayer] Running hook: ytdl_hook/on_preloaded
[   0.032][v][lavf] select track 0
[   0.032][v][lavf] select track 1
[   0.032][i][cplayer]  (+) Video --vid=1 (*) (h264 480x360 25.000fps)
[   0.032][i][cplayer]  (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[   0.033][v][vo/gpu] Probing for best GPU context.
[   0.033][v][vo/gpu/opengl] Initializing GPU context 'wayland'
[   0.033][v][vo/gpu/opengl] Initializing GPU context 'x11egl'
[   0.033][v][vo/gpu/x11] X11 opening display: :0.0
[   0.034][d][vo/gpu/x11] X11 running at 1280x800 (":0.0" => local display)
[   0.034][d][vo/gpu/x11] Detected wm supports NetWM.
[   0.034][d][vo/gpu/x11] Detected wm supports FULLSCREEN state.
[   0.034][d][vo/gpu/x11] Detected wm supports ABOVE state.
[   0.034][d][vo/gpu/x11] Detected wm supports BELOW state.
[   0.035][v][vo/gpu/x11] Display 0 (Virtual-1): [0, 0, 1280, 800] @ 74.993850 FPS
[   0.035][v][vo/gpu/x11] Current display FPS: 74.993850
[   0.068][v][vo/gpu/opengl] EGL_VERSION=1.5
[   0.068][v][vo/gpu/opengl] EGL_VENDOR=Mesa Project
[   0.068][v][vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[   0.068][v][vo/gpu/opengl] Trying to create Desktop OpenGL context.
[   0.068][d][vo/gpu/opengl] Chosen EGLConfig:
[   0.068][d][vo/gpu/opengl]   EGL_CONFIG_ID=0xb
[   0.068][d][vo/gpu/opengl]   EGL_RED_SIZE=0x8
[   0.068][d][vo/gpu/opengl]   EGL_GREEN_SIZE=0x8
[   0.068][d][vo/gpu/opengl]   EGL_BLUE_SIZE=0x8
[   0.068][d][vo/gpu/opengl]   EGL_ALPHA_SIZE=0x0
[   0.068][d][vo/gpu/opengl]   EGL_COLOR_BUFFER_TYPE=0x308e
[   0.068][d][vo/gpu/opengl]   EGL_CONFIG_CAVEAT=0x3038
[   0.068][d][vo/gpu/opengl]   EGL_CONFORMANT=0x4d
[   0.068][d][vo/gpu/opengl]   EGL_NATIVE_VISUAL_ID=0x21
[   0.072][v][vo/gpu/opengl] Choosing visual EGL config 0xb, visual ID 0x21
[   0.072][v][vo/gpu/x11] The XPresent extension was found.
[   0.072][v][vo/gpu/x11] XPresent enabled.
[   0.073][v][vo/gpu/opengl] GL_VERSION='4.5 (Core Profile) Mesa 23.2.1-arch1.2'
[   0.073][v][vo/gpu/opengl] Detected desktop OpenGL 4.5.
[   0.073][v][vo/gpu/opengl] GL_VENDOR='Mesa'
[   0.073][v][vo/gpu/opengl] GL_RENDERER='llvmpipe (LLVM 16.0.6, 128 bits)'
[   0.073][v][vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.50'
[   0.073][d][vo/gpu/opengl] Combined OpenGL extensions string:
[   0.073][d][vo/gpu/opengl] EGL_ANGLE_sync_control_rate EGL_EXT_create_context_robustness EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_query_driver  GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_filter_anisotropic GL_ARB_texture_filter_minmax GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARM_shader_framebuffer_fetch_depth_stencil GL_ATI_blend_equation_separate GL_ATI_meminfo GL_ATI_texture_float GL_ATI_texture_mirror_once GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_debug_label GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_filter_minmax GL_EXT_texture_integer GL_EXT_texture_mirror_clamp GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_RG8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_shader_atomic_float_minmax GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_signed_rgba GL_MESA_ycbcr_texture GL_NVX_gpu_memory_info GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_shader_atomic_float GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
[   0.074][v][vo/gpu/opengl] Loaded extension GL_KHR_debug.
[   0.074][v][vo/gpu/opengl] Detected suspected software renderer.
[   0.074][w][vo/gpu/opengl] Suspected software renderer or indirect context.
[   0.074][d][vo/gpu/x11] uninit ...
[   0.074][v][vo/gpu/opengl] Initializing GPU context 'drm'
[   0.074][e][vo/gpu/drm] VT_GETMODE failed: Inappropriate ioctl for device
[   0.074][w][vo/gpu/drm] Failed to set up VT switcher. Terminal switching will be unavailable.
[   0.075][v][vo/gpu/drm] Picked DRM card 0, primary node /dev/dri/card0 as the default.
[   0.075][v][vo/gpu/drm] Driver: bochs-drm 1.0.0 (20130925)
[   0.075][v][vo/gpu/drm] Connector 31 currently connected to encoder 36
[   0.075][v][vo/gpu/drm] Selected Encoder 36 with CRTC 35
[   0.075][v][vo/gpu/drm] Selected mode: 1280x800 (1280x800@74.99Hz)
[   0.075][v][vo/gpu/drm] DRM Atomic support found
[   0.075][v][vo/gpu/drm] Using primary plane 33 as draw plane
[   0.075][v][vo/gpu/drm] Failed to find drmprime plane with idx=-2. drmprime-overlay hwdec interop will not work
[   0.075][v][vo/gpu] GBM_FORMAT_ARGB8888 not supported by draw plane: Falling back to GBM_FORMAT_XRGB8888.
[   0.075][v][vo/gpu] Supported modifier: 0x0
[   0.075][v][vo/gpu] Creating GBM device
[   0.085][v][vo/gpu] Initializing GBM surface (1280 x 800)
[   0.085][e][vo/gpu] Failed to create GBM surface.
[   0.085][e][vo/gpu] Failed to setup GBM.
[   0.085][e][vo/gpu] Failed to commit atomic request: Function not implemented
llyyr commented 9 months ago

you need to use a software renderer, like vo=drm, or allow mpv to access your gpu from qemu

Dudemanguy commented 9 months ago

This should be fixed in master I believe.

sfan5 commented 9 months ago

duplicate of #12193

patatetom commented 9 months ago

--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)