Skip to content

Commit

Permalink
Update static_ffmpeg command with -y flag for overwrite confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Aug 2, 2024
1 parent 8d95ac7 commit a58f1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zcmds/cmds/common/vid2mp3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run(
assert out_path.endswith(".mp3") or (wave and out_path.endswith(".wav"))
else:
out_path = str(Path(filename).with_suffix(".wav" if wave else ".mp3"))
cmd = f'static_ffmpeg -hide_banner -i "{filename}"'
cmd = f'static_ffmpeg -y -hide_banner -i "{filename}"'
if start:
cmd += f" -ss {start}"
if end:
Expand Down

0 comments on commit a58f1d3

Please sign in to comment.