diff options
author | Guillermo Ramos | 2024-01-13 13:32:15 +0100 |
---|---|---|
committer | Guillermo Ramos | 2024-01-13 13:32:18 +0100 |
commit | edcefbc5f0aae055da1ea83223764e18b3ed4033 (patch) | |
tree | 1da51bd5f544c35f3e8e522fc2bcaf257d10155c | |
parent | 54666471881603c5359fe0998cccfe9542f58f3d (diff) | |
download | cli-edcefbc5f0aae055da1ea83223764e18b3ed4033.tar.gz |
vcrop fix
-rwxr-xr-x | vcrop | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,11 +22,11 @@ sub crop($file, $crop) { my $to_suffix = defined $to ? "_$to" : ""; my $cropfile = "${file_noext}_${from}${to_suffix}$file_ext"; if (defined $to && defined $plus) { - `ffmpeg -loglevel error -i "$file" -ss "$from" -t "${to}s" -c:v copy -c:a copy "$cropfile"` + `ffmpeg -loglevel error -i "$file" -ss "$from" -t "${to}s" -c:v copy -c:a copy -- "$cropfile"` } elsif (defined $to) { - `ffmpeg -loglevel error -i "$file" -ss "$from" -to "$to" -c:v copy -c:a copy "$cropfile"` + `ffmpeg -loglevel error -i "$file" -ss "$from" -to "$to" -c:v copy -c:a copy -- "$cropfile"` } else { - `ffmpeg -loglevel error -i "$file" -ss "$from" -t 15s -c:v copy -c:a copy "$cropfile"` + `ffmpeg -loglevel error -i "$file" -ss "$from" -t 20s -c:v copy -c:a copy -- "$cropfile"` } print "Cropped to '$cropfile'\n"; } |