On 03/09/2007, at 2:08 AM, Stani wrote:

>
> Alex wrote:
>> Given that the only SPE binaries are Python 2.4 though
> SPE is 100% python, so there are no binaries involved (except of
>

Ok, my mistake, thanks for clearing that up.

> This confuses me:
> Steve wrote:
>>  Suffice it to say I'm not having trouble running the hello world  
>> under SPE any more.
> Alex wrote:
>> Unfortunately _I_ am still not able to run pyglet under SPE, so  
>> the issue remains...
>
> So are you both talking about the same thing? There are different ways
>

No, Steve apparently has it working now.  I only spent a couple of  
minutes on it, working within the interactive prompt.  I'll be sure  
to try some of the other run methods you suggest.  The problem is  
probably some unseen interaction between pyglet and wxWidgets, which  
I'm sure will be solvable.

> Unfortunately I don't have time yet to play around with pyglets, but
> it seems very interesting. I might give it a try later. I am looking
> for a library which can extract the frames of a movie as PIL images on
> the fly with without storing them on disk and preferably with random
> access. Is such thing possible with pyglet?

Yes, something like:

from pyglet import window
from pyglet import media
import Image

w = window.Window(visible=False)  # only needed to create GL context

source = media.load('movie.avi')
player = media.Player()
player.queue(source)
player.play()
while player.source:
   player.dispatch_events()
   img = player.texture.image_data
   pilimg = Image.fromstring(img.format, (img.width, img.height),  
img.data)
   # optional: player.seek(time)

A faster solution that doesn't bother with the round-trip to the  
video card could be achieved by subclassing  
pyglet.media.avbin.AVbinSource.

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to