X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=video%2Fff_catvideo;h=852a349f664d6499680481118cd4a14d2f765e1c;hb=839d02614cb05f0de3820bf8ecff7e67664a2678;hp=7abfbc39b8e7dc50861544f3264e67da0118c425;hpb=4acab94a54525726c673072ef140032c9b681b69;p=audio-cdr-video.git diff --git a/video/ff_catvideo b/video/ff_catvideo index 7abfbc3..852a349 100755 --- a/video/ff_catvideo +++ b/video/ff_catvideo @@ -1,8 +1,20 @@ #! /bin/sh -if [ -z "$1" ]; then - echo "Usage: $0 input.avi output.avi" +if [ -z "$2" ]; then + echo "Usage: $0 output.avi input1.avi [input2.avi...]" exit 1 fi -exec ffmpeg -i "$1" -c copy "$2" +output="$1" +shift + +i=1 +for input in "$@"; do + iii="`printf \"%03d\" $i`" + ffmpeg -i "$input" -qscale:v 1 _tmp_$iii.mpg + i="`expr $i + 1`" +done && + +cat _tmp_*.mpg >_tmp_all.mpg && +ffmpeg -i _tmp_all.mpg -qscale:v 2 "$output" && +exec rm _tmp_*.mpg