Add Avisynth video encoding workflow
This commit is contained in:
+3
-7
@@ -10,12 +10,11 @@ If more than one file is provided or found, only the first file is shown.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from tools.console import pause_if_interactive
|
||||
from tools.exiftool import require_exiftool
|
||||
from tools.exiftool import require_exiftool, run_exiftool_command
|
||||
from tools.filesystem import first_file_from_path
|
||||
|
||||
|
||||
@@ -44,18 +43,15 @@ def run(argv: list[str]) -> int:
|
||||
return 1
|
||||
|
||||
print(f"Showing metadata for: {file_path}\n", flush=True)
|
||||
command = [
|
||||
exiftool,
|
||||
args = [
|
||||
"-a",
|
||||
"-u",
|
||||
"-ee",
|
||||
"-G0:1",
|
||||
"-s",
|
||||
"-charset",
|
||||
"filename=UTF8",
|
||||
str(file_path),
|
||||
]
|
||||
return subprocess.run(command).returncode
|
||||
return run_exiftool_command(exiftool, args).returncode
|
||||
|
||||
|
||||
def main(argv: list[str]) -> int:
|
||||
|
||||
Reference in New Issue
Block a user