Skip to content

Commit

Permalink
Fix media convert
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Dec 16, 2024
1 parent 8ab6c9c commit 0a4b478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/helper/ext_utils/media_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0a4b478

Please sign in to comment.