Pyglet animation into a video.

24 views
Skip to first unread message

c amable

unread,
Nov 24, 2023, 9:16:47 PM11/24/23
to pyglet-users

Hello,
After lots of trial and error I managed to have a decent animation in pyglet for a simulation  that I made using the simpy simulation package.

Now, what I want to do is to make a video out of the pyglet screens I am able to produce.  About 1,440 screens for a day of simulation (one per minute of simulation time).

Any recommendations of what python package to use are welcome.

Thanks for your feedback
Cesar

Neon22

unread,
Nov 27, 2023, 11:02:33 PM11/27/23
to pyglet-users
PIL (the pillow package is where development occurs and is what you should install) has good support for turning a buffer into an image and exporting it. I think you can also aggregate images into a video.
Reply all
Reply to author
Forward
0 new messages