Re: Red-colored videos using libav
Posted by
gouessej on
Nov 25, 2016; 2:13pm
URL: https://forum.jogamp.org/Red-colored-videos-using-libav-tp4037437p4037460.html
"singleTexComp" should be 'r' in your case as you see only red. You should create your own texture and write it by converting the data from the next texture returned by the player into your newly created texture. If you succeed and if you share your findings, we'll be able to provide a very simple demo working without shaders. I fear that it will be a bit slow, you'll have to minimize the updates, i.e don't call glTexSubImage on an area containing only unchanged pixels, maybe rather use glTexImage2D on the whole (one call of glTexImage2D per display instead of tons of glTexSubImage2D calls).