pygame: output to file?

superpollo superpollo at tznvy.pbz
Mon Apr 16 09:04:31 EDT 2012


superpollo ha scritto:
> alex23 ha scritto:
>> On Apr 16, 7:34 pm, superpollo <superpo... at tznvy.pbz> wrote:
>>> is there a way to convert the graphical output of a pygame application
>>> to a mpeg file or better an animated gif? i mean, not using an external
>>> capture program...
>>
>> There is, but it's probably not going to be as performant as using
>> something external:
>>
>> http://stackoverflow.com/questions/6087484/how-to-capture-pygame-screen
> 
> but where in the code should i put the line:
> 
> pygame.image.save(window, "screenshot.jpeg")

i mean, if i would want to capture ALL the frames in a video file...

i ask this becase this line captures just one frame and overwrites over 
the successive ones...

bye



More information about the Python-list mailing list