init
This commit is contained in:
commit
eca5344c66
10 changed files with 445 additions and 0 deletions
18
video/convert.sh
Executable file
18
video/convert.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 480x360 base resolution
|
||||
# 42x32 is close enough
|
||||
# 40x32 is nicer to work with because divisible by 8
|
||||
|
||||
rm frames/*.png
|
||||
|
||||
ffmpeg -i *.webm \
|
||||
-r $1 \
|
||||
-ss 1 \
|
||||
-vf scale=40:32 \
|
||||
-sws_dither none \
|
||||
frames/frame_%04d.png 2> /dev/null
|
||||
# -pix_fmt monob \
|
||||
|
||||
echo converted with $1 fps
|
||||
echo $(ls -L1 frames | wc -l) frames
|
Loading…
Add table
Add a link
Reference in a new issue