15 lines
220 B
Bash
15 lines
220 B
Bash
|
#!/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"
|