mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
audio check improvement
This commit is contained in:
parent
b5523c065b
commit
3942375830
1 changed files with 6 additions and 4 deletions
4
av1an.py
4
av1an.py
|
@ -383,10 +383,12 @@ class Av1an:
|
|||
f.write(f"file '{join(root, file)}'\n")
|
||||
|
||||
concat = join(self.here, ".temp", "concat.txt")
|
||||
|
||||
try:
|
||||
is_audio_here = os.path.getsize(join(self.here, ".temp", "audio_check.txt"))
|
||||
if is_audio_here:
|
||||
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:
|
||||
self.output_file = f'{input_video.split(".")[0]}_av1.mkv'
|
||||
|
|
Loading…
Reference in a new issue