Uh oh!
There was an error while loading. Please reload this page.
Move config path to "script-opts" - #3
Conversation
elig0n
commented
Jul 16, 2021
Are the scripts working for you with mpv 0.33+ ? |
snowman
commented
Jul 19, 2021
yes, but i don't want to maintain two different options folder. |
elig0n
commented
Jul 19, 2021
I think this repo's maintainer is long unresponsive. Anyway I could not get Blackbox.js or other scripts from this repo even with your patch to run on the newer mpv. |
emm, I thought you were a maintainer, anyway, this is going to be off-topic. Try add following script into your // deprecated directorymp.module_paths.unshift("~~/scripts/modules.js");Below to reproduce:$ mpv --version
mpv 0.33.1-dirty Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
FFmpeg library versions:
libavutil 56.70.100
libavcodec 58.134.100
libavformat 58.76.100
libswscale 5.9.100
libavfilter 7.110.100
libswresample 3.9.100
FFmpeg version: n4.4
$ git clone https://github.com/VideoPlayerCode/mpv-tools /tmp/mpv-tools
$ cd /tmp/mpv-tools
$ cat <<EOF > .init.js// deprecated directorymp.module_paths.unshift("~~/scripts/modules.js");EOF
$ cat <<EOF > input.confctrl+b script-binding Blackboxctrl+f script-binding Blackbox_FavoritesEOF
$ ffmpeg -f lavfi -i testsrc=duration=10:size=1280x720:rate=30 sample.mp4
$ mpv --config-dir=. sample.mp4
// press "ctrl+b" open Blackbox menu |
elig0n
commented
Jul 20, 2021
That got it working for me again thanks! I didn't know ~/scripts/modules.js was deprecated. So what does the unshift do to that path ? |
ShounenArgha
commented
Jul 27, 2021
Is it a problem to keep script and script-opts... |
ShounenArgha
commented
Jul 27, 2021
And what is the updated fork that i can use?? |
First time trying to get MPV working with Colorbox. Downloaded your commits for new folder name (script-opts), and following VideoPlayerCode Install-Notes instructions here for renaming Colorbox.js to main.js etc. results in broken functionality of video tools. Following errors in log: [ 0.060][d][global] user path: '/Users/xxxx/.config/mpv/scripts/Colorbox/modules/Options.js' -> '/Users/xxxx/.config/mpv/scripts/Colorbox/modules/Options.js' Any ideas please? Thanks. |
Now mpv uses directory "script-opts/" as config path, which we should follow.