Hi all, recently I installed zoneminder from the deb package. I am receiving an error in the ZM web console of, "Video Generation Failed!"
When I tail /var/log/apache2/error.log I see:
[Thu Nov 08 14:53:09 2007] [error] [client MYCLIENTIP Command 'cat temp/zmFileList.txt | zip -q temp/zmExport.zip -@' returned with status 12, referer: http://SERVERHOSTIP/zm/index.php?view=export&eid=1492
I am using the janky Ubuntu ffmpeg package. I feel this may be my problem. Also I'm not sure that the deb package was compiled with ffmpeg support because of the janky ffmpeg package from Ubuntu. Do I need to just compile and install ZM myself with a self-built ffmpeg as well? If so, what parameters do I need to build ffmpeg with for ZM? Do I then just follow the build instructions for ZM on the WIKI?
I've been a linux user for years and am very impressed with ZM and simple jpeg video streaming and capture. I did have another problem where I could not find how to capture images with movement only during certain times of the day. I did however come up with a solution by changing ZM's configuration with a CRON job. If there is a way to do it in ZM I would be much obliged.
Thanks in advance!
Trouble Generating MPEG | Ubuntu 7.10 | ZM 1.22.3
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
See this Plunk:
http://www.zoneminder.com/forums/viewtopic.php?t=7250
A simple edit should fix things so the files are created (did for me) but all I am getting is green junk in my generated video...working on it now...
http://www.zoneminder.com/forums/viewtopic.php?t=7250
A simple edit should fix things so the files are created (did for me) but all I am getting is green junk in my generated video...working on it now...
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
I ended up removing the ZoneMinder package (Kubuntu 7.10) and built 1.22.3 from source after removing ffmpeg and then building my own copy of ffmpeg from svn. Works great now. Just could not get anything but corrupted video exports when using the packaged ffmpeg. I used the following config for ZoneMinder so it would pretty much drop in place of the packaged version:
If you end up removing the ZoneMinder package apt will remove your database and db user, so be sure to create a backup...
Code: Select all
./configure --with-libarch=lib --with-ffmpeg=/usr/local --with-webdir=/usr/share/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-mysql=/usr/include/mysql --with-webuser=www-data --with-webgroup=www-data --disable-debug --disable-crashtrace
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am
-
- Posts: 374
- Joined: Wed Nov 07, 2007 1:59 am
- Location: Huntington Beach, California
- Contact:
To build ffmpeg from svn do:
From there just run ./configure in the ffmpeg dir, then 'make' and 'make install'. I already had about a billion development packages installed on this machine so I did not have any issues with the build, ymmv...
Code: Select all
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
Linuxsense is right, however if you're not familiar with building from source just say so. I'll post a start to finish for you.
linuxsense, is there a reason you're using Kubuntu rather than just the plain jane Ubuntu Server install? If you want a gui to monitor the system, why not Xubuntu for lower overhead? Are you using the system for more than just ZM?
linuxsense, is there a reason you're using Kubuntu rather than just the plain jane Ubuntu Server install? If you want a gui to monitor the system, why not Xubuntu for lower overhead? Are you using the system for more than just ZM?
-
- Posts: 247
- Joined: Sun Jan 16, 2005 11:26 am