From 7a10313ca47d593bc3ad0b049a1cc9e1f8e81537 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 29 Jan 2021 00:43:04 -0800 Subject: [PATCH] Fix autocat not copying multiple audios. --- autocat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocat.py b/autocat.py index d90bc71..a57f9b6 100644 --- a/autocat.py +++ b/autocat.py @@ -17,7 +17,7 @@ cat_file = tempfile.TemporaryFile('w', encoding='utf-8', delete=False) cat_file.write(cat_text) 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.remove(cat_file.name)