This commit is contained in:
Brooke Vibber 2024-08-30 19:10:57 -07:00
parent 03972d23f3
commit 2c754703e1
3 changed files with 6 additions and 2 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
node_modules
video-rickroll/frames

View file

@ -254,9 +254,11 @@ function colorize(input) {
let dist = diff.magnitude();
nextError = diff;
shortest = dist;
//shortest = Math.min(shortest, dist);
output[x] = pick;
distance += shortest;
//distance = shortest;
let share = (n) => nextError.multiply(n / 16);

View file

@ -3,13 +3,13 @@ set -a
mkdir -p frames
ffmpeg \
-i rickclip.mp4 \
-i rickroll.mp4 \
-vf 'scale=320:192,framerate=60000/1001' \
-an \
-y 'frames/rickroll-%04d.png'
ffmpeg \
-i rickclip.mp4 \
-i rickroll.mp4 \
-vn \
-ac 1 \
-ar 15734 \