Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed May 9, 2024
1 parent 606ed98 commit a5fff11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions auto_editor/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,14 @@ def make_media(tl: v3, output: str) -> None:

log.conwrite("Writing output file")

making_subs = ctr.allow_subtitle and not args.sn
number_subs = 0 if tl.v1 is None else len(tl.v1.source.subtitles)
making_subs = number_subs > 0 and ctr.allow_subtitle and not args.sn
old_out = os.path.join(temp, f"oldout.{out_ext}")
mux_quality_media(
ffmpeg,
visual_output,
audio_output,
0 if tl.v1 is None else len(tl.v1.source.subtitles),
number_subs,
apply_later,
ctr,
old_out if making_subs else output,
Expand Down

0 comments on commit a5fff11

Please sign in to comment.