This commit is contained in:
Zen 2020-06-27 13:42:35 +03:00
parent 5e23d4e5df
commit a67ebc0f60
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,6 @@ from pathlib import Path
def arg_parsing():
"""Command line parsing"""
parser = argparse.ArgumentParser()
parser.add_argument('--mode', '-m', type=int, default=0, help='0 - local, 1 - master, 2 - encoder')
# Input/Output/Temp
parser.add_argument('--input', '-i', nargs='+', type=Path, help='Input File')
@ -26,7 +25,7 @@ def arg_parsing():
parser.add_argument('--reuse_first_pass', help='Reuse the first pass from aom_keyframes split on the chunks', action='store_true')
# Encoding
parser.add_argument('--passes', '-p', type=int, default=2, help='Specify encoding passes')
parser.add_argument('--passes', '-p', type=int, default=2, help='Specify encoding passes', choices=[1, 2])
parser.add_argument('--video_params', '-v', type=str, default=None, help='encoding settings')
parser.add_argument('--encoder', '-enc', type=str, default='aom', help='Choosing encoder',
choices=['aom', 'svt_av1', 'rav1e', 'vpx'])

View file

@ -29,6 +29,7 @@ def concatenate_video(temp, output, keep=False):
f'{audio} -c copy -y "{output}"'
concat = subprocess.run(cmd, shell=True, stdout=PIPE, stderr=STDOUT).stdout
if len(concat) > 0:
log(concat.decode())
raise Exception
# Delete temp folders