OK. Thanks for the tip Daniel. I was looking at it this way due the difficulty in getting webm or mov (both of which alow allow to be in the video stream) to playback correctly using the akpha. E.g. this page is a chrome webm demo page with two webm video files on it (dancer1.webm, soccer1.webm) both of which have embedded alphas: - https://simpl.info/videoalpha/ FYI here is how to encode PNGs with alpha into a webm with alpha using ffmpeg: - https://developers.google.com/web/updates/2013/07/Alpha-transparency-in-Chrome-video
So if we could get that working in pyglet then I would not need to do the, potentially, much harder thing of synchronising two player streams. On Saturday, June 9, 2018 at 5:13:30 AM UTC+12, Daniel Gillet wrote: > > Hello, > > Reading again your original message, this part: > > The FG sequence is really two video sequences. One is an alpha mask for >> the second. So both have to be in Sync. > > > will be challenging. A hack I would initially try would be to assign the > internal clock of the first player to the second one. It's not intended to > be used this way, but it's the quickest way to try it out. > > player1 = Player() > player2 = Player() > player2._mclock = player1._mclock > > Weird things will probably happen if you try to play or stop and the clock > is shared but not the rest. > > A better way would be to write your own Player, handling multiple sources. > Unless digging a bit in the code, you might find a robust way to > externalise the clock which could be shared by multiple Players. The clock > would be an EventHandler and playing or stopping one Player would propagate > to the other players. > > Good luck! > -- 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.
