I use simple as possible code to create a video player:

source = pyglet.media.load("some_file.mkv")
format = source.video_format
if not format:
    print 'No video track in this source.'
    sys.exit(1)

player = pyglet.media.Player()
player.queue(source)
player.play()

window = pyglet.window.Window(width=format.width, height=format.height)

@window.event
def on_draw():
    #window.clear()
    player.get_texture().blit(0, 0)

pyglet.app.run()

Screen size is adjusted according to video, but texture is empty (or 
black?) With AVI there is no such problem and everything works fine. MKV 
contains video which is encoded with h264
on_draw() event is handled to. No other warnings or any kind of messages.

Any thoughts where to begin?

Thanks,  T.

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to