Fix autocat not copying multiple audios.

This commit is contained in:
voussoir 2021-01-29 00:43:04 -08:00
parent 6683ae110e
commit 7a10313ca4
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -17,7 +17,7 @@ cat_file = tempfile.TemporaryFile('w', encoding='utf-8', delete=False)
cat_file.write(cat_text) cat_file.write(cat_text)
cat_file.close() cat_file.close()
cmd = f'ffmpeg -f concat -safe 0 -i {cat_file.name} -c copy "{output_filename}"' cmd = f'ffmpeg -f concat -safe 0 -i {cat_file.name} -map 0:v? -map 0:a? -map 0:s? -c copy "{output_filename}"'
os.system(cmd) os.system(cmd)
os.remove(cat_file.name) os.remove(cat_file.name)