webm.py
webm.py copied to clipboard
interactive mode/mpv issue 0.33.0
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
--script has also changed, btw
---script=filename.lua
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]