Login  Register

Re: TextureNames creation failed when calling GLMediaPlayer.initGL with multiple players

Posted by Sven Gothel on Sep 03, 2014; 6:16pm
URL: https://forum.jogamp.org/TextureNames-creation-failed-when-calling-GLMediaPlayer-initGL-tp4033009p4033038.html

On 09/03/2014 04:47 PM, Peter F [via jogamp] wrote:
> 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.:
>

> 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

something seriously is going wrong .. probably your libav or ffmpeg version.

>
> One media player is playing:
> http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4
> the other:
> http://video.webmfiles.org/elephants-dream.webm
>
> This 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:
> [hidden email] )
https://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieSimple.java;h=0d11915285db13e81b4a7818cd6a7440a298d55a;hb=HEAD#l906

> being in jogl/make folder, enabling MovieSimple in scripts/tests.sh:

bash scripts/tests-x64.sh -windows 2 -urlN 0
http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4 -urlN 1
http://video.webmfiles.org/elephants-dream.webm

Works here ..

https://jogamp.org/files/screenshots/glmediaplayer/MovieSimple01-2urls.png


signature.asc (828 bytes) Download Attachment