Error parsing commandline option script: option requeires parameter
balazs4 opened this issue · comments
I got error when I execute the following command:
mpv --script /usr/lib/mpv/mpris.so music.mp3
Error parsing commandline option script: option requires parameter
Exiting... (Fatal error)
mpv-mpris version: 0.4-1 installed from AUR
$ mpv -v
[cplayer] Command line options: '-v'
[cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer] built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer] libavutil 56.31.100
[cplayer] libavcodec 58.54.100
[cplayer] libavformat 58.29.100
[cplayer] libswscale 5.5.100
[cplayer] libavfilter 7.57.100
[cplayer] libswresample 3.5.100
[cplayer] ffmpeg version: n4.2.2
[cplayer]
[cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --confdir=/etc/mpv --enable-cdda --enable-dvb --enable-dvdnav --enable-libarchive --enable-libmpv-shared --enable-libsmbclient --disable-build-date
[cplayer] List of enabled features: 52arch aligned_alloc alsa asm atomics caca 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 libmpv-shared libplacebo librt libsmbclient linux-fstatfs lua memfd_create optimize oss-audio plain-gl 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
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /home/balazs4/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'osd-bar' = 'no' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] mpv 0.32.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
[cplayer] built on UNKNOWN
[cplayer] ffmpeg library versions:
[cplayer] libavutil 56.31.100
[cplayer] libavcodec 58.54.100
[cplayer] libavformat 58.29.100
[cplayer] libswscale 5.5.100
[cplayer] libavfilter 7.57.100
[cplayer] libswresample 3.5.100
[cplayer] ffmpeg version: n4.2.2
[cplayer]
[cplayer] Usage: mpv [options] [url|path/]filename
[cplayer]
[cplayer] Basic options:
[cplayer] --start=<time> seek to given (percent, seconds, or hh:mm:ss) position
[cplayer] --no-audio do not play sound
[cplayer] --no-video do not play video
[cplayer] --fs fullscreen playback
[cplayer] --sub-file=<file> specify subtitle file to use
[cplayer] --playlist=<file> specify playlist file
[cplayer]
[cplayer] --list-options list all mpv options
[cplayer] --h=<string> print options which contain the given string in their name
[cplayer]
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
please let me know if you need more details. thanks!
Can you retry with the following?
mpv --script=/usr/lib/mpv/mpris.so music.mp3
The old option syntax is not supported anymore in mpv 0.32.0
(as shown on the manpage).
yeah, that was the problem.
mpv --script=/usr/lib/mpv/mpris.so music.mp3
works like expected ✔️
thanks!
Great! I've updated the the README