Update: the following script does work but two issues--
1 - The picture returns upside down
2 - I have to seek twice, the first seek returns a black image

Any advice on a better way to do it?

def capture():
    source = pyglet.media.load('C:\Users\Office Depot\Hairspray 2007\
\p1.flv')
    format = source.video_format

    player = pyglet.media.Player()
    player.queue(source)
    player.play()
    player.seek(60)
    player.seek(70)
    player.get_texture().save('C:\Python25\\bin\\frameout.jpg')

if __name__ == '__main__':
    capture()

On Oct 29, 7:21 pm, Sueb <[EMAIL PROTECTED]> wrote:
> Hi,
> I am wondering if it possible using pyglet to capture a frame 1 sec in
> to a video (think of youTube with the thumbnails of the video next to
> each listing)
>
> I tryed to use a combination of 'get_texture()' and 'save' but no
> luck.
>
> Any help would be great, Thanks!
--~--~---------~--~----~------------~-------~--~----~
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