From edcefbc5f0aae055da1ea83223764e18b3ed4033 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Sat, 13 Jan 2024 13:32:15 +0100 Subject: vcrop fix --- vcrop | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vcrop') 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"; } -- cgit v1.2.3