Fix media convert

Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
anasty17 2024-12-16 09:41:55 +02:00
parent 8ab6c9ca4b
commit 0a4b4785d0
No known key found for this signature in database
GPG Key ID: EAAC8A2DF2861DE4

View File

@ -32,11 +32,11 @@ async def convert_video(listener, video_file, ext, retry=False):
output,
]
if ext == "mp4":
cmd[7:7] = ["-c:s", "mov_text", "-f", "mp4"]
cmd[10:10] = ["-c:s", "mov_text"]
elif ext == "mkv":
cmd[7:7] = ["-c:s", "ass"]
cmd[10:10] = ["-c:s", "ass"]
else:
cmd[7:7] = ["-c:s", "copy"]
cmd[10:10] = ["-c:s", "copy"]
else:
cmd = [
"ffmpeg",