Skip to content

Commit

Permalink
process-video: skip unsupported subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Nov 18, 2024
1 parent ab82f73 commit 4307e63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xklb/mediafiles/process_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def process_path(args, path, **kwargs):
is_split = False

if subtitle_stream:
ff_opts.extend(["-map", "0:s", "-c:s", "copy"]) # ,'-map','0:t?'
ff_opts.extend(["-map", "0:s"]) # timecode ,'-map','0:t?'

output_path.parent.mkdir(exist_ok=True, parents=True)
if path.parent != output_path.parent:
Expand All @@ -282,6 +282,8 @@ def process_path(args, path, **kwargs):
*ff_opts,
"-map_metadata",
"0",
"-map_chapters",
"0",
"-dn",
"-max_interleave_delta",
"0",
Expand Down

0 comments on commit 4307e63

Please sign in to comment.