Login  Register

Re: Red-colored videos using libav

Posted by gouessej on Nov 25, 2016; 9:53am
URL: https://forum.jogamp.org/Red-colored-videos-using-libav-tp4037437p4037458.html

Hi

If you fix the flag and the active unit handling, it won't be enough. If you don't want to use shaders, you'll have to implement the treatment currently done in the fragment shader elsewhere, it's not very difficult for BGR24:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/jogamp/opengl/util/av/impl/FFMPEGMediaPlayer.java#L802

You have to change the texture and to send the changes with glTexSubImage. This way, you won't need any shader :)
Julien Gouesse | Personal blog | Website