diff --git a/image_seq.sh b/image_seq.sh new file mode 100644 index 0000000..74be959 --- /dev/null +++ b/image_seq.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +INPUT="${1}" +OUTPUT="${2}" + +WIDTH=323 +HEIGHT=242 + +mkdir -p "${OUTPUT}" + +ffmpeg -re -i "${INPUT}" \ + -f image2 \ + -r 12 \ + -vf crop=in_h/3*4:in_h,scale=$WIDTH:$HEIGHT,setsar=1:1 \ + "${OUTPUT}/image_%06d.png" \ No newline at end of file