Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oddly enough, I've done something pretty similar, but using Python + PIL instead: 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



Another 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: