Alex Holkner schreef:
> 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.
Yes two event loops are not automatically friends.
>
>> 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)
Cute! Is that media player visible?
>
> A faster solution that doesn't bother with the round-trip to the
> video card could be achieved by subclassing
> pyglet.media.avbin.AVbinSource.
Ok, I'll check it out when I need it. I guess with that I can also
encode my own videos or is only playback supported?
It seems you are doing a wonderful job. I have been looking for such a
library for a while.
Congratulations!
Stani
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---