ffmpeg wont work?

Support and queries relating to all previous versions of ZoneMinder
Locked
BrownieMan
Posts: 2
Joined: Tue Jun 06, 2006 7:51 pm

ffmpeg wont work?

Post by BrownieMan »

Here is what I've done basicaly

- Install EasyUbuntu and on the System tab check Repository list to enable the Main, Universe, Multiverse and PLF sources.
- Install auto-apt (to automatically call whatever is required ffmpeg) from the new repositories. You can use Synaptic for this.
- Install libvorbis-dev, libtheora-dev & libdc1394-dev (libdc1394-13 & libdc1394-dev)


install in synaptic:

apache2
build-essential
libdate-manip-perl
libdbi-perl
libdbd-mysql-perl
libjpeg62-dev
libmysqlclient14-dev (or latest version)
libssl-dev
php5
php5-mysql
libpcre3
libpcre3-dev
libavcodec-dev
libavformat-dev
libwww-perl
auto-apt
libgsmme-dev
svn-buildpackage


Code: Select all

mkdir src cd src svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd src/ffmpeg/ make clean ./configure --enable-vorbis --enable-libogg --enable-theora --enable-dc1394 --enable-gpl --enable-dts --enable-libgsm make sudo make install sudo make install-headers sudo make install-libs sudo make install-progs sudo make install-man


Code: Select all

cd .. tar xfvz ZoneMinder-1.22.1.tar.gz cd ZoneMinder-1.22.1 ./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-extralibs="/usr/lib/libtheora.so /usr/lib/libvorbis.so /usr/lib/libvorbisenc.so /usr/lib/libogg.so /usr/lib/libdc1394_control.so /usr/lib/libgsm.a /usr/lib/libdts.a" make sudo make install



I thought all of that was going to work, it didn't. Everything seems to go fine until I 'make' zoneminder. Here is the final output:

Code: Select all

philip@server:~/ZoneMinder-1.22.2$ make make all-recursive make[1]: Entering directory `/home/philip/ZoneMinder-1.22.2' Making all in src make[2]: Entering directory `/home/philip/ZoneMinder-1.22.2/src' g++ -g -O2 -L/usr/lib -L/usr/lib/mysql /usr/lib/libtheora.so /usr/lib/libvorbis.so /usr/lib/libvorbisenc.so /usr/lib/libogg.so /usr/lib/libdc1394_control.so /usr/lib/libgsm.a /usr/lib/libdts.a -o zmc zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_poly.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_file_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_signal.o zm_buffer.o zm_debug.o -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_init': undefined reference to `dts_init' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_frame' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_blocks_num' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_block' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_samples' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_blocks_num' /usr/lib/libavcodec.a(dtsdec.o): In function `dts_decode_frame': undefined reference to `dts_syncinfo' /usr/lib/libavcodec.a(libgsm.o): In function `libgsm_init': undefined reference to `gsm_create' /usr/lib/libavcodec.a(libgsm.o): In function `libgsm_close': undefined reference to `gsm_destroy' /usr/lib/libavcodec.a(libgsm.o): In function `libgsm_encode_frame': undefined reference to `gsm_encode' /usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame': undefined reference to `gsm_decode' collect2: ld returned 1 exit status make[2]: *** [zmc] Error 1 make[2]: Leaving directory `/home/philip/ZoneMinder-1.22.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/philip/ZoneMinder-1.22.2' make: *** [all] Error 2
I know for sure that I instaled 'libavcodec-dev' thorugh synaptic, which is what I've seen other people with similar problems on forums be told they need to do. I've installed and reinstalled ffmpeg and other things in synaptic quite a few times. My only idea now is to do a fresh install and do everything I did again but much cleaner, though I'm not sure if that will help or not or should make a difference. Any help or advice would be appreciated. Once I get this thing working I'm going to try and build a package for this if possible. Thanks in advance guys and gals.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Im sorry not many of us run ubuntu here, so i for one cant help. sorry
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Make sure you have the ffmpeg development libraries. These may not be installed with the ffmpeg package.

Regards,
Corey
Locked