Re: [osg-users] [build] How to play Video on Android
Hi, The log is Code: 02-09 14:01:41.114: W/Osg Viewer(14026): FFmpegImageStream::open : av_open_input_file() failed 02-09 14:01:41.118: W/Osg Viewer(14026): Warning: Could not find plugin to read objects from file "/mnt/sdcard/VideoTest/1.avi.ffmpeg". The steps what I followed to generate osg ffmpeg plugin Step - 1) Downloaded ffmpeg1.0 from ffmpeg site and extracted to "ffmpeg" flolder. (renamed time.h to avtime.h of libavutil to avoid OSG compile errors) Step - 2) Executed the following script to generate armv7 libs (for Android 2.2) Code: NDK=/home/ttpl/Android/android-ndk-r8b PLATFORM=$NDK/platforms/android-8/arch-arm PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 function build_one { ./configure --target-os=linux \ --prefix=$PREFIX \ --enable-cross-compile \ --extra-libs="-lgcc" \ --arch=arm \ --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \ --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ --nm=$PREBUILT/bin/arm-linux-androideabi-nm \ --sysroot=$PLATFORM \ --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \ --disable-shared \ --enable-static \ --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \ --disable-everything \ --enable-demuxer=mov \ --enable-demuxer=h264 \ --disable-ffplay \ --enable-protocol=file \ --enable-avformat \ --enable-avcodec \ --enable-decoder=rawvideo \ --enable-decoder=mjpeg \ --enable-decoder=h263 \ --enable-decoder=mpeg4 \ --enable-decoder=h264 \ --enable-parser=h264 \ --disable-network \ --enable-zlib \ --disable-avfilter \ --enable-avdevice \ $ADDITIONAL_CONFIGURE_FLAG make clean make -j4 install $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a } #arm v6 #CPU=armv6 #OPTIMIZE_CFLAGS="-marm -march=$CPU" #PREFIX=./android/$CPU #ADDITIONAL_CONFIGURE_FLAG= #build_one #arm v7vfpv3 CPU=armv7-a OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU " PREFIX=./android/$CPU ADDITIONAL_CONFIGURE_FLAG= build_one Step -3) This generated "libavcodec.a", "libavdevice.a", "libavformate.a", "libutil.a", "libswresample.a" and "libswscale.a" into the folder "./android/armv7-a/lib". Also "libffmpeg.so" in "./Android/armv7-a" folder. Step - 4) Copied all these ".a" files and "pkconfig" folder to "/home/ttpl/Android/OSGSupport/ffmpeg" folder Step -5) Extracted OSG3.0.1 and created "build" directory in it. Added " FIND_PACKAGE(FFmpeg)" after "ANDROID_3RD_PARTY()" to CMakeList.txt file Step -6) Gave the following cmake command Code: cmake .. -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL_DISPLAYLISTS_AVAILABLE=OFF -DOSG_GL_MATRICES_AVAILABLE=ON -DOSG_GL_VERTEX_FUNCS_AVAILABLE=ON -DOSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE=ON -DOSG_GL_FIXED_FUNCTION_AVAILABLE=ON -DOSG_CPP_EXCEPTIONS_AVAILABLE=OFF -DOSG_GL1_AVAILABLE=OFF -DFFMPEG_LIBAVCODEC_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg -DFFMPEG_LIBAVCODEC_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavcodec.a -DFFMPEG_LIBAVDEVICE_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg -DFFMPEG_LIBAVDEVICE_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavdevice.a -DFFMPEG_LIBAVFORMAT_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg -DFFMPEG_LIBAVFORMAT_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavformat.a -DFFMPEG_LIBAVUTIL_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg -DFFMPEG_LIBAVUTIL_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libavutil.a -DFFMPEG_LIBSWSCALE_INCLUDE_DIRS=/home/ttpl/Android/OSGSupport/ffmpeg -DFFMPEG_LIBSWSCALE_LIBRARIES=/home/ttpl/Android/OSGSupport/ffmpeg/libswscale.a -DFFMPEG_ROOT=/home/ttpl/Android/OSGSupport/ffmpeg -DOSG_GL2_AVAILABLE=OFF -DOSG_GL3_AVAILABLE=OFF -DOSG_GLES1_AVAILABLE=ON -DOSG_GLES2_AVAILABLE=OFF -DCMAKE_CXX_FLAGS=-D__STDC_CONSTANT_MACROS -DJ=4 -DCMAKE_INSTALL_PREFIX=/home/ttpl/Android/OpenSceneGraph-3.0.1_GL/osginstall Step -7) make installed all files to "/home/ttpl/Android/OpenSceneGraph-3.0.1_GL/osginstall" which includes "libosgdb_ffmpeg.a" plugin in both "armeabi" and "armeabi-v7a" folders Step -8) Created an android project from the existed (OpenGLES1) example. Step -9) Modified Android.mk file as follows. Given only modifications Code: O
Re: [osg-users] OpenSceneGraph.org is unresponsive
Hi Chris, I don't have any problem to access to the trac. Maybe the university network was down, I double-checked the server and it has been active so far. Anyway the idea is to maintain the trac active for archive purposes and for browsing the source code Cheers. El viernes, 8 de febrero de 2013, Chris Hanson escribió: Looks like you probably arrive there via a different carrier and maybe it's just a router/BGP problem. On Fri, Feb 8, 2013 at 11:00 AM, Robert Osfield wrote: Hi Chris, Just tried a couple times more, openscenegraph.org just keeps up popping up right away from me here in Scotland. Normally when we see problems like this it's the whole server down or sometimes the whole uni's network down. It'll be interesting to see if others have the problem too. Robert. On 8 February 2013 17:51, Chris Hanson wrote: > Interesting. I can reach OpenSceneGtraph.com, but not OpenSceneGraph.org > (via browser or SVN). Looks like it drops somewhere near upv.es: > > Tracing route to OpenSceneGraph.org [158.42.9.50] > over a maximum of 30 hops: > > 1 1 ms 1 ms 1 ms 172.19.3.1 > 243 ms29 ms29 ms 96.75.54.1 > 311 ms13 ms12 ms te-8-1-ur05.littleton.co.denver.comcast.net > [68. > 85.107.21] > 424 ms23 ms23 ms > te-0-5-0-13-ar02.denver.co.denver.comcast.net [6 > 8.85.89.209] > 517 ms15 ms15 ms > pos-0-1-0-0-ar02.aurora.co.denver.comcast.net [6 > 8.86.128.242] > 620 ms23 ms23 ms he-3-9-0-0-cr01.denver.co.ibone.comcast.net > [68. > 86.92.21] > 715 ms16 ms14 ms te3-5.ccr01.den03.atlas.cogentco.com > [154.54.10. > 33] > 8 185 ms 208 ms 219 ms te7-1.ccr02.den01.atlas.cogentco.com > [154.54.45. > 185] > 933 ms32 ms33 ms te0-4-0-2.ccr22.mci01.atlas.cogentco.com > [154.54 > .45.54] > 1045 ms45 ms45 ms te0-1-0-2.ccr22.ord01.atlas.cogentco.com > [154.54 > .5.174] > 1160 ms61 ms82 ms te0-2-0-2.ccr22.yyz02.atlas.cogentco.com > [154.54 > .27.254] > 1297 ms85 ms78 ms te0-5-0-5.ccr22.ymq02.atlas.cogentco.com > [154.54 > .44.105] > 13 149 ms 146 ms 146 ms te0-4-0-4.ccr22.lpl01.atlas.cogentco.com > [154.54 > .44.210] > 14 154 ms 152 ms 153 ms te0-4-0-3.ccr22.lon13.atlas.cogentco.com > [154.54 > .60.58] > 15 154 ms 153 ms 152 ms te0-1-0-0.ccr22.par01.atlas.cogentco.com > [130.11 > 7.50.194] > 16 186 ms ** te0-7-0-6.ccr22.mrs01.atlas.cogentco.com > [154.54 > .59.230] > 17 196 ms 199 ms 194 ms te0-4-0-1.ccr22.mad05.atlas.cogentco.com > [154.54 > .59.205] > 18 *** Request timed out. > 19 193 ms 193 ms * 149.11.68.2 > 20 ** 207 ms CIEMAT.AE0.uv.rt1.val.red.rediris.es > [130.206.24 > 5.30] > 21 ** 205 ms upv-principal.red.rediris.es > [130.206.211.194] > 22 * 200 ms * cauac-4010.net2.upv.es [158.42.255.161] > 23 *** Request timed out. > 24 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] OpenSceneGraph.org is unresponsive
Hi Chris, I don't have any problem to access to the trac. Maybe the university network was down, I double-checked the server and it has been active so far. Anyway the idea is to maintain the trac active for archive purposes and for browsing the source code El viernes, 8 de febrero de 2013, Chris Hanson escribió: > Looks like you probably arrive there via a different carrier and maybe > it's just a router/BGP problem. > > > On Fri, Feb 8, 2013 at 11:00 AM, Robert Osfield > wrote: > > Hi Chris, > > Just tried a couple times more, openscenegraph.org just keeps up > popping up right away from me here in Scotland. Normally when we see > problems like this it's the whole server down or sometimes the whole > uni's network down. It'll be interesting to see if others have the > problem too. > > Robert. > > On 8 February 2013 17:51, Chris Hanson wrote: > > Interesting. I can reach OpenSceneGtraph.com, but not OpenSceneGraph.org > > (via browser or SVN). Looks like it drops somewhere near upv.es: > > > > Tracing route to OpenSceneGraph.org [158.42.9.50] > > over a maximum of 30 hops: > > > > 1 1 ms 1 ms 1 ms 172.19.3.1 > > 243 ms29 ms29 ms 96.75.54.1 > > 311 ms13 ms12 ms > te-8-1-ur05.littleton.co.denver.comcast.net > > [68. > > 85.107.21] > > 424 ms23 ms23 ms > > te-0-5-0-13-ar02.denver.co.denver.comcast.net [6 > > 8.85.89.209] > > 517 ms15 ms15 ms > > pos-0-1-0-0-ar02.aurora.co.denver.comcast.net [6 > > 8.86.128.242] > > 620 ms23 ms23 ms > he-3-9-0-0-cr01.denver.co.ibone.comcast.net > > [68. > > 86.92.21] > > 715 ms16 ms14 ms te3-5.ccr01.den03.atlas.cogentco.com > > [154.54.10. > > 33] > > 8 185 ms 208 ms 219 ms te7-1.ccr02.den01.atlas.cogentco.com > > [154.54.45. > > 185] > > 933 ms32 ms33 ms te0-4-0-2.ccr22.mci01.atlas.cogentco.com > > [154.54 > > .45.54] > > 1045 ms45 ms45 ms te0-1-0-2.ccr22.ord01.atlas.cogentco.com > > [154.54 > > .5.174] > > 1160 ms61 ms82 ms te0-2-0-2.ccr22.yyz02.atlas.cogentco.com > > [154.54 > > .27.254] > > 1297 ms85 ms78 ms te0-5-0-5.ccr22.ymq02.atlas.cogentco.com > > [154.54 > > .44.105] > > 13 149 ms 146 ms 146 ms te0-4-0-4.ccr22.lpl01.atlas.cogentco.com > > [154.54 > > .44.210] > > 14 154 ms 152 ms 153 ms te0-4-0-3.ccr22.lon13.atlas.cogentco.com > > [154.54 > > .60.58] > > 15 154 ms 153 ms 152 ms te0-1-0-0.ccr22.par01.atlas.cogentco.com > > [130.11 > > 7.50.194] > > 16 186 ms ** te0-7-0-6.ccr22.mrs01.atlas.cogentco.com > > [154.54 > > .59.230] > > 17 196 ms 199 ms 194 ms te0-4-0-1.ccr22.mad05.atlas.cogentco.com > > [154.54 > > .59.205] > > 18 *** Request timed out. > > 19 193 ms 193 ms * 149.11.68.2 > > 20 ** 207 ms CIEMAT.AE0.uv.rt1.val.red.rediris.es > > [130.206.24 > > 5.30] > > 21 ** 205 ms upv-principal.red.rediris.es > > [130.206.211.194] > > 22 * 200 ms * cauac-4010.net2.upv.es [158.42.255.161] > > 23 *** Request timed out. > > 24 > > -- Jordi Torres Fabra gvSIG 3D blog http://gvsig3d.blogspot.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAnimation issue on Android
Hello Jan, I didn't use any animated model in android but, Did you add the serializers or deprecated wrappers into your Android.mk file? I recently added (pushed up just now) some missing libraries to the Android.mk. $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgvolume.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgtext.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgterrain.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgsim.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgshadow.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgparticle.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgmanipulator.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osgfx.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osganimation.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_serializers_osg.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgwidget.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgviewer.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgvolume.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgtext.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgterrain.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgsim.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgshadow.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgparticle.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osgfx.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osganimation.a \ $(OSG_SDK)/obj/local/armeabi/libosgdb_deprecated_osg.a \ And I also have this in my JNI code: USE_OSGPLUGIN(ive) USE_OSGPLUGIN(osg) USE_OSGPLUGIN(osg2) USE_OSGPLUGIN(rgb) USE_OSGPLUGIN(OpenFlight) USE_DOTOSGWRAPPER_LIBRARY(osg) USE_DOTOSGWRAPPER_LIBRARY(osgFX) USE_DOTOSGWRAPPER_LIBRARY(osgParticle) USE_DOTOSGWRAPPER_LIBRARY(osgShadow) USE_DOTOSGWRAPPER_LIBRARY(osgSim) USE_DOTOSGWRAPPER_LIBRARY(osgTerrain) USE_DOTOSGWRAPPER_LIBRARY(osgText) USE_DOTOSGWRAPPER_LIBRARY(osgViewer) USE_DOTOSGWRAPPER_LIBRARY(osgVolume) USE_DOTOSGWRAPPER_LIBRARY(osgWidget) USE_SERIALIZER_WRAPPER_LIBRARY(osg) USE_SERIALIZER_WRAPPER_LIBRARY(osgAnimation) USE_SERIALIZER_WRAPPER_LIBRARY(osgFX) USE_SERIALIZER_WRAPPER_LIBRARY(osgManipulator) USE_SERIALIZER_WRAPPER_LIBRARY(osgParticle) USE_SERIALIZER_WRAPPER_LIBRARY(osgShadow) USE_SERIALIZER_WRAPPER_LIBRARY(osgSim) USE_SERIALIZER_WRAPPER_LIBRARY(osgTerrain) USE_SERIALIZER_WRAPPER_LIBRARY(osgText) USE_SERIALIZER_WRAPPER_LIBRARY(osgVolume) Cheers, Rafa. 2013/2/8 Jan Ciger > Hello, > > I am trying to load a simple keyframe animated object (a spinning Blender > monkey) on Android, however it fails every time. The model loads, but the > osgAnimation nodes (BasicAnimationManager, Animation, etc.) are stripped > out/not loaded. Thus no animation. I have tried .osg (loads, but no > animation), .osgt (does not load at all, not recognized on Android for some > reason), .osgb (doesn't work at all - error), .ive (loads, but no > animation). And yes, the .osg/.osgt file loads correctly on the desktop, > including the osgAnimation callback and everything else, I am even able to > play the animation from my code. > > I suspect that the osgAnimation serializers are not active, but I have > USE_SERIALIZER_WRAPPER_LIBRARY(osgAnimation) > in my code and the libraries are linked in. > > I guess I am missing something obvious, any tips? > > Thanks a lot, > > Jan > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Rafael Gaitán Linares CTO at Mirage Technologies S.L - http://www.mirage-tech.com gvSIG3D Developer - http://gvsig3d.blogspot.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] anyone have experience with OSG on Intel HD Graphics 4000 hardware?
Hi J-S, Looks like a very cool resource. Have you ever been able to put it to any practical use? I could see this being helpful, but I don't see it removing all of the randomness :) There are always undiscovered bugs lurking here and there. I, too, would love to see driver writers aiming for 100% scores on these tests. -- Terry Welsh www.reallyslick.com > > Message: 1 > Date: Fri, 08 Feb 2013 20:14:09 -0500 > From: Jean-S?bastien Guay > To: OpenSceneGraph Users > Subject: Re: [osg-users] anyone have experience with OSG on Intel HD > Graphics 4000 hardware? > Message-ID: <5115a2e1.3080...@videotron.ca> > Content-Type: text/plain; CHARSET=US-ASCII; format=flowed > > Hi Terry, all, > >> In short, >> good luck understanding the insane mess that is graphics drivers. It's >> all very random. > > It's only random if you try to understand it with a few limited > tests :-) > > Someone has applied structured testing to the problem and has come up > with this: > > http://www.g-truc.net/post-0538.html#menu > > This is the "OpenGL driver status" posts, which Christophe Riccio posts > every month. He gathers this information using his own very > comprehensive OpenGL tests, which cover about every type of > functionality you would want to use in a very structured way. So he can > say with absolute certainty that a given driver will work with a given > usage pattern. (I wish this were used as a base for official Desktop > OpenGL conformance tests and that the results of these tests were > publicised by Khronos, so that vendors would have a real reason to keep > their drivers up to a certain level of quality... But I digress) > > Then you just have to know your own app enough to know what it's doing > at the OpenGL level... Which is often the hard part :-) Tools like > gDEBugger (discontinued) or apitrace (active) can help there. > > The only thing I find a pity is that he doesn't keep an easy to search > list of older drivers too. If he did, you could easily see that a given > feature worked starting with this version, broke in this one and then > was fixed in this one, and you could tell that to your clients, knowing > which features are critical to your application. You could even > automatically enable and disable features in your app by knowing which > driver versions they would work on. But maybe that's going too far... > > Anyways, it's a useful resource I think. > > J-S ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] anyone have experience with OSG on Intel HD Graphics 4000 hardware?
Hi Terry, Looks like a very cool resource. Have you ever been able to put it to any practical use? I could see this being helpful, but I don't see it removing all of the randomness :) There are always undiscovered bugs lurking here and there. I, too, would love to see driver writers aiming for 100% scores on these tests. I think for now the main use is that it publicizes the quality of the different drivers. However as I said, it would be much more effective if it were used in an "official" manner, i.e. by Khronos itself. I now work for a game company where we explicitly blacklist some driver versions and inform the user to upgrade when the game starts up, because some driver versions are just too bad to be any use at all. I could see something like that being part of an add-on library to OSG, where a database of driver versions and capabilities would be maintained by the community. With the breadth of coverage that's possible in a large community like OSG, I think it would be easy, actually :-) That being said, I don't have any plans to actually do something, rather than talk about it :-) J-S -- __ Jean-Sebastien Guay jean_...@videotron.ca http://whitestar02.dyndns-web.com/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgAnimation issue on Android
On Sat, Feb 9, 2013 at 5:51 PM, Rafa Gaitan wrote: > Hello Jan, > > I didn't use any animated model in android but, Did you add the > serializers or deprecated wrappers into your Android.mk file? > > I recently added (pushed up just now) some missing libraries to the > Android.mk. > Hmm, some of these I am certainly missing. I am in the process of recompiling OSG for Android, will check on Monday. Thanks for the tip! Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org