[osg-users] ffmpeg plugin : play a video frame by frame

2014-02-12 Thread Andrea Martini
Hi everybody,
i'm wondering if is it possible to use ffmpeg plugin with OSG 3.0.1, to play a 
video frame by frame.
I compiled  osg 3.0.1 with ffmpeg plugin, and i run the osgmovie example with 
no problem. 
Now, what i'd like to do, is to play a video frame by frame : i would say to my 
application (using ffmpeg or other video plugin), to visualize a specific frame.
I read the seek method into osg::imagestream. So i wrote the following code:

// Note 1: mImagestream is the imagestream associated to video
// Note 2: framenum is the frame number to visualize 

double duration=mImagestream->getLength();
double frame_rate=mImagestream->getFrameRate();
...

double frameTime=1/frame_rate;
double t_pos =framenum*frameTime;

mImagestream->seek(t_pos);
mImagestream->play();
mImagestream->pause();

...

Nothing happens.
 
Are there some suggestions?

Thank you!

Cheers,
Andrea

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58233#58233





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin

2011-07-08 Thread He, Yefei
Hello, Mourad,

Thanks for the tips. It turned out I did leave one FFMPEG related line unfilled 
in CMake configuration, FFMPEG_STDINT_INCLUDE_DIR. I looked up past 
conversations on OSG mailing list and found the place to download the two 
header files that this line was intended to create a path to. After doing that, 
I was able to get the VS project created. Then I ran into the issue with the 
new FFMPEG libraries but was able to solve it with the fix that Wang Rui 
submitted earlier this week. Thanks Wang Rui!

Cheers,

Yefei

From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Mourad 
Boufarguine
Sent: Friday, July 08, 2011 12:19 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] ffmpeg plugin

On Fri, Jul 8, 2011 at 1:58 AM, He, Yefei 
mailto:yefei...@uiowa.edu>> wrote:
Hi, Folks,

   It's been a while since I updated my OSG files. Today I checked out the 
latest SVN release and tried to use CMake to configure for Visual Studio 2010 
64-bit build. I downloaded the 64-bit FFMPEG packages (from July 4th 2011) and 
filled in all the relevant fields in the OSG CMake settings. I did not see any 
error message regarding FFMPEG when I generated the solution and project files. 
However, afterwards I noticed that the ffmpeg plugin project was missing. The 
project file was not generated at all and of course not included in the OSG 
solution file. Could there be anything that I did wrong? Or was it related to 
the recent issues with FFMPEG?

   Thanks!

   Yefei

Hi Yafei,

Make sure CMake did actually find FFMpeg headers and libs. I don't think it 
does in windows, so you'll have to set them manually.
If CMake doesn't find FFMpeg headers or libs, the ffmpeg plugin won't be added 
to the generated VS solution.

Cheers,
Mourad

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin

2011-07-07 Thread Mourad Boufarguine
On Fri, Jul 8, 2011 at 1:58 AM, He, Yefei  wrote:

> Hi, Folks,
>
>It's been a while since I updated my OSG files. Today I checked out the
> latest SVN release and tried to use CMake to configure for Visual Studio
> 2010 64-bit build. I downloaded the 64-bit FFMPEG packages (from July 4th
> 2011) and filled in all the relevant fields in the OSG CMake settings. I did
> not see any error message regarding FFMPEG when I generated the solution and
> project files. However, afterwards I noticed that the ffmpeg plugin project
> was missing. The project file was not generated at all and of course not
> included in the OSG solution file. Could there be anything that I did wrong?
> Or was it related to the recent issues with FFMPEG?
>
>Thanks!
>
>Yefei
>
>
Hi Yafei,

Make sure CMake did actually find FFMpeg headers and libs. I don't think it
does in windows, so you'll have to set them manually.
If CMake doesn't find FFMpeg headers or libs, the ffmpeg plugin won't be
added to the generated VS solution.

Cheers,
Mourad
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ffmpeg plugin

2011-07-07 Thread He, Yefei
Hi, Folks,

It's been a while since I updated my OSG files. Today I checked out the 
latest SVN release and tried to use CMake to configure for Visual Studio 2010 
64-bit build. I downloaded the 64-bit FFMPEG packages (from July 4th 2011) and 
filled in all the relevant fields in the OSG CMake settings. I did not see any 
error message regarding FFMPEG when I generated the solution and project files. 
However, afterwards I noticed that the ffmpeg plugin project was missing. The 
project file was not generated at all and of course not included in the OSG 
solution file. Could there be anything that I did wrong? Or was it related to 
the recent issues with FFMPEG?
  
Thanks!
  
Yefei

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg-plugin does not recognize .ogv extension

2010-07-01 Thread Robert Osfield
Hi Ari,

Just add the supportsExtension("ogv",""Theora movie format"); into the
ReaderWriterFFmpeg.cpp and see if that works fine for you.   If it
does then send the change to osg-submissions ;-)

Robert.

On Thu, Jul 1, 2010 at 8:18 AM,   wrote:
>
> Hi!
>
> I think I found a little issue with ffmepg plugin. According the source
> files Xine plugin supports .ogv extension (only) and ffmpeg plugin
> supports .ogg (only).
>
> It seems that .ogv is now official extension for video.:
> http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
>
>
> ReaderWriterFFmpeg.cpp:
>
>        supportsExtension("ffmpeg", "");
>        supportsExtension("avi",    "");
>        supportsExtension("flv",    "Flash video");
>        supportsExtension("mov",    "Quicktime");
>        supportsExtension("ogg",    "Theora movie format");
>        supportsExtension("mpg",    "Mpeg movie format");
>        supportsExtension("mpv",    "Mpeg movie format");
>        supportsExtension("wmv",    "Windows Media Video format");
>        supportsExtension("mkv",    "Matroska");
>        supportsExtension("mjpeg",  "Motion JPEG");
>        supportsExtension("mp4",    "MPEG-4");
>        supportsExtension("sav",    "MPEG-4");
>        supportsExtension("3gp",    "MPEG-4");
>        supportsExtension("sdp",    "MPEG-4");
>
> I used hours wondering why ogv example that comes with Ubuntu 10.4 worked
> with xine plugin but not with ffmpeg plugin.
>
>
> Regards,
> Ari Häyrinen
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ffmpeg-plugin does not recognize .ogv extension

2010-07-01 Thread ari . hayrinen

Hi!

I think I found a little issue with ffmepg plugin. According the source
files Xine plugin supports .ogv extension (only) and ffmpeg plugin
supports .ogg (only).

It seems that .ogv is now official extension for video.:
http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions


ReaderWriterFFmpeg.cpp:

supportsExtension("ffmpeg", "");
supportsExtension("avi","");
supportsExtension("flv","Flash video");
supportsExtension("mov","Quicktime");
supportsExtension("ogg","Theora movie format");
supportsExtension("mpg","Mpeg movie format");
supportsExtension("mpv","Mpeg movie format");
supportsExtension("wmv","Windows Media Video format");
supportsExtension("mkv","Matroska");
supportsExtension("mjpeg",  "Motion JPEG");
supportsExtension("mp4","MPEG-4");
supportsExtension("sav","MPEG-4");
supportsExtension("3gp","MPEG-4");
supportsExtension("sdp","MPEG-4");

I used hours wondering why ogv example that comes with Ubuntu 10.4 worked
with xine plugin but not with ffmpeg plugin.


Regards,
Ari Häyrinen



___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ffmpeg plugin on osx

2010-03-31 Thread stefan nortd
Hi,

Has anybody compiled ffmpeg sucessfully to work with osg-2.8.3-rc2? When 
building the osgmovie example I keep getting the attached linker errors no 
matter how I seem to compile ffmpeg. I tried both i386 and x86_64, building 
everything from scratch. I have a feeling though the ffmpeg configure script is 
ignoring the arch flag or I am doing it wrong.

I even tried setting the flags like this without much luck.
LDFLAGS="-arch i386"
CFLAGS="-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386"

Any ideas. Hope this is not too offtopic here. 


Code:

ld: warning: in 
/Users/noema/Development/git/VirtualAwesome/libs/ffmpeg-osx/lib/libavcodec.a, 
file is not of required architecture
ld: warning: in 
/Users/noema/Development/git/VirtualAwesome/libs/ffmpeg-osx/lib/libavdevice.a, 
file is not of required architecture
ld: warning: in 
/Users/noema/Development/git/VirtualAwesome/libs/ffmpeg-osx/lib/libavformat.a, 
file is not of required architecture
ld: warning: in 
/Users/noema/Development/git/VirtualAwesome/libs/ffmpeg-osx/lib/libavutil.a, 
file is not of required architecture
ld: warning: in 
/Users/noema/Development/git/VirtualAwesome/libs/ffmpeg-osx/lib/libswscale.a, 
file is not of required architecture





Thank you!

Cheers,
stefan


stefan hechenberger

http://linear.nortd.com

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26309#26309





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-04-01 Thread Carlos Sanches
Yeah is all ok now .
the problem that I had in my program using xine plugin dont appear with
ffmpeg .
thank you all !
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-04-01 Thread Robert Osfield
Hi Carlos,

Good to here you've got things working.  Still don't know what might have
been wrong in your original setup... but at least things are working now.

FYI, I'm currently use the Kubuntu 9.04 beta and ffmpeg that comes with it.

Robert.

2009/3/31 Carlos Sanches 

> yeah !!!
> Finally  I did it !
> Today I installed the beta version of ubuntu 9.04  and OSG 2.9.2
> Now is running ffmpeg plugin  :)
> Now I can sleep .
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-31 Thread Carlos Sanches
yeah !!!
Finally  I did it !
Today I installed the beta version of ubuntu 9.04  and OSG 2.9.2
Now is running ffmpeg plugin  :)
Now I can sleep .
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-22 Thread Carlos Sanches
good news :)
this weekend i m trying to do ffmpeg run in my  home computer.
Here I have ubuntu too .
The error dont appear here :)
but , when I enter the directory OSG/bin  and run the osgmovie example the
terminal stay waiting and nothing happens . no errors.
i m trying these commands :
./osgmovie /home/carlos/videos/test.avi
./osgmovie -e ffmpeg /home/carlos/videos/test.avi

nothing happens :(

I ll try run 'ldd osgdb_ffmpeg.so'  tomorrow in my job.
here in my home I m using ATI radeon x1600 card and ubuntu 7.10
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Ulrich Hertlein

Hi Carlos,

On 21/3/09 3:17 AM, Carlos Sanches wrote:

the example was built again but .
running example with ./osgmovie -e ffmpeg video.avi   or .mpg
the movie runs but the same error apears.

Warning: dynamic library
'/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error
occurred while trying to open it:
/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
inflateInit_


You could try to run 'ldd osgdb_ffmpeg.so' and also on the various ffmpeg libraries to try 
and find out where (or if) they're looking for zlib.


Cheers,
/ulrich

PS: Could you *please* *not* copy the entire mail thread in your replies?
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Robert Osfield
HI Carlos,

As I don't see any of these problems, I'm afraid there isn't much I can do
apart from make suggestions for you to try out.  Right now it looks like
you'll need to add the zlib library into the build of other ffmpeg or our
plugin.

Robert.

2009/3/20 Carlos Sanches 

> :(
> ok.
> I downloaded,  compiled and instaled zlib-1.2.3
> built ffmpeg from svn again with new zlib installed
> in osg i changed the directories of zlib to the new zlib in ccmake
> cmakelist.txt
> in OpenSceneGraph-2.9.1 directory:
> ./configure
> make clean
> make
>
> the example was built again but .
> running example with ./osgmovie -e ffmpeg video.avi   or .mpg
> the movie runs but the same error apears.
>
> Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
> exists, but an error occurred while trying to open it:
> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
> inflateInit_
> image->s()640 image-t()=480 aspectRatio=1
> Transparent movie, enabling blending.
>
> My sistem is Ubuntu 8.04
> videocard  nvidia 8800 gtx
> motherboard P5N-T DELUXE
> Intel(R) Core(TM)2 Quad CPUQ6600  @ 2.40GHz
>
> say me if you need more information .
> i realy need to play movies with ffmpeg.
>
> tks
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 2009/3/20 Robert Osfield 
>
>> Hi Carlos,
>>
>> What happens when you run:
>>
>>osgmovie -e ffmpeg a_video.mpg
>>
>> Is it still reporting that it can't load the plugin?
>>
>> I suspect that you are still hitting against the plugin not loading
>> correctly.  The inflatInit method is still being reported as not found and
>> this function is from zlib then ffmpeg is built without linking against zlib
>> which is needs.  Linking against zlib ourselves in our ffmpeg could a
>> solution.
>>
>> It's odd that you're having problems wheras others aren't.  What is the
>> exact spec of your system?
>>
>> Robert.
>>
>> 2009/3/20 Carlos Sanches 
>>
>> ok , now i m using svn version of ffmpeg.
>>> bow the example runs but the message still apear
>>>
>>> I put the the lines in main function of my program::
>>>
>>> std::string libName =  
>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>> osgDB::Registry::instance()->loadLibrary(libName);
>>>
>>> but looks like that its using xine yet .
>>> and the old error continues.
>>>
>>>
>>> *** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
>>> === Backtrace: =
>>> /lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
>>> /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
>>> /usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
>>> /usr/lib/libxine.so.1[0xb58484d8]
>>> === Memory map: 
>>>
>>> Why my ffmpeg is not in use ?
>>> I have to modify something in osgDB ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2009/3/20 Robert Osfield 
>>>
>>> HI Carlos,

 Our plugin doesn't contain any inflateInit_ or inflate method of any
 kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't
 see this error myself when building from various versions of ffmpeg so
 perhaps it's version 0.5 that has gone astray.

 Have a look in ffmpeg itself for the inflateInit_ method.  Another thing
 you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled
 down from the Ubuntu repositories.

 Robert.


 2009/3/19 Carlos Sanches 

> Ok , I did it .
> now I m trying to run de example:
>  osgmovie -e ffmpeg
>
> this error occours
>
> Warning: dynamic library
> '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error
> occurred while trying to open it:
> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
> inflateInit_
> Usage: ./osgmovie [options] filename ...
> Options:
> ...
>
>
>
>
>
> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>
>> I am working with windows, no problem there, but here my settings.
>> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
>> New Value (Enter to keep current value):

Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Carlos Sanches
:(
ok.
I downloaded,  compiled and instaled zlib-1.2.3
built ffmpeg from svn again with new zlib installed
in osg i changed the directories of zlib to the new zlib in ccmake
cmakelist.txt
in OpenSceneGraph-2.9.1 directory:
./configure
make clean
make

the example was built again but .
running example with ./osgmovie -e ffmpeg video.avi   or .mpg
the movie runs but the same error apears.

Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
exists, but an error occurred while trying to open it:
/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
inflateInit_
image->s()640 image-t()=480 aspectRatio=1
Transparent movie, enabling blending.

My sistem is Ubuntu 8.04
videocard  nvidia 8800 gtx
motherboard P5N-T DELUXE
Intel(R) Core(TM)2 Quad CPUQ6600  @ 2.40GHz

say me if you need more information .
i realy need to play movies with ffmpeg.

tks














2009/3/20 Robert Osfield 

> Hi Carlos,
>
> What happens when you run:
>
>osgmovie -e ffmpeg a_video.mpg
>
> Is it still reporting that it can't load the plugin?
>
> I suspect that you are still hitting against the plugin not loading
> correctly.  The inflatInit method is still being reported as not found and
> this function is from zlib then ffmpeg is built without linking against zlib
> which is needs.  Linking against zlib ourselves in our ffmpeg could a
> solution.
>
> It's odd that you're having problems wheras others aren't.  What is the
> exact spec of your system?
>
> Robert.
>
> 2009/3/20 Carlos Sanches 
>
> ok , now i m using svn version of ffmpeg.
>> bow the example runs but the message still apear
>>
>> I put the the lines in main function of my program::
>>
>> std::string libName =  
>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>> osgDB::Registry::instance()->loadLibrary(libName);
>>
>> but looks like that its using xine yet .
>> and the old error continues.
>>
>>
>> *** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
>> === Backtrace: =
>> /lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
>> /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
>> /usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
>> /usr/lib/libxine.so.1[0xb58484d8]
>> === Memory map: 
>>
>> Why my ffmpeg is not in use ?
>> I have to modify something in osgDB ?
>>
>>
>>
>>
>>
>>
>>
>> 2009/3/20 Robert Osfield 
>>
>> HI Carlos,
>>>
>>> Our plugin doesn't contain any inflateInit_ or inflate method of any
>>> kind, so the missing sybmol must be coming from ffmpeg itself.  I haven't
>>> see this error myself when building from various versions of ffmpeg so
>>> perhaps it's version 0.5 that has gone astray.
>>>
>>> Have a look in ffmpeg itself for the inflateInit_ method.  Another thing
>>> you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled
>>> down from the Ubuntu repositories.
>>>
>>> Robert.
>>>
>>>
>>> 2009/3/19 Carlos Sanches 
>>>
 Ok , I did it .
 now I m trying to run de example:
  osgmovie -e ffmpeg

 this error occours

 Warning: dynamic library
 '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error
 occurred while trying to open it:
 /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
 inflateInit_
 Usage: ./osgmovie [options] filename ...
 Options:
 ...





 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>

> I am working with windows, no problem there, but here my settings.
> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
> Description: 

Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Robert Osfield
Hi Carlos,

What happens when you run:

   osgmovie -e ffmpeg a_video.mpg

Is it still reporting that it can't load the plugin?

I suspect that you are still hitting against the plugin not loading
correctly.  The inflatInit method is still being reported as not found and
this function is from zlib then ffmpeg is built without linking against zlib
which is needs.  Linking against zlib ourselves in our ffmpeg could a
solution.

It's odd that you're having problems wheras others aren't.  What is the
exact spec of your system?

Robert.

2009/3/20 Carlos Sanches 

> ok , now i m using svn version of ffmpeg.
> bow the example runs but the message still apear
>
> I put the the lines in main function of my program::
>
> std::string libName =  
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> but looks like that its using xine yet .
> and the old error continues.
>
>
> *** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
> === Backtrace: =
> /lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
> /usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
> /usr/lib/libxine.so.1[0xb58484d8]
> === Memory map: 
>
> Why my ffmpeg is not in use ?
> I have to modify something in osgDB ?
>
>
>
>
>
>
>
> 2009/3/20 Robert Osfield 
>
> HI Carlos,
>>
>> Our plugin doesn't contain any inflateInit_ or inflate method of any kind,
>> so the missing sybmol must be coming from ffmpeg itself.  I haven't see this
>> error myself when building from various versions of ffmpeg so perhaps it's
>> version 0.5 that has gone astray.
>>
>> Have a look in ffmpeg itself for the inflateInit_ method.  Another thing
>> you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled
>> down from the Ubuntu repositories.
>>
>> Robert.
>>
>>
>> 2009/3/19 Carlos Sanches 
>>
>>> Ok , I did it .
>>> now I m trying to run de example:
>>>  osgmovie -e ffmpeg
>>>
>>> this error occours
>>>
>>> Warning: dynamic library
>>> '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so' exists, but an error
>>> occurred while trying to open it:
>>> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
>>> inflateInit_
>>> Usage: ./osgmovie [options] filename ...
>>> Options:
>>> ...
>>>
>>>
>>>
>>>
>>>
>>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>>>
 I am working with windows, no problem there, but here my settings.
 Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
 Description: Path to a file.
 Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
 Description: Path to a library.
 Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
 Description: Path to a file.
 Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
 Description: Path to a library.
 Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
 Description: Path to a file.
 Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
 Description: Path to a library.
 Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
 Description: Path to a file.
 Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
 Description: Path to a library.
 Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
 Description: Path to a file.
 Current Value: F:/dev/ffmpeg/SDK/include/libswscale
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
 Description: Path to a library.
 Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
 New Value (Enter to keep current value):

 Variable Name: FFMPEG_ROOT
 Description: Location of FFMPEG
 Current Value: F:/dev/ffmpeg/SDK/include
 New Value (Enter to keep current value):


 2009/3/19 Carlos Sanches 

 Hi Adrian !
> ok, I have the ffmpeg installed . I use it to convert my movies.
> Now I m seeing in ccmake configure list . but have some options that I
> dont know what I have to put there.
> the options are :
>
> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBAVCODEC_LIBRARIES
> /usr/lib/libavc

Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Carlos Sanches
yeah

here *
http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/zlib-inflateinit.html
*






On Fri, Mar 20, 2009 at 9:47 AM, Tanguy Fautre  wrote:

> Hi guys,
>
> inflateInit_ sounds very much like an API entry point in zlib.
>
>
> Tanguy
>
>
>
> From: osg-users-boun...@lists.openscenegraph.org [mailto:
> osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
> Sent: Friday 20 March 2009 08:55
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] FFmpeg plugin
>
> HI Carlos,
>
> Our plugin doesn't contain any inflateInit_ or inflate method of any kind,
> so the missing sybmol must be coming from ffmpeg itself.  I haven't see this
> error myself when building from various versions of ffmpeg so perhaps it's
> version 0.5 that has gone astray.
>
> Have a look in ffmpeg itself for the inflateInit_ method.  Another thing
> you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled
> down from the Ubuntu repositories.
>
> Robert.
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
   Carlos Sanches
Programação Gráfica;

Tel:  55 11 3816 2888
Cel: 55 11 9650 7137

  Somar Meteorologia
www.somarmeteorologia.com.br
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Tanguy Fautre
Hi guys,

inflateInit_ sounds very much like an API entry point in zlib.


Tanguy



From: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Friday 20 March 2009 08:55
To: OpenSceneGraph Users
Subject: Re: [osg-users] FFmpeg plugin

HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind, so 
the missing sybmol must be coming from ffmpeg itself.  I haven't see this error 
myself when building from various versions of ffmpeg so perhaps it's version 
0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you 
could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down 
from the Ubuntu repositories.

Robert.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Carlos Sanches
ok , now i m using svn version of ffmpeg.
bow the example runs but the message still apear

I put the the lines in main function of my program::

std::string libName =  osgDB::Registry::instance()->
createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);

but looks like that its using xine yet .
and the old error continues.


*** glibc detected *** ./OSG: free(): invalid pointer: 0x0b1f8fc7 ***
=== Backtrace: =
/lib/tls/i686/cmov/libc.so.6[0xb73e9a85]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb73ed4f0]
/usr/local/lib/osgPlugins-2.9.1/osgdb_xine.so[0xb7f7c823]
/usr/lib/libxine.so.1[0xb58484d8]
=== Memory map: 

Why my ffmpeg is not in use ?
I have to modify something in osgDB ?







2009/3/20 Robert Osfield 

> HI Carlos,
>
> Our plugin doesn't contain any inflateInit_ or inflate method of any kind,
> so the missing sybmol must be coming from ffmpeg itself.  I haven't see this
> error myself when building from various versions of ffmpeg so perhaps it's
> version 0.5 that has gone astray.
>
> Have a look in ffmpeg itself for the inflateInit_ method.  Another thing
> you could try is using the svn version of ffmpeg, or the ffmpeg libs pulled
> down from the Ubuntu repositories.
>
> Robert.
>
>
> 2009/3/19 Carlos Sanches 
>
>> Ok , I did it .
>> now I m trying to run de example:
>>  osgmovie -e ffmpeg
>>
>> this error occours
>>
>> Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
>> exists, but an error occurred while trying to open it:
>> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
>> inflateInit_
>> Usage: ./osgmovie [options] filename ...
>> Options:
>> ...
>>
>>
>>
>>
>>
>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>>
>>> I am working with windows, no problem there, but here my settings.
>>> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>>> Description: Path to a file.
>>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
>>> Description: Path to a library.
>>> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
>>> Description: Path to a file.
>>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
>>> Description: Path to a library.
>>> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
>>> Description: Path to a file.
>>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
>>> Description: Path to a library.
>>> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>>> Description: Path to a file.
>>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
>>> Description: Path to a library.
>>> Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>>> Description: Path to a file.
>>> Current Value: F:/dev/ffmpeg/SDK/include/libswscale
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
>>> Description: Path to a library.
>>> Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
>>> New Value (Enter to keep current value):
>>>
>>> Variable Name: FFMPEG_ROOT
>>> Description: Location of FFMPEG
>>> Current Value: F:/dev/ffmpeg/SDK/include
>>> New Value (Enter to keep current value):
>>>
>>>
>>> 2009/3/19 Carlos Sanches 
>>>
>>> Hi Adrian !
 ok, I have the ffmpeg installed . I use it to convert my movies.
 Now I m seeing in ccmake configure list . but have some options that I
 dont know what I have to put there.
 the options are :

 FFMPEG_LIBAVCODEC_INCLUDE_DIRS
 /usr/include

  FFMPEG_LIBAVCODEC_LIBRARIES
 /usr/lib/libavcodec.so

  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
 FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND

  FFMPEG_LIBAVDEVICE_LIBRARIES
 FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND

  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
 /usr/include

  FFMPEG_LIBAVFORMAT_LIBRARIES
 /usr/lib/libavformat.so

  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
 /usr/include

  FFMPEG_LIBAVUTIL_LIBRARIES
 /usr/lib/libavutil.so

  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
 /usr/include

  FFMPEG_LIBSWSCALE_LIBRARIES
 /usr/lib/libswscale.so

  FFMPEG_ROOT


 The options that I believe that must be wrong are:
 FFMPEG_LIBAVDEVICE_INCLUDE_DIR
  FFMPEG_LIBAVDEVICE_LIBRARIES
  

Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Robert Osfield
HI Carlos,

Our plugin doesn't contain any inflateInit_ or inflate method of any kind,
so the missing sybmol must be coming from ffmpeg itself.  I haven't see this
error myself when building from various versions of ffmpeg so perhaps it's
version 0.5 that has gone astray.

Have a look in ffmpeg itself for the inflateInit_ method.  Another thing you
could try is using the svn version of ffmpeg, or the ffmpeg libs pulled down
from the Ubuntu repositories.

Robert.

2009/3/19 Carlos Sanches 

> Ok , I did it .
> now I m trying to run de example:
>  osgmovie -e ffmpeg
>
> this error occours
>
> Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
> exists, but an error occurred while trying to open it:
> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
> inflateInit_
> Usage: ./osgmovie [options] filename ...
> Options:
> ...
>
>
>
>
>
> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>
>> I am working with windows, no problem there, but here my settings.
>> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/libswscale
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_ROOT
>> Description: Location of FFMPEG
>> Current Value: F:/dev/ffmpeg/SDK/include
>> New Value (Enter to keep current value):
>>
>>
>> 2009/3/19 Carlos Sanches 
>>
>> Hi Adrian !
>>> ok, I have the ffmpeg installed . I use it to convert my movies.
>>> Now I m seeing in ccmake configure list . but have some options that I
>>> dont know what I have to put there.
>>> the options are :
>>>
>>> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVCODEC_LIBRARIES
>>> /usr/lib/libavcodec.so
>>>
>>>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>>>
>>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>>>
>>>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVFORMAT_LIBRARIES
>>> /usr/lib/libavformat.so
>>>
>>>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVUTIL_LIBRARIES
>>> /usr/lib/libavutil.so
>>>
>>>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBSWSCALE_LIBRARIES
>>> /usr/lib/libswscale.so
>>>
>>>  FFMPEG_ROOT
>>>
>>>
>>> The options that I believe that must be wrong are:
>>> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>>  FFMPEG_ROOT
>>>
>>> What I have to do in these options ?
>>> tks
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>>>
>>> Hi Carlos
 You have to donwload ffmpeg and build the plugin by setting up the right
 parameters in cmake. then osg will build the ffmpeg plugin as well as the
 other 3rd party plugins will be build.

 adrian

 2009/3/18 Carlos Sanches 

 Hi Robert.
> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
> the plugin for ffmpeg .
> this is correct ?
> I put this in my code ...
> std::string libName =
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> but how I know if it is using ffmpeg ?
>
> tks
>
>
>
>
> 2009/3/16 Robert Osfield 
>
> Hi Carl

Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Carlos Sanches
my ffmpeg version



FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration:
  libavutil 49.15. 0 / 49.15. 0
  libavcodec52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Mar 19 2009 12:47:35, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
ffmpeg: missing argument for option '-v'




On Thu, Mar 19, 2009 at 3:45 PM, Carlos Sanches  wrote:

> Ok , I did it .
> now I m trying to run de example:
>  osgmovie -e ffmpeg
>
> this error occours
>
> Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
> exists, but an error occurred while trying to open it:
> /usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
> inflateInit_
> Usage: ./osgmovie [options] filename ...
> Options:
> ...
>
>
>
>
>
> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>
>> I am working with windows, no problem there, but here my settings.
>> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>> Description: Path to a file.
>> Current Value: F:/dev/ffmpeg/SDK/include/libswscale
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
>> Description: Path to a library.
>> Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
>> New Value (Enter to keep current value):
>>
>> Variable Name: FFMPEG_ROOT
>> Description: Location of FFMPEG
>> Current Value: F:/dev/ffmpeg/SDK/include
>> New Value (Enter to keep current value):
>>
>>
>> 2009/3/19 Carlos Sanches 
>>
>> Hi Adrian !
>>> ok, I have the ffmpeg installed . I use it to convert my movies.
>>> Now I m seeing in ccmake configure list . but have some options that I
>>> dont know what I have to put there.
>>> the options are :
>>>
>>> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVCODEC_LIBRARIES
>>> /usr/lib/libavcodec.so
>>>
>>>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>>>
>>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>>>
>>>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVFORMAT_LIBRARIES
>>> /usr/lib/libavformat.so
>>>
>>>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBAVUTIL_LIBRARIES
>>> /usr/lib/libavutil.so
>>>
>>>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>>> /usr/include
>>>
>>>  FFMPEG_LIBSWSCALE_LIBRARIES
>>> /usr/lib/libswscale.so
>>>
>>>  FFMPEG_ROOT
>>>
>>>
>>> The options that I believe that must be wrong are:
>>> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>>  FFMPEG_ROOT
>>>
>>> What I have to do in these options ?
>>> tks
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>>>
>>> Hi Carlos
 You have to donwload ffmpeg and build the plugin by setting up the right
 parameters in cmake. then osg will build the ffmpeg plugin as well as the
 other 3rd party plugins will be build.

 adrian

 2009/3/18 Carlos Sanches 

 Hi Robert.
> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
> the plugin for ffmpeg .
> this is correct ?
> I put this in my code ...
> std::string libName =
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> but how I know if it is using ffmpeg ?
>
> tks
>
>
>
>
> 2009/3/16 Robert Osfield 
>
> Hi Carlos,
>>
>> Have a look at the osgmovie example for guidance, it'll b

Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Carlos Sanches
Ok , I did it .
now I m trying to run de example:
 osgmovie -e ffmpeg

this error occours

Warning: dynamic library '/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so'
exists, but an error occurred while trying to open it:
/usr/local/lib/osgPlugins-2.9.1/osgdb_ffmpeg.so: undefined symbol:
inflateInit_
Usage: ./osgmovie [options] filename ...
Options:
...




2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>

> I am working with windows, no problem there, but here my settings.
> Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
> Description: Path to a file.
> Current Value: F:/dev/ffmpeg/SDK/include/libswscale
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
> Description: Path to a library.
> Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
> New Value (Enter to keep current value):
>
> Variable Name: FFMPEG_ROOT
> Description: Location of FFMPEG
> Current Value: F:/dev/ffmpeg/SDK/include
> New Value (Enter to keep current value):
>
>
> 2009/3/19 Carlos Sanches 
>
> Hi Adrian !
>> ok, I have the ffmpeg installed . I use it to convert my movies.
>> Now I m seeing in ccmake configure list . but have some options that I
>> dont know what I have to put there.
>> the options are :
>>
>> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBAVCODEC_LIBRARIES
>> /usr/lib/libavcodec.so
>>
>>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>>
>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>>
>>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
>> /usr/include
>>
>>  FFMPEG_LIBAVFORMAT_LIBRARIES
>> /usr/lib/libavformat.so
>>
>>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBAVUTIL_LIBRARIES
>> /usr/lib/libavutil.so
>>
>>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
>> /usr/include
>>
>>  FFMPEG_LIBSWSCALE_LIBRARIES
>> /usr/lib/libswscale.so
>>
>>  FFMPEG_ROOT
>>
>>
>> The options that I believe that must be wrong are:
>> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>>  FFMPEG_LIBAVDEVICE_LIBRARIES
>>  FFMPEG_ROOT
>>
>> What I have to do in these options ?
>> tks
>>
>>
>>
>>
>>
>>
>>
>>
>> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>>
>> Hi Carlos
>>> You have to donwload ffmpeg and build the plugin by setting up the right
>>> parameters in cmake. then osg will build the ffmpeg plugin as well as the
>>> other 3rd party plugins will be build.
>>>
>>> adrian
>>>
>>> 2009/3/18 Carlos Sanches 
>>>
>>> Hi Robert.
 I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
 the plugin for ffmpeg .
 this is correct ?
 I put this in my code ...
 std::string libName =
 osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
 osgDB::Registry::instance()->loadLibrary(libName);

 but how I know if it is using ffmpeg ?

 tks




 2009/3/16 Robert Osfield 

 Hi Carlos,
>
> Have a look at the osgmovie example for guidance, it'll boil down to
> reading a image, and assing to the a textured quad.  Right now you'll need
> to preload the ffmpeg plugin as osgDB won't yet automatically alias the
> movie extensions to ffmpeg.  On the movie command line you use the option 
> -e
> ffmpeg to pre load the plugin.  Programatically you'd use:
>
> std::string libName =
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> Robert.
>
> 2009/3/16 Carlos Sanches 
>
>>
>> Hi all !
>> I downloade

Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Adrian Egli OpenSceneGraph (3D)
I am working with windows, no problem there, but here my settings.
Variable Name: FFMPEG_LIBAVCODEC_INCLUDE_DIRS
Description: Path to a file.
Current Value: F:/dev/ffmpeg/SDK/include/LIBAVCODEC
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVCODEC_LIBRARIES
Description: Path to a library.
Current Value: F:/dev/ffmpeg/SDK/lib/avcodec-52.lib
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVDEVICE_INCLUDE_DIRS
Description: Path to a file.
Current Value: F:/dev/ffmpeg/SDK/include/LIBAVDEVICE
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVDEVICE_LIBRARIES
Description: Path to a library.
Current Value: F:/dev/ffmpeg/SDK/lib/avdevice-52.lib
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVFORMAT_INCLUDE_DIRS
Description: Path to a file.
Current Value: F:/dev/ffmpeg/SDK/include/LIBAVFORMAT
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVFORMAT_LIBRARIES
Description: Path to a library.
Current Value: F:/dev/ffmpeg/SDK/lib/avformat-52.lib
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVUTIL_INCLUDE_DIRS
Description: Path to a file.
Current Value: F:/dev/ffmpeg/SDK/include/LIBAVUTIL
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBAVUTIL_LIBRARIES
Description: Path to a library.
Current Value: F:/dev/ffmpeg/SDK/lib/avutil-49.lib
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBSWSCALE_INCLUDE_DIRS
Description: Path to a file.
Current Value: F:/dev/ffmpeg/SDK/include/libswscale
New Value (Enter to keep current value):

Variable Name: FFMPEG_LIBSWSCALE_LIBRARIES
Description: Path to a library.
Current Value: F:/dev/ffmpeg/SDK/lib/swscale-0.lib
New Value (Enter to keep current value):

Variable Name: FFMPEG_ROOT
Description: Location of FFMPEG
Current Value: F:/dev/ffmpeg/SDK/include
New Value (Enter to keep current value):


2009/3/19 Carlos Sanches 

> Hi Adrian !
> ok, I have the ffmpeg installed . I use it to convert my movies.
> Now I m seeing in ccmake configure list . but have some options that I dont
> know what I have to put there.
> the options are :
>
> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBAVCODEC_LIBRARIES
> /usr/lib/libavcodec.so
>
>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>
>  FFMPEG_LIBAVDEVICE_LIBRARIES
> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>
>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
> /usr/include
>
>  FFMPEG_LIBAVFORMAT_LIBRARIES
> /usr/lib/libavformat.so
>
>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBAVUTIL_LIBRARIES
> /usr/lib/libavutil.so
>
>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBSWSCALE_LIBRARIES
> /usr/lib/libswscale.so
>
>  FFMPEG_ROOT
>
>
> The options that I believe that must be wrong are:
> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>  FFMPEG_LIBAVDEVICE_LIBRARIES
>  FFMPEG_ROOT
>
> What I have to do in these options ?
> tks
>
>
>
>
>
>
>
>
> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>
> Hi Carlos
>> You have to donwload ffmpeg and build the plugin by setting up the right
>> parameters in cmake. then osg will build the ffmpeg plugin as well as the
>> other 3rd party plugins will be build.
>>
>> adrian
>>
>> 2009/3/18 Carlos Sanches 
>>
>> Hi Robert.
>>> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
>>> the plugin for ffmpeg .
>>> this is correct ?
>>> I put this in my code ...
>>> std::string libName =
>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>> osgDB::Registry::instance()->loadLibrary(libName);
>>>
>>> but how I know if it is using ffmpeg ?
>>>
>>> tks
>>>
>>>
>>>
>>>
>>> 2009/3/16 Robert Osfield 
>>>
>>> Hi Carlos,

 Have a look at the osgmovie example for guidance, it'll boil down to
 reading a image, and assing to the a textured quad.  Right now you'll need
 to preload the ffmpeg plugin as osgDB won't yet automatically alias the
 movie extensions to ffmpeg.  On the movie command line you use the option 
 -e
 ffmpeg to pre load the plugin.  Programatically you'd use:

 std::string libName =
 osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
 osgDB::Registry::instance()->loadLibrary(libName);

 Robert.

 2009/3/16 Carlos Sanches 

>
> Hi all !
> I downloaded osg 2.9.1 . I m using  pImageStream =
> dynamic_cast(hudImage);
> to open a movie.
> What have I to do to use ffmpeg to read my movies ?
>
> tks
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Robert Osfield
HI Carlos,

You'll need to install the headers for ffmpeg and the device library.

Robet.

2009/3/19 Carlos Sanches 

> Hi Adrian !
> ok, I have the ffmpeg installed . I use it to convert my movies.
> Now I m seeing in ccmake configure list . but have some options that I dont
> know what I have to put there.
> the options are :
>
> FFMPEG_LIBAVCODEC_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBAVCODEC_LIBRARIES
> /usr/lib/libavcodec.so
>
>  FFMPEG_LIBAVDEVICE_INCLUDE_DIR
> FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND
>
>  FFMPEG_LIBAVDEVICE_LIBRARIES
> FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND
>
>  FFMPEG_LIBAVFORMAT_INCLUDE_DIR
> /usr/include
>
>  FFMPEG_LIBAVFORMAT_LIBRARIES
> /usr/lib/libavformat.so
>
>  FFMPEG_LIBAVUTIL_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBAVUTIL_LIBRARIES
> /usr/lib/libavutil.so
>
>  FFMPEG_LIBSWSCALE_INCLUDE_DIRS
> /usr/include
>
>  FFMPEG_LIBSWSCALE_LIBRARIES
> /usr/lib/libswscale.so
>
>  FFMPEG_ROOT
>
>
> The options that I believe that must be wrong are:
> FFMPEG_LIBAVDEVICE_INCLUDE_DIR
>  FFMPEG_LIBAVDEVICE_LIBRARIES
>  FFMPEG_ROOT
>
> What I have to do in these options ?
> tks
>
>
>
>
>
>
>
>
> 2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>
>
> Hi Carlos
>> You have to donwload ffmpeg and build the plugin by setting up the right
>> parameters in cmake. then osg will build the ffmpeg plugin as well as the
>> other 3rd party plugins will be build.
>>
>> adrian
>>
>> 2009/3/18 Carlos Sanches 
>>
>> Hi Robert.
>>> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
>>> the plugin for ffmpeg .
>>> this is correct ?
>>> I put this in my code ...
>>> std::string libName =
>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>> osgDB::Registry::instance()->loadLibrary(libName);
>>>
>>> but how I know if it is using ffmpeg ?
>>>
>>> tks
>>>
>>>
>>>
>>>
>>> 2009/3/16 Robert Osfield 
>>>
>>> Hi Carlos,

 Have a look at the osgmovie example for guidance, it'll boil down to
 reading a image, and assing to the a textured quad.  Right now you'll need
 to preload the ffmpeg plugin as osgDB won't yet automatically alias the
 movie extensions to ffmpeg.  On the movie command line you use the option 
 -e
 ffmpeg to pre load the plugin.  Programatically you'd use:

 std::string libName =
 osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
 osgDB::Registry::instance()->loadLibrary(libName);

 Robert.

 2009/3/16 Carlos Sanches 

>
> Hi all !
> I downloaded osg 2.9.1 . I m using  pImageStream =
> dynamic_cast(hudImage);
> to open a movie.
> What have I to do to use ffmpeg to read my movies ?
>
> tks
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


>>>
>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>>
>> --
>> 
>> Adrian Egli
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
>Carlos Sanches
> Programação Gráfica;
>
> Tel:  55 11 3816 2888
> Cel: 55 11 9650 7137
>
>   Somar Meteorologia
> www.somarmeteorologia.com.br
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Carlos Sanches
Hi Adrian !
ok, I have the ffmpeg installed . I use it to convert my movies.
Now I m seeing in ccmake configure list . but have some options that I dont
know what I have to put there.
the options are :

FFMPEG_LIBAVCODEC_INCLUDE_DIRS
/usr/include

 FFMPEG_LIBAVCODEC_LIBRARIES
/usr/lib/libavcodec.so

 FFMPEG_LIBAVDEVICE_INCLUDE_DIR
FFMPEG_LIBAVDEVICE_INCLUDE_DIRS-NOTFOUND

 FFMPEG_LIBAVDEVICE_LIBRARIES
FFMPEG_LIBAVDEVICE_LIBRARIES-NOTFOUND

 FFMPEG_LIBAVFORMAT_INCLUDE_DIR
/usr/include

 FFMPEG_LIBAVFORMAT_LIBRARIES
/usr/lib/libavformat.so

 FFMPEG_LIBAVUTIL_INCLUDE_DIRS
/usr/include

 FFMPEG_LIBAVUTIL_LIBRARIES
/usr/lib/libavutil.so

 FFMPEG_LIBSWSCALE_INCLUDE_DIRS
/usr/include

 FFMPEG_LIBSWSCALE_LIBRARIES
/usr/lib/libswscale.so

 FFMPEG_ROOT


The options that I believe that must be wrong are:
FFMPEG_LIBAVDEVICE_INCLUDE_DIR
 FFMPEG_LIBAVDEVICE_LIBRARIES
 FFMPEG_ROOT

What I have to do in these options ?
tks








2009/3/19 Adrian Egli OpenSceneGraph (3D) <3dh...@gmail.com>

> Hi Carlos
> You have to donwload ffmpeg and build the plugin by setting up the right
> parameters in cmake. then osg will build the ffmpeg plugin as well as the
> other 3rd party plugins will be build.
>
> adrian
>
> 2009/3/18 Carlos Sanches 
>
> Hi Robert.
>> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have
>> the plugin for ffmpeg .
>> this is correct ?
>> I put this in my code ...
>> std::string libName =
>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>> osgDB::Registry::instance()->loadLibrary(libName);
>>
>> but how I know if it is using ffmpeg ?
>>
>> tks
>>
>>
>>
>>
>> 2009/3/16 Robert Osfield 
>>
>> Hi Carlos,
>>>
>>> Have a look at the osgmovie example for guidance, it'll boil down to
>>> reading a image, and assing to the a textured quad.  Right now you'll need
>>> to preload the ffmpeg plugin as osgDB won't yet automatically alias the
>>> movie extensions to ffmpeg.  On the movie command line you use the option -e
>>> ffmpeg to pre load the plugin.  Programatically you'd use:
>>>
>>> std::string libName =
>>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>>> osgDB::Registry::instance()->loadLibrary(libName);
>>>
>>> Robert.
>>>
>>> 2009/3/16 Carlos Sanches 
>>>

 Hi all !
 I downloaded osg 2.9.1 . I m using  pImageStream =
 dynamic_cast(hudImage);
 to open a movie.
 What have I to do to use ffmpeg to read my movies ?

 tks




 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org

 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> --
> 
> Adrian Egli
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
   Carlos Sanches
Programação Gráfica;

Tel:  55 11 3816 2888
Cel: 55 11 9650 7137

  Somar Meteorologia
www.somarmeteorologia.com.br
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-19 Thread Adrian Egli OpenSceneGraph (3D)
Hi Carlos
You have to donwload ffmpeg and build the plugin by setting up the right
parameters in cmake. then osg will build the ffmpeg plugin as well as the
other 3rd party plugins will be build.

adrian

2009/3/18 Carlos Sanches 

> Hi Robert.
> I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have the
> plugin for ffmpeg .
> this is correct ?
> I put this in my code ...
> std::string libName =
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> but how I know if it is using ffmpeg ?
>
> tks
>
>
>
>
> 2009/3/16 Robert Osfield 
>
> Hi Carlos,
>>
>> Have a look at the osgmovie example for guidance, it'll boil down to
>> reading a image, and assing to the a textured quad.  Right now you'll need
>> to preload the ffmpeg plugin as osgDB won't yet automatically alias the
>> movie extensions to ffmpeg.  On the movie command line you use the option -e
>> ffmpeg to pre load the plugin.  Programatically you'd use:
>>
>> std::string libName =
>> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
>> osgDB::Registry::instance()->loadLibrary(libName);
>>
>> Robert.
>>
>> 2009/3/16 Carlos Sanches 
>>
>>>
>>> Hi all !
>>> I downloaded osg 2.9.1 . I m using  pImageStream =
>>> dynamic_cast(hudImage);
>>> to open a movie.
>>> What have I to do to use ffmpeg to read my movies ?
>>>
>>> tks
>>>
>>>
>>>
>>>
>>> ___
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 

Adrian Egli
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-18 Thread Carlos Sanches
Hi Robert.
I m seeing that my /usr/local/lib/osgPlugins-2.9.1  directory dont have the
plugin for ffmpeg .
this is correct ?
I put this in my code ...
std::string libName =
osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);

but how I know if it is using ffmpeg ?

tks




2009/3/16 Robert Osfield 

> Hi Carlos,
>
> Have a look at the osgmovie example for guidance, it'll boil down to
> reading a image, and assing to the a textured quad.  Right now you'll need
> to preload the ffmpeg plugin as osgDB won't yet automatically alias the
> movie extensions to ffmpeg.  On the movie command line you use the option -e
> ffmpeg to pre load the plugin.  Programatically you'd use:
>
> std::string libName =
> osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
> osgDB::Registry::instance()->loadLibrary(libName);
>
> Robert.
>
> 2009/3/16 Carlos Sanches 
>
>>
>> Hi all !
>> I downloaded osg 2.9.1 . I m using  pImageStream =
>> dynamic_cast(hudImage);
>> to open a movie.
>> What have I to do to use ffmpeg to read my movies ?
>>
>> tks
>>
>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] FFmpeg plugin

2009-03-16 Thread Robert Osfield
Hi Carlos,

Have a look at the osgmovie example for guidance, it'll boil down to reading
a image, and assing to the a textured quad.  Right now you'll need to
preload the ffmpeg plugin as osgDB won't yet automatically alias the movie
extensions to ffmpeg.  On the movie command line you use the option -e
ffmpeg to pre load the plugin.  Programatically you'd use:

std::string libName =
osgDB::Registry::instance()->createLibraryNameForExtension("ffmpeg");
osgDB::Registry::instance()->loadLibrary(libName);

Robert.

2009/3/16 Carlos Sanches 

>
> Hi all !
> I downloaded osg 2.9.1 . I m using  pImageStream =
> dynamic_cast(hudImage);
> to open a movie.
> What have I to do to use ffmpeg to read my movies ?
>
> tks
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] FFmpeg plugin

2009-03-16 Thread Carlos Sanches
Hi all !
I downloaded osg 2.9.1 . I m using  pImageStream =
dynamic_cast(hudImage);
to open a movie.
What have I to do to use ffmpeg to read my movies ?

tks
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ffmpeg plugin streaming video proof of concept

2009-03-05 Thread Robert Osfield
Hi All,

We now have the beginnings of the ffmpeg checked into svn/trunk, and
my hope is that this might one day get capable enough to replace the
existing xine-lib plugin and quicktime plugins as the source of video
support.  Just having one video backend would help with maintenance as
well enabling a full feature set across all platforms, but this will
only be possible if we can get the new ffmpeg working well across all
platforms with all the original functionality.  One item that the
quicktime plugin has is stream support under Windows and OSX, so...
this is also one of the items that needs to be added if possible.

The "if possible" question is something that I wanted to explore, and
various code fragments on the web suggested that it was possible, so
I've hacked together a proof of concept extension to the ffmpeg so
that it attempts to open a video device as input.  This didn't
actually take too long to try out, so under linux you can now do:

   osgmovie -e ffmpeg /dev/video0

Which if you have a webcam or similar device on /dev/video0 it'll open
it up using video4linux2 and stream it, full screen.

The proof of concept is only a dozen lines of code so far, with
defaults chosen that work fine for my hardware/OS setup.  For other
OS's the settings will certainly be different, and it's not entirely
clear to me that ffmpeg does support such device streaming across all
platforms... More investigation will be required.  Please dive in to
ffmpeg docs/online discussions to see if you can spot the approach to
take under Windows + OSX etc.

For a final incarnation of live video streaming support we'll need to
add controls for the various device parameters, either via parsing of
ReaderWriter::Options strings, or extended Options to include
appropriate device parameters.   We will probably need some kind of
scheme for querying the device options available too.  I really don't
have much of clue how we might go about all this yet as it's very
early days for me delving into this side of things.

For those interested in helping out with development of the streaming
support have a look at the code I just added to
src/osgPlugins/ffmpeg/FFmpegDecode.cpp, in particular the bool
FFmpegDecoder::open(const std::string & filename) method:

if (filename.compare(0, 5, "/dev/")==0)
{
avdevice_register_all();

osg::notify(osg::NOTICE)<<"Attempting to stream
"

Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

On Wed, Mar 4, 2009 at 1:08 PM, Ulrich Hertlein  wrote:
> On 4/3/09 11:10 PM, Robert Osfield wrote:
>>
>> Great news.  I'll go have a look at the inversion issue.

I've now fixed this problem in osgDB - the --movie parsing code now
honours the Origin of the ImageStream.

>> What happens when you run:
>>
>> osgmovie -e ffmpeg aliensong.mpg
>
> It's right-side up and playing nicely.
> (The aspect ratio isn't always right and lots of 'Using sws_scale' messages
> but that's not a plugin problem.)

By default the plugin is making the movie quad fill the full screen
regardless of source aspect ratio.  I'll fix it so it maintains the
aspect ratio, and change the background to black to make it less
jaring.

If you add --interactive the aspect ratio should be correct.


>> However I am getting a black band on the right hand side of the image
>> when swscale code path is used and poorer visual quality.
>
> I don't get black bands (maybe line padding?) and the quality looks good,
> even for HD resolution (well, 720p).

I changed the using a GPL'd version of ffmpeg and the visual quality
got better, I still get the black bands though...

> (Man, that puts me back 10yr or so playing with DIVO and Performer, playing
> back video over six pipes :-D

Video and 3D really hasn't moved on too much over the past decade...
The SGI media libraries were a great asset but it all came to little
with OpenML never becoming a bit of non entity :-|

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Ulrich Hertlein

On 4/3/09 11:10 PM, Robert Osfield wrote:

Great news.  I'll go have a look at the inversion issue.

What happens when you run:

osgmovie -e ffmpeg aliensong.mpg


It's right-side up and playing nicely.
(The aspect ratio isn't always right and lots of 'Using sws_scale' messages but that's not 
a plugin problem.)



However I am getting a black band on the right hand side of the image
when swscale code path is used and poorer visual quality.


I don't get black bands (maybe line padding?) and the quality looks good, even for HD 
resolution (well, 720p).


(Man, that puts me back 10yr or so playing with DIVO and Performer, playing back video 
over six pipes :-D


Cheers!
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

On Wed, Mar 4, 2009 at 11:34 AM, Ulrich Hertlein  wrote:
> Success!
>
> It compiles!  And runs (with "osgviewer --movie -e ffmpeg aliensong.mpg")!!!
> Okay, it's upside down but hey!

Great news.  I'll go have a look at the inversion issue.

What happens when you run:

osgmovie -e ffmpeg aliensong.mpg

> The #else path in FFmpegDecoderVideo::convert() should call img_convert(),
> not convert() which would lead to recursion which would lead to recursion
> which would...

Already fixed this.  I've been testing 3 different revisions of ffmpeg
and got both swscale and img_convert paths working out the box.
However I am getting a black band on the right hand side of the image
when swscale code path is used and poorer visual quality.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Ulrich Hertlein

Hi Robert!

On 4/3/09 10:07 PM, Robert Osfield wrote:

I have just checked in the swscale code path.  Could you do an svn
update and let me know how you get on.


Success!

It compiles!  And runs (with "osgviewer --movie -e ffmpeg aliensong.mpg")!!!
Okay, it's upside down but hey!

:-D

The #else path in FFmpegDecoderVideo::convert() should call img_convert(), not convert() 
which would lead to recursion which would lead to recursion which would...


Cheers!
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

I have just checked in the swscale code path.  Could you do an svn
update and let me know how you get on.

Cheers,
Robert.

On Wed, Mar 4, 2009 at 10:51 AM, Ulrich Hertlein  wrote:
> Hi Robert,
>
> On 4/3/09 9:23 PM, Robert Osfield wrote:
>>
>> I've just updated to the latest svn/trunk of ffmpeg and it's now
>> doesn't contain the img_convert at all, but it does build the
>> libswscale so I'll now implement the swscale code path as well as the
>> old img_convert path.
>
> Have you comitted?  I still get the old version.
> Also src/osgPlugins/CMakeLists.txt has a reference to an OpenAL subdirectory
> that is not committed.
>
>> Do you have libswscale installed as part of the DarwinPorts?   Is the
>> GPL'd or LGPL'd version?
>
> DarwinPorts builds the GPL version and has libswscale.
>
> I've attached a compressed list of symbols in libavcodec.dylib
> The only symbols regarding img_ are
> single module    _img_copy
> single module    _img_crop
> single module    _img_get_alpha_info
> single module    _img_pad
>
> Cheers,
> /ulrich
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Ulrich Hertlein

Hi Robert,

On 4/3/09 9:23 PM, Robert Osfield wrote:

I've just updated to the latest svn/trunk of ffmpeg and it's now
doesn't contain the img_convert at all, but it does build the
libswscale so I'll now implement the swscale code path as well as the
old img_convert path.


Have you comitted?  I still get the old version.
Also src/osgPlugins/CMakeLists.txt has a reference to an OpenAL subdirectory that is not 
committed.



Do you have libswscale installed as part of the DarwinPorts?   Is the
GPL'd or LGPL'd version?


DarwinPorts builds the GPL version and has libswscale.

I've attached a compressed list of symbols in libavcodec.dylib
The only symbols regarding img_ are
single module_img_copy
single module_img_crop
single module_img_get_alpha_info
single module_img_pad

Cheers,
/ulrich


libavcodec.dylib.txt.gz
Description: GNU Zip compressed data
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

I've just updated to the latest svn/trunk of ffmpeg and it's now
doesn't contain the img_convert at all, but it does build the
libswscale so I'll now implement the swscale code path as well as the
old img_convert path.

Do you have libswscale installed as part of the DarwinPorts?   Is the
GPL'd or LGPL'd version?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

On Wed, Mar 4, 2009 at 9:37 AM, Ulrich Hertlein  wrote:
> Tried that but it doesn't make a difference.  I am fairly convinced now that
> the symbol is simply not present in the library.

Can you list what symbols it exports?

> I understand that they want people to use swscaler but to declare it in the
> header file and not include it in the library *and* not to provide a method
> to detect this at compile time is just mean.

I've previously worked with the same ffmpeg revision as the one you
are using, but it's obviously been built differently as it does have
img_convert.In later rev's ffmpeg drops the img_convert from the
header, but still implements it.  The swsscaler functions are also
implemented but the headers aren't installed unless you compile the
libswscale library.  It really is a bit of mess.

I find it a bit bizarre that ffmpeg seems to do a good job at what it
does but... packaging consistency really does it a disservice.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Ulrich Hertlein

Hi Robert,

On 4/3/09 7:54 PM, Robert Osfield wrote:

It seems like 'img_convert' (and img_resample and others which also are in a 
similar
#if LAVC_VERSION_INT block) is just not in libavcodec... I'm investigating that.


Curious the svn version of ffmpeg has img_convert built in, but not declared in 
any way
in the headers, so to get it to work I had to add a:

extern "C" { int img_convert(AVPicture *dst, int dst_pix_fmt, const AVPicture 
*src, int
src_pix_fmt, int src_width, int src_height);

};

To our src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp file.  This got things 
building on
later svn rev's of ffmpeg.   You build of ffmpeg seems to be different in some 
way.
You could try #if defing out the above and see what happens.


Tried that but it doesn't make a difference.  I am fairly convinced now that the symbol is 
simply not present in the library.


I understand that they want people to use swscaler but to declare it in the header file 
and not include it in the library *and* not to provide a method to detect this at compile 
time is just mean.


I'm giving trunk a go.

Cheers!
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Ulrich,

On Wed, Mar 4, 2009 at 7:59 AM, Ulrich Hertlein  wrote:
> The header file contains
>
> #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
> attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt,
>                const AVPicture *src, int pix_fmt,
>                int width, int height);
> #endif
>
> I believe the '_' prefix is added to all exported functions in a library, it
> certainly looks that way.
>
> It seems like 'img_convert' (and img_resample and others which also are in a
> similar #if LAVC_VERSION_INT block) is just not in libavcodec... I'm
> investigating that.

Curious the svn version of ffmpeg has img_convert built in, but not
declared in any way in the headers, so to get it to work I had to add
a:

extern "C"
{
int img_convert(AVPicture *dst, int dst_pix_fmt, const AVPicture *src,
int src_pix_fmt, int src_width, int src_height);

};

To our src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp file.  This got
things building on later svn rev's of ffmpeg.   You build of ffmpeg
seems to be different in some way.  You could try #if defing out the
above and see what happens.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Robert Osfield
Hi Uli,

Our ffmpeg plugin already does using extern "C" { .. } when include
the ffmpeg plugin so I don't believe this is the issue.

Robert.

On Tue, Mar 3, 2009 at 10:47 PM, Ulrich von Zadow
 wrote:
> Missing
>
> extern "C" {
> #include "foo"
> }
>
> ?
>
> libav* removed some of it's internal extern "C" declarations a while ago, so
> this might only be necessary with some ffmpeg versions.
>
> Cheers,
>
>  Uli
>
> On Mar 3, 2009, at 2:37 PM, Robert Osfield wrote:
>
>> Hi Ulrich,
>>
>> On Tue, Mar 3, 2009 at 12:18 PM, Ulrich Hertlein 
>> wrote:
>>>
>>> Okay, the libraries are properly picked up now.
>>> So now we're back to:
>>>
>>> Undefined symbols:
>>>  "_img_convert", referenced from:
>>>     osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*, AVPicture
>>> const*, int, int)in FFmpegDecoderVideo.cpp.o
>>>     osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
>>> FFmpegDecoderVideo.cpp.o
>>>     osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
>>> FFmpegDecoderVideo.cpp.o
>>>
>>> From what I've read this is rather familiar territory for other builds as
>>> well?
>>
>> Not quite familiar.  The code uses img_convert rather than
>> _img_convert so I'm curious where this one has been introduced.
>> Perhaps your ffmpeg plugin maps img_convert to _img_convert in some
>> way, but doesn't implement the later.
>>
>> Can you check to see if your ffmpeg headers contain img_convert?
>>
>> Robert.
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> --
> Ulrich von Zadow
> Software Engineer (Dipl. Inf.)
> Exhibit Development
>
> Tel +49 (0)30 / 2000 577 12
> Fax +49 (0)30 / 2000 577 20
> Skype: uzadow
>
> Archimedes Solutions GmbH
> SaarbrüŸcker Str. 24 10405 Berlin
>
> www.archimedes-solutions.com
>
> GeschŠftsfŸührung:
> A. Valder | D. Feser | W. Rien | J. Schmidtsiefen | S. Spenling
>
> Amtsgericht: Berlin Charlottenburg
> HR Nr.: 107563 B
> UST-ID Nr.: DE-253.771.793
>
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-04 Thread Ulrich Hertlein

Hi Robert,

On 4/3/09 12:37 AM, Robert Osfield wrote:

Undefined symbols:
  "_img_convert", referenced from:
  osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*, AVPicture
const*, int, int)in FFmpegDecoderVideo.cpp.o


Not quite familiar.  The code uses img_convert rather than
_img_convert so I'm curious where this one has been introduced.
Perhaps your ffmpeg plugin maps img_convert to _img_convert in some
way, but doesn't implement the later.

Can you check to see if your ffmpeg headers contain img_convert?


The header file contains

#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt,
const AVPicture *src, int pix_fmt,
int width, int height);
#endif

I believe the '_' prefix is added to all exported functions in a library, it certainly 
looks that way.


It seems like 'img_convert' (and img_resample and others which also are in a similar #if 
LAVC_VERSION_INT block) is just not in libavcodec... I'm investigating that.


Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich von Zadow

Missing

extern "C" {
#include "foo"
}

?

libav* removed some of it's internal extern "C" declarations a while  
ago, so this might only be necessary with some ffmpeg versions.


Cheers,

  Uli

On Mar 3, 2009, at 2:37 PM, Robert Osfield wrote:


Hi Ulrich,

On Tue, Mar 3, 2009 at 12:18 PM, Ulrich Hertlein > wrote:

Okay, the libraries are properly picked up now.
So now we're back to:

Undefined symbols:
 "_img_convert", referenced from:
 osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*,  
AVPicture

const*, int, int)in FFmpegDecoderVideo.cpp.o
 osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
FFmpegDecoderVideo.cpp.o
 osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
FFmpegDecoderVideo.cpp.o

From what I've read this is rather familiar territory for other  
builds as

well?


Not quite familiar.  The code uses img_convert rather than
_img_convert so I'm curious where this one has been introduced.
Perhaps your ffmpeg plugin maps img_convert to _img_convert in some
way, but doesn't implement the later.

Can you check to see if your ffmpeg headers contain img_convert?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




--
Ulrich von Zadow
Software Engineer (Dipl. Inf.)
Exhibit Development

Tel +49 (0)30 / 2000 577 12
Fax +49 (0)30 / 2000 577 20
Skype: uzadow

Archimedes Solutions GmbH
SaarbrüŸcker Str. 24 10405 Berlin

www.archimedes-solutions.com

GeschŠftsfŸührung:
A. Valder | D. Feser | W. Rien | J. Schmidtsiefen | S. Spenling

Amtsgericht: Berlin Charlottenburg
HR Nr.: 107563 B
UST-ID Nr.: DE-253.771.793





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Hi Ulrich,

On Tue, Mar 3, 2009 at 12:18 PM, Ulrich Hertlein  wrote:
> Okay, the libraries are properly picked up now.
> So now we're back to:
>
> Undefined symbols:
>  "_img_convert", referenced from:
>      osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*, AVPicture
> const*, int, int)in FFmpegDecoderVideo.cpp.o
>      osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
> FFmpegDecoderVideo.cpp.o
>      osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in
> FFmpegDecoderVideo.cpp.o
>
> From what I've read this is rather familiar territory for other builds as
> well?

Not quite familiar.  The code uses img_convert rather than
_img_convert so I'm curious where this one has been introduced.
Perhaps your ffmpeg plugin maps img_convert to _img_convert in some
way, but doesn't implement the later.

Can you check to see if your ffmpeg headers contain img_convert?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich Hertlein

On 3/3/09 10:53 PM, Robert Osfield wrote:

On Tue, Mar 3, 2009 at 11:38 AM, Ulrich Hertlein  wrote:

The libraries (-lavcodec etc) are all there but the library path
(-L/opt/local/lib) is not and I'm struggling to find a way to tell cmake to
use FFMPEG_LIBRARY_DIRS.


I've just added:

   LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS})

To the ffmpeg/CmakeLists.txt  could you do an svn update and see if this works.


Okay, the libraries are properly picked up now.
So now we're back to:

Undefined symbols:
  "_img_convert", referenced from:
  osgFFmpeg::FFmpegDecoderVideo::yuva420pToRgba(AVPicture*, AVPicture const*, int, 
int)in FFmpegDecoderVideo.cpp.o

  osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in 
FFmpegDecoderVideo.cpp.o
  osgFFmpeg::FFmpegDecoderVideo::publishFrame(double)in 
FFmpegDecoderVideo.cpp.o

From what I've read this is rather familiar territory for other builds as well?

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Hi Ulrich,

On Tue, Mar 3, 2009 at 11:38 AM, Ulrich Hertlein  wrote:
> The libraries (-lavcodec etc) are all there but the library path
> (-L/opt/local/lib) is not and I'm struggling to find a way to tell cmake to
> use FFMPEG_LIBRARY_DIRS.

I've just added:

  LINK_DIRECTORIES(${FFMPEG_LIBRARY_DIRS})

To the ffmpeg/CmakeLists.txt  could you do an svn update and see if this works.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich Hertlein

Hi Robert,

On 3/3/09 9:58 PM, Robert Osfield wrote:

Thanks for the changes, these are now merged and submitted to svn/trunk.

So with these changes do we have a compiling and working ffmpeg plugin under 
OSX?


Not quite, no.  Compiling is OK (with a bunch of warnings from the ffmpeg header files), 
but linking fails:

ld: library not found for -lavformat

The libraries (-lavcodec etc) are all there but the library path (-L/opt/local/lib) is not 
and I'm struggling to find a way to tell cmake to use FFMPEG_LIBRARY_DIRS.


Cheers,
/ulrich

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Thanks for spotting J.Pm now fixed and checked into svn/trunk.

On Tue, Mar 3, 2009 at 11:13 AM, J.P. Delport  wrote:
> Hi Robert,
>
> Robert Osfield wrote:
>>
>> I've have now added the ffmpeg to the include search paths so the set
>> up code looks like:
>>
>> INCLUDE_DIRECTORIES(
>>    ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}
>> ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat
>> ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/ffmpeg
>>    ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}
>> ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice
>> ${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/ffmpeg
>>    ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}
>> ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
>> ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
>>    ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}
>> ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
>> ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
>> )
>>
>> Could you do an svn update and see if this addition helps things.
>
> don't know if you've fixed it already, but in the list
>
> /libavcodec occurs twice
> ${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} occurs 4 times
> ${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} occurs only once
>
> jp
>
>>
>> Robert.
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
> --
> This message is subject to the CSIR's copyright terms and conditions, e-mail
> legal notice, and implemented Open Document Format (ODF) standard. The full
> disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
>
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.  MailScanner thanks Transtec
> Computers for their support.
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread J.P. Delport

Hi Robert,

Robert Osfield wrote:

I've have now added the ffmpeg to the include search paths so the set
up code looks like:

INCLUDE_DIRECTORIES(
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
)

Could you do an svn update and see if this addition helps things.


don't know if you've fixed it already, but in the list

/libavcodec occurs twice
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS} occurs 4 times
${FFMPEG_LIBAVCODEC_INCLUDE_DIRS} occurs only once

jp



Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Hi Ulrich,

Thanks for the changes, these are now merged and submitted to svn/trunk.

So with these changes do we have a compiling and working ffmpeg plugin
under OSX?

To try it out do:

  osgmovie --ffmpeg  mymovie.mov

Robert.

On Tue, Mar 3, 2009 at 10:25 AM, Ulrich Hertlein  wrote:
> Hi Robert,
>
> On 3/3/09 8:50 PM, Robert Osfield wrote:
>>>
>>> it appears that the required #include (in FFmpegHeaders.hpp) would be:
>>> #include 
>>>
>>> rather than what it is now:
>>> #include v
>>>
>>> Can we change that without breaking compiles on other systems?
>>
>> This change would break other systems as they don't have all have the
>> ffmpeg prefix.  When I have built ffmpeg from source the ffmpeg prefix
>> ...
>> Could you do an svn update and see if this addition helps things.
>
> Yup.  That solves the #include  problem.
>
> What I'm currently looking at is 'undeclared INT64_C' in
> 'FFmpegDecoderVideo.cpp' which is caused by some header including stdint.h
> without '#define __STDC_CONSTANT_MACROS'.
>
> I can solve this by including 'FFmpegHeaders.hpp' first thing in
> 'FFmpegDecoderVideo.hpp' (see attachment).  Does that work on Linux?
>
> After that it's the missing libpath to find libavformat and friends.  I've
> added some code to 'FindFFmpeg.cmake' to extract the library directories but
> have now idea yet how to tell cmake to use that path in
> src/osgPlugin/ffmpeg/CMakeFiles ...
>
> Cheers,
> /ulrich
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich Hertlein

Hi Robert,

On 3/3/09 8:50 PM, Robert Osfield wrote:

it appears that the required #include (in FFmpegHeaders.hpp) would be:
#include 

rather than what it is now:
#include v

Can we change that without breaking compiles on other systems?


This change would break other systems as they don't have all have the
ffmpeg prefix.  When I have built ffmpeg from source the ffmpeg prefix
...
Could you do an svn update and see if this addition helps things.


Yup.  That solves the #include  problem.

What I'm currently looking at is 'undeclared INT64_C' in 'FFmpegDecoderVideo.cpp' which is 
caused by some header including stdint.h without '#define __STDC_CONSTANT_MACROS'.


I can solve this by including 'FFmpegHeaders.hpp' first thing in 'FFmpegDecoderVideo.hpp' 
(see attachment).  Does that work on Linux?


After that it's the missing libpath to find libavformat and friends.  I've added some code 
to 'FindFFmpeg.cmake' to extract the library directories but have now idea yet how to tell 
cmake to use that path in src/osgPlugin/ffmpeg/CMakeFiles ...


Cheers,
/ulrich
# Locate ffmpeg
# This module defines
# FFMPEG_LIBRARIES
# FFMPEG_FOUND, if false, do not try to link to ffmpeg 
# FFMPEG_INCLUDE_DIR, where to find the headers
#
# $FFMPEG_DIR is an environment variable that would
# correspond to the ./configure --prefix=$FFMPEG_DIR
#
# Created by Robert Osfield. 

#use pkg-config to find various modes
INCLUDE(FindPkgConfig OPTIONAL)

IF(PKG_CONFIG_FOUND)

INCLUDE(FindPkgConfig)

pkg_check_modules(FFMPEG_LIBAVFORMAT libavformat)
pkg_check_modules(FFMPEG_LIBAVDEVICE libavdevice)
pkg_check_modules(FFMPEG_LIBAVCODEC libavcodec)
pkg_check_modules(FFMPEG_LIBAVUTIL libavutil)

ENDIF(PKG_CONFIG_FOUND)

SET(FFMPEG_FOUND "NO")
IF   (FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND 
FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND)
   
SET(FFMPEG_FOUND "YES")

SET(FFMPEG_INCLUDE_DIRS ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})

SET(FFMPEG_LIBRARY_DIRS ${FFMPEG_LIBAVFORMAT_LIBRARY_DIRS})

SET(FFMPEG_LIBRARIES
${FFMPEG_LIBAVFORMAT_LIBRARIES}
${FFMPEG_LIBAVDEVICE_LIBRARIES}
${FFMPEG_LIBAVCODEC_LIBRARIES}
${FFMPEG_LIBAVUTIL_LIBRARIES})
   
ENDIF(FFMPEG_LIBAVFORMAT_FOUND AND FFMPEG_LIBAVDEVICE_FOUND AND 
FFMPEG_LIBAVCODEC_FOUND AND FFMPEG_LIBAVUTIL_FOUND)



#ifndef HEADER_GUARD_OSGFFMPEG_FFMPEG_DECODER_VIDEO_H
#define HEADER_GUARD_OSGFFMPEG_FFMPEG_DECODER_VIDEO_H


#include "FFmpegHeaders.hpp"
#include "BoundedMessageQueue.hpp"
#include "FFmpegClocks.hpp"
#include "FFmpegPacket.hpp"

#include 
#include 
#include 

namespace osgFFmpeg {

class FramePtr
{
public:

typedef AVFrame T;

explicit FramePtr() : _ptr(0) {}
explicit FramePtr(T* ptr) : _ptr(ptr) {}

~FramePtr()
{
cleanup();
}

T* get() { return _ptr; }

T * operator-> () const // never throws
{
return _ptr;
}

void reset(T* ptr) 
{
if (ptr==_ptr) return;
cleanup();
_ptr = ptr;
}

void cleanup()
{
if (_ptr) av_free(_ptr);
_ptr = 0;
}



protected:

T* _ptr;
};

class FFmpegDecoderVideo : public OpenThreads::Thread
{
public:

typedef BoundedMessageQueue PacketQueue;
typedef void (* PublishFunc) (const FFmpegDecoderVideo & decoder, void * 
user_data);

FFmpegDecoderVideo(PacketQueue & packets, FFmpegClocks & clocks);
~FFmpegDecoderVideo();

void open(AVStream * stream);
virtual void run();

void setUserData(void * user_data);
void setPublishCallback(PublishFunc function);

int width() const;
int height() const;
double aspectRatio() const;
bool alphaChannel() const;
double frameRate() const;
const uint8_t * image() const;

private:

typedef std::vector Buffer;

void decodeLoop();
void findAspectRatio();
void publishFrame(double delay);
void swapBuffers();
double synchronizeVideo(double pts);
void yuva420pToRgba(AVPicture *dst, const AVPicture *src, int width, int 
height);

static int getBuffer(AVCodecContext * context, AVFrame * picture);
static void releaseBuffer(AVCodecContext * context, AVFrame * picture);

PacketQueue &m_packets;
FFmpegClocks &m_clocks;
AVStream *m_stream;
AVCodecContext *m_context;
AVCodec *m_codec;
const uint8_t *m_packet_data;
intm_bytes_remaining;
int64_tm_packet_pts;

FramePtrm_frame;
FramePtrm_frame_rgba;
Bufferm_buffer_rgba;
Bufferm_buffer_rgba_public;

void *m_user_data;
PublishFuncm_publish_func;

doublem_frame_rate;
doublem_aspect_ratio;
int  

Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Hi Ulrich,

On Tue, Mar 3, 2009 at 9:25 AM, Ulrich Hertlein  wrote:
> So it's not finding "avformat.h".  DarwinPorts puts 'avformat.h' in
> /opt/local/include/ffmpeg/avformat.h
> /opt/local/include/libavformat/avformat.h
>
> (ffmpeg/avformat.h is a symlink to ../libavformat/avformat.h)
>
> Since "pkg-config --cflags libavformat" is returning
> -I/opt/local/include -I/opt/local/include/dirac
>
> it appears that the required #include (in FFmpegHeaders.hpp) would be:
> #include 
>
> rather than what it is now:
> #include 
>
> Can we change that without breaking compiles on other systems?

This change would break other systems as they don't have all have the
ffmpeg prefix.  When I have built ffmpeg from source the ffmpeg prefix
doesn't exist but has the libavformat (etc.) prefix, but when I check
it out from ubuntu repositories it did include the ffmpeg prefix, but
no libavformat (etc.) prefix.  To handle the differences I've already
introduced some extra paths in the Cmake setup, but clearly we'll have
to go further.

I've have now added the ffmpeg to the include search paths so the set
up code looks like:

INCLUDE_DIRECTORIES(
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat
${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/libavdevice
${FFMPEG_LIBAVDEVICE_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/libavcodec
${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}/ffmpeg
)

Could you do an svn update and see if this addition helps things.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich Hertlein

Hi Robert,

On 3/3/09 7:51 PM, Robert Osfield wrote:

The print out of the FFMPEG_INCLUDE_DIRS and FFMPEG_LIBRARIES is a bit 
misleading, as
it is actually composed on separate strings like CMake picks up on correctly 
when


Thanks for that!  (Cmake is still a bit of a black box to me.)


cd src/osgPlugins/ffmpeg ; make VERBOSE=1

What errors do you see some errors in the compilation?   What version of the 
ffmpeg are
you using?


ffmpeg version is a bit hard to say, DarwinPorts pulls SVN revision 15261...

I'm getting this error:
/usr/bin/c++   -DOSG_DEBUG_POSTFIX=d -Dosgdb_ffmpeg_EXPORTS  -Wall -Wparentheses 
-Wuninitialized -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces 
-Wunknown-pragmas -Wunused -fpermissive -mmacosx-version-min=10.5 -ftree-vectorize 
-fvisibility-inlines-hidden -O3 -DNDEBUG -fPIC

-I/Users/uli/Projects/osg/OpenSceneGraph/build/include
-I/Users/uli/Projects/osg/OpenSceneGraph/include
-I/opt/local/include
-I/opt/local/include/dirac
-I/opt/local/include/dirac/libavformat
-I/opt/local/include/dirac/libavdevice
-I/opt/local/include/dirac/libavcodec
-I/opt/local/include/libavcodec
-o CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.cpp.o
-c /Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.cpp
In file included from 
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10,
 from 
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:2:
/Users/uli/Projects/osg/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11:22: 
error: avformat.h: No such file or directory

/opt/local/include/libavutil/mathematics.h:49: warning: comma at end of 
enumerator list
...

So it's not finding "avformat.h".  DarwinPorts puts 'avformat.h' in
/opt/local/include/ffmpeg/avformat.h
/opt/local/include/libavformat/avformat.h

(ffmpeg/avformat.h is a symlink to ../libavformat/avformat.h)

Since "pkg-config --cflags libavformat" is returning
-I/opt/local/include -I/opt/local/include/dirac

it appears that the required #include (in FFmpegHeaders.hpp) would be:
#include 

rather than what it is now:
#include 

Can we change that without breaking compiles on other systems?

There are follow-up errors that I'm currently looking at.

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Robert Osfield
Hi Ulrich,

The print out of the FFMPEG_INCLUDE_DIRS and FFMPEG_LIBRARIES is a bit
misleading, as it is actually composed on separate strings like CMake
picks up on correctly when passing it to macros that set up paths, but
when you output these variables to the console they get concatenated
together.

To see what is be compiled against do:

  cd src/osgPlugins/ffmpeg
  make VERBOSE=1

What errors do you see some errors in the compilation?   What version
of the ffmpeg are you using?

Robert.

On Tue, Mar 3, 2009 at 8:34 AM, Ulrich Hertlein  wrote:
> Hi all,
>
> is anyone else using DarwinPorts ffmpeg/avcodec/avformat and was successful
> in compiling the plugin?
>
> Apparently there's a problem between pkg-config and cmake, "cmake" is giving
> me:
> FFMPEG_INCLUDE_DIRS = /opt/local/include/opt/local/include/dirac
> FFMPEG_LIBRARIES =
> avformatavcodeczbz2a52faacfaadmp3lameschroedinger-1.0pthreadoil-0.3xvidcoredirac_encoderdirac_decoderstdc++theoravorbisencavutilvorbismogg
>
> It's stringing the different include paths and libraries together which of
> course doesn't work.
>
> pkg-config looks good:
> $ pkg-config --cflags libavformat
> -I/opt/local/include -I/opt/local/include/dirac
> $ pkg-config --libs libavformat
> -L/opt/local/lib -lavformat -lavcodec -lz -lbz2 -la52 -lfaac -lfaad
> -lmp3lame -lschroedinger-1.0 -lpthread -loil-0.3 -lxvidcore -ldirac_encoder
> -ldirac_decoder -lstdc++ -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg
>
> Anyone?
> Cheers,
> /ulrich
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] ffmpeg plugin on OS X / DarwinPorts

2009-03-03 Thread Ulrich Hertlein

Hi all,

is anyone else using DarwinPorts ffmpeg/avcodec/avformat and was successful in compiling 
the plugin?


Apparently there's a problem between pkg-config and cmake, "cmake" is giving me:
FFMPEG_INCLUDE_DIRS = /opt/local/include/opt/local/include/dirac
FFMPEG_LIBRARIES = 
avformatavcodeczbz2a52faacfaadmp3lameschroedinger-1.0pthreadoil-0.3xvidcoredirac_encoderdirac_decoderstdc++theoravorbisencavutilvorbismogg


It's stringing the different include paths and libraries together which of course doesn't 
work.


pkg-config looks good:
$ pkg-config --cflags libavformat
-I/opt/local/include -I/opt/local/include/dirac
$ pkg-config --libs libavformat
-L/opt/local/lib -lavformat -lavcodec -lz -lbz2 -la52 -lfaac -lfaad -lmp3lame 
-lschroedinger-1.0 -lpthread -loil-0.3 -lxvidcore -ldirac_encoder -ldirac_decoder -lstdc++ 
-ltheora -lvorbisenc -lavutil -lvorbis -lm -logg


Anyone?
Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org