Résolution d'un bug dans le conversion Matroska vers MPEG-4

This commit is contained in:
Antoine Van Elstraete 2022-07-07 19:38:22 +02:00
parent d82cb8a0b3
commit ddbf16504a
Signed by: AntoineVe
GPG Key ID: E36069A977E2A9ED

View File

@ -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)