Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnailing command failed on Mac #37

Closed
ElhemEnohpi opened this issue Jun 21, 2019 · 6 comments
Closed

Thumbnailing command failed on Mac #37

ElhemEnohpi opened this issue Jun 21, 2019 · 6 comments

Comments

@ElhemEnohpi
Copy link

I installed the scripts, but I get the error message: "Thumbnailing failed, check console for details." The folder for the file's thumbnails is created, but there are no thumbnails or log files in it, even if I put "mpv_keep_logs=yes" in mpv_thumbnail_script.conf - I tried it on several files, some mkvs and an avi, none work. Using macOS 10.12.

mpv's main log file contains the following, let me know if you need more:

[   0.010][v][cplayer] mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
[   0.010][v][cplayer]  built on Fri Oct  5 00:01:23 CEST 2018
[   0.010][v][cplayer] ffmpeg library versions:
[   0.010][v][cplayer]    libavutil       56.14.100
[   0.010][v][cplayer]    libavcodec      58.18.100
[   0.010][v][cplayer]    libavformat     58.12.100
[   0.010][v][cplayer]    libswscale      5.1.100
[   0.010][v][cplayer]    libavfilter     7.16.100
[   0.010][v][cplayer]    libswresample   3.1.100
[   0.010][v][cplayer] ffmpeg version: 4.0.2
[   0.010][v][cplayer] 
[   0.010][v][cplayer] Configuration: waf configure --prefix=/Users/djinn/apps/homebrew/Cellar/mpv/0.29.1 --enable-html-build --enable-javascript --enable-libmpv-shared --enable-lua --confdir=/Users/djinn/apps/homebrew/etc/mpv --datadir=/Users/djinn/apps/homebrew/Cellar/mpv/0.29.1/share/mpv --mandir=/Users/djinn/apps/homebrew/Cellar/mpv/0.29.1/share/man --docdir=/Users/djinn/apps/homebrew/Cellar/mpv/0.29.1/share/doc/mpv --enable-zsh-comp --zshdir=/Users/djinn/apps/homebrew/Cellar/mpv/0.29.1/share/zsh/site-functions
[   0.010][v][cplayer] List of enabled features: 51deb apple-remote asm atomics bsd-fstatfs build-date cocoa coreaudio cplayer cplugins debug-build drmprime fchmod ffmpeg gl gl-cocoa glob glob-posix gnuc gpl iconv javascript jpeg lcms2 libaf libass libass-osd libav-any libavcodec libavdevice libdl libm libmpv-shared lua macos-cocoa-cb macos-touchbar optimize osx-thread-name plain-gl posix posix-or-mingw posix-spawn posix-spawn-native pthreads rubberband stdatomic videotoolbox-gl videotoolbox-hwaccel zlib zsh-comp
[   0.010][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.010][d][stats] Loading lua script @stats.lua...
[   0.011][d][ytdl_hook] loading mp.defaults
[   0.011][d][stats] loading mp.defaults
[   0.014][d][stats] loading @stats.lua

(...)

[   0.701][v][cplayer] first video frame after restart shown
[   0.702][d][cplayer] Run command: script-message, flags=0, args=[mpv_thumbnail_script-worker, mpv_thumbnail_script_server]
[   0.702][d][mpv_thumbnail_script_server] Announcing self to master... 
[   0.702][d][cplayer] Run command: script-message, flags=0, args=[mpv_thumbnail_script-worker, mpv_thumbnail_script_server]
[   0.702][d][cplayer] Run command: script-binding, flags=9, args=[mpv_thumbnail_script_client_osc/__keybinding2]
[   0.714][v][cplayer] starting audio playback
[   0.719][d][mpv_thumbnail_script_client_osc] Thumbnailer.state: {"finished_thumbnails" = 0, "is_remote" = false, "thumbnail_template" = "/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388/%06d.bgra", "thumbnail_directory" = "/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388", "thumbnail_delta" = 17.033386666667, "worker_extra" = {}, "available" = true, "thumbnail_count" = 150, "thumbnail_size" = {"w" = 200, "h" = 112}, "thumbnails" = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, "ready" = true} 
[   0.719][d][mpv_thumbnail_script_client_osc] Registered worker mpv_thumbnail_script_server 
[   0.720][v][cplayer] playback restart complete
[   0.721][d][cplayer] Run command: script-message-to, flags=0, args=[mpv_thumbnail_script_server, mpv_thumbnail_script-slaved]
[   0.721][d][mpv_thumbnail_script_server] Successfully registered with master 
[   0.736][v][cplayer] Change display sync audio drift: -1
[   0.738][d][mpv_thumbnail_script_client_osc] Splitting 150 thumbnails amongst 1 worker(s) 
[   0.739][d][mpv_thumbnail_script_client_osc] Giving workers state: {"enabled":true,"finished_thumbnails":0,"worker_input_path":"/Volumes/My Videos/The.Movie.Name.mkv","is_remote":false,"thumbnail_template":"/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388/%06d.bgra","thumbnail_directory":"/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388","thumbnail_delta":17.033387,"worker_extra":[],"available":true,"thumbnail_count":150,"thumbnail_size":{"w":200,"h":112},"thumbnails":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"ready":true} 
[   0.740][d][mpv_thumbnail_script_client_osc] Assigning job to mpv_thumbnail_script_server [1,65,129,33,97,17,49,81,113,145,9,25,41,57,73,89,105,121,137,5,13,21,29,37,45,53,61,69,77,85,93,101,109,117,125,133,141,149,3,7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150] 
[   0.757][d][cplayer] Run command: script-message-to, flags=0, args=[mpv_thumbnail_script_server, mpv_thumbnail_script-job, {"enabled":true,"finished_thumbnails":0,"worker_input_path":"/Volumes/My Videos/The.Movie.Name.mkv","is_remote":false,"thumbnail_template":"/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388/%06d.bgra","thumbnail_directory":"/Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388","thumbnail_delta":17.033387,"worker_extra":[],"available":true,"thumbnail_count":150,"thumbnail_size":{"w":200,"h":112},"thumbnails":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"ready":true}, [1,65,129,33,97,17,49,81,113,145,9,25,41,57,73,89,105,121,137,5,13,21,29,37,45,53,61,69,77,85,93,101,109,117,125,133,141,149,3,7,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150]]
[   0.760][d][mpv_thumbnail_script_server] Handling given job 
[   0.760][d][mpv_thumbnail_script_server] Generating 150 thumbnails @ 200x112 for "/Volumes/My Videos/The.Movie.Name.mkv" 
[   0.760][d][mpv_thumbnail_script_server] Starting work on thumbnail 0 
[   0.760][d][cplayer] Run command: script-message, flags=0, args=[mpv_thumbnail_script-progress, 1]
[   0.792][e][mpv_thumbnail_script_server] Thumbnailing command failed! 
[   0.792][e][mpv_thumbnail_script_server] mpv process error: init 
[   0.792][e][mpv_thumbnail_script_server] Process stdout:  
[   0.792][e][mpv_thumbnail_script_server] Debug log: /Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388/000000.bgra.log 
[   0.792][e][mpv_thumbnail_script_server] Output file missing! /Users/username/.config/mpv/mpv_thumbs_cache/The.Movie.Name-322085388/000000.bgra 
[   0.792][d][cplayer] Run command: show-text, flags=0, args=[Thumbnailing failed, check console for details, 3500, 0]
@TheAMM
Copy link
Owner

TheAMM commented Jun 22, 2019

Starting the subprocess itself seems to fail (ie. the process doesn't even get called). Likely because mpv is not in PATH, but it's possible it's something else maccy, which I have no experience with. Try adding mpv to PATH if it's not.

@ElhemEnohpi
Copy link
Author

Thanks, I solved it by creating a link from the mpv binary, which is inside the mpv.app bundle in /Applications/mpv.app/Contents/MacOS/mpv, to /usr/local/bin/mpv.

@TheAMM TheAMM closed this as completed Jul 9, 2019
@nvcken
Copy link

nvcken commented May 6, 2020

Hi @ElhemEnohpi
Is this case same with you ? Thumbnail not work on MacOS
or do you know what wrong with my setup & config ?

@ElhemEnohpi
Copy link
Author

@nvcken I don't know, I stopped using because of other issues.

@ac4man
Copy link

ac4man commented Jun 18, 2021

How do I link the /Applications/mpv.app/Contents/MacOS/mpv to /usr/local/bin/mpv?

@your-diary
Copy link

your-diary commented Sep 26, 2021

@ac4man

sudo ln -s /Applications/mpv.app/Contents/MacOS/mpv /usr/local/bin/mpv

(The suggested solution worked like a charm on my M1 mac.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants