Skip to content

Commit

Permalink
Add -dn option
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Sep 16, 2024
1 parent f1d2b20 commit ee492f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions auto_editor/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ def main_options(parser: ArgumentParser) -> ArgumentParser:
flag=True,
help="Disable the inclusion of subtitle streams in the output file",
)
parser.add_argument(
"-dn",
flag=True,
help="Disable the inclusion of data streams in the output file",
)
parser.add_argument(
"--extras",
metavar="CMD",
Expand Down
4 changes: 2 additions & 2 deletions auto_editor/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def mux_quality_media(
if s_tracks > 0:
cmd.extend(["-map", "0:t?"]) # Add input attachments to output.

# This was causing a crash for 'example.mp4 multi-track.mov'
# cmd.extend(["-map", "0:d?"])
if not args.dn:
cmd.extend(["-map", "0:d?"])

cmd.append(output_path)
ffmpeg.run_check_errors(cmd, log, path=output_path)
1 change: 1 addition & 0 deletions auto_editor/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ class Args:
scale: float = 1.0
extras: str | None = None
sn: bool = False
dn: bool = False
no_seek: bool = False
cut_out: list[tuple[str, str]] = field(default_factory=list)
add_in: list[tuple[str, str]] = field(default_factory=list)
Expand Down

0 comments on commit ee492f2

Please sign in to comment.