GIFs or Videos in PyGaze Slideshow?
Hi Team,
Firstly, Thank you for the application!
I am using the slideshow.zip example (using 'pygame' currently) mentioned on the PyGaze website and have been successfully run it with some modifications for .jpeg and .png images. I was wondering if there was a way to also draw 3secs animated gifs onto the display/screen -- since they currently seem to remain stuck on the 1st frame.
Any help is appreciated :)
Comments
Hi Hazel,
the difference between images and videos (and gifs) is that former are static, the other dynamic. The slideshow experiment updates the screen only a single time per image. For pngs, etc. that is perfect, because the image never changes. For videos like gifs that is not good because only the first frame of the gif will be shown.
What you want to do is to show videos, or let Pygaze create the gif for you. To do so, you pass all the frames individually to pygaze and specify the screen time for each of them to match the desired framerate (24 fps corresponds to 50 ms per frame). If you want a slideshow consisting of gifs, you essentially ask for a nested slideshow. That is certainly possible, requires some code updates, though. Do you know what I mean?
Eduard
Nice -- nesting and traversing through the frames works perfectly! Thank you greatly, Eduard :)