mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 02:29:40 +00:00
temporally removed audio check
This commit is contained in:
parent
3c9c725db6
commit
22b3ea847f
1 changed files with 11 additions and 2 deletions
13
av1an.py
13
av1an.py
|
@ -160,8 +160,17 @@ def concatenate_video(input_video):
|
|||
for file in sorted(files):
|
||||
f.write(f"file '{join(root, file)}'\n")
|
||||
|
||||
concat = join(os.getcwd(), ".temp", "concat.txt")
|
||||
audio = join(os.getcwd(), ".temp", "audio.mkv")
|
||||
concat = join(here, ".temp", "concat.txt")
|
||||
'''
|
||||
# original video don't have audio
|
||||
if os.path.isfile(join(here, 'temp', 'audio.mkv')):
|
||||
print('Audio here')
|
||||
|
||||
else:
|
||||
print('No audio')
|
||||
audio = ''
|
||||
'''
|
||||
audio = f'-i {join(here, ".temp", "audio.mkv")}'
|
||||
output = f'{input_video.split(".")[0]}_av1.mkv'
|
||||
cmd = f'{FFMPEG} -f concat -safe 0 -i {concat} -i {audio} -c copy -y {output}'
|
||||
Popen(cmd, shell=True).wait()
|
||||
|
|
Loading…
Reference in a new issue