TheAMM / mpv_thumbnail_script

A Lua script to show preview thumbnails in mpv's OSC seekbar, sans external dependencies
GNU General Public License v3.0
679 stars 68 forks source link

Thumbnailing failed #62

Closed issadarkthing closed 4 years ago

issadarkthing commented 4 years ago

The log output

[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[   0.003][v][cplayer]  built on Sat Apr  4 05:54:47 UTC 2020
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.2
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --enable-dvbin --enable-dvdnav --enable-html-build --enable-javascript --enable-cdda --zshdir=/usr/share/zsh/vendor-completions --prefix=/usr --confdir=/etc/mpv
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics build-date cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libplacebo librt linux-fstatfs lua memfd_create optimize oss-audio posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Command line options: '--msg-level=all=no' '--no-ytdl' '--user-agent=libmpv' '--referrer=' '--hwdec=no' '--log-file=/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' '[HorribleSubs]_Fairy_Tail_-_01_[720p].mkv' '--start=4.9057565' '--frames=1' '--hr-seek=yes' '--no-audio' '--vf=scale=200:112' '--vf-add=format=bgra' '--of=rawvideo' '--ovc=rawvideo' '--o=' '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra'
[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[   0.003][v][cplayer]  built on Sat Apr  4 05:54:47 UTC 2020
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.2
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --enable-dvbin --enable-dvdnav --enable-html-build --enable-javascript --enable-cdda --zshdir=/usr/share/zsh/vendor-completions --prefix=/usr --confdir=/etc/mpv
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics build-date cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libplacebo librt linux-fstatfs lua memfd_create optimize oss-audio posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Reading config file /etc/mpv/mpv.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Reading config file /home/terra/.config/mpv/mpv.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Setting option 'osc' = 'no' (flags = 4)
[   0.004][v][cplayer] Setting option 'screenshot-directory' = '~/pictures/mpvscreenshots' (flags = 4)
[   0.004][v][cplayer] Setting option 'screenshot-template' = '%F-%P' (flags = 4)
[   0.004][v][cplayer] Setting option 'quiet' = 'yes' (flags = 4)
[   0.004][v][cplayer] Setting option 'ao' = 'pulse' (flags = 4)
[   0.004][v][cplayer] Setting option 'msg-level' = 'all=no' (flags = 8)
[   0.004][v][cplayer] Setting option 'ytdl' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'user-agent' = 'libmpv' (flags = 8)
[   0.004][v][cplayer] Setting option 'referrer' = '' (flags = 8)
[   0.004][v][cplayer] Setting option 'hwdec' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'log-file' = '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' (flags = 8)
[   0.004][v][cplayer] Setting option 'start' = '4.9057565' (flags = 8)
[   0.004][v][cplayer] Setting option 'frames' = '1' (flags = 8)
[   0.004][v][cplayer] Setting option 'hr-seek' = 'yes' (flags = 8)
[   0.004][v][cplayer] Setting option 'audio' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'vf' = 'scale=200:112' (flags = 8)
[   0.004][v][cplayer] Setting option 'vf-add' = 'format=bgra' (flags = 8)
[   0.004][v][cplayer] Setting option 'of' = 'rawvideo' (flags = 8)
[   0.004][v][cplayer] Setting option 'ovc' = 'rawvideo' (flags = 8)
[   0.004][v][cplayer] Setting option 'o' = '' (flags = 8)
[   0.005][v][ifo_dvdnav] Opening /home/terra/.config/mpv/input.conf
[   0.005][v][bdmv/bluray] Opening /home/terra/.config/mpv/input.conf
[   0.005][v][file] Opening /home/terra/.config/mpv/input.conf
[   0.005][d][file] resize stream to 131072 bytes
[   0.005][d][file] Stream opened successfully.
[   0.005][v][input] Parsing input config file /home/terra/.config/mpv/input.conf
[   0.005][v][input] Input config file /home/terra/.config/mpv/input.conf parsed: 18 binds
[   0.005][d][global] user path: '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' -> '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log'
[   0.005][d][stats] Loading lua script @stats.lua...
[   0.005][d][console] Loading lua script @console.lua...
[   0.005][d][global] config path: 'scripts' -> '/home/terra/.config/mpv/scripts'
[   0.005][d][global] config path: 'scripts' -/-> '/home/terra/.mpv/scripts'
[   0.005][d][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.005][d][mpv_thumbnail_script_client_osc] Loading lua script /home/terra/.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua...
[   0.005][d][stats] loading mp.defaults
[   0.005][d][mpv_thumbnail_script_server] Loading lua script /home/terra/.config/mpv/scripts/mpv_thumbnail_script_server.lua...  stamp-h1
[   0.005][v][cplayer] Waiting for scripts...
[   0.006][d][mpv_thumbnail_script_client_osc] loading mp.defaults
[   0.006][d][mpv_thumbnail_script_server] loading mp.defaults
[   0.007][d][mpv_thumbnail_script_client_osc] loading file /home/terra/.config/mpv/scripts/mpv_thumbnail_script_client_osc.lual argument [-Wnonnull]
[   0.007][d][stats] loading @stats.lua
[   0.007][d][mpv_thumbnail_script_server] loading file /home/terra/.config/mpv/scripts/mpv_thumbnail_script_server.luamode *') to parameter of typ
[   0.007][d][console] loading mp.defaults
[   0.008][d][console] loading @console.lua
[   0.008][d][mpv_thumbnail_script_server] reading options for mpv_thumbnail_script 
[   0.008][d][global] config path: 'script-opts/mpv_thumbnail_script.conf' -/-> '/home/terra/.config/mpv/script-opts/mpv_thumbnail_script.conf'data' here
[   0.008][d][global] config path: 'script-opts/mpv_thumbnail_script.conf' -/-> '/home/terra/.mpv/script-opts/mpv_thumbnail_script.conf'
[   0.008][d][stats] reading options for stats 
[   0.008][d][global] config path: 'script-opts/mpv_thumbnail_script.conf' -/-> '/etc/mpv/script-opts/mpv_thumbnail_script.conf'
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/terra/.config/mpv/script-opts/stats.conf'
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/terra/.mpv/script-opts/stats.conf'
[   0.008][d][mpv_thumbnail_script_server] script-opts/mpv_thumbnail_script.conf not found. 
[   0.008][d][global] config path: 'lua-settings/mpv_thumbnail_script.conf' -> '/home/terra/.config/mpv/lua-settings/mpv_thumbnail_script.conf'
[   0.008][w][mpv_thumbnail_script_server] lua-settings/ is deprecated, use directory script-opts/ 
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/etc/mpv/script-opts/stats.conf'
[   0.008][d][stats] script-opts/stats.conf not found. 
[   0.008][v][mpv_thumbnail_script_server] Opened config file lua-settings/mpv_thumbnail_script.conf. 
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/terra/.config/mpv/lua-settings/stats.conf'mode *') to parameter of typ
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/terra/.mpv/lua-settings/stats.conf'
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/etc/mpv/lua-settings/stats.conf'
[   0.008][d][stats] lua-settings/stats.conf not found. 
[   0.009][d][console] reading options for console 
[   0.009][d][global] config path: 'script-opts/console.conf' -/-> '/home/terra/.config/mpv/script-opts/console.conf'
[   0.009][d][global] config path: 'script-opts/console.conf' -/-> '/home/terra/.mpv/script-opts/console.conf'
[   0.009][d][global] config path: 'script-opts/console.conf' -/-> '/etc/mpv/script-opts/console.conf'
[   0.009][d][console] script-opts/console.conf not found. 
[   0.009][d][global] config path: 'lua-settings/console.conf' -/-> '/home/terra/.config/mpv/lua-settings/console.conf'
[   0.009][d][global] config path: 'lua-settings/console.conf' -/-> '/home/terra/.mpv/lua-settings/console.conf'
[   0.009][d][global] config path: 'lua-settings/console.conf' -/-> '/etc/mpv/lua-settings/console.conf'
[   0.009][d][console] lua-settings/console.conf not found. 
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["input_stats", "i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", "default"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["input_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.010][d][cplayer] Run command: define-section, flags=64, args=["input_forced_stats", "", "force"]
[   0.010][d][cplayer] Run command: enable-section, flags=64, args=["input_forced_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.013][d][global] config path: 'fonts' -/-> '/home/terra/.config/mpv/fonts'
[   0.013][d][global] config path: 'fonts' -/-> '/home/terra/.mpv/fonts'
[   0.013][d][global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[   0.013][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.6.1 (COMPLEX)
[   0.013][d][global] config path: 'subfont.ttf' -/-> '/home/terra/.config/mpv/subfont.ttf'
[   0.013][d][global] config path: 'subfont.ttf' -/-> '/home/terra/.mpv/subfont.ttf'
[   0.013][d][global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[   0.013][d][global] config path: 'fonts.conf' -/-> '/home/terra/.config/mpv/fonts.conf'
[   0.013][d][global] config path: 'fonts.conf' -/-> '/home/terra/.mpv/fonts.conf'
[   0.013][d][global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[   0.013][v][osd/libass] Setting up fonts...
[   0.184][v][vo/gpu] Using FBO format rgba16f.
[   0.184][v][vo/gpu] No advanced processing required. Enabling dumb mode.
[   0.185][d][vo/gpu/opengl] vertex shader source:
[   0.185][d][vo/gpu/opengl] [  1] #version 440
[   0.185][d][vo/gpu/opengl] [  2] #define tex1D texture
[   0.185][d][vo/gpu/opengl] [  3] #define tex3D texture
[   0.185][d][vo/gpu/opengl] [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))0 [720p].mkv    [HorribleSu
[   0.185][d][vo/gpu/opengl] [  5] in vec2 vertex_position;
[   0.185][d][vo/gpu/opengl] [  6] in vec2 vertex_texcoord0;
[   0.185][d][vo/gpu/opengl] [  7] out vec2 texcoord0;
[   0.185][d][vo/gpu/opengl] [  8] void main() {
[   0.185][d][vo/gpu/opengl] [  9] gl_Position = vec4(vertex_position, 1.0, 1.0);
[   0.185][d][vo/gpu/opengl] [ 10] texcoord0 = vertex_texcoord0;
[   0.185][d][vo/gpu/opengl] [ 11] }
[   0.185][d][vo/gpu/opengl] fragment shader source:
[   0.185][d][vo/gpu/opengl] [  1] #version 440
[   0.185][d][vo/gpu/opengl] [  2] #define tex1D texture
[   0.185][d][vo/gpu/opengl] [  3] #define tex3D texture
[   0.185][d][vo/gpu/opengl] [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))=root ; COMMAND=/usr/bin/apt
[   0.185][d][vo/gpu/opengl] [  5] out vec4 out_color;
[   0.185][d][vo/gpu/opengl] [  6] in vec2 texcoord0;
[   0.185][d][vo/gpu/opengl] [  7] layout(std140, binding=0) uniform UBO {
[   0.185][d][vo/gpu/opengl] [  8] layout(offset=0) mat3 colormatrix;
[   0.185][d][vo/gpu/opengl] [  9] layout(offset=48) vec3 colormatrix_c;
[   0.185][d][vo/gpu/opengl] [ 10] layout(offset=64) vec3 src_luma;
[   0.185][d][vo/gpu/opengl] [ 11] layout(offset=80) vec3 dst_luma;
[   0.185][d][vo/gpu/opengl] [ 12] layout(offset=96) vec2 texture_size0;
[   0.185][d][vo/gpu/opengl] [ 13] layout(offset=112) mat2 texture_rot0;
[   0.185][d][vo/gpu/opengl] [ 14] layout(offset=144) vec2 texture_off0;
[   0.185][d][vo/gpu/opengl] [ 15] layout(offset=152) vec2 pixel_size0;
[   0.185][d][vo/gpu/opengl] [ 16] };
[   0.185][d][vo/gpu/opengl] [ 17] uniform sampler2D texture0;
[   0.185][d][vo/gpu/opengl] [ 18] void main() {
[   0.185][d][vo/gpu/opengl] [ 19] vec4 color = vec4(0.0, 0.0, 0.0, 1.0);
[   0.185][d][vo/gpu/opengl] [ 20] color.rgba = 1.000000 * vec4(texture(texture0, texcoord0)).rgba;
[   0.185][d][vo/gpu/opengl] [ 21] color = color.bgra;
[   0.185][d][vo/gpu/opengl] [ 22] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;
[   0.185][d][vo/gpu/opengl] [ 23] color = vec4(color.rgb * color.a, color.a);
[   0.185][d][vo/gpu/opengl] [ 24] // color mapping
[   0.185][d][vo/gpu/opengl] [ 25] color.rgb *= vec3(1.000000);
[   0.185][d][vo/gpu/opengl] [ 26] color.rgb *= vec3(1.000000);
[   0.185][d][vo/gpu/opengl] [ 27] // transparency checkerboard
[   0.185][d][vo/gpu/opengl] [ 28] bvec2 tile = lessThan(fract(gl_FragCoord.xy * 1.0/32.0), vec2(0.5));
[   0.185][d][vo/gpu/opengl] [ 29] vec3 background = vec3(tile.x == tile.y ? 0.93 : 0.87);
[   0.185][d][vo/gpu/opengl] [ 30] color.rgb += background.rgb * (1.0 - color.a);
[   0.185][d][vo/gpu/opengl] [ 31] color.a = 1.0;
[   0.185][d][vo/gpu/opengl] [ 32] out_color = color;
[   0.185][d][vo/gpu/opengl] [ 33] }
[   0.185][d][vo/gpu/opengl] shader link log (status=1): 
[   0.189][v][cplayer] first video frame after restart shown
[   0.189][v][cplayer] playback restart complete @ 4.922000
[   0.189][v][vo/gpu/x11] Disabling screensaver.
[   0.189][w][mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
[   0.189][d][cplayer] Run command: script-binding, flags=73, args=["mpv_thumbnail_script_client_osc/__keybinding2"]
[   0.189][d][cplayer] Run command: script-binding, flags=73, args=["mpv_thumbnail_script_client_osc/__keybinding2"]
[   0.191][v][cplayer] EOF code: 1  
[   0.192][d][vd] Uninit decoder.
[   0.193][v][vf] dropping frame due to pin disconnect
[   0.194][d][cplayer] Terminating demuxers...
[   0.194][d][cplayer] Done terminating demuxers.
[   0.194][v][cplayer] finished playback, success (reason 0)
[   0.194][i][cplayer] 
[   0.194][i][cplayer] Playing: /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.194][v][ifo_dvdnav] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.194][d][mpv_thumbnail_script_client_osc] osc_init 
[   0.194][v][bdmv/bluray] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.194][v][file] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.194][e][file] Cannot open file '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra': No such file or directory
[   0.194][e][stream] Failed to open /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.
[   0.194][v][cplayer] Opening failed or was aborted: /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.194][v][cplayer] finished playback, loading failed (reason 4)
[   0.194][i][cplayer] 
[   0.194][i][cplayer] 
[   0.194][i][cplayer] Exiting... (Some errors happened)
[   0.195][d][stats] Exiting...
[   0.196][d][mpv_thumbnail_script_server] Changing files, subprocess killed 
[   0.196][d][mpv_thumbnail_script_server] Exiting...
[   0.196][d][console] Exiting...
[   0.196][d][mpv_thumbnail_script_client_osc] Exiting...
[   0.230][v][vo/gpu/x11] Enabling screensaver.
[   0.252][d][vo/gpu] flushing shader cache
[   0.254][d][vo/gpu/x11] uninit ...
mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
 built on Sat Apr  4 05:54:47 UTC 2020
ffmpeg library versions:
   libavutil       56.31.100
   libavcodec      58.54.100
   libavformat     58.29.100
   libswscale      5.5.100
   libavfilter     7.57.100
   libswresample   3.5.100
ffmpeg version: 4.2.2

Does not work on my Ubuntu 19.10 machine

ghost commented 4 years ago

did you check this post https://github.com/TheAMM/mpv_thumbnail_script/issues/60 it is about a change that has been committed but not released (all OS) you have to change in the server script(s) from: "--o", output_path To: "--o=" .. output_path

also, if you have a folder called lua-settings you have to rename it to script-opts

issadarkthing commented 4 years ago

already checked #60 but didnt change the folder name. After i changed the lua-settings directory name to script-opts it still fails. Here is the error log:

[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects[   0.003][v][cplayer]  built on Sat Apr  4 05:54:47 UTC 2020
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.2
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --enable-dvbin --enable-dvdnav --enable-html-build --enable-javascript --enable-cdda --zshdir=/usr/share/zsh/vendor-completions --prefix=/usr --confdir=/etc/mpv
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics build-date cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libplacebo librt linux-fstatfs lua memfd_create optimize oss-audio posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Command line options: '--msg-level=all=no' '--no-ytdl' '--user-agent=libmpv' '--referrer=' '--hwdec=no' '--log-file=/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' '[HorribleSubs]_Fairy_Tail_-_01_[720p].mkv' '--start=4.9057565' '--frames=1' '--hr-seek=yes' '--no-audio' '--vf=scale=200:112' '--vf-add=format=bgra' '--of=rawvideo' '--ovc=rawvideo' '--o=' '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra'
[   0.003][v][cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[   0.003][v][cplayer]  built on Sat Apr  4 05:54:47 UTC 2020
[   0.003][v][cplayer] ffmpeg library versions:
[   0.003][v][cplayer]    libavutil       56.31.100
[   0.003][v][cplayer]    libavcodec      58.54.100
[   0.003][v][cplayer]    libavformat     58.29.100
[   0.003][v][cplayer]    libswscale      5.5.100
[   0.003][v][cplayer]    libavfilter     7.57.100
[   0.003][v][cplayer]    libswresample   3.5.100
[   0.003][v][cplayer] ffmpeg version: 4.2.2
[   0.003][v][cplayer] 
[   0.003][v][cplayer] Configuration: ./waf configure --enable-dvbin --enable-dvdnav --enable-html-build --enable-javascript --enable-cdda --zshdir=/usr/share/zsh/vendor-completions --prefix=/usr --confdir=/etc/mpv
[   0.003][v][cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics build-date cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm drmprime dvbin dvdnav egl egl-drm egl-helpers egl-x11 fchmod ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gnuc gpl iconv jack javascript jpeg lcms2 libarchive libass libass-osd libav-any libavcodec libavdevice libavutil libbluray libdl libm libplacebo librt linux-fstatfs lua memfd_create optimize oss-audio posix posix-or-mingw posix-spawn posix-spawn-native pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vt.h vulkan wayland wayland-protocols x11 xv zlib
[   0.003][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Reading config file /etc/mpv/mpv.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Reading config file /home/terra/.config/mpv/mpv.conf
[   0.004][v][cplayer] Applying profile 'default'...
[   0.004][v][cplayer] Setting option 'osc' = 'no' (flags = 4)
[   0.004][v][cplayer] Setting option 'quiet' = 'yes' (flags = 4)
[   0.004][v][cplayer] Setting option 'ao' = 'pulse' (flags = 4)
[   0.004][v][cplayer] Setting option 'msg-level' = 'all=no' (flags = 8)
[   0.004][v][cplayer] Setting option 'ytdl' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'user-agent' = 'libmpv' (flags = 8)
[   0.004][v][cplayer] Setting option 'referrer' = '' (flags = 8)
[   0.004][v][cplayer] Setting option 'hwdec' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'log-file' = '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' (flags = 8)
[   0.004][v][cplayer] Setting option 'start' = '4.9057565' (flags = 8)
[   0.004][v][cplayer] Setting option 'frames' = '1' (flags = 8)
[   0.004][v][cplayer] Setting option 'hr-seek' = 'yes' (flags = 8)
[   0.004][v][cplayer] Setting option 'audio' = 'no' (flags = 8)
[   0.004][v][cplayer] Setting option 'vf' = 'scale=200:112' (flags = 8)
[   0.004][v][cplayer] Setting option 'vf-add' = 'format=bgra' (flags = 8)
[   0.004][v][cplayer] Setting option 'of' = 'rawvideo' (flags = 8)
[   0.004][v][cplayer] Setting option 'ovc' = 'rawvideo' (flags = 8)
[   0.004][v][cplayer] Setting option 'o' = '' (flags = 8)
[   0.005][v][ifo_dvdnav] Opening /home/terra/.config/mpv/input.conf
[   0.005][v][bdmv/bluray] Opening /home/terra/.config/mpv/input.conf
[   0.005][v][file] Opening /home/terra/.config/mpv/input.conf
[   0.005][d][file] resize stream to 131072 bytes
[   0.005][d][file] Stream opened successfully.
[   0.005][v][input] Parsing input config file /home/terra/.config/mpv/input.conf
[   0.005][v][input] Input config file /home/terra/.config/mpv/input.conf parsed: 18 binds
[   0.005][d][global] user path: '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log' -> '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.log'
[   0.005][d][stats] Loading lua script @stats.lua...
[   0.005][d][console] Loading lua script @console.lua...
[   0.005][d][global] config path: 'scripts' -> '/home/terra/.config/mpv/scripts'
[   0.005][d][global] config path: 'scripts' -/-> '/home/terra/.mpv/scripts'
[   0.005][d][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.005][d][mpv_thumbnail_script_client_osc] Loading lua script /home/terra/.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua...
[   0.005][d][stats] loading mp.defaults
[   0.005][d][mpv_thumbnail_script_server] Loading lua script /home/terra/.config/mpv/scripts/mpv_thumbnail_script_server.lua...
[   0.005][d][console] loading mp.defaults
[   0.005][v][cplayer] Waiting for scripts...
[   0.005][d][mpv_thumbnail_script_server] loading mp.defaults
[   0.006][d][mpv_thumbnail_script_client_osc] loading mp.defaults
[   0.006][d][mpv_thumbnail_script_server] loading file /home/terra/.config/mpv/scripts/mpv_thumbnail_script_server.lua
[   0.006][d][console] loading @console.lua
[   0.006][d][stats] loading @stats.lua
[   0.007][d][mpv_thumbnail_script_client_osc] loading file /home/terra/.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua
[   0.007][d][mpv_thumbnail_script_server] reading options for mpv_thumbnail_script 
[   0.007][d][global] config path: 'script-opts/mpv_thumbnail_script.conf' -> '/home/terra/.config/mpv/script-opts/mpv_thumbnail_script.conf'
[   0.007][v][mpv_thumbnail_script_server] Opened config file script-opts/mpv_thumbnail_script.conf. 
[   0.008][d][stats] reading options for stats 
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/terra/.config/mpv/script-opts/stats.conf'
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/terra/.mpv/script-opts/stats.conf'
[   0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/etc/mpv/script-opts/stats.conf'
[   0.008][d][stats] script-opts/stats.conf not found. 
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/terra/.config/mpv/lua-settings/stats.conf'
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/terra/.mpv/lua-settings/stats.conf'
[   0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/etc/mpv/lua-settings/stats.conf'
[   0.008][d][stats] lua-settings/stats.conf not found. 
[   0.008][d][console] reading options for console 
[   0.008][d][global] config path: 'script-opts/console.conf' -/-> '/home/terra/.config/mpv/script-opts/console.conf'
[   0.008][d][global] config path: 'script-opts/console.conf' -/-> '/home/terra/.mpv/script-opts/console.conf'
[   0.008][d][global] config path: 'script-opts/console.conf' -/-> '/etc/mpv/script-opts/console.conf'
[   0.008][d][console] script-opts/console.conf not found. 
[   0.008][d][global] config path: 'lua-settings/console.conf' -/-> '/home/terra/.config/mpv/lua-settings/console.conf'
[   0.008][d][global] config path: 'lua-settings/console.conf' -/-> '/home/terra/.mpv/lua-settings/console.conf'
[   0.008][d][global] config path: 'lua-settings/console.conf' -/-> '/etc/mpv/lua-settings/console.conf'
[   0.008][d][console] lua-settings/console.conf not found. 
[   0.009][d][cplayer] Run command: define-section, flags=64, args=["input_stats", "i script-binding stats/display-stats\nI script-binding stats/display-stats-toggle\n", "default"]
[   0.009][d][cplayer] Run command: enable-section, flags=64, args=["input_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.009][d][cplayer] Run command: define-section, flags=64, args=["input_forced_stats", "", "force"]
[   0.009][d][cplayer] Run command: enable-section, flags=64, args=["input_forced_stats", "allow-hide-cursor+allow-vo-dragging"]
[   0.014][d][mpv_thumbnail_script_client_osc] reading options for mpv_thumbnail_script 
[   0.014][d][global] config path: 'script-opts/mpv_thumbnail_script.conf' -> '/home/terra/.config/mpv/script-opts/mpv_thumbnail_script.conf'
[   0.014][v][mpv_thumbnail_script_client_osc] Opened config file script-opts/mpv_thumbnail_script.conf. 
[   0.014][d][mpv_thumbnail_script_client_osc] reading options for osc 
[   0.014][d][global] config path: 'script-opts/osc.conf' -/-> '/home/terra/.config/mpv/script-opts/osc.conf'
[   0.014][d][global] config path: 'script-opts/osc.conf' -/-> '/home/terra/.mpv/script-opts/osc.conf'
[   0.014][d][global] config path: 'script-opts/osc.conf' -/-> '/etc/mpv/script-opts/osc.conf'
[   0.014][d][mpv_thumbnail_script_client_osc] script-opts/osc.conf not found. 
[   0.014][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/terra/.config/mpv/lua-settings/osc.conf'
[   0.014][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/terra/.mpv/lua-settings/osc.conf'
[   0.014][d][global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[   0.014][d][mpv_thumbnail_script_client_osc] lua-settings/osc.conf not found. 
[   0.014][d][global] config path: 'fonts' -/-> '/home/terra/.config/mpv/fonts'
[   0.014][d][global] config path: 'fonts' -/-> '/home/terra/.mpv/fonts'
[   0.014][d][global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[   0.014][v][osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 2.6.1 (COMPLEX)
[   0.014][d][global] config path: 'subfont.ttf' -/-> '/home/terra/.config/mpv/subfont.ttf'
[   0.014][d][global] config path: 'subfont.ttf' -/-> '/home/terra/.mpv/subfont.ttf'
[   0.014][d][global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[   0.015][d][global] config path: 'fonts.conf' -/-> '/home/terra/.config/mpv/fonts.conf'
[   0.015][d][global] config path: 'fonts.conf' -/-> '/home/terra/.mpv/fonts.conf'
[   0.015][d][global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[   0.015][v][osd/libass] Setting up fonts...
[   0.179][v][vo/gpu] Resize: 782x416
[   0.179][v][vo/gpu] Window size: 782x416 (Borders: l=0 t=0 r=0 b=0)
[   0.179][v][vo/gpu] Video source: 200x112 (1:1)
[   0.179][v][vo/gpu] Video display: (0, 0) 200x112 -> (20, 0) 742x416
[   0.179][v][vo/gpu] Video scale: 3.710000/3.714286
[   0.179][v][vo/gpu] OSD borders: l=20 t=0 r=20 b=0
[   0.179][v][vo/gpu] Video borders: l=20 t=0 r=20 b=0
[   0.179][v][vo/gpu] Reported display depth: 8
[   0.179][v][vo/gpu] Texture for plane 0: 200x112
[   0.179][v][vo/gpu] Testing FBO format rgba16f
[   0.179][d][vo/gpu] Resizing texture: 16x16
[   0.181][v][vo/gpu] Using FBO format rgba16f.
[   0.181][v][vo/gpu] No advanced processing required. Enabling dumb mode.
[   0.182][d][vo/gpu/opengl] vertex shader source:
[   0.182][d][vo/gpu/opengl] [  1] #version 440
[   0.182][d][vo/gpu/opengl] [  2] #define tex1D texture
[   0.182][d][vo/gpu/opengl] [  3] #define tex3D texture
[   0.182][d][vo/gpu/opengl] [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
[   0.182][d][vo/gpu/opengl] [  5] in vec2 vertex_position;
[   0.182][d][vo/gpu/opengl] [  6] in vec2 vertex_texcoord0;
[   0.182][d][vo/gpu/opengl] [  7] out vec2 texcoord0;
[   0.182][d][vo/gpu/opengl] [  8] void main() {
[   0.182][d][vo/gpu/opengl] [  9] gl_Position = vec4(vertex_position, 1.0, 1.0);
[   0.182][d][vo/gpu/opengl] [ 10] texcoord0 = vertex_texcoord0;
[   0.182][d][vo/gpu/opengl] [ 11] }
[   0.182][d][vo/gpu/opengl] fragment shader source:
[   0.182][d][vo/gpu/opengl] [  1] #version 440
[   0.182][d][vo/gpu/opengl] [  2] #define tex1D texture
[   0.182][d][vo/gpu/opengl] [  3] #define tex3D texture
[   0.182][d][vo/gpu/opengl] [  4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
[   0.182][d][vo/gpu/opengl] [  5] out vec4 out_color;
[   0.182][d][vo/gpu/opengl] [  6] in vec2 texcoord0;
[   0.182][d][vo/gpu/opengl] [  7] layout(std140, binding=0) uniform UBO {
[   0.182][d][vo/gpu/opengl] [  8] layout(offset=0) mat3 colormatrix;
[   0.182][d][vo/gpu/opengl] [  9] layout(offset=48) vec3 colormatrix_c;
[   0.182][d][vo/gpu/opengl] [ 10] layout(offset=64) vec3 src_luma;
[   0.182][d][vo/gpu/opengl] [ 11] layout(offset=80) vec3 dst_luma;
[   0.182][d][vo/gpu/opengl] [ 12] layout(offset=96) vec2 texture_size0;
[   0.182][d][vo/gpu/opengl] [ 13] layout(offset=112) mat2 texture_rot0;
[   0.182][d][vo/gpu/opengl] [ 14] layout(offset=144) vec2 texture_off0;
[   0.182][d][vo/gpu/opengl] [ 15] layout(offset=152) vec2 pixel_size0;
[   0.182][d][vo/gpu/opengl] [ 16] };
[   0.182][d][vo/gpu/opengl] [ 17] uniform sampler2D texture0;
[   0.182][d][vo/gpu/opengl] [ 18] void main() {
[   0.182][d][vo/gpu/opengl] [ 19] vec4 color = vec4(0.0, 0.0, 0.0, 1.0);
[   0.182][d][vo/gpu/opengl] [ 20] color.rgba = 1.000000 * vec4(texture(texture0, texcoord0)).rgba;
[   0.182][d][vo/gpu/opengl] [ 21] color = color.bgra;
[   0.182][d][vo/gpu/opengl] [ 22] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;
[   0.182][d][vo/gpu/opengl] [ 23] color = vec4(color.rgb * color.a, color.a);
[   0.182][d][vo/gpu/opengl] [ 24] // color mapping
[   0.182][d][vo/gpu/opengl] [ 25] color.rgb *= vec3(1.000000);
[   0.182][d][vo/gpu/opengl] [ 26] color.rgb *= vec3(1.000000);
[   0.182][d][vo/gpu/opengl] [ 27] // transparency checkerboard
[   0.182][d][vo/gpu/opengl] [ 28] bvec2 tile = lessThan(fract(gl_FragCoord.xy * 1.0/32.0), vec2(0.5));
[   0.182][d][vo/gpu/opengl] [ 29] vec3 background = vec3(tile.x == tile.y ? 0.93 : 0.87);
[   0.182][d][vo/gpu/opengl] [ 30] color.rgb += background.rgb * (1.0 - color.a);
[   0.182][d][vo/gpu/opengl] [ 31] color.a = 1.0;
[   0.182][d][vo/gpu/opengl] [ 32] out_color = color;
[   0.182][d][vo/gpu/opengl] [ 33] }
[   0.183][d][vo/gpu/opengl] shader link log (status=1): 
[   0.185][v][cplayer] first video frame after restart shown
[   0.185][v][cplayer] playback restart complete @ 4.922000
[   0.185][v][vo/gpu/x11] Disabling screensaver.
[   0.185][w][mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
[   0.187][v][cplayer] EOF code: 1  
[   0.187][d][vd] Uninit decoder.
[   0.190][v][vf] dropping frame due to pin disconnect
[   0.191][d][cplayer] Terminating demuxers...
[   0.191][d][mpv_thumbnail_script_client_osc] osc_init 
[   0.191][d][cplayer] Done terminating demuxers.
[   0.191][v][cplayer] finished playback, success (reason 0)
[   0.191][i][cplayer] 
[   0.191][i][cplayer] Playing: /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.191][v][ifo_dvdnav] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.191][v][bdmv/bluray] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.191][v][file] Opening /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.191][e][file] Cannot open file '/tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra': No such file or directory
[   0.191][e][stream] Failed to open /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra.
[   0.191][v][cplayer] Opening failed or was aborted: /tmp/my_mpv_thumbnails/HorribleSubs_Fairy_Tail_-_01_720p-276569298/000000.bgra
[   0.191][v][cplayer] finished playback, loading failed (reason 4)
[   0.191][i][cplayer] 
[   0.191][i][cplayer] 
[   0.191][i][cplayer] Exiting... (Some errors happened)
[   0.191][d][stats] Exiting...
[   0.192][d][console] Exiting...
[   0.192][d][mpv_thumbnail_script_client_osc] Exiting...
[   0.194][d][mpv_thumbnail_script_server] Changing files, subprocess killed 
[   0.194][d][mpv_thumbnail_script_server] Exiting...
[   0.226][v][vo/gpu/x11] Enabling screensaver.
[   0.240][d][vo/gpu] flushing shader cache
[   0.241][d][vo/gpu/x11] uninit ...
ghost commented 4 years ago

can you post mpv.conf please

issadarkthing commented 4 years ago
#not needed, only here to overwrite repo installed file which enabled vaapi by default

##################
# other settings #
##################
osc=no
quiet=yes

##################
# audio settings #
##################
ao=pulse

############
# Profiles #
############
ghost commented 4 years ago

Does it work with other file types (standard mp4 or mkv) on your hard drive ? Is your temp folder in mpv_thumbnail_script.conf properly configured?

ghost commented 4 years ago

Cannot open file '/tmp/my_mpv_thumbnails/HorribleSubs_FairyTail-_01_720p-276569298/000000.bgra': No such file or directory Why is that happening

ghost commented 4 years ago

'--o=' '/tmp/my_mpv_thumbnails/HorribleSubs_FairyTail-_01_720p-276569298/000000.bgra'

??????

ghost commented 4 years ago

it seems something is messed up : how did that line got into your command line ? it should look like '--o=C:\Temp_mpv_thumbnails\Comdie - Shots Studios - Crazy Drug Lord Anwar Jibawi-48353242\000055.bgra' (i know this is PC syntax, but still the whole string is between two '

ghost commented 4 years ago

Check if you have properly replaced
"--o", output_path with "--o=" .. output_path

Copy and paste it, do not type it. exactly as committed in https://github.com/TheAMM/mpv_thumbnail_script/commit/682becf5b5115c2a206b4f0bdee413d4be8b5bef To be sure, replace the whole line.

issadarkthing commented 4 years ago

I have found the solution. I forgot to include .. in "--o=" .. output_path. I should've just copy paste instead of typing it. It works fine now