Skip to content

Commit

Permalink
More cropping tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Sep 12, 2024
1 parent dcd33aa commit 4b364fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions twitchdl/commands/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,17 @@ def append(*vars: Any):
append("ffmpeg")
append("-i", playlist_path)

# Cropping is done before metadata becuase it caused issues for some people:
# https://github.com/ihabunek/twitch-dl/issues/166
# Cropping start is done before metadata, cropping duration after metadata.
# See: https://github.com/ihabunek/twitch-dl/issues/166
if crop_start:
append("-ss", utils.format_time(crop_start))

if crop_duration:
append("-t", utils.format_time(crop_duration))

append("-i", metadata_path)
append("-map_metadata", 1)

if crop_duration:
append("-t", utils.format_time(crop_duration))

append("-c", "copy")
append("-stats")
append("-loglevel", "warning")
Expand Down

0 comments on commit 4b364fd

Please sign in to comment.