wip
This commit is contained in:
parent
03972d23f3
commit
2c754703e1
3 changed files with 6 additions and 2 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
node_modules
|
||||||
|
video-rickroll/frames
|
|
@ -254,9 +254,11 @@ function colorize(input) {
|
||||||
let dist = diff.magnitude();
|
let dist = diff.magnitude();
|
||||||
nextError = diff;
|
nextError = diff;
|
||||||
shortest = dist;
|
shortest = dist;
|
||||||
|
//shortest = Math.min(shortest, dist);
|
||||||
|
|
||||||
output[x] = pick;
|
output[x] = pick;
|
||||||
distance += shortest;
|
distance += shortest;
|
||||||
|
//distance = shortest;
|
||||||
|
|
||||||
let share = (n) => nextError.multiply(n / 16);
|
let share = (n) => nextError.multiply(n / 16);
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@ set -a
|
||||||
mkdir -p frames
|
mkdir -p frames
|
||||||
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-i rickclip.mp4 \
|
-i rickroll.mp4 \
|
||||||
-vf 'scale=320:192,framerate=60000/1001' \
|
-vf 'scale=320:192,framerate=60000/1001' \
|
||||||
-an \
|
-an \
|
||||||
-y 'frames/rickroll-%04d.png'
|
-y 'frames/rickroll-%04d.png'
|
||||||
|
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-i rickclip.mp4 \
|
-i rickroll.mp4 \
|
||||||
-vn \
|
-vn \
|
||||||
-ac 1 \
|
-ac 1 \
|
||||||
-ar 15734 \
|
-ar 15734 \
|
||||||
|
|
Loading…
Reference in a new issue