Hi, I'm new to Pyglet and I tried to play a video with the media_player.py example. It works but the playback was a little bit choppy,
After some investigations I found the culprit to be the interval at which the player update the read of the video. It's hardcoded in pyglet.media.__init__.py in the method _update_schedule of the Player class at line 778: interval = min(interval, 1/24.) 1/24 could be good for film at 24fps but not for video at 30 fps. I set it at 30 and it was not enough in my case. At 40 the playback was smooth. It propably have to be a bit more then the framerate to compensate for longer frame reads? I think this should be settable. Also is there any ways to find the framerate of a video file in pyglet/avbin? With that info we could set the interval automatically in function of the framerate of the video. This info could be also very helpful for other usage (show exact time code, etc.). I did my tests on a MacBook Pro 2.2GHz (intel Core 2 Duo) with os X 10.5.6. Thanks and Pyglet look a very nice and useful project! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
