X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=video%2Fff_cropdetect;h=97032980cf2bdca5753343b12610820ca3c2c3d4;hb=HEAD;hp=59a2c40ad882a133a4f16de7de1300548e5244f8;hpb=2bb1f569c7a50d3965cd054b7587e9b04e3ad72b;p=audio-cdr-video.git diff --git a/video/ff_cropdetect b/video/ff_cropdetect index 59a2c40..9703298 100755 --- a/video/ff_cropdetect +++ b/video/ff_cropdetect @@ -1,8 +1,14 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: $0 input.avi" + echo "Usage: $0 input1 [input2...]" exit 1 fi -exec ffmpeg -i "$1" -vf cropdetect -an -f rawvideo -y /dev/null +if [ $# -eq 1 ]; then + input="$1" +else + input=concat:"`echo \"$@\" | sed 's/ /|/g'`" +fi + +exec ffmpeg -i "$input" -vf cropdetect -an -f rawvideo -y /dev/null