X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=video%2Fff_encode;h=c265ecde07a98f07c4ddbc6b2cd937ea588200ac;hb=4bbd85cc7f5986417f7b9b866d075de33a4be0f4;hp=befff9db4fac7554034ae54982a5eca0d3765984;hpb=7613b0295eb74910ca642b8ef030cb48bda61d17;p=audio-cdr-video.git diff --git a/video/ff_encode b/video/ff_encode index befff9d..c265ecd 100755 --- a/video/ff_encode +++ b/video/ff_encode @@ -1,7 +1,7 @@ #! /bin/sh if [ -z "$1" ]; then - echo "Usage: [vcodec=s] [vbitrate=n] [vscale=s] [acodec=s] [abitrate=n] [ascale=s] [pass=n] [input_opts=input_opts] [output_opts=output_opts] $0 input [output]" + echo "Usage: [vcodec=s] [vbitrate=n] [vscale=s] [acodec=s] [abitrate=n] [ascale=s] [pass=n] [input_opts=input_opts] [output_opts=output_opts] [output=output.avi] $0 input1 [input2...]" exit 1 fi @@ -29,13 +29,13 @@ if [ -z "$pass" ]; then pass=1 fi -input="$1" -shift - -if [ -n "$1" ]; then - output="$1" - shift +if [ $# -eq 1 ]; then + input="$1" else + input=concat:"`echo \"$@\" | sed 's/ /|/g'`" +fi + +if [ -z "$output" ]; then output=output.avi fi