Hi, I switched to PyAV for manual video decoding. This was not an easy decision, but I had already sunk perhaps some 6 hours trying to figure out why I could not adapt the Player for RGBA video. I even tried stacking mpv players, but even that did not work because that library does not seem to be built for simultaneous players in the same process.
I have not experienced any slowdowns yet, but the code is fairly annoying working with pts/dts and time_base. Another thing is that the Player forced me somewhat to decode all frames and copy them before I could use it as a sprite, but I can't take such a long delay like that. Instead, it decodes a frame, copies it to VRAM, and saves the reference in a cache. At least I don't encounter any problems with alpha, so long as I force the libvpx decoder for WebM files. I'm also watching the VRAM usage closely. It works pretty good for APNG as well. Perhaps better than the mess I made for *that* loader... -- 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 https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
