Login  Register

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

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

On 09/04/2014 11:39 AM, Peter F [via jogamp] wrote:
> I see you're running what looks like the original MovieSimple code? but with
> arguments to run 2 windows through main. I was trying to add a second player
> so that I have two players in the same window.
>
> Would having multiple windows mean each window has it's own unique GLContext
> to begin with?
yes

> If so I'm not sure you'll get the deadlock to occur, if the
> GLMediaPlayer instances ( and more importantly the StreamWorkers ) aren't
> trying to all share the same initial Context given from the given GLAutoDrawable.
Since it works sequentially w/ one window, it shall not be an issue.

>
> Are you able to run multiple players in the same window? specifically the
> deadlock occurs most ( but not all ) of the time when at least one media
> player is already playing, before you try to call initGL on another
> GLMediaPlayer instance.

Good point - will add this use case.

>
> Also, I'm not able to get the same code as you working, I'm running:
>
> java -cp
> ../gluegen/build/gluegen-rt.jar:../gluegen/build/gluegen.jar:./build/jar/jogl-all.jar:./build/test/build/classes/
> com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieSimple -windows 2 -urlN 0
> http://archive.org/download/BigBuckBunny_328/BigBuckBunny_512kb.mp4 -urlN 1
> http://video.webmfiles.org/elephants-dream.webm
>
> and either get:
>
> 1) two windows, both showing green boxes. Pressing space plays the video, but
> both windows show the elephants-dream.webm.
>
> 2)two windows, one showing a green box as above, but the other window is just
> black, no text or anything.
You still have libav/ffmpeg issues unrelated to our JOGL,
i.e. that 'not supported coded' thingy.

>
> Running:
>
> 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
>
> gives me:
>
> build-dir ../build-x86_64 is not a directory
well, it's my build setup :) you would need to use my layout, i.e.
  jogl/build-x86_64
  gluegen/build-x86_64
and so forth ..

I use this layour to have multiple target builds in one filesystem

~Sven


signature.asc (828 bytes) Download Attachment