audio check improvement

This commit is contained in:
Zen 2020-02-01 19:44:11 +02:00
parent b5523c065b
commit 3942375830

View file

@ -383,10 +383,12 @@ class Av1an:
f.write(f"file '{join(root, file)}'\n") f.write(f"file '{join(root, file)}'\n")
concat = join(self.here, ".temp", "concat.txt") concat = join(self.here, ".temp", "concat.txt")
try:
is_audio_here = os.path.getsize(join(self.here, ".temp", "audio_check.txt")) is_audio_here = os.path.getsize(join(self.here, ".temp", "audio_check.txt"))
if is_audio_here: if is_audio_here:
self.audio = f'-i {join(self.here, ".temp", "audio.mkv")} -c copy' self.audio = f'-i {join(self.here, ".temp", "audio.mkv")} -c copy'
except FileNotFoundError:
print('Error at point of ')
if self.output_file == self.args.output_file: if self.output_file == self.args.output_file:
self.output_file = f'{input_video.split(".")[0]}_av1.mkv' self.output_file = f'{input_video.split(".")[0]}_av1.mkv'