mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-07 03:26:46 +08:00
Fix media convert
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
8ab6c9ca4b
commit
0a4b4785d0
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user