ffmpeg setup
Posted: Thu May 19, 2011 7:37 am
I was hoping someone could explain how the ffmpeg installation works, in respect of building from source, on ubuntu.
Time and time again people are hitting problems with different versions of ffmpeg, and upgrades to distros breaking things.
What I'd like to do is have a seperate install of ffmpeg just for zm. So the distro has it's own packaged ffmpeg which is in /usr/bin and /usr/lib, and we have our own static and older version in say /opt/ffmpeg.
I thought I'd got this working before in the past using:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --disable-shared --enable-static --enable-pthreads --prefix=/opt/ffmpeg
and then in configure command:
configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin/zm --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/opt
Anyway, this doesn't really seem to be working for me so well, and ZM is still trying to look at lib files in /usr/lib. The configure command is warning me of various bits being required for streaming.
Looking at the Ubuntu guides, (http://www.zoneminder.com/wiki/index.ph ... _Cambozola) there is a bit of symbolic linking and ldconfig going on, but I'm not sure exactly what it is doing. I'm happy to just blindly follow that guide, but my assumption is that the minute I install ffmpeg from package (as mythtv will) it will all break again.
What I'm after is a bit of a definitive guide as to how to get around this issue of:
1. Version specifics of ffmpeg (can we have a preferred version no for each release)
2. Compilation flags for ffmpeg
3. configure commands for zm, to match the above
4. any extra stuff, like ldconfigs that should be done.
5. coexistance of a zoneminder ffmpeg install and a seperate distro installed version
I know this is quite a broad and general question, but ffmpeg seems to cause more issues on here than anything else, and I'd like to understand how people deal with it.
Thanks
Time and time again people are hitting problems with different versions of ffmpeg, and upgrades to distros breaking things.
What I'd like to do is have a seperate install of ffmpeg just for zm. So the distro has it's own packaged ffmpeg which is in /usr/bin and /usr/lib, and we have our own static and older version in say /opt/ffmpeg.
I thought I'd got this working before in the past using:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --enable-gpl --disable-shared --enable-static --enable-pthreads --prefix=/opt/ffmpeg
and then in configure command:
configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin/zm --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/opt
Anyway, this doesn't really seem to be working for me so well, and ZM is still trying to look at lib files in /usr/lib. The configure command is warning me of various bits being required for streaming.
Looking at the Ubuntu guides, (http://www.zoneminder.com/wiki/index.ph ... _Cambozola) there is a bit of symbolic linking and ldconfig going on, but I'm not sure exactly what it is doing. I'm happy to just blindly follow that guide, but my assumption is that the minute I install ffmpeg from package (as mythtv will) it will all break again.
What I'm after is a bit of a definitive guide as to how to get around this issue of:
1. Version specifics of ffmpeg (can we have a preferred version no for each release)
2. Compilation flags for ffmpeg
3. configure commands for zm, to match the above
4. any extra stuff, like ldconfigs that should be done.
5. coexistance of a zoneminder ffmpeg install and a seperate distro installed version
I know this is quite a broad and general question, but ffmpeg seems to cause more issues on here than anything else, and I'd like to understand how people deal with it.
Thanks