|
From: Ratheendran R <rat...@gm...> - 2011-01-05 06:29:34
|
Thanks Angel for the reply.
I was able to fix the problem, the application was using a different library
as showed by the ldd command.now I updated it with the compiled FFMPEG.
ldd /opt/SDL/bin/motion
libm.so.6 => /lib/libm.so.6 (0x40025000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400d2000)
libjpeg.so.62 => /opt/SDL/lib/libjpeg.so.62 (0x400f0000)
libavformat.so.52 => /opt/gst/lib/libavformat.so.52 (0x40118000)
libavcodec.so.52 => /opt/gst/lib/libavcodec.so.52 (0x401d9000)
libavutil.so.49 => /opt/SDL/lib/libavutil.so.49 (0x40bad000)
libz.so.1 => /lib/libz.so.1 (0x40bc8000)
libc.so.6 => /lib/libc.so.6 (0x40be1000)
/lib/ld-linux.so.3 (0x40000000)
libavutil.so.50 => /opt/gst/lib/libavutil.so.50 (0x40cff000)
libbz2.so.1 => /lib/libbz2.so.1 (0x40d1c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40d2d000)
After updating the environment I am getting details as below.
ldd /opt/SDL/bin/motion
libm.so.6 => /lib/libm.so.6 (0x40025000)
libpthread.so.0 => /lib/libpthread.so.0 (0x400d2000)
libjpeg.so.62 => /opt/SDL/lib/libjpeg.so.62 (0x400f0000)
libavformat.so.52 => /opt/SDL/lib/libavformat.so.52 (0x40118000)
libavcodec.so.52 => /opt/SDL/lib/libavcodec.so.52 (0x4020c000)
libavutil.so.49 => /opt/SDL/lib/libavutil.so.49 (0x409c3000)
libz.so.1 => /lib/libz.so.1 (0x409de000)
libc.so.6 => /lib/libc.so.6 (0x409f7000)
/lib/ld-linux.so.3 (0x40000000)
libbz2.so.1 => /lib/libbz2.so.1 (0x40b15000)
libdl.so.2 => /lib/libdl.so.2 (0x40b26000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40b31000)
Thanks,
Ratheendran
On Wed, Jan 5, 2011 at 8:19 AM, Angel Carpintero <mot...@gm...>wrote:
> Hi Ratheendran,
>
> please let us know some things :
>
> 1-. Version of ffmpeg you are compiling ( ffmpeg -version ) .
>
> 2-. Version of motion you are linking to that custom ffmpeg.
>
> 3-. What's the output from :
>
> ldd /opt/SDL/bin/motion
>
> ldconfig --print | grep "libavformat"
>
>
> on that way we can get some clue :)
>
> Although i bet you are using some buggy version of ffmpeg with no binary
> compatibility :
>
> http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/110919
>
>
> Cheers,
>
> - Angel
>
> --
> The Devil is Always in the Details
>
> On lun, 2011-01-03 at 05:58 +0530, Ratheendran R wrote:
> > Dear All,
> >
> > New to motion, I trying to put motion with ffmpeg and SDL to enable
> > streaming.I am able to take snapshot but streaming is not working.
> > steps done so far.
> >
> >
> > the configuration used is as below.
> >
> > ./configure --prefix=/opt/SDL --host-ldflags=-L/opt/SDL/lib/
> > --host-cflags=-I/opt/SDL/
> > include --libdir=/lib --datadir=/usr/share --enable-shared
> > --enable-cross-compile --cc=arm-linux-gcc --enable-armv5te
> > --disable-armv6 --disable-mmx --enable-shared --disable-optimizations
> > --arch=arm
> >
> > make install
> >
> > Now I configures motion software.
> > ./configure --host=arm-linux --prefix=/opt/SDL/
> > --with-ffmpeg=/opt/SDL/ LDFLAGS=-L/opt/SDL/lib
> > CPPFLAGS=-I/opt/SDL/include
> >
> > make install
> >
> > Now when I run motion,this terminates with below error.
> >
> > [1] Started stream webcam server in port 8081
> > [1] File of type 2 saved to: /tmp/cam1/01-20220517051143-snapshot.jpg
> > [1] File of type 32 saved to: /tmp/cam1/20220517-timelapse.mpg
> > /opt/SDL/bin/motion: relocation error: /opt/SDL/bin/motion: symbol
> > av_init_packet, version LIBAVFORMAT_52 not defined in file
> > libavformat.so.52 with link time reference
> >
> >
> > Kindly let me know where I am wrong, and how can I fix this.
> >
> >
> > Ratheendran
>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Motion-user mailing list
> Mot...@li...
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
|