Generate an image sequence that's cropped and scaled
This commit is contained in:
parent
67c71d683d
commit
d09782367b
|
@ -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"
|
Loading…
Reference in New Issue