Re: [osg-users] [build] How to play Video on Android

2014-02-25 Thread kayla wang
Hi, To watch videos on Android devices, we should keep in mind that the best supported video format for Android is mp4 with H.264 codec. To convert videos to H.264 mp4, Aunsoft Video Converter is a good choice. It easily converts videos like mov, wmv, MXF, AVCHD/MTS, TiVo, mkv, flv, etc to

Re: [osg-users] [build] How to play Video on Android

2013-02-11 Thread David Longest
Koduri, 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. This leads me to believe you either don't have

Re: [osg-users] [build] How to play Video on Android

2013-02-09 Thread Koduri Lakshmi
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

Re: [osg-users] [build] How to play Video on Android

2013-02-06 Thread David Longest
Koduri, As long as you are able to link the libav* libraries, the plugin should work. Where are you storing the video file? You should also be able to see what is happening by catching logs from OSG using the NotifyHandler. David ___ osg-users

Re: [osg-users] [build] How to play Video on Android

2013-02-05 Thread Koduri Lakshmi
Hi Jordi Torres David Longest, Thank you very much for the valuable information. I compiled successfully. When try to read a avi file then osgDB::readImageFile always returns NULL. Does ffmpeg plug-in needs any external .so or .a files (like PNG needs libpng15.dll with osgdb_png.dll). I

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jan Ciger
On Fri, Feb 1, 2013 at 8:24 AM, Koduri Lakshmi ankiredd...@gmail.comwrote: If I added -lffmpeg to LOCAL_LDLIBS in Android.mk file then I am getting the following error. Code: cannot find -lffmpeg Can you please help how to link ffmpeg plugin for Andorid. Maybe dumb question, but do you

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
Hi Koduri as Jan said you have to add the generated ffmpeg static libs, I have in my Android.mk: $(OSG_SDK)/obj/local/armeabi-v7a/libavformat.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libavcodec.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libavdevice.a \ $(OSG_SDK)/obj/local/armeabi-v7a/libswscale.a \

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres and Jan Ciger, Thank you very much for the reply. I downloaded ffmpeg1.0 from FFmpeg site. Now compiled statically to generate .a files. I generated /armeabi-v7a/libavformat.a /armeabi-v7a/libavcodec.a /armeabi-v7a/libavdevice.a /armeabi-v7a/libswscale.a

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
Hi Koduri, You can create a Quad and then add the image stream, something like that: osg::ref_ptrosg::Image image = osgDB::readImageFile( /sdcard/videodemo256256.avi.ffmpeg ); osg::ImageStream* imageStream = dynamic_castosg::ImageStream*( image.get() ); if ( imageStream ) {

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres, Thank you very much for the help. I did that in .cpp file as follows Code: img = osgDB::readImageFile(filename); videoStream[idx] = dynamic_castosg::ImageStream*(img); if (videoStream[idx].valid()) { LOG( Got movie);

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
You should investigate further about what are failing in your compilation and fix it, as I don't have your computer in front of me I can't say much more. Sorry. 2013/2/1 Koduri Lakshmi ankiredd...@gmail.com Hi Jordi Torres, Thank you very much for the help. I did that in .cpp file as

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Koduri Lakshmi
Hi Jordi Torres, When I use jpeg plugin, I did the following things 1) USE_OSGPLUGIN(jpeg) in .h file 2) Added -ljpeg to LOCAL_LDLIBS in Android.mk file 3) Added -losgdb_jpeg \ to LOCAL_LDFLAGS in Android.mk file. Similarly I need to do for ffmpeg plugin also. I added -lffmpeg to LOCAL_LDLIBS

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread Jordi Torres
I said you in a previous mail, and Jan too. You need to add to your TARGET_LDLIBS in the Android.mk of your application the libraries generated when building the ffmpeg. NO ffmpeg.a library is created so calling to -lffmpeg is an error and try to link with it too.

Re: [osg-users] [build] How to play Video on Android

2013-02-01 Thread David Longest
Koduri, When I use jpeg plugin, I did the following things 1) USE_OSGPLUGIN(jpeg) in .h file 2) Added -ljpeg to LOCAL_LDLIBS in Android.mk file 3) Added -losgdb_jpeg \ to LOCAL_LDFLAGS in Android.mk file. Similarly I need to do for ffmpeg plugin also. I added -lffmpeg to LOCAL_LDLIBS

Re: [osg-users] [build] How to play Video on Android

2013-01-31 Thread Koduri Lakshmi
Hi Jordi Torres, I build ffmpeg1.0 with OSG3.0.1 for Android (for armv7-a) device. When build example I am getting the errors like undefined reference to `av_log_set_callback. I Added USE_OSGPLUGIN(ffmpeg) to .h file and added ldflag as -losgdb_ffmpeg to Android.mk file. Here are the full

Re: [osg-users] [build] How to play Video on Android

2012-11-08 Thread Jordi Torres
Hi Koduri, I managed to show video in Android after a few modifications in the ffmpeg plugin. I was going to send a submission, but somebody sent updates to make possible to run OSG with the latest ffmepg library. So I am waiting this submission to be merged to make the modifications again if

Re: [osg-users] [build] How to play Video on Android

2012-11-08 Thread Koduri Lakshmi
Hi Jordi Torres, Thank you very much for the great help. When can I expect new release? Now I am using OSG3.0.1. ... Thank you! Cheers, Koduri -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=51020#51020

[osg-users] [build] How to play Video on Android

2012-11-07 Thread Koduri Lakshmi
Hi, I build OSG for Android with GLES1. I loaded models successfully on my mobile. Now I want to play video instead of model (like the one in Windows desktop). Is it possible to play a video using OSG on Android. Can you please help me how to build plugins for these if possible. I searched