On Tue, Dec 13, 2011 at 3:52 AM, anatoly techtonik <[email protected]> wrote: > On Monday, December 12, 2011 8:11:12 PM UTC+3, Nathan wrote: >> >> AVbin doesn't "play" a video file, per se. Some application or >> framework (like Pyglet, for example) uses AVbin to decode a video >> frame by frame and then presents the visual/audio information to some >> device to play it. >> >> You can tell that AVbin has nothing left to decode from a video file >> when a call to avbin_decode_video() returns 0 (successful finish) or >> -1 (hit an error). > > I couldn't find any documentation on AVbin. pyglet docs are also very > limited in this regard. Are there any plans to provide some tutorial and > Python bindings for AVbin out of the box? So that people can `easy_install > avbin` and `import avbin` to play with its API/features?
AVbin documentation is currently in the form of comments in include/avbin.h in the AVbin source. You WILL need to read that if you want to use AVbin's interface directly. It's on the Version 9 roadmap to get online documentation generated (in fact, it looks like it's all set up to be generated by Doxygen, as soon as I figure out how to use Doxygen). Pyglet includes a full set of python bindings already in pyglet.media.avbin (AVbin was originally created just for that purpose, after all). I don't have any plans to create or maintain a separate set of Python bindings, though I don't mind if someone else wants to. If you wanted to, you could take Pyglet's version and adapt it to your own use. (see pyglet/media/avbin.py) I don't know why that file isn't included in Pyglet's API reference. I don't currently have any plans to make a tutorial. There IS an example C program in AVbin under example/avbin_dump.c that may be useful towards that end, though. Those were good questions. Thanks! ~ Nathan -- 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.
