I recommend you to use, JogAmp, high performance Java™ libraries for 3D Graphics, Multimedia and Processing. The JogAmp junit tests contains a lot demonstration code, for example it can use the OpenGL ES 2 shaders on the Pi to quickly convert from YUV to RGB color space and then rendering the video output on a textured OpenGL ES 2 surface.joaosilva94 wrote:I want to run a stream on vlc on my desktop and show it in a java app in my raspberry... i want to know what is the best distro for that... if u can tell me, i apreciate it a lot!
Code: Select all
sudo apt-get install openjdk-6-jdk p7zip-full #Download and unpack the JogAmp autobuild. #if this download for some reason fail then check # http://jogamp.org/deployment/archive/master/?C=M;O=D #for a lost of the latest autobuild version. wget http://jogamp.org/deployment/archive/master/gluegen_584-joal_353-jogl_798-jocl_668-signed/archive/jogamp-all-platforms.7z 7z x jogamp-all-platforms.7z cd jogamp-all-platforms # Render streamed movies to textures, use the mouse to rotate the cube. # Require the ffmpeg libavcodec libavutil and libavformat to be installed # or else you will only see a test screen. # also require junit4 sudo apt-get install libav-tools junit4 java -Dnativewindow.ws.name=jogamp.newt.driver.bcm.vc.iv \ -cp jar/jogl-all.jar:jar/gluegen-rt.jar:/usr/share/java/junit4.jar:jar/jogl-test.jar \ com/jogamp/opengl/test/junit/jogl/demos/es2/av/MovieCube \ -time 400000 -width 1980 -height 1080