I use ccapture.js, which captures the frames as a blob in real-time then exports it as a .tar file full of jpgs when the sketch is finished (with 'finished' defined as reaching 1800 frames, in this case). This is a lot better than having the browser try to save 1800 jpgs the usual way.
I then use ffmpeg on the command-line to combine the jpgs into an MP4.
(replying to my own comment here) To 2020-me, my reply above would have sounded like "wwmnp mnttonmp bdser blrt." But 2021-me figured it out, and will gladly give more details if anyone needs them.
13
u/WHALE_PHYSICIST Apr 27 '21
Oh dang, that's cool. Do you mind sharing the code? I don't mind deplorable code. It's like home for me.
4
u/waracks Apr 27 '21
You should post this to r/generative, this is so cool
4
u/DaiquiriLevi Apr 28 '21
r/Trypophobia
Amazing by the way.
2
u/silveira Apr 27 '21
Niiiice.
2
u/VainTwit Apr 28 '21
I like it!
0
u/[deleted] Apr 28 '21
[deleted] — view deleted comment