Skip to content

Commit

Permalink
Support transcoding files without subtitle streams
Browse files Browse the repository at this point in the history
  • Loading branch information
wthueb committed Aug 12, 2023
1 parent d45a5b9 commit 9077d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wi1_bot/transcoder/transcoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _build_ffmpeg_command(
if item.copy_all_streams:
command.extend(["-map", "0"])
else:
command.extend(["-map", "0:v:0", "-map", "0:a:0", "-map", "0:s"])
command.extend(["-map", "0:v:0", "-map", "0:a:0", "-map", "0:s?"])

if item.video_codec:
command.extend(
Expand Down

0 comments on commit 9077d29

Please sign in to comment.