Can you give me access to a small mkv file that I could test with? ~ Nathan
On Monday, May 13, 2013, Tomas wrote: > I've tried with 5 or 6 mkv files (different a/v codecs). Result is the > same. > FFplay, VLC, mplayer plays those file flawless. > > 2013 m. gegužė 6 d., pirmadienis 06:44:12 UTC+3, Nathan rašė: >> >> You should begin by downloading the pyglet source code and looking at >> examples/media_player.py >> >> media_player.py isn't perfect, but it usually works pretty well. If it >> gives you a black screen as well, maybe you could make a small sample .mkv >> file that you could share so I could try to debug the issue. >> >> ~ Nathan >> >> >> On Wed, Mar 13, 2013 at 3:45 PM, Tomas <[email protected]> wrote: >> >>> 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 pyglet-users...@**googlegroups.com. >>> To post to this group, send email to [email protected]. >>> Visit this group at >>> http://groups.google.com/**group/pyglet-users?hl=en<http://groups.google.com/group/pyglet-users?hl=en> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > 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] <javascript:_e({}, > 'cvml', 'pyglet-users%[email protected]');>. > To post to this group, send email to > [email protected]<javascript:_e({}, 'cvml', > '[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. > > > -- 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.
