[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Making videos



Will McGugan wrote:
> Hi,
> 
> Does anyone have a solution for recording video of a PyGame app? I've
> tried Fraps, but that doesn't seem to work.

For video only (no audio) the best solution I've found is to put
(after you render each frame) something like:

    pygame.image.save(self.screen, 'test-%04d.tga'%self.i)
    self.i += 1

Note that this will kill your framerate, so if you've decoupled your
visual update from your game logic update, this may be a problem. :)

EThan

Attachment: signature.asc
Description: OpenPGP digital signature