When trying to auto-edit a 3 minute video, and export to premiere it works fine.
But when adding name="Your name here" to the command it gives an error: Error! variable `Your` not found. Did you mean a string literal.. I am using powershell.
Here is the command I tried:
PS C:\Users\[...]> auto-editor example.mp4 --export 'premiere:name="Your name here"'
Error! variable `Your` not found. Did you mean a string literal.
with --debug option enabled:
PS C:\Users\[...]> auto-editor example.mp4 --export 'premiere:name="Your name here"' --debug
Debug: Temp Directory: C:\Users\biers\AppData\Local\Temp\tmppm5blt90
Debug: Removed Temp Directory.
Traceback (most recent call last):
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\utils\cmdkw.py", line 107, in go
results = interpret(env, Parser(Lexer(build.name, text)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\lang\palet.py", line 1851, in interpret
result.append(my_eval(env, parser.expr()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\lang\palet.py", line 1555, in my_eval
raise MyError(
auto_editor.lib.err.MyError: variable `Your` not found. Did you mean a string literal.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\biers\scoop\apps\python\current\Scripts\auto-editor.exe\__main__.py", line 7, in <module>
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\__main__.py", line 332, in main
edit_media(paths, ffmpeg, args, temp, log)
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\edit.py", line 189, in edit_media
output, export = set_output(args.output_file, args.export, src, log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\edit.py", line 44, in set_output
export = parse_export(_export, log)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\edit.py", line 147, in parse_export
log.error(e)
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\utils\log.py", line 65, in error
raise message
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\edit.py", line 143, in parse_export
_tmp = parse_with_palet(text, parsing[name], {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\utils\cmdkw.py", line 145, in parse_with_palet
kwargs[_norm_name(attr.n)] = go(val, attr.contract)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\biers\scoop\apps\python\current\Lib\site-packages\auto_editor\utils\cmdkw.py", line 109, in go
raise ParserError(e)
auto_editor.utils.cmdkw.ParserError: variable `Your` not found. Did you mean a string literal.
Bug description
When trying to auto-edit a 3 minute video, and export to premiere it works fine. But when adding
name="Your name here"
to the command it gives an error:Error! variable `Your` not found. Did you mean a string literal.
. I am using powershell.Here is the command I tried:
with
--debug
option enabled:What's your platform?
What command did you use
What properties does your input video have?
auto-editor info .\example.mp4
ffmpeg -hide_banner -i example.mp4
Comments
I suspect it has something to do with parsing. Also the video was downloaded using streamlink piped to ffmpeg