Re: TextureNames creation failed when calling GLMediaPlayer.initGL with multiple players
Posted by
Peter F on
Sep 04, 2014; 9:39am
URL: https://forum.jogamp.org/TextureNames-creation-failed-when-calling-GLMediaPlayer-initGL-tp4033009p4033052.html
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? 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.
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.
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.webmand 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.
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.webmgives me:
build-dir ../build-x86_64 is not a directory
I will investigate my libav & ffmpeg versions now.