i’m experiencing some trouble when handling video files. The code that i’m using is the one featured in the code example of movie player.
self.register_texture = MovieTexture("register") success_ = self.register_texture.read("A_CLIENT/ASSETS/GAME/CINEMATICS/register.mp4") assert success_, "Failed to load video!" reg_cm = CardMaker("Register") reg_cm.setFrameFullscreenQuad() reg_cm.setUvRange(self.register_texture) self.register_card = NodePath(reg_cm.generate()) self.register_card.setTexture(self.register_texture) self.register_card.reparentTo(self.base.render2d) self.register_texture.loop = False self.register_texture.setLoop(False) self.register_texture.play()
but the video that i’m seeing stops a litte bit before its actual end, and has like a red tint to it, like it is glitched in some parts of it. This is happening to a video that i reversed in premiere pro and exported as mp4. The original is played as well in the application, and has none of the problems above. So, do you know how to play videos backwards in panda3d or resolve those glitches?
note: i’ve tried
.setPlayRate(-1) and this plays it in reverse, but it is EXTREMELY laggy and completely unusable.