From ddbf16504a628737b0e9950856c20140be5b1594 Mon Sep 17 00:00:00 2001 From: Antoine Van Elstraete Date: Thu, 7 Jul 2022 19:38:22 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9solution=20d'un=20bug=20dans=20le=20conv?= =?UTF-8?q?ersion=20Matroska=20vers=20MPEG-4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vid_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vid_convert.py b/vid_convert.py index 1ea1156..0af7f07 100755 --- a/vid_convert.py +++ b/vid_convert.py @@ -273,8 +273,8 @@ def create_mkv(filename): def mkv_to_mp4(filename): - options = "-c:a copy -c:v copy -c:s copy -movflags faststart" - command = f"ffmpeg -loglevel error -i {filename}_FINAL.mkv {options} -y NEW_{filename}.mp4" + options = "-map 0 -c:a copy -c:v copy -c:s copy -movflags faststart" + command = f"ffmpeg -loglevel error -i {filename}_FINAL.mkv {options} -y NEW_{filename[:-4]}.mp4" result = subprocess.getoutput(command) if result != "": logging.error(result)