I haven't heard of planar audio format either until now, but better compatibility with modern files is great. I'm happy to hear that you've been able to make progress. Hopefully this pans out, and we can get pyglet into a bit better shape in the audio/video department.
I'm not very familiar with this part of the codebase, but I'll try to help if I can once you're ready to share. Pyglet has a lib loader function built in, so it should be pretty easy to un-hardcode everything towards the end. Once things stabilize a bit in the future, we can think about making a new "ffmpeg" branch to get more testing. On Saturday, March 11, 2017 at 8:46:55 PM UTC+9, Daniel Gillet wrote: > > Hello, > > Just a little update on my endeavour in binding FFmpeg with ctypes. > > After hours of work, I finally managed to have a working video and sound! > But there are still tons of problems I need to fix. For instance, one mp4 > video just freezes. I need to find out what's the problem. > > The good news is that I managed for the audio to play also planar audio > format, which was not yet supported by AVbin (see here > <https://github.com/AVbin/AVbin/blob/master/src/avbin.c#L371>). I had no > idea what it was, but I found out that this format is used more and more > with the more recent videos / audios. Or at least, this is my understanding. > > My main problem now is that the video does not stop at the end. I'm still > investigating. If I play only a sound, it stops correctly. But as soon as > there's a video, the Video Thread wants more video packet and the whole > program freezes. > > I'm not ready yet to give out any code. It still needs a lot of clean-up. > Besides this only works on Windows, as I have currently hard-coded the > *.dll names. This will need to be changed obviously. > > I thought you might like to hear that something is going in the right > direction. :) > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.