diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af67767 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +video-rickroll/frames diff --git a/dither-image.js b/dither-image.js index 94816d8..dd71da6 100644 --- a/dither-image.js +++ b/dither-image.js @@ -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); diff --git a/video-rickroll/extract.sh b/video-rickroll/extract.sh index 115bb1e..ed545ec 100644 --- a/video-rickroll/extract.sh +++ b/video-rickroll/extract.sh @@ -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 \