bwahahah
This commit is contained in:
parent
1d3908410b
commit
527ef1ef05
3 changed files with 41 additions and 0 deletions
9
video/combine.sh
Normal file
9
video/combine.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
ffmpeg \
|
||||||
|
-r 60000/1001 \
|
||||||
|
-i 'frames/dither-%04d.png' \
|
||||||
|
-i 'colamath-audio.wav' \
|
||||||
|
-ac 2 \
|
||||||
|
-ar 48000 \
|
||||||
|
-vf 'pad=w=534' \
|
||||||
|
-pix_fmt yuv420p \
|
||||||
|
-y colamath-dither.mp4
|
17
video/extract.sh
Normal file
17
video/extract.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
set -a
|
||||||
|
|
||||||
|
mkdir -p frames
|
||||||
|
|
||||||
|
ffmpeg \
|
||||||
|
-i colamath-dv.avi \
|
||||||
|
-vf 'yadif=1,scale=160:200,crop=h=160' \
|
||||||
|
-an \
|
||||||
|
-y 'frames/colamath-%04d.png'
|
||||||
|
|
||||||
|
ffmpeg \
|
||||||
|
-i colamath-dv.avi \
|
||||||
|
-vn \
|
||||||
|
-ac 1 \
|
||||||
|
-ar 15734 \
|
||||||
|
-acodec pcm_u8 \
|
||||||
|
-y 'colamath-audio.wav'
|
15
video/video.sh
Normal file
15
video/video.sh
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
|
for frame in frames/colamath-[0-9][0-9][0-9][0-9].png
|
||||||
|
do
|
||||||
|
n="${frame#frames/colamath-}"
|
||||||
|
n="${n%.png}"
|
||||||
|
out="frames/dither-${n}"
|
||||||
|
last="${n:0-1}"
|
||||||
|
node ../dither-image.js "$frame" "$out" &
|
||||||
|
if (( last == 9 ))
|
||||||
|
then
|
||||||
|
wait
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
wait
|
Loading…
Reference in a new issue