]> git.phdru.name Git - audio-cdr-video.git/blobdiff - video/ff_cropdetect
Pass output as a parameter; allow to pass many input files
[audio-cdr-video.git] / video / ff_cropdetect
index 59a2c40ad882a133a4f16de7de1300548e5244f8..97032980cf2bdca5753343b12610820ca3c2c3d4 100755 (executable)
@@ -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