aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2024-01-13 13:32:15 +0100
committerGuillermo Ramos2024-01-13 13:32:18 +0100
commitedcefbc5f0aae055da1ea83223764e18b3ed4033 (patch)
tree1da51bd5f544c35f3e8e522fc2bcaf257d10155c
parent54666471881603c5359fe0998cccfe9542f58f3d (diff)
downloadcli-edcefbc5f0aae055da1ea83223764e18b3ed4033.tar.gz
vcrop fix
-rwxr-xr-xvcrop6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcrop b/vcrop
index 4703cbc..a6c2c9e 100755
--- a/vcrop
+++ b/vcrop
@@ -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";
}