Re: GLMediaPlayer.getNextTexture -> textures contain no data

Posted by Sven Gothel on
URL: https://forum.jogamp.org/GLMediaPlayer-getNextTexture-textures-contain-no-data-tp4032869p4032883.html

On 08/21/2014 07:30 PM, Peter F [via jogamp] wrote:

> Hello,
>
> when I call GLMediaPlayer.getNextTexture, I only get a black screen drawn when
> I draw the resulting texture.
>
> TextureSequence.TextureFrame toString = TextureFrame[pts 1833 ms, l 41 ms,
> texID 0]
> Texture ( TextureFrame.getTexture ) toString Texture[target 0xde1, name 0,
> 416/672 x 240/240, y-flip true, 0 bytes]
>
> I'm working off of the MovieCube demo, including trying to draw the same
> video. So far as I can tell, the video is being decoded ( the
> GLMediaPlayer.getDecodedFrameCount increments ) but
> Texture.getEstimatedMemorySize is always 0.
>
> Any help much appreciated! thank you.
Since our GLMediaPlayer demos work, Cube, Simple, and the graph-ui demos,
I suggest you test the difference with them step-by-step.

> Texture.getEstimatedMemorySize is always 0.
This is similar w/ our demos, since we don't use TextureData but a
direct texture object in TextureFrame.

Further more I assume you have installed libav/ffmpeg on your system.

You can enable the following debug properties for GLMediaPlayer:
  -Djogl.debug.GLMediaPlayer
  -Djogl.debug.GLMediaPlayer.Native
  -Djogl.debug.AudioSink
  -Djogl.debug.AudioSink.trace
  -Djogl.debug.GLSLCode

~Sven



signature.asc (828 bytes) Download Attachment