[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

Re: [osg-users] ffmpeg plugin

2011-07-08 Thread He, Yefei
-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 yefei...@uiowa.edumailto:yefei...@uiowa.edu wrote: Hi, Folks, It's been

[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

Re: [osg-users] ffmpeg plugin

2011-07-07 Thread Mourad Boufarguine
On Fri, Jul 8, 2011 at 1:58 AM, He, Yefei 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

[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

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, ari.hayri...@jyu.fi wrote: Hi! I think I found a little

[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

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 ces...@gmail.com yeah

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-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

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 :

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

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

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

Re: [osg-users] FFmpeg plugin

2009-03-20 Thread Carlos Sanches
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

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

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

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 ces...@gmail.com :(

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

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 ces...@gmail.com Hi Robert. I m seeing that my

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 ces...@gmail.com 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

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

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

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:

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

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);

[osg-users] FFmpeg plugin

2009-03-16 Thread Carlos Sanches
Hi all ! I downloaded osg 2.9.1 . I m using pImageStream = dynamic_castosg::ImageStream*(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

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

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

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 u...@archimedes-solutions.de wrote: Missing extern C { #include foo } ? libav* removed some of

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 u.hertl...@sandbox.de wrote: The header file contains #if LIBAVCODEC_VERSION_INT ((5216)+(08)+0) attribute_deprecated int img_convert(AVPicture *dst, int dst_pix_fmt,                const AVPicture *src, int pix_fmt,                

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

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 u.hertl...@sandbox.de 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

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

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

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 u.hertl...@sandbox.de wrote: Hi Robert, On 4/3/09 9:23 PM, Robert Osfield wrote: I've just updated to the

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

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 u.hertl...@sandbox.de 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:

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

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 u.hertl...@sandbox.de 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.

[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 =

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

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

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 u.hertl...@sandbox.de 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

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 ffmpeg/avformat.h rather than what it is now: #include vavformat.h Can we change that without breaking compiles on other systems? This change would break other

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

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

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 jpdelp...@csir.co.za 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(    

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

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 u.hertl...@sandbox.de 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:

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 Hertleinu.hertl...@sandbox.de 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

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 u.hertl...@sandbox.de 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*,

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