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
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
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
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
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
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
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 \
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
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 )
{
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);
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
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
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.
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
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
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
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
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
18 matches
Mail list logo