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

thumbails dont work network #101

Open rodrigo-sys opened 2 years ago

rodrigo-sys commented 2 years ago

"thumbnailing, failed check console for details"

mpv console:

[mpv_thumbnail_script_server] Thumbnailing command failed!

[mpv_thumbnail_script_server] mpv process error: nil

[mpv_thumbnail_script_server] Process stdout:

[mpv_thumbnail_script_server] Debug log: /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/000000.bgra.log

[mpv_thumbnail_script_server] Output file missing! /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/000000.bgra

log file:

[   0.013][v][cplayer] mpv 0.34.1-dirty Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects

[   0.013][v][cplayer]  built on UNKNOWN

[   0.013][v][cplayer] FFmpeg library versions:

[   0.013][v][cplayer]    libavutil       57.17.100 (runtime 57.28.100)

[   0.013][v][cplayer]    libavcodec      59.18.100 (runtime 59.37.100)

[   0.013][v][cplayer]    libavformat     59.16.100 (runtime 59.27.100)

[   0.013][v][cplayer]    libswscale      6.4.100 (runtime 6.7.100)

[   0.013][v][cplayer]    libavfilter     8.24.100 (runtime 8.44.100)

[   0.013][v][cplayer]    libswresample   4.3.100 (runtime 4.7.100)

[   0.013][v][cplayer] FFmpeg version: n5.1.1

[   0.013][v][cplayer] 

[   0.013][v][cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --disable-build-date --disable-caca

[   0.013][v][cplayer] List of enabled features: alsa asm cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffmpeg-aviocontext-bytes-read ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua luajit memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland-protocols x11 xv zimg zlib

[   0.013][v][cplayer] Command line options: '--msg-level=all=no' '--no-ytdl' '--user-agent=libmpv' '--referrer=' '--hwdec=no' '--log-file=/home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/000000.bgra.log' '--playlist=/home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt' '--start=7.5' '--frames=1' '--hr-seek=yes' '--no-audio' '--vf=scale=350:196' '--vf-add=format=bgra' '--of=rawvideo' '--ovc=rawvideo' '--o' '/home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/000000.bgra'

[   0.013][v][cplayer] mpv 0.34.1-dirty Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects

[   0.013][v][cplayer]  built on UNKNOWN

[   0.013][v][cplayer] FFmpeg library versions:

[   0.013][v][cplayer]    libavutil       57.17.100 (runtime 57.28.100)

[   0.013][v][cplayer]    libavcodec      59.18.100 (runtime 59.37.100)

[   0.013][v][cplayer]    libavformat     59.16.100 (runtime 59.27.100)

[   0.013][v][cplayer]    libswscale      6.4.100 (runtime 6.7.100)

[   0.013][v][cplayer]    libavfilter     8.24.100 (runtime 8.44.100)

[   0.013][v][cplayer]    libswresample   4.3.100 (runtime 4.7.100)

[   0.013][v][cplayer] FFmpeg version: n5.1.1

[   0.013][v][cplayer] 

[   0.013][v][cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --disable-build-date --disable-caca

[   0.013][v][cplayer] List of enabled features: alsa asm cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffmpeg-aviocontext-bytes-read ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua luajit memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland-protocols x11 xv zimg zlib

[   0.013][d][global] config path: '' -> '/home/juan/.config/mpv'

[   0.013][d][global] user path: '~~home/' -> '/home/juan/.config/mpv'

[   0.013][d][global] user path: '~~old_home/' -> '/home/juan/.mpv'

[   0.013][d][global] config path: 'encoding-profiles.conf' -/-> '/home/juan/.config/mpv/encoding-profiles.conf'

[   0.013][d][global] config path: 'encoding-profiles.conf' -/-> '/home/juan/.mpv/encoding-profiles.conf'

[   0.013][d][global] config path: 'encoding-profiles.conf' -> '/etc/mpv/encoding-profiles.conf'

[   0.013][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf

[   0.016][v][cplayer] Applying profile 'default'...

[   0.016][d][global] config path: 'mpv.conf' -> '/home/juan/.config/mpv/mpv.conf'

[   0.016][d][global] config path: 'config' -/-> '/home/juan/.config/mpv/config'

[   0.016][d][global] config path: 'mpv.conf' -/-> '/home/juan/.mpv/mpv.conf'

[   0.016][d][global] config path: 'config' -/-> '/home/juan/.mpv/config'

[   0.016][d][global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf'

[   0.016][d][global] config path: 'config' -/-> '/etc/mpv/config'

[   0.016][v][cplayer] Reading config file /home/juan/.config/mpv/mpv.conf

[   0.016][v][cplayer] Applying profile 'default'...

[   0.016][v][cplayer] Setting option 'vo' = 'xv' (flags = 4)

[   0.016][v][cplayer] Setting option 'sws-fast' = 'yes' (flags = 4)

[   0.016][v][cplayer] Setting option 'hwdec' = 'vaapi' (flags = 4)

[   0.016][v][cplayer] Setting option 'osc' = 'no' (flags = 4)

[   0.016][v][cplayer] Setting option 'slang' = 'eng,esp,spa' (flags = 4)

[   0.016][v][cplayer] Setting option 'alang' = 'eng,esp,spa' (flags = 4)

[   0.016][v][cplayer] Setting option 'volume-max' = '150' (flags = 4)

[   0.016][v][cplayer] Setting option 'save-position-on-quit' = '' (flags = 4)

[   0.016][v][cplayer] Setting option 'fs' = 'yes' (flags = 4)

[   0.016][v][cplayer] Setting option 'screenshot-directory' = '~/Pictures/mpv-screnshots' (flags = 4)

[   0.016][v][cplayer] Setting option 'screenshot-template' = '%F/%{media-title}-%P' (flags = 4)

[   0.016][v][cplayer] Setting option 'ytdl-format' = 'b[height<=?720]+bestaudio/best' (flags = 4)

[   0.016][v][cplayer] Setting option 'ytdl-raw-options' = 'write-auto-sub=,sub-lang=[en,es]' (flags = 4)

[   0.016][v][cplayer] Setting option 'script-opts' = 'ytdl_hook-ytdl_path=yt-dlp' (flags = 4)

[   0.016][v][cplayer] Setting option 'msg-level' = 'all=no' (flags = 8)

[   0.016][v][cplayer] Setting option 'ytdl' = 'no' (flags = 8)

[   0.016][v][cplayer] Setting option 'user-agent' = 'libmpv' (flags = 8)

[   0.016][v][cplayer] Setting option 'referrer' = '' (flags = 8)

[   0.016][v][cplayer] Setting option 'hwdec' = 'no' (flags = 8)

[   0.016][v][cplayer] Setting option 'log-file' = '/home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/000000.bgra.log' (flags = 8)

[   0.016][v][cplayer] Setting option 'playlist' = '/home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt' (flags = 8)

[   0.016][v][playlist_parser] Parsing playlist file /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt...

[   0.016][v][ifo_dvdnav] Opening /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt

[   0.016][v][bdmv/bluray] Opening /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt

[   0.016][v][file] Opening /home/juan/.config/mpv/mpv_thumbnails/watchvmCAKP78Cxm8-0/playlist.txt

[   0.016][d][file] resize stream to 131072 bytes, drop 0 bytes

[   0.017][d][file] Stream opened successfully.

[   0.017][v][demux] Trying demuxers for level=request.

[   0.017][d][demux] Trying demuxer: playlist (force-level: request)

[   0.017][w][playlist] Reading plaintext playlist.

[   0.017][v][playlist] demuxer read all data; closing stream

[   0.017][v][demux] Detected file format: txt (Playlist file)

[   0.017][v][playlist_parser] Playlist successfully parsed

[   0.017][v][cplayer] Setting option 'start' = '7.5' (flags = 8)

[   0.017][v][cplayer] Setting option 'frames' = '1' (flags = 8)

[   0.017][v][cplayer] Setting option 'hr-seek' = 'yes' (flags = 8)

[   0.017][v][cplayer] Setting option 'audio' = 'no' (flags = 8)

[   0.017][v][cplayer] Setting option 'vf' = 'scale=350:196' (flags = 8)

[   0.017][v][cplayer] Setting option 'vf-add' = 'format=bgra' (flags = 8)

[   0.017][v][cplayer] Setting option 'of' = 'rawvideo' (flags = 8)

[   0.017][v][cplayer] Setting option 'ovc' = 'rawvideo' (flags = 8)

[   0.018][f][cplayer] Error parsing commandline option o: option requires parameter

mpv_thumbnail_script.conf:

cache_directory=/home/juan/.config/mpv/mpv_thumbnails

autogenerate_max_duration=0

prefer_mpv=no

thumbnail_width=350

thumbnail_height=350

thumbnail_count=150

min_delta=5

max_delta=90

thumbnail_network=yes

remote_thumbnail_count=60

remote_min_delta=15

remote_max_delta=120
alopatindev commented 1 year ago
--- mpv_thumbnail_script_server.lua.orig  2023-07-22 01:42:57.871211720 +0800
+++ mpv_thumbnail_script_server.lua     2023-07-22 01:37:37.238213677 +0800
@@ -522,7 +522,7 @@
         "--vf-add=format=bgra",
         "--of=rawvideo",
         "--ovc=rawvideo",
-        "--o", output_path
+        "--o=" .. output_path
     })
     return utils.subprocess({args=mpv_command})
 end

fixes Error parsing commandline option o: option requires parameter for me