aboutsummaryrefslogtreecommitdiff
path: root/vcrop
diff options
context:
space:
mode:
Diffstat (limited to 'vcrop')
-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";
}