webm.py icon indicating copy to clipboard operation
webm.py copied to clipboard

interactive mode/mpv issue 0.33.0

Open hypyke opened this issue 3 years ago • 2 comments

Trying to use interactive mode yields:

==================================================
mpv --msg-level all=error --no-osc --script /tmp/tmpuldzo9rc.lua filename.mp4
==================================================
Error parsing commandline option msg-level: option requires parameter
Make sure you're using e.g. '--msg-level=value' instead of '--msg-level value'.
Exiting... (Fatal error)
Cannot proceed due to the following error: mpv exited with error

Version of MPV installed mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects

hypyke avatar Jan 14 '21 23:01 hypyke

--script has also changed, btw

---script=filename.lua

hypyke avatar Jan 14 '21 23:01 hypyke

this fixes the issue

diff --git a/webm.py b/webm.py
index f881370..0634ba9 100755
--- a/webm.py
+++ b/webm.py
@@ -701,7 +701,7 @@ def run_interactive_mode(options):

     # --osc conflicts with crop area dragging.
     # Possible to enable back with -po='--osc'
-    args = ['--msg-level', 'all=error', '--no-osc', '--script', luafile]
+    args = ['--msg-level=all=error', '--no-osc', '--script='+luafile]
     if options.po is not None:
         args += shlex.split(options.po)
     args += [options.infile]

pseregiet avatar Sep 09 '22 18:09 pseregiet