mpv-player / mpv

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

mpv crashes with a segfault if I create a configuration in "/etc/X11/xorg.conf.d" #9559

Closed sahinakkaya closed 2 years ago

sahinakkaya commented 2 years ago

Important Information

Reproduction steps

I was following Arch Wiki in order to fix a problem about my backlight issue link. Created this file in "/etc/X11/xorg.conf.d/20-intel.conf"

Section "Device"
    Identifier  "Intel Graphics"
    Driver      "intel"
    Option      "Backlight"  "intel_backlight"
EndSection

After reboot, mpv started crashing with a segfault.

Expected behavior

mpv should work because I don't think I am doing something bad for mpv by creating above file.

Actual behavior

mpv crashes with a segfault.

❯ mpv --no-config somevid.mp4
 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 yuv420p
[1]    64162 segmentation fault  mpv --no-config somevid.mp4

Log File

[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[   0.003][v][cplayer]  built on UNKNOWN
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.4-1ubuntu0.1
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --disable-build-date --enable-dvbin
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua memfd_create optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Command line options: '--no-config' '--log-file=log' 'somevid.mp4'
[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[   0.003][v][cplayer]  built on UNKNOWN
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.4-1ubuntu0.1
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-libsmbclient --enable-sdl2 --enable-sndio --disable-build-date --enable-dvbin
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics caca cdda cplayer cplugins debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua memfd_create optimize oss-audio plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sndio stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Setting option 'config' = 'no' (flags = 8)
[   0.003][v][cplayer] Setting option 'log-file' = 'log' (flags = 8)
[   0.004][d][global] user path: 'log' -> 'log'
[   0.004][d][osc] Loading lua script @osc.lua...
[   0.004][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.005][d][stats] Loading lua script @stats.lua...
[   0.005][d][console] Loading lua script @console.lua...
[   0.005][v][cplayer] Waiting for scripts...
[   0.005][d][ytdl_hook] loading mp.defaults
[   0.005][d][console] loading mp.defaults
[   0.005][d][stats] loading mp.defaults
[   0.005][d][osc] loading mp.defaults
[   0.006][d][ytdl_hook] loading @ytdl_hook.lua
[   0.006][d][stats] loading @stats.lua
[   0.006][d][console] loading @console.lua
[   0.006][d][osc] loading @osc.lua
[   0.007][d][ytdl_hook] reading options for ytdl_hook 
[   0.007][d][ytdl_hook] script-opts/ytdl_hook.conf not found. 
[   0.007][d][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.007][d][console] reading options for console 
[   0.007][d][console] script-opts/console.conf not found. 
[   0.007][d][console] lua-settings/console.conf not found. 
[   0.007][d][stats] reading options for stats 
[   0.007][d][stats] script-opts/stats.conf not found. 
[   0.007][d][stats] lua-settings/stats.conf not found. 
[   0.009][d][cplayer] Run command: define-section, flags=64, args=["input_stats", "i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", "default"]
[   0.009][d][cplayer] Run command: enable-section, flags=64, args=["input_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.009][d][cplayer] Run command: define-section, flags=64, args=["input_forced_stats", "", "force"]
[   0.009][d][cplayer] Run command: enable-section, flags=64, args=["input_forced_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.010][d][osc] reading options for osc 
[   0.010][d][osc] script-opts/osc.conf not found. 
[   0.010][d][osc] lua-settings/osc.conf not found. 
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["showhide", "mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", "force"]
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["showhide_wc", "mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", "force"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["showhide", "allow-hide-cursor+allow-vo-dragging"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["showhide_wc", "allow-hide-cursor+allow-vo-dragging"]
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["input", "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", "force"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["input", ""]
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["window-controls", "mbtn_left script-binding osc/__keybinding11\n", "force"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["window-controls", ""]
[   0.010][d][cplayer] Run command: disable-section, flags=64, args=["input"]
[   0.010][d][cplayer] Run command: disable-section, flags=64, args=["window-controls"]
[   0.011][d][cplayer] Run command: change-list, flags=64, args=["shared-script-properties", "append", "osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.011][v][cplayer] Set property: shared-script-properties -> 1
[   0.011][d][cplayer] Run command: disable-section, flags=64, args=["input"]
[   0.011][d][cplayer] Run command: disable-section, flags=64, args=["window-controls"]
[   0.011][d][cplayer] Run command: change-list, flags=64, args=["shared-script-properties", "append", "osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.011][v][cplayer] Set property: shared-script-properties -> 1
[   0.011][d][osc] osc_init 
[   0.011][d][cplayer] Run command: change-list, flags=64, args=["shared-script-properties", "append", "osc-margins=0.000000,0.000000,0.000000,0.000000"]
[   0.011][v][cplayer] Set property: shared-script-properties -> 1
[   0.011][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.6.4 (COMPLEX)
[   0.011][v][osd/libass] Setting up fonts...
[   0.036][v][osd/libass] Using font provider fontconfig
[   0.036][v][osd/libass] Done.
[   0.036][d][cplayer] Run command: define-section, flags=64, args=["input_console", "", "default"]
[   0.036][d][cplayer] Run command: enable-section, flags=64, args=["input_console", "allow-hide-cursor+allow-vo-dragging"]
[   0.036][d][cplayer] Run command: define-section, flags=64, args=["input_forced_console", "", "force"]
[   0.037][d][cplayer] Run command: enable-section, flags=64, args=["input_forced_console", "allow-hide-cursor+allow-vo-dragging"]
[   0.037][v][cplayer] Done loading scripts.
[   0.037][d][global] config path: 'watch_later' -> '-'
[   0.037][d][global] config path: 'watch_later' -> '-'
[   0.037][v][cplayer] Running hook: ytdl_hook/on_load
[   0.037][v][ytdl_hook] ytdl:// hook 
[   0.037][d][cplayer] Run command: define-section, flags=64, args=["input_osc", "", "default"]
[   0.037][v][ytdl_hook] not a ytdl:// url 
[   0.037][d][cplayer] Run command: enable-section, flags=64, args=["input_osc", "allow-hide-cursor+allow-vo-dragging"]
[   0.037][d][cplayer] Run command: define-section, flags=64, args=["input_forced_osc", "", "force"]
[   0.037][d][cplayer] Run command: enable-section, flags=64, args=["input_forced_osc", "allow-hide-cursor+allow-vo-dragging"]
[   0.037][v][ifo_dvdnav] Opening somevid.mp4
[   0.037][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.6.4 (COMPLEX)
[   0.037][v][osd/libass] Setting up fonts...
[   0.037][v][bdmv/bluray] Opening somevid.mp4
[   0.037][v][file] Opening somevid.mp4
[   0.037][d][file] resize stream to 131072 bytes
[   0.037][d][file] Stream opened successfully.
[   0.037][v][demux] Trying demuxers for level=normal.
[   0.037][d][demux] Trying demuxer: disc (force-level: normal)
[   0.037][d][demux] Trying demuxer: edl (force-level: normal)
[   0.037][d][demux] Trying demuxer: cue (force-level: normal)
[   0.037][d][demux] Trying demuxer: rawaudio (force-level: normal)
[   0.037][d][demux] Trying demuxer: rawvideo (force-level: normal)
[   0.037][d][demux] Trying demuxer: mkv (force-level: normal)
[   0.037][d][demux] Trying demuxer: libarchive (force-level: normal)
[   0.038][d][demux] Trying demuxer: lavf (force-level: normal)
[   0.043][v][lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[   0.044][v][file] stream level seek from 131072 to 73236908
[   0.047][v][demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[   0.047][v][cplayer] Opening done: somevid.mp4
[   0.060][v][osd/libass] Using font provider fontconfig
[   0.060][v][osd/libass] Done.
[   0.061][v][find_files] Loading external files in .
[   0.061][v][cplayer] Running hook: ytdl_hook/on_preloaded
[   0.061][v][lavf] select track 0
[   0.061][v][lavf] select track 1
[   0.061][i][cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
[   0.061][i][cplayer]  (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[   0.061][v][vo/gpu] Probing for best GPU context.
[   0.061][v][vo/gpu/opengl] Initializing GPU context 'wayland'
[   0.061][v][vo/gpu/opengl] Initializing GPU context 'x11egl'
[   0.061][v][vo/gpu/x11] X11 opening display: :0
[   0.064][d][vo/gpu/x11] X11 running at 1920x1080 (":0" => local display)
[   0.064][d][vo/gpu/x11] Detected wm supports NetWM.
[   0.064][d][vo/gpu/x11] Detected wm supports FULLSCREEN state.
[   0.064][v][vo/gpu/x11] Display 0 (eDP1): [0, 0, 1920, 1080] @ 60.011884 FPS
[   0.064][v][vo/gpu/x11] Current display FPS: 60.011884
[   0.128][v][vo/gpu/opengl] EGL_VERSION=1.5
[   0.128][v][vo/gpu/opengl] EGL_VENDOR=Mesa Project
[   0.128][v][vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[   0.128][v][vo/gpu/opengl] Trying to create Desktop OpenGL context.
[   0.129][d][vo/gpu/opengl] Chosen EGLConfig:
[   0.129][d][vo/gpu/opengl]   EGL_CONFIG_ID=21
[   0.129][d][vo/gpu/opengl]   EGL_RED_SIZE=8
[   0.129][d][vo/gpu/opengl]   EGL_GREEN_SIZE=8
[   0.129][d][vo/gpu/opengl]   EGL_BLUE_SIZE=8
[   0.129][d][vo/gpu/opengl]   EGL_ALPHA_SIZE=0
[   0.129][d][vo/gpu/opengl]   EGL_COLOR_BUFFER_TYPE=12430
[   0.129][d][vo/gpu/opengl]   EGL_CONFIG_CAVEAT=12344
[   0.129][d][vo/gpu/opengl]   EGL_CONFORMANT=77
[   0.130][v][vo/gpu/opengl] Choosing visual EGL config 0x15, visual ID 0x20
[   0.134][v][vo/gpu/opengl] GL_VERSION='4.6 (Core Profile) Mesa 21.0.3'
[   0.134][v][vo/gpu/opengl] Detected desktop OpenGL 4.6.
[   0.134][v][vo/gpu/opengl] GL_VENDOR='Intel'
[   0.134][v][vo/gpu/opengl] GL_RENDERER='Mesa Intel(R) HD Graphics 630 (KBL GT2)'
[   0.134][v][vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.60'
[   0.134][d][vo/gpu/opengl] Combined OpenGL extensions string:
[   0.134][d][vo/gpu/opengl] EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_CHROMIUM_sync_control EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs 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 EGL_KHR_image_base EGL_KHR_image_pixmap 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_image_dma_buf_export EGL_MESA_query_driver EGL_NOK_swap_region EGL_NOK_texture_from_pixmap EGL_NV_post_sub_buffer EGL_WL_bind_wayland_display  GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor 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_compute_variable_group_size 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_fragment_shader_interlock 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_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_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_demote_to_helper_invocation 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_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical 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_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 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_blackhole_render GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 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_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_fragment_shader_interlock GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc
[   0.135][d][vo/gpu/opengl] Texture formats:
[   0.135][d][vo/gpu/opengl]   NAME       COMP*TYPE SIZE           DEPTH PER COMP.
[   0.135][d][vo/gpu/opengl]   r8         1*unorm   1B    LF CR ST {8}
[   0.135][d][vo/gpu/opengl]   rg8        2*unorm   2B    LF CR ST {8 8}
[   0.135][d][vo/gpu/opengl]   rgb8       3*unorm   3B    LF CR ST {8 8 8}
[   0.135][d][vo/gpu/opengl]   rgba8      4*unorm   4B    LF CR ST {8 8 8 8}
[   0.135][d][vo/gpu/opengl]   r16        1*unorm   2B    LF CR ST {16}
[   0.135][d][vo/gpu/opengl]   rg16       2*unorm   4B    LF CR ST {16 16}
[   0.135][d][vo/gpu/opengl]   rgb16      3*unorm   6B    LF CR ST {16 16 16}
[   0.135][d][vo/gpu/opengl]   rgba16     4*unorm   8B    LF CR ST {16 16 16 16}
[   0.135][d][vo/gpu/opengl]   r8ui       1*uint    1B       CR ST {8}
[   0.135][d][vo/gpu/opengl]   rg8ui      2*uint    2B       CR ST {8 8}
[   0.135][d][vo/gpu/opengl]   rgb8ui     3*uint    3B          ST {8 8 8}
[   0.135][d][vo/gpu/opengl]   rgba8ui    4*uint    4B       CR ST {8 8 8 8}
[   0.135][d][vo/gpu/opengl]   r16ui      1*uint    2B       CR ST {16}
[   0.135][d][vo/gpu/opengl]   rg16ui     2*uint    4B       CR ST {16 16}
[   0.135][d][vo/gpu/opengl]   rgb16ui    3*uint    6B          ST {16 16 16}
[   0.135][d][vo/gpu/opengl]   rgba16ui   4*uint    8B       CR ST {16 16 16 16}
[   0.135][d][vo/gpu/opengl]   r16f       1*float   4B    LF CR ST {32/16}
[   0.135][d][vo/gpu/opengl]   rg16f      2*float   8B    LF CR ST {32/16 32/16}
[   0.135][d][vo/gpu/opengl]   rgb16f     3*float  12B    LF CR ST {32/16 32/16 32/16}
[   0.135][d][vo/gpu/opengl]   rgba16f    4*float  16B    LF CR ST {32/16 32/16 32/16 32/16}
[   0.135][d][vo/gpu/opengl]   r32f       1*float   4B    LF CR ST {32}
[   0.135][d][vo/gpu/opengl]   rg32f      2*float   8B    LF CR ST {32 32}
[   0.135][d][vo/gpu/opengl]   rgb32f     3*float  12B    LF CR ST {32 32 32}
[   0.135][d][vo/gpu/opengl]   rgba32f    4*float  16B    LF CR ST {32 32 32 32}
[   0.135][d][vo/gpu/opengl]   rgb10_a2   4*unorm   4B    LF CR ST {0/10 0/10 0/10 0/2}
[   0.135][d][vo/gpu/opengl]   rgba12     4*unorm   8B    LF CR ST {16 16 16 16}
[   0.135][d][vo/gpu/opengl]   rgb10      3*unorm   6B    LF CR ST {16/10 16/10 16/10}
[   0.135][d][vo/gpu/opengl]   rgb565     3*unorm   2B    LF    ST {0/8 0/8 0/8}
[   0.135][d][vo/gpu/opengl]  LA = LUMINANCE_ALPHA hack format
[   0.135][d][vo/gpu/opengl]  LF = linear filterable
[   0.136][d][vo/gpu/opengl]  CR = can be used for render targets
[   0.136][d][vo/gpu/opengl]  ST = can be used for storable images
[   0.136][d][vo/gpu/opengl] Image formats:
[   0.136][d][vo/gpu/opengl]   yuv444p => 3 planes 1x1 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv420p => 3 planes 2x2 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   gray => 1 planes 1x1 8/0 [r8] (r)
[   0.136][d][vo/gpu/opengl]   gray16 => 1 planes 1x1 16/0 [r16] (r)
[   0.136][d][vo/gpu/opengl]   uyvy422
[   0.136][d][vo/gpu/opengl]   nv12 => 2 planes 2x2 8/0 [r8/rg8] (r/gb)
[   0.136][d][vo/gpu/opengl]   p010 => 2 planes 2x2 16/6 [r16/rg16] (r/gb)
[   0.136][d][vo/gpu/opengl]   nv24 => 2 planes 1x1 8/0 [r8/rg8] (r/gb)
[   0.136][d][vo/gpu/opengl]   argb => 1 planes 1x1 8/0 [rgba8] (argb)
[   0.136][d][vo/gpu/opengl]   bgra => 1 planes 1x1 8/0 [rgba8] (bgra)
[   0.136][d][vo/gpu/opengl]   abgr => 1 planes 1x1 8/0 [rgba8] (abgr)
[   0.136][d][vo/gpu/opengl]   rgba => 1 planes 1x1 8/0 [rgba8] (rgba)
[   0.136][d][vo/gpu/opengl]   bgr24 => 1 planes 1x1 8/0 [rgb8] (bgr)
[   0.136][d][vo/gpu/opengl]   rgb24 => 1 planes 1x1 8/0 [rgb8] (rgb)
[   0.136][d][vo/gpu/opengl]   0rgb => 1 planes 1x1 8/0 [rgba8] (_rgb)
[   0.136][d][vo/gpu/opengl]   bgr0 => 1 planes 1x1 8/0 [rgba8] (bgr)
[   0.136][d][vo/gpu/opengl]   0bgr => 1 planes 1x1 8/0 [rgba8] (_bgr)
[   0.136][d][vo/gpu/opengl]   rgb0 => 1 planes 1x1 8/0 [rgba8] (rgb)
[   0.136][d][vo/gpu/opengl]   rgba64 => 1 planes 1x1 16/0 [rgba16] (rgba)
[   0.136][d][vo/gpu/opengl]   rgb565 => 1 planes 1x1 0/0 [rgb565] (rgb)
[   0.136][d][vo/gpu/opengl]   rgb30 => 1 planes 1x1 10/0 [rgb10_a2] (rgb)
[   0.136][d][vo/gpu/opengl]   vdpau
[   0.136][d][vo/gpu/opengl]   vdpau_output
[   0.136][d][vo/gpu/opengl]   vaapi
[   0.136][d][vo/gpu/opengl]   dxva2_vld
[   0.136][d][vo/gpu/opengl]   mmal
[   0.136][d][vo/gpu/opengl]   videotoolbox
[   0.136][d][vo/gpu/opengl]   drm_prime
[   0.136][d][vo/gpu/opengl]   yuyv422
[   0.136][d][vo/gpu/opengl]   yuv422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv410p => 3 planes 4x4 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   monow
[   0.136][d][vo/gpu/opengl]   monob
[   0.136][d][vo/gpu/opengl]   pal8
[   0.136][d][vo/gpu/opengl]   yuvj422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   uyyvyy411
[   0.136][d][vo/gpu/opengl]   bgr8
[   0.136][d][vo/gpu/opengl]   bgr4
[   0.136][d][vo/gpu/opengl]   bgr4_byte
[   0.136][d][vo/gpu/opengl]   rgb8
[   0.136][d][vo/gpu/opengl]   rgb4
[   0.136][d][vo/gpu/opengl]   rgb4_byte
[   0.136][d][vo/gpu/opengl]   nv21 => 2 planes 2x2 8/0 [r8/rg8] (r/bg)
[   0.136][d][vo/gpu/opengl]   gray16be
[   0.136][d][vo/gpu/opengl]   yuv440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuvj440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuva420p => 4 planes 2x2 8/0 [r8/r8/r8/r8] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   rgb48be
[   0.136][d][vo/gpu/opengl]   rgb48 => 1 planes 1x1 16/0 [rgb16] (rgb)
[   0.136][d][vo/gpu/opengl]   rgb565be
[   0.136][d][vo/gpu/opengl]   rgb555be
[   0.136][d][vo/gpu/opengl]   rgb555
[   0.136][d][vo/gpu/opengl]   bgr565be
[   0.136][d][vo/gpu/opengl]   bgr565
[   0.136][d][vo/gpu/opengl]   bgr555be
[   0.136][d][vo/gpu/opengl]   bgr555
[   0.136][d][vo/gpu/opengl]   vaapi_moco
[   0.136][d][vo/gpu/opengl]   vaapi_idct
[   0.136][d][vo/gpu/opengl]   yuv420p16 => 3 planes 2x2 16/0 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv420p16be
[   0.136][d][vo/gpu/opengl]   yuv422p16 => 3 planes 2x1 16/0 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv422p16be
[   0.136][d][vo/gpu/opengl]   yuv444p16 => 3 planes 1x1 16/0 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv444p16be
[   0.136][d][vo/gpu/opengl]   rgb444
[   0.136][d][vo/gpu/opengl]   rgb444be
[   0.136][d][vo/gpu/opengl]   bgr444
[   0.136][d][vo/gpu/opengl]   bgr444be
[   0.136][d][vo/gpu/opengl]   ya8 => 1 planes 1x1 8/0 [rg8] (ra)
[   0.136][d][vo/gpu/opengl]   bgr48be
[   0.136][d][vo/gpu/opengl]   bgr48 => 1 planes 1x1 16/0 [rgb16] (bgr)
[   0.136][d][vo/gpu/opengl]   yuv420p9be
[   0.136][d][vo/gpu/opengl]   yuv420p9 => 3 planes 2x2 16/-7 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv420p10be
[   0.136][d][vo/gpu/opengl]   yuv420p10 => 3 planes 2x2 16/-6 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv422p10be
[   0.136][d][vo/gpu/opengl]   yuv422p10 => 3 planes 2x1 16/-6 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv444p9be
[   0.136][d][vo/gpu/opengl]   yuv444p9 => 3 planes 1x1 16/-7 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv444p10be
[   0.136][d][vo/gpu/opengl]   yuv444p10 => 3 planes 1x1 16/-6 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv422p9be
[   0.136][d][vo/gpu/opengl]   yuv422p9 => 3 planes 2x1 16/-7 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   gbrp => 3 planes 1x1 8/0 [r8/r8/r8] (g/b/r)
[   0.136][d][vo/gpu/opengl]   gbrp9be
[   0.136][d][vo/gpu/opengl]   gbrp9 => 3 planes 1x1 16/-7 [r16/r16/r16] (g/b/r)
[   0.136][d][vo/gpu/opengl]   gbrp10be
[   0.136][d][vo/gpu/opengl]   gbrp10 => 3 planes 1x1 16/-6 [r16/r16/r16] (g/b/r)
[   0.136][d][vo/gpu/opengl]   gbrp16be
[   0.136][d][vo/gpu/opengl]   gbrp16 => 3 planes 1x1 16/0 [r16/r16/r16] (g/b/r)
[   0.136][d][vo/gpu/opengl]   yuva422p => 4 planes 2x1 8/0 [r8/r8/r8/r8] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva444p => 4 planes 1x1 8/0 [r8/r8/r8/r8] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva420p9be
[   0.136][d][vo/gpu/opengl]   yuva420p9 => 4 planes 2x2 16/-7 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva422p9be
[   0.136][d][vo/gpu/opengl]   yuva422p9 => 4 planes 2x1 16/-7 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva444p9be
[   0.136][d][vo/gpu/opengl]   yuva444p9 => 4 planes 1x1 16/-7 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva420p10be
[   0.136][d][vo/gpu/opengl]   yuva420p10 => 4 planes 2x2 16/-6 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva422p10be
[   0.136][d][vo/gpu/opengl]   yuva422p10 => 4 planes 2x1 16/-6 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva444p10be
[   0.136][d][vo/gpu/opengl]   yuva444p10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva420p16be
[   0.136][d][vo/gpu/opengl]   yuva420p16 => 4 planes 2x2 16/0 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva422p16be
[   0.136][d][vo/gpu/opengl]   yuva422p16 => 4 planes 2x1 16/0 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva444p16be
[   0.136][d][vo/gpu/opengl]   yuva444p16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   xyz12 => 1 planes 1x1 16/4 [rgb16] (rgb)
[   0.136][d][vo/gpu/opengl]   xyz12be
[   0.136][d][vo/gpu/opengl]   nv16 => 2 planes 2x1 8/0 [r8/rg8] (r/gb)
[   0.136][d][vo/gpu/opengl]   nv20 => 2 planes 2x1 16/-6 [r16/rg16] (r/gb)
[   0.136][d][vo/gpu/opengl]   nv20be
[   0.136][d][vo/gpu/opengl]   rgba64be
[   0.136][d][vo/gpu/opengl]   bgra64be
[   0.136][d][vo/gpu/opengl]   bgra64 => 1 planes 1x1 16/0 [rgba16] (bgra)
[   0.136][d][vo/gpu/opengl]   yvyu422
[   0.136][d][vo/gpu/opengl]   ya16be
[   0.136][d][vo/gpu/opengl]   ya16 => 1 planes 1x1 16/0 [rg16] (ra)
[   0.136][d][vo/gpu/opengl]   gbrap => 4 planes 1x1 8/0 [r8/r8/r8/r8] (g/b/r/a)
[   0.136][d][vo/gpu/opengl]   gbrap16be
[   0.136][d][vo/gpu/opengl]   gbrap16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (g/b/r/a)
[   0.136][d][vo/gpu/opengl]   qsv
[   0.136][d][vo/gpu/opengl]   d3d11va_vld
[   0.136][d][vo/gpu/opengl]   cuda
[   0.136][d][vo/gpu/opengl]   yuv420p12be
[   0.136][d][vo/gpu/opengl]   yuv420p12 => 3 planes 2x2 16/-4 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv420p14be
[   0.136][d][vo/gpu/opengl]   yuv420p14 => 3 planes 2x2 16/-2 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv422p12be
[   0.136][d][vo/gpu/opengl]   yuv422p12 => 3 planes 2x1 16/-4 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv422p14be
[   0.136][d][vo/gpu/opengl]   yuv422p14 => 3 planes 2x1 16/-2 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv444p12be
[   0.136][d][vo/gpu/opengl]   yuv444p12 => 3 planes 1x1 16/-4 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv444p14be
[   0.136][d][vo/gpu/opengl]   yuv444p14 => 3 planes 1x1 16/-2 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   gbrp12be
[   0.136][d][vo/gpu/opengl]   gbrp12 => 3 planes 1x1 16/-4 [r16/r16/r16] (g/b/r)
[   0.136][d][vo/gpu/opengl]   gbrp14be
[   0.136][d][vo/gpu/opengl]   gbrp14 => 3 planes 1x1 16/-2 [r16/r16/r16] (g/b/r)
[   0.136][d][vo/gpu/opengl]   yuvj411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b)
[   0.136][d][vo/gpu/opengl]   bayer_bggr8
[   0.136][d][vo/gpu/opengl]   bayer_rggb8
[   0.136][d][vo/gpu/opengl]   bayer_gbrg8
[   0.136][d][vo/gpu/opengl]   bayer_grbg8
[   0.136][d][vo/gpu/opengl]   bayer_bggr16
[   0.136][d][vo/gpu/opengl]   bayer_bggr16be
[   0.136][d][vo/gpu/opengl]   bayer_rggb16
[   0.136][d][vo/gpu/opengl]   bayer_rggb16be
[   0.136][d][vo/gpu/opengl]   bayer_gbrg16
[   0.136][d][vo/gpu/opengl]   bayer_gbrg16be
[   0.136][d][vo/gpu/opengl]   bayer_grbg16
[   0.136][d][vo/gpu/opengl]   bayer_grbg16be
[   0.136][d][vo/gpu/opengl]   xvmc
[   0.136][d][vo/gpu/opengl]   yuv440p10 => 3 planes 1x2 16/-6 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv440p10be
[   0.136][d][vo/gpu/opengl]   yuv440p12 => 3 planes 1x2 16/-4 [r16/r16/r16] (r/g/b)
[   0.136][d][vo/gpu/opengl]   yuv440p12be
[   0.136][d][vo/gpu/opengl]   ayuv64 => 1 planes 1x1 16/0 [rgba16] (argb)
[   0.136][d][vo/gpu/opengl]   ayuv64be
[   0.136][d][vo/gpu/opengl]   videotoolbox_vl
[   0.136][d][vo/gpu/opengl]   p010be
[   0.136][d][vo/gpu/opengl]   gbrap12be
[   0.136][d][vo/gpu/opengl]   gbrap12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (g/b/r/a)
[   0.136][d][vo/gpu/opengl]   gbrap10be
[   0.136][d][vo/gpu/opengl]   gbrap10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (g/b/r/a)
[   0.136][d][vo/gpu/opengl]   mediacodec
[   0.136][d][vo/gpu/opengl]   gray12be
[   0.136][d][vo/gpu/opengl]   gray12 => 1 planes 1x1 16/-4 [r16] (r)
[   0.136][d][vo/gpu/opengl]   gray10be
[   0.136][d][vo/gpu/opengl]   gray10 => 1 planes 1x1 16/-6 [r16] (r)
[   0.136][d][vo/gpu/opengl]   p016 => 2 planes 2x2 16/0 [r16/rg16] (r/gb)
[   0.136][d][vo/gpu/opengl]   p016be
[   0.136][d][vo/gpu/opengl]   d3d11
[   0.136][d][vo/gpu/opengl]   gray9be
[   0.136][d][vo/gpu/opengl]   gray9 => 1 planes 1x1 16/-7 [r16] (r)
[   0.136][d][vo/gpu/opengl]   gbrpf32be
[   0.136][d][vo/gpu/opengl]   gbrpf32 => 3 planes 1x1 32/0 [r16f/r16f/r16f] (g/b/r)
[   0.136][d][vo/gpu/opengl]   gbrapf32be
[   0.136][d][vo/gpu/opengl]   gbrapf32 => 4 planes 1x1 32/0 [r16f/r16f/r16f/r16f] (g/b/r/a)
[   0.136][d][vo/gpu/opengl]   opencl
[   0.136][d][vo/gpu/opengl]   gray14be
[   0.136][d][vo/gpu/opengl]   gray14 => 1 planes 1x1 16/-2 [r16] (r)
[   0.136][d][vo/gpu/opengl]   grayf32be
[   0.136][d][vo/gpu/opengl]   grayf32 => 1 planes 1x1 32/0 [r16f] (r)
[   0.136][d][vo/gpu/opengl]   yuva422p12be
[   0.136][d][vo/gpu/opengl]   yuva422p12 => 4 planes 2x1 16/-4 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   yuva444p12be
[   0.136][d][vo/gpu/opengl]   yuva444p12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (r/g/b/a)
[   0.136][d][vo/gpu/opengl]   nv42 => 2 planes 1x1 8/0 [r8/rg8] (r/bg)
[   0.136][v][vo/gpu] Testing FBO format rgba16f
[   0.136][d][vo/gpu] Resizing texture: 16x16
[   0.136][v][vo/gpu] Using FBO format rgba16f.
[   0.136][v][vo/gpu] No advanced processing required. Enabling dumb mode.
[   0.137][v][vo/gpu] Assuming 60.011884 FPS for display sync.
[   0.138][v][vd] Container reported FPS: 60.000000
[   0.138][v][vd] Codec list:
[   0.138][v][vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[   0.138][v][vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[   0.138][v][vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[   0.138][v][vd] Opening decoder h264
[   0.138][v][vd] No hardware decoding requested.
[   0.138][v][vd] Using software decoding.
[   0.138][v][vd] Detected 4 logical cores.
[   0.138][v][vd] Requesting 5 threads for decoding.
[   0.139][v][vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[   0.139][v][vf] User filter list:
[   0.139][v][vf]   (empty)
[   0.140][v][ad] Codec list:
[   0.140][v][ad]     aac - AAC (Advanced Audio Coding)
[   0.140][v][ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[   0.140][v][ad] Opening decoder aac
[   0.140][v][ad] Requesting 1 threads for decoding.
[   0.141][v][ad] Selected codec: aac (AAC (Advanced Audio Coding))
[   0.141][v][af] User filter list:
[   0.141][v][af]   (empty)
[   0.141][v][cplayer] Starting playback...
[   0.141][v][file] stream level seek from 73475278 to 48
[   0.142][v][af] [in] 44100Hz stereo 2ch floatp
[   0.142][v][af] [userspeed] 44100Hz stereo 2ch floatp
[   0.142][v][af] [userspeed] (disabled)
[   0.142][v][af] [convert] 44100Hz stereo 2ch floatp
[   0.142][d][ffmpeg/video] h264: Reinit context to 1920x1088, pix_fmt: yuv420p
[   0.142][d][vd] DR parameter change to 1920x1090 yuv420p align=64
[   0.142][d][vd] Allocating new DR image...
[   0.146][d][vd] Allocating new DR image...
[   0.148][d][vd] Allocating new DR image...
[   0.151][d][vd] Allocating new DR image...
[   0.156][d][vd] Allocating new DR image...
[   0.158][d][vd] Allocating new DR image...
[   0.158][v][vd] Decoder format: 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[   0.158][v][vd] Using container aspect ratio.
[   0.158][v][vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.159][v][vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.159][v][vf] [userdeint] (disabled)
[   0.159][v][vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.159][v][vf] [autorotate] (disabled)
[   0.159][v][vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.159][v][vf] [convert] (disabled)
[   0.159][v][vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.160][v][ao] Trying audio driver 'pulse'
[   0.160][v][ao/pulse] requested format: 44100 Hz, stereo channels, floatp
[   0.160][v][ao/pulse] Library version: 13.99.0
[   0.160][v][ao/pulse] Proto: 33
[   0.160][v][ao/pulse] Server proto: 4294967295
[   0.161][v][ao/pulse] Channel layouts:
[   0.161][v][ao/pulse]  - #fl
[   0.161][v][ao/pulse]  - #fr
[   0.161][v][ao/pulse]  - #fc
[   0.161][v][ao/pulse]  - #lfe
[   0.161][v][ao/pulse]  - #bl
[   0.162][v][ao/pulse]  - #br
[   0.162][v][ao/pulse]  - #flc
[   0.162][v][ao/pulse]  - #frc
[   0.162][v][ao/pulse]  - #bc
[   0.162][v][ao/pulse]  - #sl
[   0.162][v][ao/pulse]  - #sr
[   0.162][v][ao/pulse]  - #tc
[   0.162][v][ao/pulse]  - #tfl
[   0.162][v][ao/pulse]  - #tfc
[   0.162][v][ao/pulse]  - #tfr
[   0.162][v][ao/pulse]  - #tbl
[   0.162][v][ao/pulse]  - #tbc
[   0.162][v][ao/pulse]  - #tbr
[   0.162][v][ao/pulse] result: stereo
[   0.164][v][ao/pulse] device buffer: 4410 samples.
[   0.164][v][ao/pulse] using soft-buffer of 8820 samples.
[   0.164][i][cplayer] AO: [pulse] 44100Hz stereo 2ch float
[   0.164][v][cplayer] AO: Description: PulseAudio audio output
[   0.164][v][autoconvert] inserting resampler
[   0.164][v][swresample] format change, reinitializing resampler
[   0.164][v][swresample] 44100Hz stereo floatp -> 44100Hz stereo float
[   0.164][v][af] [out] 44100Hz stereo 2ch float
[   0.165][d][osc] osc_init 
[   0.165][i][cplayer] VO: [gpu] 1920x1080 yuv420p
[   0.165][v][cplayer] VO: Description: Shader-based GPU Renderer
[   0.165][d][vd] Allocating new DR image...
[   0.165][v][vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[   0.165][d][vo/gpu] screen size: 1920x1080
[   0.169][v][vo/gpu/x11] not waiting for MapNotify
[   0.180][v][vo/gpu] Resize: 921x1016
[   0.180][v][vo/gpu] Window size: 921x1016 (Borders: l=0 t=0 r=0 b=0)
[   0.180][v][vo/gpu] Video source: 1920x1080 (1:1)
[   0.180][v][vo/gpu] Video display: (0, 0) 1920x1080 -> (0, 249) 921x518
[   0.180][v][vo/gpu] Video scale: 0.479687/0.479630
[   0.180][v][vo/gpu] OSD borders: l=0 t=249 r=0 b=249
[   0.180][v][vo/gpu] Video borders: l=0 t=249 r=0 b=249
[   0.180][v][vo/gpu] Reported display depth: 8
[   0.180][v][vo/gpu] Texture for plane 0: 1920x1080
[   0.181][v][vo/gpu] Texture for plane 1: 960x540
[   0.181][v][vo/gpu] Texture for plane 2: 960x540
[   0.181][v][vo/gpu] Testing FBO format rgba16f
[   0.181][d][vo/gpu] Resizing texture: 16x16
[   0.181][v][vo/gpu] Using FBO format rgba16f.
[   0.181][v][vo/gpu] No advanced processing required. Enabling dumb mode.
LaserEyess commented 2 years ago

0.32 is pretty old, is there any chance you could try with git master? Also, a backtrace with debug symbols would be very helpful.

sahinakkaya commented 2 years ago

@LaserEyess I will try. Just to add more information, if I remove the configuration for backlight and reboot mpv works again. I also found this while searching for a solution.

sahinakkaya commented 2 years ago

@LaserEyess I tried with latest version and the problem is still there. Should I open a new issue or update this one?

Also, a backtrace with debug symbols would be very helpful.

How can I do this?

LaserEyess commented 2 years ago
gdb mpv
r  --no-config somevid.mp4
bt full

https://www.suse.com/support/kb/doc/?id=000016799

sahinakkaya commented 2 years ago
❯ gdb ./mpv
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./mpv...
(gdb) r --no-config somevid.mp4                                                                                                                                                                             
Starting program: /home/sahin/Desktop/GitRepositories/mpv-build/mpv/build/mpv --no-config somevid.mp4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff434c700 (LWP 14302)]
[New Thread 0x7ffff3b4b700 (LWP 14303)]
[New Thread 0x7ffff334a700 (LWP 14304)]
[New Thread 0x7ffff2b49700 (LWP 14305)]
[New Thread 0x7ffff2348700 (LWP 14306)]
[New Thread 0x7ffff1b47700 (LWP 14307)]
[Thread 0x7ffff1b47700 (LWP 14307) exited]
[New Thread 0x7ffff1b47700 (LWP 14308)]
[New Thread 0x7ffff1b47700 (LWP 14309)]
[Thread 0x7ffff1b47700 (LWP 14308) exited]
[New Thread 0x7fffe37e2700 (LWP 14310)]
 (+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
[New Thread 0x7fffe2fe1700 (LWP 14311)]
[Thread 0x7fffe2fe1700 (LWP 14311) exited]
[New Thread 0x7fffe2fe1700 (LWP 14312)]
[New Thread 0x7fffd26ec700 (LWP 14321)]
[New Thread 0x7fffd1eeb700 (LWP 14322)]
[New Thread 0x7fffd16ea700 (LWP 14323)]
[New Thread 0x7fffd0ee9700 (LWP 14324)]
[New Thread 0x7fffc6849700 (LWP 14329)]
[New Thread 0x7fffc6048700 (LWP 14332)]
[New Thread 0x7fffc5847700 (LWP 14333)]
[New Thread 0x7fffc5046700 (LWP 14335)]
[New Thread 0x7fffc4845700 (LWP 14336)]
[New Thread 0x7fffaf1ff700 (LWP 14339)]
[New Thread 0x7fffae67e700 (LWP 14340)]
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 yuv420p

Thread 12 "mpv/vo" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe2fe1700 (LWP 14312)]
0x00007fffd34cb16d in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
(gdb) bt full
#0  0x00007fffd34cb16d in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#1  0x00007fffd34cb320 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#2  0x00007fffd34cb5ca in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#3  0x00007fffd3685ebe in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#4  0x00007fffd34a64c7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#5  0x00007fffd34a7af6 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#6  0x00007fffd28bcb26 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
No symbol table info available.
#7  0x00005555557ea591 in gl_clear (ra=<optimized out>, dst=<optimized out>, color=0x7fffe2fe0390, scissor=0x7fffe2fe0340) at ../video/out/opengl/ra_gl.c:684
        gl = 0x7fffcc002ad0
        __PRETTY_FUNCTION__ = "gl_clear"
        dst_gl = <optimized out>
#8  0x00005555557e1654 in gl_video_render_frame (p=0x7fffcc319f50, frame=frame@entry=0x7fffcc3187c0, fbo=..., flags=flags@entry=3) at ../video/out/gpu/video.c:3256
        target_rc = {x0 = 0, y0 = 0, x1 = 921, y1 = 1016}
        has_frame = true
        c = <optimized out>
        clear_color = {0, 0, 0, 1}
#9  0x00005555557f1679 in draw_frame (vo=0x5555574016b0, frame=0x7fffcc3187c0) at ../video/out/vo_gpu.c:86
        p = 0x5555574036b0
        sw = 0x7fffcc2e8ab0
        fbo = {tex = 0x7fffcc35ffe0, flip = true, color_space = {space = MP_CSP_AUTO, levels = MP_CSP_LEVELS_AUTO, primaries = MP_CSP_PRIM_AUTO, gamma = MP_CSP_TRC_AUTO, light = MP_CSP_LIGHT_AUTO,
            sig_peak = 0}}
#10 0x00005555557ef41f in render_frame (vo=0x5555574016b0) at ../video/out/vo.c:960
        prev_drop_count = 0
        can_queue = <optimized out>
        vsync = {last_queue_display_time = 0, vsync_duration = 0, skipped_vsyncs = 0}
        use_vsync = <optimized out>
        frame = 0x7fffcc3187c0
        in = 0x55555740c050
        more_frames = false
        now = <optimized out>
        pts = <optimized out>
        duration = <optimized out>
        end_time = <optimized out>
        target = 10453064
        in = <optimized out>
        frame = <optimized out>
        more_frames = <optimized out>
        __PRETTY_FUNCTION__ = "render_frame"
        now = <optimized out>
        pts = <optimized out>
        duration = <optimized out>
        end_time = <optimized out>
        target = <optimized out>
        use_vsync = <optimized out>
        prev_drop_count = <optimized out>
        can_queue = <optimized out>
        vsync = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
#11 vo_thread (ptr=0x5555574016b0) at ../video/out/vo.c:1098
        working = <optimized out>
        wait_until = <optimized out>
        send_reset = <optimized out>
        now = <optimized out>
        redraw = <optimized out>
        send_pause = <optimized out>
        vo = <optimized out>
        in = 0x55555740c050
        vo_paused = false
        r = 0
#12 0x00007ffff72cb609 in start_thread (arg=<optimized out>) at pthread_create.c:477
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737001690880, -349394877178513087, 140737488343758, 140737488343759, 140737488343760, 140737001688768, 349441055104366913, 349413167489415489},
              mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = 0
#13 0x00007ffff71f2293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
LaserEyess commented 2 years ago

I just realized you didn't fill out the issue template properly. Please say what GPU and driver you're using. Obviously, some sort of intel with the mesa iris driver, but which one? This mostly looks like a driver bug, but I'm not an expert in openGL so I don't know what the gl_clear() function does.

Can you try MESA_LOADER_DRIVER_OVERRIDE=i965 and see if it still crashes? This may or may not work on your hardware since I don't know what it is.

sahinakkaya commented 2 years ago

I have a Nvidia GTX 1050 video card. And here is my driver:

❯ dpkg -l | grep nvidia-driver
ii  nvidia-driver-495                              495.44-0ubuntu0.20.04.1                             amd64        NVIDIA driver metapackage

I don't think I am using nvidia drivers because they just don't work on my computer. This is the situation since I installed Linux so I think the problem is not about gpu.

Can you try MESA_LOADER_DRIVER_OVERRIDE=i965 and see if it still crashes?

I tried this and the problem is fixed. I still don't understand what the problem is. What should I change in my computer to fix this permanently?

LaserEyess commented 2 years ago
[   0.134][v][vo/gpu/opengl] GL_VERSION='4.6 (Core Profile) Mesa 21.0.3'
[   0.134][v][vo/gpu/opengl] Detected desktop OpenGL 4.6.
[   0.134][v][vo/gpu/opengl] GL_VENDOR='Intel'
[   0.134][v][vo/gpu/opengl] GL_RENDERER='Mesa Intel(R) HD Graphics 630 (KBL GT2)'

I guess I didn't need your hardware info afterall. You may have nvidia in your machine but mpv is clearly choosing your intel GPU to play videos.

I'll try to explain what the issue (probably) is: there are multiple intel openGL drivers that you can use on linux, the default for your GPU is called iris. However, there is another (older) one called i965. What I had you do with MESA_LOADER_DRIVER_OVERRIDE is force mpv to use i965 to see if the problem is with mpv or iris. Since this works on i965 and there are only openGL calls in the mpv function where it crashes, I'm fairly confident this is a bug with iris, so it has to be reported to mesa. I would first report this to Ubuntu though, with these exact reproduction steps and the information that the problem only exists on iris, not i965.

sahinakkaya commented 2 years ago

Thank you very much for detailed explanation! I will report this to places you mentioned. I guess we can close this issue :)

sahinakkaya commented 2 years ago

I can't tell how much I appreciate the help. You are very nice @LaserEyess ! Thank you again!

LaserEyess commented 2 years ago

For now, you can create a custom script for mpv that will always use i965, something like this should work (untested, but should work on ubuntu):

#!/usr/bin/env bash
export MESA_LOADER_DRIVER_OVERRIDE=i965
/usr/bin/mpv "$@"

Put that on your path as mpv and it will never crash from iris.

avih commented 2 years ago

/usr/bin/mpv $@

this should be /usr/bin/mpv "$@" (double-quoted "$@") or else file names or arguments with spaces will be passed incorrectly to mpv.

sahinakkaya commented 2 years ago

Yep, I was doing the same thing :)

Monsterovich commented 2 years ago

https://gitlab.freedesktop.org/mesa/mesa/-/issues/5763