Posted by
Peter F on
Sep 03, 2014; 2:47pm
URL: https://forum.jogamp.org/TextureNames-creation-failed-when-calling-GLMediaPlayer-initGL-tp4033009p4033021.html
I've been trying that now, but I'm having trouble simply running the demo now I have 2 media players playing different videos. I'm getting different results each time I run the demo, sometimes it freezes, sometimes it throws exceptions, eg.:
pC.1b GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4]
pC.1b 2 GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://video.webmfiles.org/elephants-dream.webm]
MovieSimple AttributesChanges: events_mask 0x20, when 1409755483747
MovieSimple State: GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4]
MovieSimple State: ERR + Exception
com.jogamp.opengl.util.av.GLMediaPlayer$StreamException: RuntimeException while initializing: GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4]
at jogamp.opengl.util.av.GLMediaPlayerImpl$1.run(GLMediaPlayerImpl.java:580)
Caused by: java.lang.RuntimeException: Couldn't find audio codec 86018, Audio: aac (mp4a / 0x6134706D), 48000 Hz, 2 channels, 64 kb/s
at jogamp.opengl.util.av.impl.FFMPEGv09Natives.setStream0(Native Method)
at jogamp.opengl.util.av.impl.FFMPEGMediaPlayer.initStreamImpl(FFMPEGMediaPlayer.java:351)
at jogamp.opengl.util.av.GLMediaPlayerImpl$1.run(GLMediaPlayerImpl.java:578)
MovieSimple AttributesChanges: events_mask 0x20, when 1409755484310
MovieSimple State: GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://video.webmfiles.org/elephants-dream.webm]
MovieSimple State: ERR + Exception
com.jogamp.opengl.util.av.GLMediaPlayer$StreamException: RuntimeException while initializing: GLMediaPlayer[Uninitialized, vSCR 2147483647, frames[p 0, d 0, t 0 (0.0 s), z 0 / 166], speed 1.0, 0 bps, hasSW false, Texture[count 3, free 0, dec 0, tagt 0xde1, ifmt 0x1908, fmt 0x1908, type 0x1401], Video[id -1, <unknown>, 0x0, glOrient false, 0.0 fps, 0.0 fdur, 0 bps], Audio[id -1, <unknown>, 0 bps, 0 frames], uri
http://video.webmfiles.org/elephants-dream.webm]
at jogamp.opengl.util.av.GLMediaPlayerImpl$1.run(GLMediaPlayerImpl.java:580)
Caused by: java.lang.RuntimeException: Couldn't find audio codec 86021, Audio: vorbis, 44100 Hz, 1 channels
at jogamp.opengl.util.av.impl.FFMPEGv09Natives.setStream0(Native Method)
at jogamp.opengl.util.av.impl.FFMPEGMediaPlayer.initStreamImpl(FFMPEGMediaPlayer.java:351)
at jogamp.opengl.util.av.GLMediaPlayerImpl$1.run(GLMediaPlayerImpl.java:578)
One media player is playing:
http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4the other:
http://video.webmfiles.org/elephants-dream.webmThis is making me worry that I've misunderstood how to use the component, but all I've tried to do is duplicate the applicable code of mPlayer for an mPlayer2, giving it a different URI in initStream, & playing/pausing it on the space bar.
Could you email / post your modified version of MovieSimple code? ( email: pdflower_3000@yahoo.co.uk )
It would be a big help to me if I can check I'm going about this the right way, e.g. how to set up multiple players. As well as confirm if what works for you on your devices works on my machine.