Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread Robert Osfield
Hi A., On Sun, Mar 1, 2009 at 3:14 AM, Alejandro Aguilar Sierra algsie...@gmail.com wrote: I updated ffmpeg a month and a half ago in order to be able to encode videos to h264, so I need that version, I can't downgrade it. It is SVN-r17646. I agree on not using deprecated functions. I'll

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread Robert Osfield
Hi J.P, I'm currently looking at introducing using of sws_scale, but don't find these methods in the ffmpeg I built. Looking at the links to the mailing list thread you provided I could quite work out whether these methods require the sws library to be built, or whether there would be sws_

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, I'm currently looking at introducing using of sws_scale, but don't find these methods in the ffmpeg I built. Looking at the links to the mailing list thread you provided I could quite work out whether these methods require the sws library to be built, or

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread Robert Osfield
Hi J.P, On Mon, Mar 2, 2009 at 12:34 PM, J.P. Delport jpdelp...@csir.co.za wrote: The one I compiled with LGPL only, has the sws functions in libavcodec.so. nm ./libavcodec/libavcodec.so | grep sws 0008c1b0 T sws_freeContext 0008d1f0 T sws_getCachedContext 0008d0f0 T sws_getContext

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, On Mon, Mar 2, 2009 at 12:34 PM, J.P. Delport jpdelp...@csir.co.za wrote: The one I compiled with LGPL only, has the sws functions in libavcodec.so. nm ./libavcodec/libavcodec.so | grep sws 0008c1b0 T sws_freeContext 0008d1f0 T sws_getCachedContext 0008d0f0

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread J.P. Delport
Hi, Robert Osfield wrote: Hi J.P, On Mon, Mar 2, 2009 at 12:34 PM, J.P. Delport jpdelp...@csir.co.za wrote: The one I compiled with LGPL only, has the sws functions in libavcodec.so. nm ./libavcodec/libavcodec.so | grep sws 0008c1b0 T sws_freeContext 0008d1f0 T sws_getCachedContext 0008d0f0

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread Robert Osfield
Hi J.P, On Mon, Mar 2, 2009 at 1:43 PM, J.P. Delport jpdelp...@csir.co.za wrote: I have just checked my lgpl libs and it does contain img_resample. Maybe we can use that? Just double check your latest libs. The present ffmpeg plugin using the deprecated img_convert method, and this is in the

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-03-02 Thread Robert Osfield
Hi J.P and A. As a crude hack to get me svn/trunk version of ffmpeg compiling against our ffmpeg plugin I've added to FFmpegDecorderVideo.cpp the extern definition of the img_convert. extern C { int img_convert(AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread Robert Osfield
HI Alejandro, Which version of ffmpeg do you have installed? As J.P. mentioned ffmpeg is a bit of moving target and were' only just getting into learning about FFmpeg foibles. We'll probably need to add version checking into our FindFFmpeg.cmake to avoid these issue. Also migrating the code

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi Robert, if you compile newer ffmpeg without GPL functions, it still has its own versions of the swscale functions implemented. You then just do not link to the (maybe faster) GPL swscale library. I've tested this on Debian and it worked for our app. I'll send some references and code

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi, J.P. Delport wrote: Hi Robert, if you compile newer ffmpeg without GPL functions, it still has its own versions of the swscale functions implemented. You then just do not link to the (maybe faster) GPL swscale library. I've tested this on Debian and it worked for our app. I'll send

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread J.P. Delport
Hi, I'll send some references and code later. See e.g. here: http://lists.mplayerhq.hu/pipermail/libav-user/2008-November/001618.html and http://lists.mplayerhq.hu/pipermail/libav-user/2008-June/000683.html e.g. img_convert vs swscale ---8--- #if defined IPF_USE_SWSCALE int err =

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread Robert Osfield
HI J.P, Thanks for the links and pointers. When I get back to coding I'll have a look at making the changes to swscale. The other route would be to do the colour conversion down on the GPU, but this would have to be just an option. Robert. On Sat, Feb 28, 2009 at 10:38 AM, J.P. Delport

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-28 Thread Alejandro Aguilar Sierra
Hi Robert, I updated ffmpeg a month and a half ago in order to be able to encode videos to h264, so I need that version, I can't downgrade it. It is SVN-r17646. I agree on not using deprecated functions. Best regards, -- A. On Sat, Feb 28, 2009 at 3:33 AM, Robert Osfield

[osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-27 Thread Alejandro Aguilar Sierra
Hi, I just updated both ffmpeg and osg/trunk, compiled and instaled ffmpeg but osg can't compile because these errors: [ 98%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o /home/ale/src/osg/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp: In

Re: [osg-users] Problem compiling latest trunk, ffmpeg problem

2009-02-27 Thread J.P. Delport
Hi, Alejandro Aguilar Sierra wrote: Hi, I just updated both ffmpeg and osg/trunk, compiled and instaled ffmpeg but osg can't compile because these errors: [ 98%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoderVideo.o