3 ms·
Oddly enough, I've done something pretty similar, but using Python + PIL instead: https://github.com/notpushkin/glitzz https://github.com/notpushkin/glitzz Two
by notpushkin 4y ago
Oddly enough, I've done something pretty similar, but using Python + PIL instead: https://github.com/notpushkin/glitzz https://github.com/notpushkin/glitzz
Two improvements you can borrow:
1. FFmpeg can read frames from HTTP URL, which you can (ab)use to generate frames on the fly without hitting the disk
2. If you do that, you can also switch from PNG to BMP, since CPU is now your bottleneck
- brianshaler 4y agoAnother way to do it on the fly is to feed image data into stdin of ffmpeg. I haven't tried with BMP with that method, so the intermediary encoding might not be spared.