generate video pixel by pixel, programmatically
I'd like to generate an animation pixel by pixel programmatically. Preferably in Hi-Def, in Python or in Ruby. I thought about using PIL to make each frame and t开发者_Go百科hen convert the frames into video. Is there a better way to do this?
EDIT: Clarification, this is 2D and I need the pixels to be precise.
EDITEDIT:
Something like this:
frame = Frame()
frame.draw(0, 0, 'red')
frame.draw(0, 1, 'blue')
...
frame = Frame()
...
Would be awesome.
checkout VPython. Its pretty easy and can do what you are looking for.
rcairo - ruby bindings for Cairo image library.
https://github.com/rcairo/rcairo
You can use ffmpeg, passe to it a rowvideo (frames), and converte it to a compressed video format like mp4
精彩评论