mpv-player / mpv

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

Exits silently with javascript scripts #8667

Closed snylonue closed 3 years ago

snylonue commented 3 years ago

Important Information

Provide following Information:

Reproduction steps

create a empty file named empty.js run mpv --idle -v -v --force-window --no-config --script="/path/to/empty.js"

Expected behavior

a window brings up

Actual behavior

mpv exits silently and the log seems unfinished (without anything like [cplayer] Exiting... (Quit)) lua scripts work fine

Log file

0.33.0-102-g5824d9fff8 with js (doesn't work) ``` PS D:\Files\Video\Temp> mpv --idle -v -v --force-window --no-config --script="D:\Software\mpv\portable_config\scripts\empty.js" [cplayer] Command line options: '--idle' '-v' '-v' '--force-window' '--no-config' '--script=D:\Software\mpv\portable_config\scripts\empty.js' [cplayer] mpv 0.33.0-102-g5824d9fff8 Copyright 漏 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Tue Mar 16 22:19:07 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.68.100 [cplayer] libavcodec 58.132.100 [cplayer] libavformat 58.74.100 [cplayer] libswscale 5.8.100 [cplayer] libavfilter 7.109.100 [cplayer] libswresample 3.8.100 [cplayer] FFmpeg version: git-2021-03-16-30a69b16 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --e nable-lua --enable-javascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-spirv -cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 eg l-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarchive libass libavdevice libbluray libm libmpv-shared libpl acebo lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-static spirv-cross spirv-cross-static st atic-build stdatomic uchardet vapoursynth vulkan wasapi win32-desktop win32-internal-pthreads zimg zlib [global] config path: '' -> '-' [global] user path: '~~home/' -> '' [global] user path: '~~old_home/' -> '' [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'config' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'D:\Software\mpv\portable_config\scripts\empty.js' (flags = 8) [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [osc] loading @osc.lua [ytdl_hook] loading mp.defaults [console] Loading lua script @console.lua... [stats] loading mp.defaults [ytdl_hook] loading @ytdl_hook.lua [auto_profiles] Loading lua script @auto_profiles.lua... [osc] reading options for osc [osc] script-opts/osc.conf not found. [osc] lua-settings/osc.conf not found. [auto_profiles] loading mp.defaults [console] loading mp.defaults [stats] loading @stats.lua [global] user path: 'D:\Software\mpv\portable_config\scripts\empty.js' -> 'D:\Software\mpv\portable_config\scripts\empty.js' [auto_profiles] loading @auto_profiles.lua [ytdl_hook] reading options for ytdl_hook [ytdl_hook] script-opts/ytdl_hook.conf not found. [ytdl_hook] lua-settings/ytdl_hook.conf not found. [stats] reading options for stats [stats] script-opts/stats.conf not found. [console] loading @console.lua [stats] lua-settings/stats.conf not found. [empty] Loading javascript D:\Software\mpv\portable_config\scripts\empty.js... [cplayer] Waiting for scripts... [console] reading options for console [empty] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [empty] Reading file '@/defaults.js' [console] script-opts/console.conf not found. [auto_profiles] Exiting... [console] lua-settings/console.conf not found. [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="defa ult"] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"] [global] user path: '~~/.init.js' -> '.init.js' [empty] Reading file '.init.js' [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"] [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"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"] [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", fla gs="force"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"] [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_righ t 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"] [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="showhide"] [cplayer] Run command: disable-section, flags=64, args=[name="showhide_wc"] [cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"] ```
0.33.0-102-g5824d9fff8 with lua (works) ``` PS D:\Files\Video\Temp> mpv --idle -v -v --force-window --no-config --script="D:\Software\mpv\portable_config\scripts\empty.lua" [cplayer] Command line options: '--idle' '-v' '-v' '--force-window' '--no-config' '--script=D:\Software\mpv\portable_config\scripts\empty.lua' [cplayer] mpv 0.33.0-102-g5824d9fff8 Copyright 漏 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Tue Mar 16 22:19:07 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.68.100 [cplayer] libavcodec 58.132.100 [cplayer] libavformat 58.74.100 [cplayer] libswscale 5.8.100 [cplayer] libavfilter 7.109.100 [cplayer] libswresample 3.8.100 [cplayer] FFmpeg version: git-2021-03-16-30a69b16 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --e nable-lua --enable-javascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-spirv -cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 eg l-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarchive libass libavdevice libbluray libm libmpv-shared libpl acebo lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-static spirv-cross spirv-cross-static st atic-build stdatomic uchardet vapoursynth vulkan wasapi win32-desktop win32-internal-pthreads zimg zlib [global] config path: '' -> '-' [global] user path: '~~home/' -> '' [global] user path: '~~old_home/' -> '' [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'config' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'D:\Software\mpv\portable_config\scripts\empty.lua' (flags = 8) [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [ytdl_hook] loading mp.defaults [stats] Loading lua script @stats.lua... [osc] loading @osc.lua [ytdl_hook] loading @ytdl_hook.lua [console] Loading lua script @console.lua... [stats] loading mp.defaults [auto_profiles] Loading lua script @auto_profiles.lua... [ytdl_hook] reading options for ytdl_hook [console] loading mp.defaults [osc] reading options for osc [osc] script-opts/osc.conf not found. [osc] lua-settings/osc.conf not found. [auto_profiles] loading mp.defaults [stats] loading @stats.lua [console] loading @console.lua [ytdl_hook] script-opts/ytdl_hook.conf not found. [auto_profiles] loading @auto_profiles.lua [global] user path: 'D:\Software\mpv\portable_config\scripts\empty.lua' -> 'D:\Software\mpv\portable_config\scripts\empty.lua' [ytdl_hook] lua-settings/ytdl_hook.conf not found. [stats] reading options for stats [empty] Loading lua script D:\Software\mpv\portable_config\scripts\empty.lua... [stats] script-opts/stats.conf not found. [stats] lua-settings/stats.conf not found. [cplayer] Waiting for scripts... [empty] loading mp.defaults [console] reading options for console [console] script-opts/console.conf not found. [empty] loading file D:\Software\mpv\portable_config\scripts\empty.lua [auto_profiles] Exiting... [console] lua-settings/console.conf not found. [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"] [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", fla gs="force"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="defa ult"] [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_righ t 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"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"] [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"] [cplayer] Set property: shared-script-properties -> 1 [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Done loading scripts. [vo/gpu] Probing for best GPU context. [vo/gpu/d3d11] Initializing GPU context 'd3d11' [vo/gpu/d3d11] Using Direct3D 11 feature level 12_1 [vo/gpu/d3d11] Device Name: NVIDIA GeForce GTX 1050 [vo/gpu/d3d11] Device ID: 10de:1c8d (rev a1) [vo/gpu/d3d11] Subsystem ID: 103c:8217 [vo/gpu/d3d11] LUID: 0000000000019df0 [vo/gpu/d3d11] Initializing SPIR-V compiler 'shaderc' [vo/gpu/d3d11] Using Direct3D 11.1 runtime [vo/gpu/d3d11] Maximum Texture2D size: 16384x16384 [vo/gpu/d3d11] D3DCompiler version: 10.0.19041.546 [vo/gpu/d3d11] Using DXGI 1.2+ [vo/gpu/d3d11] Queried output: \\.\DISPLAY1, 1920x1080 @ 6 bits, colorspace: RGB_FULL_G22_NONE_P709 (0) [vo/gpu/d3d11] Selected swapchain format R8G8B8A8_UNORM (28), attempting to utilize it. [vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G22_NONE_P709 (0), attempting to utilize it. [vo/gpu/d3d11] Swapchain capabilities for color space RGB_FULL_G22_NONE_P709 (0): normal: yes, overlay: no [vo/gpu/d3d11] Swapchain successfully configured to color space RGB_FULL_G22_NONE_P709 (0)! [vo/gpu/d3d11] Using flip-model presentation [vo/gpu/d3d11] Texture formats: [vo/gpu/d3d11] NAME COMP*TYPE SIZE DEPTH PER COMP. [vo/gpu/d3d11] r8 1*unorm 1B LF CR ST {8} [vo/gpu/d3d11] rg8 2*unorm 2B LF CR ST {8 8} [vo/gpu/d3d11] rgba8 4*unorm 4B LF CR ST {8 8 8 8} [vo/gpu/d3d11] r16 1*unorm 2B LF CR ST {16} [vo/gpu/d3d11] rg16 2*unorm 4B LF CR ST {16 16} [vo/gpu/d3d11] rgba16 4*unorm 8B LF CR ST {16 16 16 16} [vo/gpu/d3d11] r32ui 1*uint 4B ST {32} [vo/gpu/d3d11] rg32ui 2*uint 8B ST {32 32} [vo/gpu/d3d11] rgb32ui 3*uint 12B {32 32 32} [vo/gpu/d3d11] rgba32ui 4*uint 16B ST {32 32 32 32} [vo/gpu/d3d11] r16hf 1*float 2B LF CR ST {16} [vo/gpu/d3d11] rg16hf 2*float 4B LF CR ST {16 16} [vo/gpu/d3d11] rgba16hf 4*float 8B LF CR ST {16 16 16 16} [vo/gpu/d3d11] r32f 1*float 4B LF CR ST {32} [vo/gpu/d3d11] rg32f 2*float 8B LF CR ST {32 32} [vo/gpu/d3d11] rgb32f 3*float 12B {32 32 32} [vo/gpu/d3d11] rgba32f 4*float 16B LF CR ST {32 32 32 32} [vo/gpu/d3d11] rgb10_a2 4*unorm 4B LF CR ST {10 10 10 2} [vo/gpu/d3d11] bgra8 4*unorm 4B LF CR ST {8 8 8 8} [vo/gpu/d3d11] bgrx8 3*unorm 4B LF CR {8 8 8} [vo/gpu/d3d11] LA = LUMINANCE_ALPHA hack format [vo/gpu/d3d11] LF = linear filterable [vo/gpu/d3d11] CR = can be used for render targets [vo/gpu/d3d11] ST = can be used for storable images [vo/gpu/d3d11] Image formats: [vo/gpu/d3d11] yuv444p => 3 planes 1x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p => 3 planes 2x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] gray => 1 planes 1x1 8/0 [r8] (r) [unorm] [vo/gpu/d3d11] gray16 => 1 planes 1x1 16/0 [r16] (r) [unorm] [vo/gpu/d3d11] uyvy422 [vo/gpu/d3d11] nv12 => 2 planes 2x2 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] p010 => 2 planes 2x2 16/6 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] argb => 1 planes 1x1 8/0 [rgba8] (argb) [unorm] [vo/gpu/d3d11] bgra => 1 planes 1x1 8/0 [rgba8] (bgra) [unorm] [vo/gpu/d3d11] abgr => 1 planes 1x1 8/0 [rgba8] (abgr) [unorm] [vo/gpu/d3d11] rgba => 1 planes 1x1 8/0 [rgba8] (rgba) [unorm] [vo/gpu/d3d11] bgr24 [vo/gpu/d3d11] rgb24 [vo/gpu/d3d11] 0rgb => 1 planes 1x1 8/0 [rgba8] (_rgb) [unorm] [vo/gpu/d3d11] bgr0 => 1 planes 1x1 8/0 [rgba8] (bgr) [unorm] [vo/gpu/d3d11] 0bgr => 1 planes 1x1 8/0 [rgba8] (_bgr) [unorm] [vo/gpu/d3d11] rgb0 => 1 planes 1x1 8/0 [rgba8] (rgb) [unorm] [vo/gpu/d3d11] rgba64 => 1 planes 1x1 16/0 [rgba16] (rgba) [unorm] [vo/gpu/d3d11] rgb565 [vo/gpu/d3d11] pal8 [vo/gpu/d3d11] vdpau [vo/gpu/d3d11] d3d11 [vo/gpu/d3d11] dxva2_vld [vo/gpu/d3d11] mmal [vo/gpu/d3d11] mediacodec [vo/gpu/d3d11] drm_prime [vo/gpu/d3d11] cuda [vo/gpu/d3d11] yap8 => 2 planes 1x1 8/0 [r8/r8] (r/a) [unorm] [vo/gpu/d3d11] yap16 => 2 planes 1x1 16/0 [r16/r16] (r/a) [unorm] [vo/gpu/d3d11] grayaf32 => 2 planes 1x1 32/0 [r32f/r32f] (r/a) [float] [vo/gpu/d3d11] yuv444pf => 3 planes 1x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva444pf => 4 planes 1x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv420pf => 3 planes 2x2 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva420pf => 4 planes 2x2 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv422pf => 3 planes 2x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva422pf => 4 planes 2x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv440pf => 3 planes 1x2 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva440pf => 4 planes 1x2 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv410pf => 3 planes 4x4 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva410pf => 4 planes 4x4 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv411pf => 3 planes 4x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva411pf => 4 planes 4x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] rgb30 [vo/gpu/d3d11] y1 => 1 planes 1x1 8/-7 [r8] (r) [unorm] [vo/gpu/d3d11] gbrp1 => 3 planes 1x1 8/-7 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp2 => 3 planes 1x1 8/-6 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp3 => 3 planes 1x1 8/-5 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp4 => 3 planes 1x1 8/-4 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp5 => 3 planes 1x1 8/-3 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp6 => 3 planes 1x1 8/-2 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] vdpau_output [vo/gpu/d3d11] vaapi [vo/gpu/d3d11] videotoolbox [vo/gpu/d3d11] yuyv422 [vo/gpu/d3d11] yuv422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv410p => 3 planes 4x4 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] monow [vo/gpu/d3d11] monob [vo/gpu/d3d11] yuvj422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] uyyvyy411 [vo/gpu/d3d11] bgr8 [vo/gpu/d3d11] bgr4 [vo/gpu/d3d11] bgr4_byte [vo/gpu/d3d11] rgb8 [vo/gpu/d3d11] rgb4 [vo/gpu/d3d11] rgb4_byte [vo/gpu/d3d11] nv21 => 2 planes 2x2 8/0 [r8/rg8] (r/bg) [unorm] [vo/gpu/d3d11] gray16be [vo/gpu/d3d11] yuv440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuvj440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuva420p => 4 planes 2x2 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] rgb48be [vo/gpu/d3d11] rgb48 [vo/gpu/d3d11] rgb565be [vo/gpu/d3d11] rgb555be [vo/gpu/d3d11] rgb555 [vo/gpu/d3d11] bgr565be [vo/gpu/d3d11] bgr565 [vo/gpu/d3d11] bgr555be [vo/gpu/d3d11] bgr555 [vo/gpu/d3d11] vaapi_moco [vo/gpu/d3d11] vaapi_idct [vo/gpu/d3d11] yuv420p16 => 3 planes 2x2 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p16be [vo/gpu/d3d11] yuv422p16 => 3 planes 2x1 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p16be [vo/gpu/d3d11] yuv444p16 => 3 planes 1x1 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p16be [vo/gpu/d3d11] rgb444 [vo/gpu/d3d11] rgb444be [vo/gpu/d3d11] bgr444 [vo/gpu/d3d11] bgr444be [vo/gpu/d3d11] ya8 => 1 planes 1x1 8/0 [rg8] (ra) [unorm] [vo/gpu/d3d11] bgr48be [vo/gpu/d3d11] bgr48 [vo/gpu/d3d11] yuv420p9be [vo/gpu/d3d11] yuv420p9 => 3 planes 2x2 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p10be [vo/gpu/d3d11] yuv420p10 => 3 planes 2x2 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p10be [vo/gpu/d3d11] yuv422p10 => 3 planes 2x1 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p9be [vo/gpu/d3d11] yuv444p9 => 3 planes 1x1 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p10be [vo/gpu/d3d11] yuv444p10 => 3 planes 1x1 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p9be [vo/gpu/d3d11] yuv422p9 => 3 planes 2x1 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] gbrp => 3 planes 1x1 8/0 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp9be [vo/gpu/d3d11] gbrp9 => 3 planes 1x1 16/-7 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp10be [vo/gpu/d3d11] gbrp10 => 3 planes 1x1 16/-6 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp16be [vo/gpu/d3d11] gbrp16 => 3 planes 1x1 16/0 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] yuva422p => 4 planes 2x1 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p => 4 planes 1x1 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p9be [vo/gpu/d3d11] yuva420p9 => 4 planes 2x2 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p9be [vo/gpu/d3d11] yuva422p9 => 4 planes 2x1 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p9be [vo/gpu/d3d11] yuva444p9 => 4 planes 1x1 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p10be [vo/gpu/d3d11] yuva420p10 => 4 planes 2x2 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p10be [vo/gpu/d3d11] yuva422p10 => 4 planes 2x1 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p10be [vo/gpu/d3d11] yuva444p10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p16be [vo/gpu/d3d11] yuva420p16 => 4 planes 2x2 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p16be [vo/gpu/d3d11] yuva422p16 => 4 planes 2x1 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p16be [vo/gpu/d3d11] yuva444p16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] xyz12 [vo/gpu/d3d11] xyz12be [vo/gpu/d3d11] nv16 => 2 planes 2x1 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] nv20 => 2 planes 2x1 16/-6 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] nv20be [vo/gpu/d3d11] rgba64be [vo/gpu/d3d11] bgra64be [vo/gpu/d3d11] bgra64 => 1 planes 1x1 16/0 [rgba16] (bgra) [unorm] [vo/gpu/d3d11] yvyu422 [vo/gpu/d3d11] ya16be [vo/gpu/d3d11] ya16 => 1 planes 1x1 16/0 [rg16] (ra) [unorm] [vo/gpu/d3d11] gbrap => 4 planes 1x1 8/0 [r8/r8/r8/r8] (g/b/r/a) [unorm] [vo/gpu/d3d11] gbrap16be [vo/gpu/d3d11] gbrap16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] qsv [vo/gpu/d3d11] d3d11va_vld [vo/gpu/d3d11] yuv420p12be [vo/gpu/d3d11] yuv420p12 => 3 planes 2x2 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p14be [vo/gpu/d3d11] yuv420p14 => 3 planes 2x2 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p12be [vo/gpu/d3d11] yuv422p12 => 3 planes 2x1 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p14be [vo/gpu/d3d11] yuv422p14 => 3 planes 2x1 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p12be [vo/gpu/d3d11] yuv444p12 => 3 planes 1x1 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p14be [vo/gpu/d3d11] yuv444p14 => 3 planes 1x1 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] gbrp12be [vo/gpu/d3d11] gbrp12 => 3 planes 1x1 16/-4 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp14be [vo/gpu/d3d11] gbrp14 => 3 planes 1x1 16/-2 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] yuvj411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] bayer_bggr8 [vo/gpu/d3d11] bayer_rggb8 [vo/gpu/d3d11] bayer_gbrg8 [vo/gpu/d3d11] bayer_grbg8 [vo/gpu/d3d11] bayer_bggr16 [vo/gpu/d3d11] bayer_bggr16be [vo/gpu/d3d11] bayer_rggb16 [vo/gpu/d3d11] bayer_rggb16be [vo/gpu/d3d11] bayer_gbrg16 [vo/gpu/d3d11] bayer_gbrg16be [vo/gpu/d3d11] bayer_grbg16 [vo/gpu/d3d11] bayer_grbg16be [vo/gpu/d3d11] xvmc [vo/gpu/d3d11] yuv440p10 => 3 planes 1x2 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv440p10be [vo/gpu/d3d11] yuv440p12 => 3 planes 1x2 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv440p12be [vo/gpu/d3d11] ayuv64 => 1 planes 1x1 16/0 [rgba16] (argb) [unorm] [vo/gpu/d3d11] ayuv64be [vo/gpu/d3d11] p010be [vo/gpu/d3d11] gbrap12be [vo/gpu/d3d11] gbrap12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] gbrap10be [vo/gpu/d3d11] gbrap10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] gray12be [vo/gpu/d3d11] gray12 => 1 planes 1x1 16/-4 [r16] (r) [unorm] [vo/gpu/d3d11] gray10be [vo/gpu/d3d11] gray10 => 1 planes 1x1 16/-6 [r16] (r) [unorm] [vo/gpu/d3d11] p016 => 2 planes 2x2 16/0 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] p016be [vo/gpu/d3d11] gray9be [vo/gpu/d3d11] gray9 => 1 planes 1x1 16/-7 [r16] (r) [unorm] [vo/gpu/d3d11] gbrpf32be [vo/gpu/d3d11] gbrpf32 => 3 planes 1x1 32/0 [r32f/r32f/r32f] (g/b/r) [float] [vo/gpu/d3d11] gbrapf32be [vo/gpu/d3d11] gbrapf32 => 4 planes 1x1 32/0 [r32f/r32f/r32f/r32f] (g/b/r/a) [float] [vo/gpu/d3d11] opencl [vo/gpu/d3d11] gray14be [vo/gpu/d3d11] gray14 => 1 planes 1x1 16/-2 [r16] (r) [unorm] [vo/gpu/d3d11] grayf32be [vo/gpu/d3d11] grayf32 => 1 planes 1x1 32/0 [r32f] (r) [float] [vo/gpu/d3d11] yuva422p12be [vo/gpu/d3d11] yuva422p12 => 4 planes 2x1 16/-4 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p12be [vo/gpu/d3d11] yuva444p12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] nv24 => 2 planes 1x1 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] nv42 => 2 planes 1x1 8/0 [r8/rg8] (r/bg) [unorm] [vo/gpu/d3d11] vulkan [vo/gpu/d3d11] y210be [vo/gpu/d3d11] y210 [vo/gpu/d3d11] x2rgb10be [vo/gpu] Testing FBO format rgba16hf [vo/gpu] Resizing texture: 16x16 [vo/gpu] Using FBO format rgba16hf. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu/win32] DPI detected from the new API: 120 [vo/gpu/win32] display-fps: 60.007852 [vo/gpu/win32] color-profile: C:\WINDOWS\system32\spool\drivers\color\sRGB Color Space Profile.icm [vo/gpu] Assuming 60.007852 FPS for display sync. [vo/gpu] reconfig to 960x480 yuv444p auto/auto/auto/auto/auto CL=unknown [vo/gpu] screen size: 1920x1080 [vo/gpu/win32] reset window bounds: 360:240:1200:600 [vo/gpu/win32] move window: 360:240 [vo/gpu/win32] resize window: 1200:600 [vo/gpu/win32] resize window: 1200:600 [vo/gpu/win32] move window: 360:240 [vo/gpu] Resize: 1200x600 [vo/gpu] Window size: 1200x600 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 960x480 (1:1) [vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 1200x600 [vo/gpu] Video scale: 1.250000/1.250000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 960x480 [vo/gpu] Texture for plane 1: 960x480 [vo/gpu] Texture for plane 2: 960x480 [vo/gpu] Testing FBO format rgba16hf [vo/gpu] Resizing texture: 16x16 [vo/gpu] Using FBO format rgba16hf. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Resize: 1200x600 [vo/gpu] Window size: 1200x600 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 960x480 (1:1) [vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 1200x600 [vo/gpu] Video scale: 1.250000/1.250000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="showhide"] [cplayer] Run command: disable-section, flags=64, args=[name="showhide_wc"] [osd/libass] fontselect: (sans-serif, 400, 0) -> ArialMT, 0, ArialMT [vo/gpu] Reallocating OSD texture to 1024x256. [cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"] [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"] [cplayer] Set property: shared-script-properties -> 1 [vo/gpu/d3d11] shaderc compile status 'success' (0 errors, 0 warnings) [vo/gpu/d3d11] Compiled a vertex shader in 148487us [vo/gpu/d3d11] shaderc: 143226us, SPIRV-Cross: 735us, D3DCompile: 4526us [vo/gpu/d3d11] GLSL source: [vo/gpu/d3d11] [ 1] #version 450 [vo/gpu/d3d11] [ 2] #define tex1D texture [vo/gpu/d3d11] [ 3] #define tex3D texture [vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/d3d11] [ 5] layout(location=0) in vec2 vertex_position; [vo/gpu/d3d11] [ 6] layout(location=1) in vec2 vertex_texcoord; [vo/gpu/d3d11] [ 7] layout(location=1) out vec2 texcoord; [vo/gpu/d3d11] [ 8] layout(location=2) in vec4 vertex_ass_color; [vo/gpu/d3d11] [ 9] layout(location=2) out vec4 ass_color; [vo/gpu/d3d11] [ 10] void main() { [vo/gpu/d3d11] [ 11] gl_Position = vec4(vertex_position, 1.0, 1.0); [vo/gpu/d3d11] [ 12] texcoord = vertex_texcoord; [vo/gpu/d3d11] [ 13] ass_color = vertex_ass_color; [vo/gpu/d3d11] [ 14] } [vo/gpu/d3d11] HLSL source: [vo/gpu/d3d11] [ 1] static float4 gl_Position; [vo/gpu/d3d11] [ 2] static float2 _18; [vo/gpu/d3d11] [ 3] static float2 _27; [vo/gpu/d3d11] [ 4] static float2 _28; [vo/gpu/d3d11] [ 5] static float4 _30; [vo/gpu/d3d11] [ 6] static float4 _32; [vo/gpu/d3d11] [ 7] [vo/gpu/d3d11] [ 8] struct SPIRV_Cross_Input [vo/gpu/d3d11] [ 9] { [vo/gpu/d3d11] [ 10] float2 _18 : TEXCOORD0; [vo/gpu/d3d11] [ 11] float2 _28 : TEXCOORD1; [vo/gpu/d3d11] [ 12] float4 _32 : TEXCOORD2; [vo/gpu/d3d11] [ 13] }; [vo/gpu/d3d11] [ 14] [vo/gpu/d3d11] [ 15] struct SPIRV_Cross_Output [vo/gpu/d3d11] [ 16] { [vo/gpu/d3d11] [ 17] float2 _27 : TEXCOORD1; [vo/gpu/d3d11] [ 18] float4 _30 : TEXCOORD2; [vo/gpu/d3d11] [ 19] float4 gl_Position : SV_Position; [vo/gpu/d3d11] [ 20] }; [vo/gpu/d3d11] [ 21] [vo/gpu/d3d11] [ 22] void vert_main() [vo/gpu/d3d11] [ 23] { [vo/gpu/d3d11] [ 24] gl_Position = float4(_18, 1.0f, 1.0f); [vo/gpu/d3d11] [ 25] _27 = _28; [vo/gpu/d3d11] [ 26] _30 = _32; [vo/gpu/d3d11] [ 27] gl_Position.y = -gl_Position.y; [vo/gpu/d3d11] [ 28] } [vo/gpu/d3d11] [ 29] [vo/gpu/d3d11] [ 30] SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) [vo/gpu/d3d11] [ 31] { [vo/gpu/d3d11] [ 32] _18 = stage_input._18; [vo/gpu/d3d11] [ 33] _28 = stage_input._28; [vo/gpu/d3d11] [ 34] _32 = stage_input._32; [vo/gpu/d3d11] [ 35] vert_main(); [vo/gpu/d3d11] [ 36] SPIRV_Cross_Output stage_output; [vo/gpu/d3d11] [ 37] stage_output.gl_Position = gl_Position; [vo/gpu/d3d11] [ 38] stage_output._27 = _27; [vo/gpu/d3d11] [ 39] stage_output._30 = _30; [vo/gpu/d3d11] [ 40] return stage_output; [vo/gpu/d3d11] [ 41] } [vo/gpu/d3d11] shaderc compile status 'success' (0 errors, 0 warnings) [vo/gpu/d3d11] Compiled a fragment shader in 7782us [vo/gpu/d3d11] shaderc: 4333us, SPIRV-Cross: 304us, D3DCompile: 3145us [vo/gpu/d3d11] GLSL source: [vo/gpu/d3d11] [ 1] #version 450 [vo/gpu/d3d11] [ 2] #define tex1D texture [vo/gpu/d3d11] [ 3] #define tex3D texture [vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/d3d11] [ 5] layout(location=0) out vec4 out_color; [vo/gpu/d3d11] [ 6] layout(location=1) in vec2 texcoord; [vo/gpu/d3d11] [ 7] layout(location=2) in vec4 ass_color; [vo/gpu/d3d11] [ 8] layout(std140, binding=0) uniform UBO { [vo/gpu/d3d11] [ 9] layout(offset=0) vec3 src_luma; [vo/gpu/d3d11] [ 10] layout(offset=16) vec3 dst_luma; [vo/gpu/d3d11] [ 11] }; [vo/gpu/d3d11] [ 12] layout(binding=0) uniform sampler2D osdtex; [vo/gpu/d3d11] [ 13] void main() { [vo/gpu/d3d11] [ 14] vec4 color = vec4(0.0, 0.0, 0.0, 1.0); [vo/gpu/d3d11] [ 15] color = vec4(ass_color.rgb, ass_color.a * texture(osdtex, texcoord).r); [vo/gpu/d3d11] [ 16] // color mapping [vo/gpu/d3d11] [ 17] color.rgb *= vec3(1.000000); [vo/gpu/d3d11] [ 18] color.rgb *= vec3(1.000000); [vo/gpu/d3d11] [ 19] out_color = color; [vo/gpu/d3d11] [ 20] } [vo/gpu/d3d11] HLSL source: [vo/gpu/d3d11] [ 1] Texture2D _26 : register(t0); [vo/gpu/d3d11] [ 2] SamplerState __26_sampler : register(s0); [vo/gpu/d3d11] [ 3] [vo/gpu/d3d11] [ 4] static float4 _14; [vo/gpu/d3d11] [ 5] static float2 _30; [vo/gpu/d3d11] [ 6] static float4 _52; [vo/gpu/d3d11] [ 7] [vo/gpu/d3d11] [ 8] struct SPIRV_Cross_Input [vo/gpu/d3d11] [ 9] { [vo/gpu/d3d11] [ 10] float2 _30 : TEXCOORD1; [vo/gpu/d3d11] [ 11] float4 _14 : TEXCOORD2; [vo/gpu/d3d11] [ 12] }; [vo/gpu/d3d11] [ 13] [vo/gpu/d3d11] [ 14] struct SPIRV_Cross_Output [vo/gpu/d3d11] [ 15] { [vo/gpu/d3d11] [ 16] float4 _52 : SV_Target0; [vo/gpu/d3d11] [ 17] }; [vo/gpu/d3d11] [ 18] [vo/gpu/d3d11] [ 19] void frag_main() [vo/gpu/d3d11] [ 20] { [vo/gpu/d3d11] [ 21] float4 _39 = float4(_14.xyz, _14.w * _26.Sample(__26_sampler, _30).x); [vo/gpu/d3d11] [ 22] _52 = float4(_39.x, _39.y, _39.z, _39.w); [vo/gpu/d3d11] [ 23] } [vo/gpu/d3d11] [ 24] [vo/gpu/d3d11] [ 25] SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) [vo/gpu/d3d11] [ 26] { [vo/gpu/d3d11] [ 27] _14 = stage_input._14; [vo/gpu/d3d11] [ 28] _30 = stage_input._30; [vo/gpu/d3d11] [ 29] frag_main(); [vo/gpu/d3d11] [ 30] SPIRV_Cross_Output stage_output; [vo/gpu/d3d11] [ 31] stage_output._52 = _52; [vo/gpu/d3d11] [ 32] return stage_output; [vo/gpu/d3d11] [ 33] } [cplayer] Run command: script-binding, flags=73, args=[name="osc/__keybinding4"] [cplayer] Run command: quit, flags=73, args=[code="0"] [cplayer] Exiting... (Quit) [cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="remove", value="osc-margins"] [empty] Exiting... [console] Exiting... [ytdl_hook] Exiting... [stats] Exiting... [cplayer] Set property: shared-script-properties -> 1 [osc] Exiting... [vo/gpu] flushing shader cache [vo/gpu/win32] uninit ```
0.33.0-88-gd1be8bb606 with js (works) ``` PS C:\Users\user\Desktop> mpv --idle -v -v --force-window --no-config --script="D:\Software\mpv\portable_config\scripts\empty.js" [cplayer] Command line options: '--idle' '-v' '-v' '--force-window' '--no-config' '--script=D:\Software\mpv\portable_config\scripts\empty.js' [cplayer] mpv 0.33.0-88-gd1be8bb606 Copyright 漏 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Feb 28 09:25:17 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.66.100 [cplayer] libavcodec 58.126.100 [cplayer] libavformat 58.68.100 [cplayer] libswscale 5.8.100 [cplayer] libavfilter 7.107.100 [cplayer] libswresample 3.8.100 [cplayer] FFmpeg version: git-2021-02-28-85ab9deb [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-static-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --e nable-lua --enable-javascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enable-rubberband --enable-lcms2 --enable-openal --enable-spirv -cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 eg l-helpers ffmpeg ffnvcodec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarchive libass libavdevice libbluray libm libmpv-shared libpl acebo lua luajit mingw noexecstack openal optimize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-static spirv-cross spirv-cross-static st atic-build stdatomic uchardet vapoursynth vulkan wasapi win32-desktop win32-internal-pthreads zimg zlib [global] config path: '' -> '-' [global] user path: '~~home/' -> '' [global] user path: '~~old_home/' -> '' [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'config' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'D:\Software\mpv\portable_config\scripts\empty.js' (flags = 8) [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [ytdl_hook] loading mp.defaults [osc] loading @osc.lua [console] Loading lua script @console.lua... [stats] loading mp.defaults [ytdl_hook] loading @ytdl_hook.lua [stats] loading @stats.lua [console] loading mp.defaults [auto_profiles] Loading lua script @auto_profiles.lua... [osc] reading options for osc [osc] script-opts/osc.conf not found. [osc] lua-settings/osc.conf not found. [auto_profiles] loading mp.defaults [stats] reading options for stats [global] user path: 'D:\Software\mpv\portable_config\scripts\empty.js' -> 'D:\Software\mpv\portable_config\scripts\empty.js' [stats] script-opts/stats.conf not found. [stats] lua-settings/stats.conf not found. [console] loading @console.lua [empty] Loading javascript D:\Software\mpv\portable_config\scripts\empty.js... [ytdl_hook] reading options for ytdl_hook [ytdl_hook] script-opts/ytdl_hook.conf not found. [ytdl_hook] lua-settings/ytdl_hook.conf not found. [auto_profiles] loading @auto_profiles.lua [cplayer] Waiting for scripts... [empty] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [empty] Reading file '@/defaults.js' [auto_profiles] Exiting... [console] reading options for console [console] script-opts/console.conf not found. [console] lua-settings/console.conf not found. [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="defa ult"] [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"] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"] [global] user path: '~~/.init.js' -> '.init.js' [empty] Reading file '.init.js' [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"] [empty] Loading file D:\Software\mpv\portable_config\scripts\empty.js [global] user path: 'D:\Software\mpv\portable_config\scripts\empty.js' -> 'D:\Software\mpv\portable_config\scripts\empty.js' [empty] Reading file 'D:\Software\mpv\portable_config\scripts\empty.js' [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", fla gs="force"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"] [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_righ t 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"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [cplayer] Done loading scripts. [vo/gpu] Probing for best GPU context. [vo/gpu/d3d11] Initializing GPU context 'd3d11' [vo/gpu/d3d11] Using Direct3D 11 feature level 12_1 [vo/gpu/d3d11] Device Name: NVIDIA GeForce GTX 1050 [vo/gpu/d3d11] Device ID: 10de:1c8d (rev a1) [vo/gpu/d3d11] Subsystem ID: 103c:8217 [vo/gpu/d3d11] LUID: 0000000000019df0 [vo/gpu/d3d11] Initializing SPIR-V compiler 'shaderc' [vo/gpu/d3d11] Using Direct3D 11.1 runtime [vo/gpu/d3d11] Maximum Texture2D size: 16384x16384 [vo/gpu/d3d11] D3DCompiler version: 10.0.19041.546 [vo/gpu/d3d11] Using DXGI 1.2+ [vo/gpu/d3d11] Queried output: \\.\DISPLAY1, 1920x1080 @ 6 bits, colorspace: RGB_FULL_G22_NONE_P709 (0) [vo/gpu/d3d11] Selected swapchain format R8G8B8A8_UNORM (28), attempting to utilize it. [vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G22_NONE_P709 (0), attempting to utilize it. [vo/gpu/d3d11] Swapchain capabilities for color space RGB_FULL_G22_NONE_P709 (0): normal: yes, overlay: no [vo/gpu/d3d11] Swapchain successfully configured to color space RGB_FULL_G22_NONE_P709 (0)! [vo/gpu/d3d11] Using flip-model presentation [vo/gpu/d3d11] Texture formats: [vo/gpu/d3d11] NAME COMP*TYPE SIZE DEPTH PER COMP. [vo/gpu/d3d11] r8 1*unorm 1B LF CR ST {8} [vo/gpu/d3d11] rg8 2*unorm 2B LF CR ST {8 8} [vo/gpu/d3d11] rgba8 4*unorm 4B LF CR ST {8 8 8 8} [vo/gpu/d3d11] r16 1*unorm 2B LF CR ST {16} [vo/gpu/d3d11] rg16 2*unorm 4B LF CR ST {16 16} [vo/gpu/d3d11] rgba16 4*unorm 8B LF CR ST {16 16 16 16} [vo/gpu/d3d11] r32ui 1*uint 4B ST {32} [vo/gpu/d3d11] rg32ui 2*uint 8B ST {32 32} [vo/gpu/d3d11] rgb32ui 3*uint 12B {32 32 32} [vo/gpu/d3d11] rgba32ui 4*uint 16B ST {32 32 32 32} [vo/gpu/d3d11] r16hf 1*float 2B LF CR ST {16} [vo/gpu/d3d11] rg16hf 2*float 4B LF CR ST {16 16} [vo/gpu/d3d11] rgba16hf 4*float 8B LF CR ST {16 16 16 16} [vo/gpu/d3d11] r32f 1*float 4B LF CR ST {32} [vo/gpu/d3d11] rg32f 2*float 8B LF CR ST {32 32} [vo/gpu/d3d11] rgb32f 3*float 12B {32 32 32} [vo/gpu/d3d11] rgba32f 4*float 16B LF CR ST {32 32 32 32} [vo/gpu/d3d11] rgb10_a2 4*unorm 4B LF CR ST {10 10 10 2} [vo/gpu/d3d11] bgra8 4*unorm 4B LF CR ST {8 8 8 8} [vo/gpu/d3d11] bgrx8 3*unorm 4B LF CR {8 8 8} [vo/gpu/d3d11] LA = LUMINANCE_ALPHA hack format [vo/gpu/d3d11] LF = linear filterable [vo/gpu/d3d11] CR = can be used for render targets [vo/gpu/d3d11] ST = can be used for storable images [vo/gpu/d3d11] Image formats: [vo/gpu/d3d11] yuv444p => 3 planes 1x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p => 3 planes 2x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] gray => 1 planes 1x1 8/0 [r8] (r) [unorm] [vo/gpu/d3d11] gray16 => 1 planes 1x1 16/0 [r16] (r) [unorm] [vo/gpu/d3d11] uyvy422 [vo/gpu/d3d11] nv12 => 2 planes 2x2 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] p010 => 2 planes 2x2 16/6 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] argb => 1 planes 1x1 8/0 [rgba8] (argb) [unorm] [vo/gpu/d3d11] bgra => 1 planes 1x1 8/0 [rgba8] (bgra) [unorm] [vo/gpu/d3d11] abgr => 1 planes 1x1 8/0 [rgba8] (abgr) [unorm] [vo/gpu/d3d11] rgba => 1 planes 1x1 8/0 [rgba8] (rgba) [unorm] [vo/gpu/d3d11] bgr24 [vo/gpu/d3d11] rgb24 [vo/gpu/d3d11] 0rgb => 1 planes 1x1 8/0 [rgba8] (_rgb) [unorm] [vo/gpu/d3d11] bgr0 => 1 planes 1x1 8/0 [rgba8] (bgr) [unorm] [vo/gpu/d3d11] 0bgr => 1 planes 1x1 8/0 [rgba8] (_bgr) [unorm] [vo/gpu/d3d11] rgb0 => 1 planes 1x1 8/0 [rgba8] (rgb) [unorm] [vo/gpu/d3d11] rgba64 => 1 planes 1x1 16/0 [rgba16] (rgba) [unorm] [vo/gpu/d3d11] rgb565 [vo/gpu/d3d11] pal8 [vo/gpu/d3d11] vdpau [vo/gpu/d3d11] d3d11 [vo/gpu/d3d11] dxva2_vld [vo/gpu/d3d11] mmal [vo/gpu/d3d11] mediacodec [vo/gpu/d3d11] drm_prime [vo/gpu/d3d11] cuda [vo/gpu/d3d11] yap8 => 2 planes 1x1 8/0 [r8/r8] (r/a) [unorm] [vo/gpu/d3d11] yap16 => 2 planes 1x1 16/0 [r16/r16] (r/a) [unorm] [vo/gpu/d3d11] grayaf32 => 2 planes 1x1 32/0 [r32f/r32f] (r/a) [float] [vo/gpu/d3d11] yuv444pf => 3 planes 1x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva444pf => 4 planes 1x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv420pf => 3 planes 2x2 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva420pf => 4 planes 2x2 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv422pf => 3 planes 2x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva422pf => 4 planes 2x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv440pf => 3 planes 1x2 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva440pf => 4 planes 1x2 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv410pf => 3 planes 4x4 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva410pf => 4 planes 4x4 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] yuv411pf => 3 planes 4x1 32/0 [r32f/r32f/r32f] (r/g/b) [float] [vo/gpu/d3d11] yuva411pf => 4 planes 4x1 32/0 [r32f/r32f/r32f/r32f] (r/g/b/a) [float] [vo/gpu/d3d11] rgb30 [vo/gpu/d3d11] y1 => 1 planes 1x1 8/-7 [r8] (r) [unorm] [vo/gpu/d3d11] gbrp1 => 3 planes 1x1 8/-7 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp2 => 3 planes 1x1 8/-6 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp3 => 3 planes 1x1 8/-5 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp4 => 3 planes 1x1 8/-4 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp5 => 3 planes 1x1 8/-3 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp6 => 3 planes 1x1 8/-2 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] vdpau_output [vo/gpu/d3d11] vaapi [vo/gpu/d3d11] videotoolbox [vo/gpu/d3d11] yuyv422 [vo/gpu/d3d11] yuv422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv410p => 3 planes 4x4 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuv411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] monow [vo/gpu/d3d11] monob [vo/gpu/d3d11] yuvj422p => 3 planes 2x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] uyyvyy411 [vo/gpu/d3d11] bgr8 [vo/gpu/d3d11] bgr4 [vo/gpu/d3d11] bgr4_byte [vo/gpu/d3d11] rgb8 [vo/gpu/d3d11] rgb4 [vo/gpu/d3d11] rgb4_byte [vo/gpu/d3d11] nv21 => 2 planes 2x2 8/0 [r8/rg8] (r/bg) [unorm] [vo/gpu/d3d11] gray16be [vo/gpu/d3d11] yuv440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuvj440p => 3 planes 1x2 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] yuva420p => 4 planes 2x2 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] rgb48be [vo/gpu/d3d11] rgb48 [vo/gpu/d3d11] rgb565be [vo/gpu/d3d11] rgb555be [vo/gpu/d3d11] rgb555 [vo/gpu/d3d11] bgr565be [vo/gpu/d3d11] bgr565 [vo/gpu/d3d11] bgr555be [vo/gpu/d3d11] bgr555 [vo/gpu/d3d11] vaapi_moco [vo/gpu/d3d11] vaapi_idct [vo/gpu/d3d11] yuv420p16 => 3 planes 2x2 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p16be [vo/gpu/d3d11] yuv422p16 => 3 planes 2x1 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p16be [vo/gpu/d3d11] yuv444p16 => 3 planes 1x1 16/0 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p16be [vo/gpu/d3d11] rgb444 [vo/gpu/d3d11] rgb444be [vo/gpu/d3d11] bgr444 [vo/gpu/d3d11] bgr444be [vo/gpu/d3d11] ya8 => 1 planes 1x1 8/0 [rg8] (ra) [unorm] [vo/gpu/d3d11] bgr48be [vo/gpu/d3d11] bgr48 [vo/gpu/d3d11] yuv420p9be [vo/gpu/d3d11] yuv420p9 => 3 planes 2x2 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p10be [vo/gpu/d3d11] yuv420p10 => 3 planes 2x2 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p10be [vo/gpu/d3d11] yuv422p10 => 3 planes 2x1 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p9be [vo/gpu/d3d11] yuv444p9 => 3 planes 1x1 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p10be [vo/gpu/d3d11] yuv444p10 => 3 planes 1x1 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p9be [vo/gpu/d3d11] yuv422p9 => 3 planes 2x1 16/-7 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] gbrp => 3 planes 1x1 8/0 [r8/r8/r8] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp9be [vo/gpu/d3d11] gbrp9 => 3 planes 1x1 16/-7 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp10be [vo/gpu/d3d11] gbrp10 => 3 planes 1x1 16/-6 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp16be [vo/gpu/d3d11] gbrp16 => 3 planes 1x1 16/0 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] yuva422p => 4 planes 2x1 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p => 4 planes 1x1 8/0 [r8/r8/r8/r8] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p9be [vo/gpu/d3d11] yuva420p9 => 4 planes 2x2 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p9be [vo/gpu/d3d11] yuva422p9 => 4 planes 2x1 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p9be [vo/gpu/d3d11] yuva444p9 => 4 planes 1x1 16/-7 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p10be [vo/gpu/d3d11] yuva420p10 => 4 planes 2x2 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p10be [vo/gpu/d3d11] yuva422p10 => 4 planes 2x1 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p10be [vo/gpu/d3d11] yuva444p10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva420p16be [vo/gpu/d3d11] yuva420p16 => 4 planes 2x2 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva422p16be [vo/gpu/d3d11] yuva422p16 => 4 planes 2x1 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p16be [vo/gpu/d3d11] yuva444p16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] xyz12 [vo/gpu/d3d11] xyz12be [vo/gpu/d3d11] nv16 => 2 planes 2x1 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] nv20 => 2 planes 2x1 16/-6 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] nv20be [vo/gpu/d3d11] rgba64be [vo/gpu/d3d11] bgra64be [vo/gpu/d3d11] bgra64 => 1 planes 1x1 16/0 [rgba16] (bgra) [unorm] [vo/gpu/d3d11] yvyu422 [vo/gpu/d3d11] ya16be [vo/gpu/d3d11] ya16 => 1 planes 1x1 16/0 [rg16] (ra) [unorm] [vo/gpu/d3d11] gbrap => 4 planes 1x1 8/0 [r8/r8/r8/r8] (g/b/r/a) [unorm] [vo/gpu/d3d11] gbrap16be [vo/gpu/d3d11] gbrap16 => 4 planes 1x1 16/0 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] qsv [vo/gpu/d3d11] d3d11va_vld [vo/gpu/d3d11] yuv420p12be [vo/gpu/d3d11] yuv420p12 => 3 planes 2x2 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv420p14be [vo/gpu/d3d11] yuv420p14 => 3 planes 2x2 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p12be [vo/gpu/d3d11] yuv422p12 => 3 planes 2x1 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv422p14be [vo/gpu/d3d11] yuv422p14 => 3 planes 2x1 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p12be [vo/gpu/d3d11] yuv444p12 => 3 planes 1x1 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv444p14be [vo/gpu/d3d11] yuv444p14 => 3 planes 1x1 16/-2 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] gbrp12be [vo/gpu/d3d11] gbrp12 => 3 planes 1x1 16/-4 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] gbrp14be [vo/gpu/d3d11] gbrp14 => 3 planes 1x1 16/-2 [r16/r16/r16] (g/b/r) [unorm] [vo/gpu/d3d11] yuvj411p => 3 planes 4x1 8/0 [r8/r8/r8] (r/g/b) [unorm] [vo/gpu/d3d11] bayer_bggr8 [vo/gpu/d3d11] bayer_rggb8 [vo/gpu/d3d11] bayer_gbrg8 [vo/gpu/d3d11] bayer_grbg8 [vo/gpu/d3d11] bayer_bggr16 [vo/gpu/d3d11] bayer_bggr16be [vo/gpu/d3d11] bayer_rggb16 [vo/gpu/d3d11] bayer_rggb16be [vo/gpu/d3d11] bayer_gbrg16 [vo/gpu/d3d11] bayer_gbrg16be [vo/gpu/d3d11] bayer_grbg16 [vo/gpu/d3d11] bayer_grbg16be [vo/gpu/d3d11] xvmc [vo/gpu/d3d11] yuv440p10 => 3 planes 1x2 16/-6 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv440p10be [vo/gpu/d3d11] yuv440p12 => 3 planes 1x2 16/-4 [r16/r16/r16] (r/g/b) [unorm] [vo/gpu/d3d11] yuv440p12be [vo/gpu/d3d11] ayuv64 => 1 planes 1x1 16/0 [rgba16] (argb) [unorm] [vo/gpu/d3d11] ayuv64be [vo/gpu/d3d11] p010be [vo/gpu/d3d11] gbrap12be [vo/gpu/d3d11] gbrap12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] gbrap10be [vo/gpu/d3d11] gbrap10 => 4 planes 1x1 16/-6 [r16/r16/r16/r16] (g/b/r/a) [unorm] [vo/gpu/d3d11] gray12be [vo/gpu/d3d11] gray12 => 1 planes 1x1 16/-4 [r16] (r) [unorm] [vo/gpu/d3d11] gray10be [vo/gpu/d3d11] gray10 => 1 planes 1x1 16/-6 [r16] (r) [unorm] [vo/gpu/d3d11] p016 => 2 planes 2x2 16/0 [r16/rg16] (r/gb) [unorm] [vo/gpu/d3d11] p016be [vo/gpu/d3d11] gray9be [vo/gpu/d3d11] gray9 => 1 planes 1x1 16/-7 [r16] (r) [unorm] [vo/gpu/d3d11] gbrpf32be [vo/gpu/d3d11] gbrpf32 => 3 planes 1x1 32/0 [r32f/r32f/r32f] (g/b/r) [float] [vo/gpu/d3d11] gbrapf32be [vo/gpu/d3d11] gbrapf32 => 4 planes 1x1 32/0 [r32f/r32f/r32f/r32f] (g/b/r/a) [float] [vo/gpu/d3d11] opencl [vo/gpu/d3d11] gray14be [vo/gpu/d3d11] gray14 => 1 planes 1x1 16/-2 [r16] (r) [unorm] [vo/gpu/d3d11] grayf32be [vo/gpu/d3d11] grayf32 => 1 planes 1x1 32/0 [r32f] (r) [float] [vo/gpu/d3d11] yuva422p12be [vo/gpu/d3d11] yuva422p12 => 4 planes 2x1 16/-4 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] yuva444p12be [vo/gpu/d3d11] yuva444p12 => 4 planes 1x1 16/-4 [r16/r16/r16/r16] (r/g/b/a) [unorm] [vo/gpu/d3d11] nv24 => 2 planes 1x1 8/0 [r8/rg8] (r/gb) [unorm] [vo/gpu/d3d11] nv42 => 2 planes 1x1 8/0 [r8/rg8] (r/bg) [unorm] [vo/gpu/d3d11] vulkan [vo/gpu/d3d11] y210be [vo/gpu/d3d11] y210 [vo/gpu/d3d11] x2rgb10be [vo/gpu] Testing FBO format rgba16hf [vo/gpu] Resizing texture: 16x16 [vo/gpu] Using FBO format rgba16hf. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu/win32] DPI detected from the new API: 120 [vo/gpu/win32] display-fps: 60.007852 [vo/gpu/win32] color-profile: C:\WINDOWS\system32\spool\drivers\color\sRGB Color Space Profile.icm [vo/gpu] Assuming 60.007852 FPS for display sync. [vo/gpu] reconfig to 960x480 yuv444p auto/auto/auto/auto/auto CL=unknown [vo/gpu] screen size: 1920x1080 [vo/gpu/win32] reset window bounds: 360:240:1200:600 [vo/gpu/win32] move window: 360:240 [vo/gpu/win32] resize window: 1200:600 [vo/gpu/win32] resize window: 1200:600 [vo/gpu/win32] move window: 360:240 [vo/gpu] Resize: 1200x600 [vo/gpu] Window size: 1200x600 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 960x480 (1:1) [vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 1200x600 [vo/gpu] Video scale: 1.250000/1.250000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [vo/gpu] Texture for plane 0: 960x480 [vo/gpu] Texture for plane 1: 960x480 [vo/gpu] Texture for plane 2: 960x480 [vo/gpu] Testing FBO format rgba16hf [vo/gpu] Resizing texture: 16x16 [vo/gpu] Using FBO format rgba16hf. [vo/gpu] No advanced processing required. Enabling dumb mode. [vo/gpu] Resize: 1200x600 [vo/gpu] Window size: 1200x600 (Borders: l=0 t=0 r=0 b=0) [vo/gpu] Video source: 960x480 (1:1) [vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 1200x600 [vo/gpu] Video scale: 1.250000/1.250000 [vo/gpu] OSD borders: l=0 t=0 r=0 b=0 [vo/gpu] Video borders: l=0 t=0 r=0 b=0 [vo/gpu] Reported display depth: 8 [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="showhide"] [cplayer] Run command: disable-section, flags=64, args=[name="showhide_wc"] [osd/libass] fontselect: (sans-serif, 400, 0) -> ArialMT, 0, ArialMT [vo/gpu] Reallocating OSD texture to 1024x256. [cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"] [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"] [cplayer] Set property: shared-script-properties -> 1 [vo/gpu/d3d11] shaderc compile status 'success' (0 errors, 0 warnings) [vo/gpu/d3d11] Compiled a vertex shader in 152224us [vo/gpu/d3d11] shaderc: 146577us, SPIRV-Cross: 1842us, D3DCompile: 3805us [vo/gpu/d3d11] GLSL source: [vo/gpu/d3d11] [ 1] #version 450 [vo/gpu/d3d11] [ 2] #define tex1D texture [vo/gpu/d3d11] [ 3] #define tex3D texture [vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/d3d11] [ 5] layout(location=0) in vec2 vertex_position; [vo/gpu/d3d11] [ 6] layout(location=1) in vec2 vertex_texcoord; [vo/gpu/d3d11] [ 7] layout(location=1) out vec2 texcoord; [vo/gpu/d3d11] [ 8] layout(location=2) in vec4 vertex_ass_color; [vo/gpu/d3d11] [ 9] layout(location=2) out vec4 ass_color; [vo/gpu/d3d11] [ 10] void main() { [vo/gpu/d3d11] [ 11] gl_Position = vec4(vertex_position, 1.0, 1.0); [vo/gpu/d3d11] [ 12] texcoord = vertex_texcoord; [vo/gpu/d3d11] [ 13] ass_color = vertex_ass_color; [vo/gpu/d3d11] [ 14] } [vo/gpu/d3d11] HLSL source: [vo/gpu/d3d11] [ 1] static float4 gl_Position; [vo/gpu/d3d11] [ 2] static float2 _18; [vo/gpu/d3d11] [ 3] static float2 _27; [vo/gpu/d3d11] [ 4] static float2 _28; [vo/gpu/d3d11] [ 5] static float4 _30; [vo/gpu/d3d11] [ 6] static float4 _32; [vo/gpu/d3d11] [ 7] [vo/gpu/d3d11] [ 8] struct SPIRV_Cross_Input [vo/gpu/d3d11] [ 9] { [vo/gpu/d3d11] [ 10] float2 _18 : TEXCOORD0; [vo/gpu/d3d11] [ 11] float2 _28 : TEXCOORD1; [vo/gpu/d3d11] [ 12] float4 _32 : TEXCOORD2; [vo/gpu/d3d11] [ 13] }; [vo/gpu/d3d11] [ 14] [vo/gpu/d3d11] [ 15] struct SPIRV_Cross_Output [vo/gpu/d3d11] [ 16] { [vo/gpu/d3d11] [ 17] float2 _27 : TEXCOORD1; [vo/gpu/d3d11] [ 18] float4 _30 : TEXCOORD2; [vo/gpu/d3d11] [ 19] float4 gl_Position : SV_Position; [vo/gpu/d3d11] [ 20] }; [vo/gpu/d3d11] [ 21] [vo/gpu/d3d11] [ 22] void vert_main() [vo/gpu/d3d11] [ 23] { [vo/gpu/d3d11] [ 24] gl_Position = float4(_18, 1.0f, 1.0f); [vo/gpu/d3d11] [ 25] _27 = _28; [vo/gpu/d3d11] [ 26] _30 = _32; [vo/gpu/d3d11] [ 27] gl_Position.y = -gl_Position.y; [vo/gpu/d3d11] [ 28] } [vo/gpu/d3d11] [ 29] [vo/gpu/d3d11] [ 30] SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) [vo/gpu/d3d11] [ 31] { [vo/gpu/d3d11] [ 32] _18 = stage_input._18; [vo/gpu/d3d11] [ 33] _28 = stage_input._28; [vo/gpu/d3d11] [ 34] _32 = stage_input._32; [vo/gpu/d3d11] [ 35] vert_main(); [vo/gpu/d3d11] [ 36] SPIRV_Cross_Output stage_output; [vo/gpu/d3d11] [ 37] stage_output.gl_Position = gl_Position; [vo/gpu/d3d11] [ 38] stage_output._27 = _27; [vo/gpu/d3d11] [ 39] stage_output._30 = _30; [vo/gpu/d3d11] [ 40] return stage_output; [vo/gpu/d3d11] [ 41] } [vo/gpu/d3d11] shaderc compile status 'success' (0 errors, 0 warnings) [vo/gpu/d3d11] Compiled a fragment shader in 11844us [vo/gpu/d3d11] shaderc: 4638us, SPIRV-Cross: 332us, D3DCompile: 6874us [vo/gpu/d3d11] GLSL source: [vo/gpu/d3d11] [ 1] #version 450 [vo/gpu/d3d11] [ 2] #define tex1D texture [vo/gpu/d3d11] [ 3] #define tex3D texture [vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x)) [vo/gpu/d3d11] [ 5] layout(location=0) out vec4 out_color; [vo/gpu/d3d11] [ 6] layout(location=1) in vec2 texcoord; [vo/gpu/d3d11] [ 7] layout(location=2) in vec4 ass_color; [vo/gpu/d3d11] [ 8] layout(std140, binding=0) uniform UBO { [vo/gpu/d3d11] [ 9] layout(offset=0) vec3 src_luma; [vo/gpu/d3d11] [ 10] layout(offset=16) vec3 dst_luma; [vo/gpu/d3d11] [ 11] }; [vo/gpu/d3d11] [ 12] layout(binding=0) uniform sampler2D osdtex; [vo/gpu/d3d11] [ 13] void main() { [vo/gpu/d3d11] [ 14] vec4 color = vec4(0.0, 0.0, 0.0, 1.0); [vo/gpu/d3d11] [ 15] color = vec4(ass_color.rgb, ass_color.a * texture(osdtex, texcoord).r); [vo/gpu/d3d11] [ 16] // color mapping [vo/gpu/d3d11] [ 17] color.rgb *= vec3(1.000000); [vo/gpu/d3d11] [ 18] color.rgb *= vec3(1.000000); [vo/gpu/d3d11] [ 19] out_color = color; [vo/gpu/d3d11] [ 20] } [vo/gpu/d3d11] HLSL source: [vo/gpu/d3d11] [ 1] Texture2D _26 : register(t0); [vo/gpu/d3d11] [ 2] SamplerState __26_sampler : register(s0); [vo/gpu/d3d11] [ 3] [vo/gpu/d3d11] [ 4] static float4 _14; [vo/gpu/d3d11] [ 5] static float2 _30; [vo/gpu/d3d11] [ 6] static float4 _52; [vo/gpu/d3d11] [ 7] [vo/gpu/d3d11] [ 8] struct SPIRV_Cross_Input [vo/gpu/d3d11] [ 9] { [vo/gpu/d3d11] [ 10] float2 _30 : TEXCOORD1; [vo/gpu/d3d11] [ 11] float4 _14 : TEXCOORD2; [vo/gpu/d3d11] [ 12] }; [vo/gpu/d3d11] [ 13] [vo/gpu/d3d11] [ 14] struct SPIRV_Cross_Output [vo/gpu/d3d11] [ 15] { [vo/gpu/d3d11] [ 16] float4 _52 : SV_Target0; [vo/gpu/d3d11] [ 17] }; [vo/gpu/d3d11] [ 18] [vo/gpu/d3d11] [ 19] void frag_main() [vo/gpu/d3d11] [ 20] { [vo/gpu/d3d11] [ 21] float4 _39 = float4(_14.xyz, _14.w * _26.Sample(__26_sampler, _30).x); [vo/gpu/d3d11] [ 22] _52 = float4(_39.x, _39.y, _39.z, _39.w); [vo/gpu/d3d11] [ 23] } [vo/gpu/d3d11] [ 24] [vo/gpu/d3d11] [ 25] SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input) [vo/gpu/d3d11] [ 26] { [vo/gpu/d3d11] [ 27] _14 = stage_input._14; [vo/gpu/d3d11] [ 28] _30 = stage_input._30; [vo/gpu/d3d11] [ 29] frag_main(); [vo/gpu/d3d11] [ 30] SPIRV_Cross_Output stage_output; [vo/gpu/d3d11] [ 31] stage_output._52 = _52; [vo/gpu/d3d11] [ 32] return stage_output; [vo/gpu/d3d11] [ 33] } [cplayer] Run command: script-binding, flags=73, args=[name="osc/__keybinding4"] [cplayer] Run command: quit, flags=73, args=[code="0"] [cplayer] Exiting... (Quit) [cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="remove", value="osc-margins"] [ytdl_hook] Exiting... [console] Exiting... [stats] Exiting... [cplayer] Set property: shared-script-properties -> 1 [empty] Exiting... [osc] Exiting... [vo/gpu] flushing shader cache [vo/gpu/win32] uninit ```
avih commented 3 years ago

I can reproduce the issue with the @shinchiro build, but no issue with my own build: mpv latest - 0.33.0-102-g5824d9fff8 mujs latest - 1.1.0 - 80e222d

mpv didn't have any relevant changes which I can see in the 14 commits since d1be8bb606

Mujs had no changes at all since February 1st, but I don't know which mujs revision was used at the older/working shinshiro build (0.33.0-88-gd1be8bb606).

@shinchiro what changed on your side between d1be8bb606 and 5824d9fff8 ?

Note that the current latest mujs revision is "Support externally set CFLAGS, CPPFLAGS, and LDFLAGS." - https://github.com/ccxvii/mujs/commit/80e222d91d4438f111237873c7910b4c0eacb749

Could that be related?

avih commented 3 years ago

I noticed that the ccxvii repo is two commits behind the more official (I think?) upstream mirror https://github.com/ArtifexSoftware/mujs

I also tested with the latest there - https://github.com/ArtifexSoftware/mujs/commit/a34fdf2a and I still cannot reproduce the issue.

avih commented 3 years ago

@snylonue are you sure it's only empty scripts? Does any js file runs at all for you?

For me, the issue happens with any script, and even non-existing files - this aborts without any error message: mpv --idle --force-window --no-load-scripts --script=no-such-file.js (but if you replace .js with .lua then you get an error message and mpv doesn't quit).

Can you confirm?

snylonue commented 3 years ago

Can you confirm?

Yes. it happens with any scripts even non-existing ones. Here's the log.

log ``` PS C:\Users\user\Desktop> .\mpv --idle --force-window --no-load-scripts --script=no-such-file.js -v -v [cplayer] Command line options: '--idle' '--force-window' '--no-load-scripts' '--script=no-such-file.j s' '-v' '-v' [cplayer] mpv 0.33.0-102-g5824d9fff8 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Tue Mar 16 22:19:07 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.68.100 [cplayer] libavcodec 58.132.100 [cplayer] libavformat 58.74.100 [cplayer] libswscale 5.8.100 [cplayer] libavfilter 7.109.100 [cplayer] libswresample 3.8.100 [cplayer] FFmpeg version: git-2021-03-16-30a69b16 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [global] config path: '' -> 'C:\Users\user\AppData\Roaming/mpv' [global] user path: '~~home/' -> 'C:\Users\user\AppData\Roaming/mpv' [global] user path: '~~old_home/' -> '' [global] config path: 'encoding-profiles.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/encoding-profil es.conf' [global] config path: 'encoding-profiles.conf' -/-> 'C:/Users/user/Desktop/encoding-profiles.conf' [global] config path: 'encoding-profiles.conf' -/-> 'C:/Users/user/Desktop/mpv/encoding-profiles.conf' [global] config path: 'mpv.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/mpv.conf' [global] config path: 'config' -/-> 'C:\Users\user\AppData\Roaming/mpv/config' [global] config path: 'mpv.conf' -/-> 'C:/Users/user/Desktop/mpv.conf' [global] config path: 'config' -/-> 'C:/Users/user/Desktop/config' [global] config path: 'mpv.conf' -/-> 'C:/Users/user/Desktop/mpv/mpv.conf' [global] config path: 'config' -/-> 'C:/Users/user/Desktop/mpv/config' [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'load-scripts' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'no-such-file.js' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [global] config path: 'input.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/input.conf' [global] config path: 'input.conf' -/-> 'C:/Users/user/Desktop/input.conf' [global] config path: 'input.conf' -/-> 'C:/Users/user/Desktop/mpv/input.conf' [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [ytdl_hook] loading mp.defaults [console] Loading lua script @console.lua... [stats] loading mp.defaults [osc] loading @osc.lua [ytdl_hook] loading @ytdl_hook.lua [auto_profiles] Loading lua script @auto_profiles.lua... [stats] loading @stats.lua [console] loading mp.defaults [osc] reading options for osc [global] user path: 'no-such-file.js' -> 'no-such-file.js' [stats] reading options for stats [global] config path: 'script-opts/osc.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/osc.c onf' [console] loading @console.lua [no_such_file] Loading javascript no-such-file.js... [global] config path: 'script-opts/stats.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/sta ts.conf' [global] config path: 'script-opts/osc.conf' -/-> 'C:/Users/user/Desktop/script-opts/osc.conf' [auto_profiles] loading mp.defaults [cplayer] Waiting for scripts... [ytdl_hook] reading options for ytdl_hook [global] config path: 'script-opts/osc.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/osc.conf' [auto_profiles] loading @auto_profiles.lua [global] config path: 'script-opts/stats.conf' -/-> 'C:/Users/user/Desktop/script-opts/stats.conf' [console] reading options for console [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts /ytdl_hook.conf' [osc] script-opts/osc.conf not found. [no_such_file] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [no_such_file] Reading file '@/defaults.js' [global] config path: 'script-opts/console.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/c onsole.conf' [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/script-opts/ytdl_hook.c onf' [global] config path: 'lua-settings/osc.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings/osc .conf' [global] config path: 'script-opts/stats.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/stats.conf' [global] config path: 'script-opts/console.conf' -/-> 'C:/Users/user/Desktop/script-opts/console.conf' [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/ytdl_ho ok.conf' [global] config path: 'lua-settings/osc.conf' -/-> 'C:/Users/user/Desktop/lua-settings/osc.conf' [global] config path: 'script-opts/console.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/console.c onf' [stats] script-opts/stats.conf not found. [global] config path: 'lua-settings/osc.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/osc.conf' [global] config path: '.init.js' -/-> 'C:\Users\user\AppData\Roaming/mpv/.init.js' [auto_profiles] Exiting... [console] script-opts/console.conf not found. [global] config path: 'lua-settings/stats.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings/s tats.conf' [osc] lua-settings/osc.conf not found. [ytdl_hook] script-opts/ytdl_hook.conf not found. [global] config path: '.init.js' -/-> 'C:/Users/user/Desktop/.init.js' [global] config path: 'lua-settings/stats.conf' -/-> 'C:/Users/user/Desktop/lua-settings/stats.conf' [global] config path: 'lua-settings/console.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings /console.conf' [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settin gs/ytdl_hook.conf' [global] config path: '.init.js' -/-> 'C:/Users/user/Desktop/mpv/.init.js' [global] config path: 'lua-settings/stats.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/stats.con f' [global] config path: 'lua-settings/console.conf' -/-> 'C:/Users/user/Desktop/lua-settings/console.con f' [global] user path: '~~/.init.js' -> 'C:\Users\user\AppData\Roaming/mpv/.init.js' [no_such_file] Reading file 'C:\Users\user\AppData\Roaming/mpv/.init.js' [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/lua-settings/ytdl_hook .conf' [global] config path: 'lua-settings/console.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/console .conf' [stats] lua-settings/stats.conf not found. [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/ytdl_ hook.conf' [ytdl_hook] lua-settings/ytdl_hook.conf not found. [cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-bi nding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"] [console] lua-settings/console.conf not found. [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"] [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="defau lt"] [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+ allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow -vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags=" force"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags ="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cu rsor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide- cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-bindin g 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\nwh eel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_rig ht_dbl ignore\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left scr ipt-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [global] config path: 'fonts' -/-> 'C:\Users\user\AppData\Roaming/mpv/fonts' [global] config path: 'fonts' -/-> 'C:/Users/user/Desktop/fonts' [global] config path: 'fonts' -/-> 'C:/Users/user/Desktop/mpv/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'C:\Users\user\AppData\Roaming/mpv/subfont.ttf' [global] config path: 'subfont.ttf' -/-> 'C:/Users/user/Desktop/subfont.ttf' [global] config path: 'subfont.ttf' -/-> 'C:/Users/user/Desktop/mpv/subfont.ttf' [global] config path: 'fonts.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/fonts.conf' [global] config path: 'fonts.conf' -/-> 'C:/Users/user/Desktop/fonts.conf' [global] config path: 'fonts.conf' -/-> 'C:/Users/user/Desktop/mpv/fonts.conf' [osd/libass] Setting up fonts... ```
shinchiro commented 3 years ago

Previous build used binutils 2.36.x which introduced the problem. Try again with today build

snylonue commented 3 years ago

It still does not work

log without an actual file ``` PS C:\Users\user> mpv --idle --force-window --no-load-scripts --script=no-such-file.js -v -v [cplayer] Command line options: '--idle' '--force-window' '--no-load-scripts' '--script=no-such-file.j s' '-v' '-v' [cplayer] mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Apr 4 13:12:37 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.72.100 [cplayer] libavcodec 58.135.100 [cplayer] libavformat 58.77.100 [cplayer] libswscale 5.10.100 [cplayer] libavfilter 7.111.100 [cplayer] libswresample 3.10.100 [cplayer] FFmpeg version: git-2021-04-03-e93875b7 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [global] config path: '' -> 'D:/Software/mpv/portable_config' [global] user path: '~~home/' -> 'D:/Software/mpv/portable_config' [global] user path: '~~old_home/' -> '' [global] config path: 'encoding-profiles.conf' -/-> 'D:/Software/mpv/portable_config/encoding-profiles .conf' [global] config path: 'mpv.conf' -> 'D:/Software/mpv/portable_config/mpv.conf' [global] config path: 'config' -/-> 'D:/Software/mpv/portable_config/config' [cplayer] Reading config file D:/Software/mpv/portable_config/mpv.conf [cplayer] Applying profile 'default'... [cplayer] Setting option 'fbo-format' = 'auto' (flags = 4) [cplayer] Setting option 'hwdec' = 'nvdec-copy' (flags = 4) [cplayer] Setting option 'volume-max' = '200' (flags = 4) [cplayer] Setting option 'interpolation' = 'yes' (flags = 4) [cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4) [cplayer] Setting option 'sigmoid-upscaling' = 'yes' (flags = 4) [cplayer] Setting option 'cscale' = 'lanczos' (flags = 4) [cplayer] Setting option 'cscale-antiring' = '0.2' (flags = 4) [cplayer] Setting option 'dscale' = 'mitchell' (flags = 4) [cplayer] Setting option 'correct-downscaling' = 'yes' (flags = 4) [cplayer] Setting option 'linear-downscaling' = 'yes' (flags = 4) [cplayer] Setting option 'tscale' = 'mitchell' (flags = 4) [cplayer] Setting option 'deband' = 'yes' (flags = 4) [cplayer] Setting option 'deband-iterations' = '2' (flags = 4) [cplayer] Setting option 'ao' = 'wasapi' (flags = 4) [cplayer] Setting option 'vo' = 'gpu' (flags = 4) [cplayer] Setting option 'gpu-api' = 'vulkan' (flags = 4) [cplayer] Setting option 'video-sync' = 'display-resample' (flags = 4) [cplayer] Setting option 'opengl-pbo' = 'yes' (flags = 4) [cplayer] Setting option 'vulkan-queue-count' = '4' (flags = 4) [cplayer] Setting option 'vulkan-async-transfer' = 'yes' (flags = 4) [cplayer] Setting option 'vulkan-async-compute' = 'yes' (flags = 4) [cplayer] Setting option 'vd-lavc-threads' = '0' (flags = 4) [cplayer] Setting option 'icc-3dlut-size' = '128x128x128' (flags = 4) [cplayer] Setting option 'icc-profile-auto' = 'yes' (flags = 4) [cplayer] Setting option 'cache' = 'yes' (flags = 4) [cplayer] Setting option 'audio-display' = 'no' (flags = 4) [cplayer] Setting option 'idle' = 'yes' (flags = 4) [cplayer] Setting option 'keep-open' = 'yes' (flags = 4) [cplayer] Setting option 'save-position-on-quit' = 'yes' (flags = 4) [cplayer] Setting option 'force-window' = 'yes' (flags = 4) [cplayer] Setting option 'geometry' = '50%' (flags = 4) [cplayer] Setting option 'blend-subtitles' = 'video' (flags = 4) [cplayer] Setting option 'sub-auto' = 'fuzzy' (flags = 4) [cplayer] Setting option 'slang' = 'sc' (flags = 4) [cplayer] Setting option 'sub-font' = 'FZZhengHeiS-M-GB' (flags = 4) [cplayer] Setting option 'screenshot-format' = 'png' (flags = 4) [cplayer] Setting option 'screenshot-tag-colorspace' = 'yes' (flags = 4) [cplayer] Setting option 'screenshot-high-bit-depth' = 'yes' (flags = 4) [cplayer] Setting option 'screenshot-directory' = '~~/screenshot' (flags = 4) [cplayer] Setting option 'gpu-shader-cache-dir' = '~~/shaders_cache' (flags = 4) [cplayer] Setting option 'log-file' = '~~/mpv.log' (flags = 4) [cplayer] Setting option 'osd-bar' = 'no' (flags = 4) [cplayer] Setting option 'pause' = '' (flags = 4) [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'load-scripts' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'no-such-file.js' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [global] config path: 'input.conf' -> 'D:/Software/mpv/portable_config/input.conf' [global] user path: 'D:/Software/mpv/portable_config/input.conf' -> 'D:/Software/mpv/portable_config/i nput.conf' [ifo_dvdnav] Opening D:/Software/mpv/portable_config/input.conf [bdmv/bluray] Opening D:/Software/mpv/portable_config/input.conf [file] Opening D:/Software/mpv/portable_config/input.conf [file] resize stream to 131072 bytes, drop 0 bytes [file] Stream opened successfully. [input] Parsing input config file D:/Software/mpv/portable_config/input.conf [input] Input config file D:/Software/mpv/portable_config/input.conf parsed: 23 binds [global] config path: 'mpv.log' -> 'D:/Software/mpv/portable_config/mpv.log' [global] user path: '~~/mpv.log' -> 'D:/Software/mpv/portable_config/mpv.log' [cplayer] mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Apr 4 13:12:37 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.72.100 [cplayer] libavcodec 58.135.100 [cplayer] libavformat 58.77.100 [cplayer] libswscale 5.10.100 [cplayer] libavfilter 7.111.100 [cplayer] libswresample 3.10.100 [cplayer] FFmpeg version: git-2021-04-03-e93875b7 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [ytdl_hook] loading mp.defaults [console] Loading lua script @console.lua... [stats] loading mp.defaults [osc] loading @osc.lua [auto_profiles] Loading lua script @auto_profiles.lua... [console] loading mp.defaults [ytdl_hook] loading @ytdl_hook.lua [stats] loading @stats.lua [global] user path: 'no-such-file.js' -> 'no-such-file.js' [console] loading @console.lua [auto_profiles] loading mp.defaults [osc] reading options for osc [no_such_file] Loading javascript no-such-file.js... [ytdl_hook] reading options for ytdl_hook [auto_profiles] loading @auto_profiles.lua [global] config path: 'script-opts/osc.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/osc.con f' [osc] script-opts/osc.conf not found. [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/y tdl_hook.conf' [ytdl_hook] script-opts/ytdl_hook.conf not found. [cplayer] Waiting for scripts... [global] config path: 'lua-settings/osc.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/osc.c onf' [osc] lua-settings/osc.conf not found. [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings /ytdl_hook.conf' [console] reading options for console [no_such_file] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [no_such_file] Reading file '@/defaults.js' [global] config path: 'script-opts/console.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/con sole.conf' [stats] reading options for stats [ytdl_hook] lua-settings/ytdl_hook.conf not found. [console] script-opts/console.conf not found. [global] config path: 'script-opts/stats.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/stats .conf' [stats] script-opts/stats.conf not found. [global] config path: 'lua-settings/console.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/c onsole.conf' [console] lua-settings/console.conf not found. [auto_profiles] Re-evaluating auto profile dither [cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-bi nding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"] [global] config path: '.init.js' -/-> 'D:/Software/mpv/portable_config/.init.js' [global] user path: '~~/.init.js' -> 'D:/Software/mpv/portable_config/.init.js' [no_such_file] Reading file 'D:/Software/mpv/portable_config/.init.js' [global] config path: 'lua-settings/stats.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/sta ts.conf' [stats] lua-settings/stats.conf not found. [auto_profiles] Profile condition error on evaluating: [string "profile dither condition"]:1: attempt to compare number with nil [auto_profiles] Re-evaluating auto profile low_resolution [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"] [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="defau lt"] [auto_profiles] Re-evaluating auto profile high_resolution [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow -vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+ allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags ="force"] [cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-bindin g 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\nwh eel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_rig ht_dbl ignore\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide- cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left scr ipt-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags=" force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cu rsor+allow-vo-dragging"] [global] config path: 'fonts' -> 'D:/Software/mpv/portable_config/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] libass API version: 0x1500000 [osd/libass] libass source: commit: 49f116ab1fa4386f6a5191f322ac29872279516e [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.0 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'D:/Software/mpv/portable_config/subfont.ttf' [global] config path: 'fonts.conf' -> 'D:/Software/mpv/portable_config/fonts.conf' [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="showhide"] [auto_profiles] Re-evaluating auto profile dither [cplayer] Run command: disable-section, flags=64, args=[name="showhide_wc"] [auto_profiles] Profile condition error on evaluating: [string "profile dither condition"]:1: attempt to compare number with nil [auto_profiles] Re-evaluating auto profile low_resolution [auto_profiles] Re-evaluating auto profile high_resolution [cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"] [global] config path: 'fonts' -> 'D:/Software/mpv/portable_config/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] libass API version: 0x1500000 [osd/libass] libass source: commit: 49f116ab1fa4386f6a5191f322ac29872279516e [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.0 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'D:/Software/mpv/portable_config/subfont.ttf' [global] config path: 'fonts.conf' -> 'D:/Software/mpv/portable_config/fonts.conf' [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allo w-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="fo rce"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-curs or+allow-vo-dragging"] ```
with an empty file ``` PS C:\Users\user> mpv --idle --force-window --no-load-scripts --script="C:\Users\user\Desktop\empty.js " -v -v [cplayer] Command line options: '--idle' '--force-window' '--no-load-scripts' '--script=C:\Users\user\ Desktop\empty.js' '-v' '-v' [cplayer] mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Apr 4 13:12:37 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.72.100 [cplayer] libavcodec 58.135.100 [cplayer] libavformat 58.77.100 [cplayer] libswscale 5.10.100 [cplayer] libavfilter 7.111.100 [cplayer] libswresample 3.10.100 [cplayer] FFmpeg version: git-2021-04-03-e93875b7 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [global] config path: '' -> 'D:/Software/mpv/portable_config' [global] user path: '~~home/' -> 'D:/Software/mpv/portable_config' [global] user path: '~~old_home/' -> '' [global] config path: 'encoding-profiles.conf' -/-> 'D:/Software/mpv/portable_config/encoding-profiles .conf' [global] config path: 'mpv.conf' -> 'D:/Software/mpv/portable_config/mpv.conf' [global] config path: 'config' -/-> 'D:/Software/mpv/portable_config/config' [cplayer] Reading config file D:/Software/mpv/portable_config/mpv.conf [cplayer] Applying profile 'default'... [cplayer] Setting option 'fbo-format' = 'auto' (flags = 4) [cplayer] Setting option 'hwdec' = 'nvdec-copy' (flags = 4) [cplayer] Setting option 'volume-max' = '200' (flags = 4) [cplayer] Setting option 'interpolation' = 'yes' (flags = 4) [cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4) [cplayer] Setting option 'sigmoid-upscaling' = 'yes' (flags = 4) [cplayer] Setting option 'cscale' = 'lanczos' (flags = 4) [cplayer] Setting option 'cscale-antiring' = '0.2' (flags = 4) [cplayer] Setting option 'dscale' = 'mitchell' (flags = 4) [cplayer] Setting option 'correct-downscaling' = 'yes' (flags = 4) [cplayer] Setting option 'linear-downscaling' = 'yes' (flags = 4) [cplayer] Setting option 'tscale' = 'mitchell' (flags = 4) [cplayer] Setting option 'deband' = 'yes' (flags = 4) [cplayer] Setting option 'deband-iterations' = '2' (flags = 4) [cplayer] Setting option 'ao' = 'wasapi' (flags = 4) [cplayer] Setting option 'vo' = 'gpu' (flags = 4) [cplayer] Setting option 'gpu-api' = 'vulkan' (flags = 4) [cplayer] Setting option 'video-sync' = 'display-resample' (flags = 4) [cplayer] Setting option 'opengl-pbo' = 'yes' (flags = 4) [cplayer] Setting option 'vulkan-queue-count' = '4' (flags = 4) [cplayer] Setting option 'vulkan-async-transfer' = 'yes' (flags = 4) [cplayer] Setting option 'vulkan-async-compute' = 'yes' (flags = 4) [cplayer] Setting option 'vd-lavc-threads' = '0' (flags = 4) [cplayer] Setting option 'icc-3dlut-size' = '128x128x128' (flags = 4) [cplayer] Setting option 'icc-profile-auto' = 'yes' (flags = 4) [cplayer] Setting option 'cache' = 'yes' (flags = 4) [cplayer] Setting option 'audio-display' = 'no' (flags = 4) [cplayer] Setting option 'idle' = 'yes' (flags = 4) [cplayer] Setting option 'keep-open' = 'yes' (flags = 4) [cplayer] Setting option 'save-position-on-quit' = 'yes' (flags = 4) [cplayer] Setting option 'force-window' = 'yes' (flags = 4) [cplayer] Setting option 'geometry' = '50%' (flags = 4) [cplayer] Setting option 'blend-subtitles' = 'video' (flags = 4) [cplayer] Setting option 'sub-auto' = 'fuzzy' (flags = 4) [cplayer] Setting option 'slang' = 'sc' (flags = 4) [cplayer] Setting option 'sub-font' = 'FZZhengHeiS-M-GB' (flags = 4) [cplayer] Setting option 'screenshot-format' = 'png' (flags = 4) [cplayer] Setting option 'screenshot-tag-colorspace' = 'yes' (flags = 4) [cplayer] Setting option 'screenshot-high-bit-depth' = 'yes' (flags = 4) [cplayer] Setting option 'screenshot-directory' = '~~/screenshot' (flags = 4) [cplayer] Setting option 'gpu-shader-cache-dir' = '~~/shaders_cache' (flags = 4) [cplayer] Setting option 'log-file' = '~~/mpv.log' (flags = 4) [cplayer] Setting option 'osd-bar' = 'no' (flags = 4) [cplayer] Setting option 'pause' = '' (flags = 4) [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'load-scripts' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'C:\Users\user\Desktop\empty.js' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [global] config path: 'input.conf' -> 'D:/Software/mpv/portable_config/input.conf' [global] user path: 'D:/Software/mpv/portable_config/input.conf' -> 'D:/Software/mpv/portable_config/i nput.conf' [ifo_dvdnav] Opening D:/Software/mpv/portable_config/input.conf [bdmv/bluray] Opening D:/Software/mpv/portable_config/input.conf [file] Opening D:/Software/mpv/portable_config/input.conf [file] resize stream to 131072 bytes, drop 0 bytes [file] Stream opened successfully. [input] Parsing input config file D:/Software/mpv/portable_config/input.conf [input] Input config file D:/Software/mpv/portable_config/input.conf parsed: 23 binds [global] config path: 'mpv.log' -> 'D:/Software/mpv/portable_config/mpv.log' [global] user path: '~~/mpv.log' -> 'D:/Software/mpv/portable_config/mpv.log' [cplayer] mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Apr 4 13:12:37 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.72.100 [cplayer] libavcodec 58.135.100 [cplayer] libavformat 58.77.100 [cplayer] libswscale 5.10.100 [cplayer] libavfilter 7.111.100 [cplayer] libswresample 3.10.100 [cplayer] FFmpeg version: git-2021-04-03-e93875b7 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [ytdl_hook] loading mp.defaults [console] Loading lua script @console.lua... [stats] loading mp.defaults [osc] loading @osc.lua [auto_profiles] Loading lua script @auto_profiles.lua... [ytdl_hook] loading @ytdl_hook.lua [console] loading mp.defaults [stats] loading @stats.lua [ytdl_hook] reading options for ytdl_hook [global] user path: 'C:\Users\user\Desktop\empty.js' -> 'C:\Users\user\Desktop\empty.js' [console] loading @console.lua [osc] reading options for osc [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/y tdl_hook.conf' [ytdl_hook] script-opts/ytdl_hook.conf not found. [auto_profiles] loading mp.defaults [global] config path: 'script-opts/osc.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/osc.con f' [stats] reading options for stats [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings /ytdl_hook.conf' [ytdl_hook] lua-settings/ytdl_hook.conf not found. [empty] Loading javascript C:\Users\user\Desktop\empty.js... [osc] script-opts/osc.conf not found. [global] config path: 'script-opts/stats.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/stats .conf' [stats] script-opts/stats.conf not found. [global] config path: 'lua-settings/osc.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/osc.c onf' [osc] lua-settings/osc.conf not found. [cplayer] Waiting for scripts... [global] config path: 'lua-settings/stats.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/sta ts.conf' [stats] lua-settings/stats.conf not found. [console] reading options for console [empty] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [empty] Reading file '@/defaults.js' [global] config path: 'script-opts/console.conf' -/-> 'D:/Software/mpv/portable_config/script-opts/con sole.conf' [console] script-opts/console.conf not found. [global] config path: 'lua-settings/console.conf' -/-> 'D:/Software/mpv/portable_config/lua-settings/c onsole.conf' [console] lua-settings/console.conf not found. [auto_profiles] loading @auto_profiles.lua [cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-bi nding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"] [global] config path: '.init.js' -/-> 'D:/Software/mpv/portable_config/.init.js' [global] user path: '~~/.init.js' -> 'D:/Software/mpv/portable_config/.init.js' [empty] Reading file 'D:/Software/mpv/portable_config/.init.js' [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="defau lt"] [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"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow -vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+ allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags ="force"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+al low-vo-dragging"] [auto_profiles] Re-evaluating auto profile dither [cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-bindin g 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\nwh eel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_rig ht_dbl ignore\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide- cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags=" force"] [auto_profiles] Profile condition error on evaluating: [string "profile dither condition"]:1: attempt to compare number with nil [auto_profiles] Re-evaluating auto profile low_resolution [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cu rsor+allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [auto_profiles] Re-evaluating auto profile high_resolution [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left scr ipt-binding osc/__keybinding11\n", flags="force"] [auto_profiles] Re-evaluating auto profile dither [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [auto_profiles] Profile condition error on evaluating: [string "profile dither condition"]:1: attempt to compare number with nil [auto_profiles] Re-evaluating auto profile low_resolution [auto_profiles] Re-evaluating auto profile high_resolution [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [global] config path: 'fonts' -> 'D:/Software/mpv/portable_config/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] libass API version: 0x1500000 [osd/libass] libass source: commit: 49f116ab1fa4386f6a5191f322ac29872279516e [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.0 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'D:/Software/mpv/portable_config/subfont.ttf' [global] config path: 'fonts.conf' -> 'D:/Software/mpv/portable_config/fonts.conf' [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [global] config path: 'fonts' -> 'D:/Software/mpv/portable_config/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] libass API version: 0x1500000 [osd/libass] libass source: commit: 49f116ab1fa4386f6a5191f322ac29872279516e [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.0 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'D:/Software/mpv/portable_config/subfont.ttf' [global] config path: 'fonts.conf' -> 'D:/Software/mpv/portable_config/fonts.conf' [osd/libass] Setting up fonts... [osd/libass] Using font provider directwrite [osd/libass] Done. [cplayer] Run command: disable-section, flags=64, args=[name="showhide"] [cplayer] Run command: disable-section, flags=64, args=[name="showhide_wc"] [cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"] [cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allo w-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="fo rce"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-curs or+allow-vo-dragging"] ```
with an actual file ``` PS C:\Users\user\Desktop> .\mpv --idle --force-window --no-load-scripts --script=audio-exhance.js -v - v [cplayer] Command line options: '--idle' '--force-window' '--no-load-scripts' '--script=audio-exhance. js' '-v' '-v' [cplayer] mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects [cplayer] built on Sun Apr 4 13:12:37 +08 2021 [cplayer] FFmpeg library versions: [cplayer] libavutil 56.72.100 [cplayer] libavcodec 58.135.100 [cplayer] libavformat 58.77.100 [cplayer] libswscale 5.10.100 [cplayer] libavfilter 7.111.100 [cplayer] libswresample 3.10.100 [cplayer] FFmpeg version: git-2021-04-03-e93875b7 [cplayer] [cplayer] Configuration: /home/shinchiro/build64/packages/mpv-prefix/src/mpv/waf configure --enable-st atic-build --enable-pdf-build --disable-manpage-build --enable-libmpv-shared --enable-lua --enable-jav ascript --enable-sdl2 --enable-libarchive --enable-libbluray --enable-dvdnav --enable-uchardet --enabl e-rubberband --enable-lcms2 --enable-openal --enable-spirv-cross --enable-vulkan --enable-vapoursynth --prefix=/home/shinchiro/build64/install/mingw [cplayer] List of enabled features: asm build-date cplayer cuda-hwaccel cuda-interop d3d-hwaccel d3d11 d3d9-hwaccel debug-build direct3d dos-paths dvdnav egl-angle egl-angle-win32 egl-helpers ffmpeg ffnvc odec gl gl-dxinterop gl-dxinterop-d3d9 gl-win32 glob glob-win32 gpl iconv javascript jpeg lcms2 libarc hive libass libavdevice libbluray libm libmpv-shared libplacebo lua luajit mingw noexecstack openal op timize plain-gl posix-or-mingw rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-stat ic spirv-cross spirv-cross-static static-build stdatomic uchardet vapoursynth vulkan wasapi win32-desk top win32-internal-pthreads zimg zlib [global] config path: '' -> 'C:\Users\user\AppData\Roaming/mpv' [global] user path: '~~home/' -> 'C:\Users\user\AppData\Roaming/mpv' [global] user path: '~~old_home/' -> '' [global] config path: 'encoding-profiles.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/encoding-profil es.conf' [global] config path: 'encoding-profiles.conf' -/-> 'C:/Users/user/Desktop/encoding-profiles.conf' [global] config path: 'encoding-profiles.conf' -/-> 'C:/Users/user/Desktop/mpv/encoding-profiles.conf' [global] config path: 'mpv.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/mpv.conf' [global] config path: 'config' -/-> 'C:\Users\user\AppData\Roaming/mpv/config' [global] config path: 'mpv.conf' -/-> 'C:/Users/user/Desktop/mpv.conf' [global] config path: 'config' -/-> 'C:/Users/user/Desktop/config' [global] config path: 'mpv.conf' -/-> 'C:/Users/user/Desktop/mpv/mpv.conf' [global] config path: 'config' -/-> 'C:/Users/user/Desktop/mpv/config' [cplayer] Setting option 'idle' = '' (flags = 8) [cplayer] Setting option 'force-window' = '' (flags = 8) [cplayer] Setting option 'load-scripts' = 'no' (flags = 8) [cplayer] Setting option 'scripts-append' = 'audio-exhance.js' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'v' = '' (flags = 8) [global] config path: 'input.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/input.conf' [global] config path: 'input.conf' -/-> 'C:/Users/user/Desktop/input.conf' [global] config path: 'input.conf' -/-> 'C:/Users/user/Desktop/mpv/input.conf' [osc] Loading lua script @osc.lua... [ytdl_hook] Loading lua script @ytdl_hook.lua... [osc] loading mp.defaults [stats] Loading lua script @stats.lua... [ytdl_hook] loading mp.defaults [console] Loading lua script @console.lua... [stats] loading mp.defaults [osc] loading @osc.lua [ytdl_hook] loading @ytdl_hook.lua [auto_profiles] Loading lua script @auto_profiles.lua... [stats] loading @stats.lua [console] loading mp.defaults [global] user path: 'audio-exhance.js' -> 'audio-exhance.js' [ytdl_hook] reading options for ytdl_hook [osc] reading options for osc [auto_profiles] loading mp.defaults [audio_exhance] Loading javascript audio-exhance.js... [console] loading @console.lua [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts /ytdl_hook.conf' [global] config path: 'script-opts/osc.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/osc.c onf' [stats] reading options for stats [auto_profiles] loading @auto_profiles.lua [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/script-opts/ytdl_hook.c onf' [audio_exhance] Loading file @/defaults.js [global] user path: '@/defaults.js' -> '@/defaults.js' [audio_exhance] Reading file '@/defaults.js' [global] config path: 'script-opts/stats.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/sta ts.conf' [global] config path: 'script-opts/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/ytdl_ho ok.conf' [cplayer] Waiting for scripts... [global] config path: 'script-opts/osc.conf' -/-> 'C:/Users/user/Desktop/script-opts/osc.conf' [global] config path: 'script-opts/stats.conf' -/-> 'C:/Users/user/Desktop/script-opts/stats.conf' [console] reading options for console [global] config path: 'script-opts/osc.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/osc.conf' [auto_profiles] Exiting... [global] config path: 'script-opts/stats.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/stats.conf' [osc] script-opts/osc.conf not found. [global] config path: 'script-opts/console.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/script-opts/c onsole.conf' [global] config path: '.init.js' -/-> 'C:\Users\user\AppData\Roaming/mpv/.init.js' [stats] script-opts/stats.conf not found. [global] config path: 'lua-settings/osc.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings/osc .conf' [global] config path: 'script-opts/console.conf' -/-> 'C:/Users/user/Desktop/script-opts/console.conf' [ytdl_hook] script-opts/ytdl_hook.conf not found. [global] config path: 'lua-settings/stats.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings/s tats.conf' [global] config path: 'lua-settings/osc.conf' -/-> 'C:/Users/user/Desktop/lua-settings/osc.conf' [global] config path: '.init.js' -/-> 'C:/Users/user/Desktop/.init.js' [global] config path: 'script-opts/console.conf' -/-> 'C:/Users/user/Desktop/mpv/script-opts/console.c onf' [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settin gs/ytdl_hook.conf' [global] config path: 'lua-settings/stats.conf' -/-> 'C:/Users/user/Desktop/lua-settings/stats.conf' [global] config path: 'lua-settings/osc.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/osc.conf' [global] config path: '.init.js' -/-> 'C:/Users/user/Desktop/mpv/.init.js' [console] script-opts/console.conf not found. [global] config path: 'lua-settings/stats.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/stats.con f' [stats] lua-settings/stats.conf not found. [global] config path: 'lua-settings/console.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/lua-settings /console.conf' [osc] lua-settings/osc.conf not found. [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/lua-settings/ytdl_hook .conf' [global] user path: '~~/.init.js' -> 'C:\Users\user\AppData\Roaming/mpv/.init.js' [audio_exhance] Reading file 'C:\Users\user\AppData\Roaming/mpv/.init.js' [global] config path: 'lua-settings/ytdl_hook.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/ytdl_ hook.conf' [global] config path: 'lua-settings/console.conf' -/-> 'C:/Users/user/Desktop/lua-settings/console.con f' [ytdl_hook] lua-settings/ytdl_hook.conf not found. [cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", flags="default"] [global] config path: 'lua-settings/console.conf' -/-> 'C:/Users/user/Desktop/mpv/lua-settings/console .conf' [console] lua-settings/console.conf not found. [cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-bi nding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"] [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"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow -vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+al low-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-bindin g 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\nwh eel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_rig ht_dbl ignore\n", flags="force"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags=" force"] [cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="defau lt"] [cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+ allow-vo-dragging"] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cu rsor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags ="force"] [cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""] [cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide- cursor+allow-vo-dragging"] [cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left scr ipt-binding osc/__keybinding11\n", flags="force"] [cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""] [cplayer] Run command: disable-section, flags=64, args=[name="input"] [cplayer] Run command: disable-section, flags=64, args=[name="window-controls"] [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"] [cplayer] Set property: shared-script-properties -> 1 [global] config path: 'fonts' -/-> 'C:\Users\user\AppData\Roaming/mpv/fonts' [global] config path: 'fonts' -/-> 'C:/Users/user/Desktop/fonts' [global] config path: 'fonts' -/-> 'C:/Users/user/Desktop/mpv/fonts' [osd/libass] ASS library version: 0x1500000 (runtime 0x1500000) [osd/libass] libass API version: 0x1500000 [osd/libass] libass source: commit: 49f116ab1fa4386f6a5191f322ac29872279516e [osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.8.0 (COMPLEX) [global] config path: 'subfont.ttf' -/-> 'C:\Users\user\AppData\Roaming/mpv/subfont.ttf' [global] config path: 'subfont.ttf' -/-> 'C:/Users/user/Desktop/subfont.ttf' [global] config path: 'subfont.ttf' -/-> 'C:/Users/user/Desktop/mpv/subfont.ttf' [global] config path: 'fonts.conf' -/-> 'C:\Users\user\AppData\Roaming/mpv/fonts.conf' [global] config path: 'fonts.conf' -/-> 'C:/Users/user/Desktop/fonts.conf' [global] config path: 'fonts.conf' -/-> 'C:/Users/user/Desktop/mpv/fonts.conf' [osd/libass] Setting up fonts... ```
avih commented 3 years ago

@shinchiro which exact mujs revisions are used in each of the recent builds?

While I haven't encountered such issue in my attempts to reproduce, we still shouldn't exclude a mujs issue.

avih commented 3 years ago

Interesting update, kinda both bad and good news.

Thanks to @CharlesMengCA who was kind to build a recent mpv with js using shinchiro's scripts, I tested it, and the issue is still reproducible also with these builds - https://github.com/mpv-player/mpv/issues/8775#issuecomment-830684255

This seems to suggest that it's not some random one-off, and in fact it could be repdoduced with these scripts also when built on other systems.

If anyone who can build with these scripts could try to dive into it, it would be great. I hope to be able to do this myself at some stage. I haven't tried building mpv yet with shinchiro's scripts, so it could take a while to set up and get there.

(I still can't reproduce this with my own builds - and today I did a full update of mpv and all dependencies again)

shinchiro commented 3 years ago

I try to fix by reverting mingw, gcc, binutils as february and it still happen. In fact, disable most features while building mpv still got the problem. I would suspect latest libass's git master might lead to this bug (since the log stop before libass line) but definitely just random guess.

avih commented 3 years ago

I would suspect latest libass's git master might lead to this bug

I don't think it should be the cause (and I also built with libass master today), but if you can try with older libass to confirm it would be another data point.

According to this https://github.com/shinchiro/mpv-winbuild-cmake/issues/112#issue-848389488 - the exact error is "Unhandled exception at 0x00007FFD6C712136 (ntdll.dll) in mpvnet.exe: 0xC0000028: An invalid or unaligned stack was encountered during an unwind operation." (that's in mpvnet.exe and not mpv.exe - it uses libmpv dll).

This could be related to a (yet unknown) bug in mujs, because mujs - like lua - uses setjmp/longjmp to handle exceptions, so unwinding the stack is a fairly regular part of the language flow, e.g. it happens whenever a catch clause is entered in JS.

However, it could also be related to compiler optimizations and/or bugs. It's also possible that some optimizations expose or affect the bug.

@shinchiro can you try maybe building mujs without any optimizations, like so? make release XCFLAGS=-O0 (otherwise it uses -O2 for release builds).

Or maybe the same with CFLAGS instead of XCFLASGS (the difference is that XCFLAGS add flags, while CFLAGS replaces the default flags - which include for instance also -std=c99, shouldn't matter, but we're grasping at straws anyway...)

avih commented 3 years ago

@shinchiro also, can you know exactly what changed between the working and non-working builds? Do your builds have some log which lists the exact versions of all the packages involved with the build?

Knowing what changed exactly could be a good hint as to where the issue is.

avih commented 3 years ago

Good news. I can reproduce the issue.

I followed the instructions at https://github.com/shinchiro/mpv-winbuild-cmake on Ubuntu and stopped after building gcc.

Then removed the need for READLINE at packages/mujs.cmake and also added mujs binary target for the Makefile, and then ninja mujs which created, among others, a mujs.exe binary.

I tested this binary (REPL, among others) on Windows, and I can reproduce the issue, by simply entering unknown symbol (like foo) and pressing Enter - the REPL is aborted without any message.

With my own win32 mujs binary which I built with MXE mingw the same steps prints an expected "Reference error" and mujs doesn't abort.

So hopefully we will get to the bottom of this soon.

EDIT - for reference, that's the diff:

diff --git a/packages/mujs.cmake b/packages/mujs.cmake
index ce8045b..6e30dc5 100644
--- a/packages/mujs.cmake
+++ b/packages/mujs.cmake
@@ -1,5 +1,6 @@
 set(flag
 "CFLAGS='-UHAVE_READLINE' LIBREADLINE=''
+HAVE_READLINE=no
 CC=${TARGET_ARCH}-gcc
 AR=${TARGET_ARCH}-ar
 RANLIB=${TARGET_ARCH}-ranlib
@@ -9,7 +10,7 @@ ExternalProject_Add(mujs
     GIT_REPOSITORY https://github.com/ccxvii/mujs.git
     UPDATE_COMMAND ""
     CONFIGURE_COMMAND ""
-    BUILD_COMMAND ${MAKE} ${flag} build/release/libmujs.a build/release/mujs.pc
+    BUILD_COMMAND ${MAKE} ${flag} build/release/libmujs.a build/release/mujs.pc build/release/mujs
     INSTALL_COMMAND install -d ${MINGW_INSTALL_PREFIX}/include
             COMMAND install -d ${MINGW_INSTALL_PREFIX}/lib
             COMMAND install -d ${MINGW_INSTALL_PREFIX}/lib/pkgconfig
avih commented 3 years ago

This does not appear to be an optimization issue (tried with -O0 - same result), and also not a recent mujs issue (tried earlier versions up to 1.0.8 from 2020-08 - same result).

I have a feeling either this gcc and/or mingw-w64 are broken in some way, or mujs has a long-standing issue which so far only manifests with this specific gcc (among all windows and non-windows builds with various gcc versions and platforms).

mujs doesn't really have windows-specific code other than trivialities, so I'm 99% sure it's not a win32 issue inside mujs code.

I'm a bit lost as to how to make further progress...

shinchiro commented 3 years ago

Thanks for testing. I'm going to revert to older binutils to see if it's culprit. Latest binutils 2.36.1 have linking issue with openal and mpv for example.

avih commented 3 years ago

Maybe you should have an option to use a stable version of mingw/gcc/binutils instead of using HEAD?

avih commented 3 years ago

Interesting info: seems like the 32 bit builds are OK. Tested, all builds were downloaded from https://sourceforge.net/projects/mpv-player-windows/files/ :

Of the 64 bit builds, the latest (20210502) is still broken:

Summary:

@shinchiro any chance you could use stable releases of the toolchain? (binutils, gcc, mingw-w64). I don't think there's a good reason to use daily/master snapshots of the toolchain unless you intend to report issues upstream (and it doesn't seem like you intend to do this)...

avih commented 3 years ago

For reference, I tried to build only gcc from different versions of this repository and test how mujs.exe behaves (without building mpv or anything else other than gcc and mujs).

Here are my results (with same patch as I posted earlier to build mujs.exe and disable READLINE):

The differences between my working directory and upstream master: https://0x0.st/-Bil.txt

The only relevant difference that I can identify is my working directory has binutils 2.35.1, while master has binutils 2.35.2.

So the commit which breaks mujs is https://github.com/shinchiro/mpv-winbuild-cmake/commit/a1f31717895802b1f3ac99075ee8af9ddffad582 - update binutils to from 2.35.1 to 2.36.1.

And later commit to downgrade binutils to 2.35.2 was not enough - https://github.com/shinchiro/mpv-winbuild-cmake/commit/69764ee40b1bd4eb79a05309839a5ad7e468ad4b

The title of this commit ("binutils: revert back to 2.35.2 ") is actually misleading, because binutils was never before at version 2.35.2. It was bumped directly from 2.35.1 to 2.36.1, and apparently 2.35.2 is also broken.

Bottomm line: seems we need binutils 2.35.1

avih commented 3 years ago

Bottomm line: seems we need binutils 2.35.1

CC @shinchiro

avih commented 3 years ago

Bottomm line: seems we need binutils 2.35.1

Hmm.. this seems to have been a wrong conclusion somehow, but I don't get why.

From my last setup I upgraded only binutils from 2.35.1 to 2.35.2 - and the mujs binary is still ok.

I applied only this diff:

commit 7a0acf6379ea845737e06352853ebbc9144798a9
Author: Avi Halachmi (:avih) <avihpit@yahoo.com>
Date:   Wed May 5 16:50:14 2021 +0300

    binutils: upgrade 2.35.1 to 2.35.2

diff --git a/toolchain/binutils.cmake b/toolchain/binutils.cmake
index 09b5adb..2853709 100644
--- a/toolchain/binutils.cmake
+++ b/toolchain/binutils.cmake
@@ -1,6 +1,6 @@
 ExternalProject_Add(binutils
-    URL https://ftp.gnu.org/gnu/binutils/binutils-2.35.1.tar.xz
-    URL_HASH SHA512=94ff72708403413b70b247f3af4099ebaa882b6659249869f1ed9941a0f1912e313f08357d470f9fd2359e7f5e5b0eb86285e5eaf883fa8187789d6b1bd304eb
+    URL https://ftp.gnu.org/gnu/binutils/binutils-2.35.2.tar.xz
+    URL_HASH SHA512=9974ede5978d32e0d68fef23da48fa00bd06b0bff7ec45b00ca075c126d6bbe0cf2defc03ecc3f17bc6cc85b64271a13009c4049d7ba17de26e84e3a6e2c0348
     CONFIGURE_COMMAND <SOURCE_DIR>/configure
         --target=${TARGET_ARCH}
         --prefix=${CMAKE_INSTALL_PREFIX}

Either I'm missing out on something obvious, or something in the build is non-deterministic, and I strongly suspect the former.

I don't get it...

For reference, every rebuild includes total cleanup:

git clean -xfd && rm -rf build64
mkdir build64 && cd build64
cmake -DTARGET_ARCH=x86_64-w64-mingw32 -G Ninja ..
ninja gcc -j8
ninja mujs
avih commented 3 years ago

More weird info: now master seems ok too to build mujs.exe which runs OK.

I think maybe there's some package which is used to build gcc and doesn't have a fixed version, and this something had a bug for some weeks, and now this bug is fixed.

We know gcc has a fixed version tarball (daily snapshot).

We know binutils has a fixed version (2.35.2 etc)

We know mingw-w64 has a fixed version (GIT_TAG 7faa2f348c838f2043a40ae7acca913b94607d5c)

What else is fetched to build gcc, and probably uses some dynamic "latest" ot git-master etc?

If nothing else other than these 3 packages is used to build gcc, then I think there's something non-dtermenistic at the build process, which possibly introduces this bug.

Reminder - I build gcc in parallel, with ninja gcc -j8

garoto commented 3 years ago

Contrary to what I said on shinchiro's issue tracker recently (got confused with which .exe was which, sorry shinchiro), my mpv-winbuild-cmake toolchain built on November 20th 2020 don't appear to generate mpv and/or mujs binaries with the behavior described:

root@debiantesting:~ # w32build.sh x86_64-w64-mingw32-gcc --version
x86_64-w64-mingw32-gcc (GCC) 10.2.1 20201024
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@debiantesting:~ # w32build.sh x86_64-w64-mingw32-strip --version
GNU strip (GNU Binutils) 2.35.1
Copyright (C) 2020 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

My mpv build from today: https://0x0.st/-BHd.7z

mujs.exe built on March 22, 2021: https://0x0.st/-BHn.7z

shinchiro commented 3 years ago

Thanks for info. With reverting gcc and mingw, this issue can finally solved. Though I hope mujs or mingw/gcc can fix it in future

avih commented 3 years ago

Thanks for info. With reverting gcc and mingw

I don't think this is the issue.

Two days ago master had this issue (building only gcc and mujs). Yesterday the issue was fixed on master - without any new commits on master.

I know for a fact that during both success and failure these were the used version while building gcc:

And I don't know what changed. So either something else beyond binutils/mingw-w64/gcc changes, or the build fails randomly.

Suggestions what might change:

And i couldn't find anything like git-master or some "latest" release which is being downloaded for building gcc.

So I'm really lost as to why this happens.

avih commented 3 years ago

With reverting gcc and mingw, this issue can finally solved

@shinchiro So, if you think you know what made it fail, then can you please confirm it 100%, by choosing versions which you think should fail - and then confirm the build indeed fails for javascript files?

I can't make it fail anymore - even with the exact versions of binutils/mingw/gcc which DID fail in the past.

So I don't think we know what actually caused this.

shinchiro commented 3 years ago

Unfortunately, it kinda difficult to test combination of mingw/gcc which will introduce this problem. Usually, I will delete install and toolchain folder when upgrading/downgrading gcc/mingw/binutils.

avih commented 3 years ago

Unfortunately, it kinda difficult to test combination of mingw/gcc which will introduce this problem

Why is it difficult? Doesn't git clean -xfd && rm -rf build64 completely cleanup everything ? (assuming the instruction at README.md were followed)

Or is there something else left at the system after such cleanup which could affect the build?

avih commented 3 years ago

The most recent build - mpv-x86_64-20210509-git-ea89e81.7z does NOT have the issue anymore. (the 32 bit build mpv-i686-20210509-git-ea89e81.7z is also fine - but 32 bit builds also never had this issue in the past).

So I guess we can close this issue, but this is a notice that I don't think we ever figured out which change actually fixed it.

I couldn't reproduce a broken build after a certain point in time even while trying very hard, and @shinchiro thinks he knows which change fixes it - but he didn't try to confirm it - for reasons I couldn't quite understand (https://github.com/mpv-player/mpv/issues/8667#issuecomment-834421255).

So if someone would ever figure out which change fixed it (i.e. they can change it back and forth to consistently produce broken/good build), then it would be great to post an answer here.