4
4
2
2
0
Apr 28 '21
[deleted]
2
u/BennyPendentes Apr 28 '21
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.
1
u/BennyPendentes Apr 29 '21
(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.
2
u/RealLifeHumanPoop Apr 28 '21
not op, but save each frame and use video editing software to make it a gif or video
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.