Skip to content

Commit

Permalink
update custdl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xAmarnath committed May 4, 2024
1 parent 5206b03 commit afd1f73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/custdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def generate_ffmpeg_command(mp4_file_path, subs):
ffmpeg_command.extend(['-map', '0:v', '-map', '0:a'])

for i in range(len(subs)):
ffmpeg_command.extend(['-map', f'{i + 1}:s:0'])
ffmpeg_command.extend(['-map', f'{i + 1}:s:0', '-scodec', 'mov_text'])
# ffmpeg_command.extend(['-map', f'{i + 1}:s:0'])
ffmpeg_command.extend(['-c', 'copy'])
ffmpeg_command.append(output_file_path)

Expand Down

0 comments on commit afd1f73

Please sign in to comment.