We have an incident I'm trying to export to .avi or mpeg or SOMETHING... and when I select the events and go to video to export it, I get "Video Generation Failed!" in red.
Maybe try running the zmvideo.pl (I think) script manually as root. Should be in /usr/local/bin, and you'll have to pass a couple of arguments.
Sorry, looks like a few things have changed from the version I'm using.
The other simple thing it could be is have you checked your config settings in zm for where ffmpeg is - then confirmed ffmpeg is there. Could be a wrong location i.e. /usr/bin/ffmpeg insteads of /usr/local/bin/ffmpeg - seen that before.
Ok... Running the following:
/usr/bin/zmvideo.pl -e 4569239 -r 1 -f avi
It drops down a line like it ran successfully...
But if I look at ffmpeg.log I see this:
FFmpeg version git-5f9cf8b, Copyright (c) 2000-2010 the FFmpeg developers
built on Aug 13 2010 07:26:33 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --enable-libmp3lame --enable-nonfree --enable-libfaac --enable-libgsm --enable-postproc --enable-shared --enable-pthreads --enable-gpl --enable-swscale --enable-avfilter --enable-libxvid --enable-libx264 --enable-libvorbis
libavutil 50.23. 0 / 50.23. 0
libavcore 0. 3. 0 / 0. 3. 0
libavcodec 52.84. 3 / 52.84. 3
libavformat 52.78. 1 / 52.78. 1
libavdevice 52. 2. 1 / 52. 2. 1
libavfilter 1.31. 0 / 1.31. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
%08d-capture.jpg: No such file or directory
Not really. Looking at the script its this bit that is generating the error. Looks like it isn't passing the correct filenames.
my $command = ZM_PATH_FFMPEG." -y -r $frame_rate ".ZM_FFMPEG_INPUT_OPTIONS." -i %0".ZM_EVENT_IMAGE_DIGITS."d-capture.jpg -s $video_size ".ZM_FFMPEG_OUTPUT_OPTIONS." '$video_file' >& ffmpeg.log";
You could try echoing that line to the log filetemporerily and see what it shows, and run it manually.
I wonder if it needs to be run from inside your event folder.
Try cd'ing to the event folder and running the zmvideo/ffmpef command from inside there. Is it possible yur events folder could be wrong within your zm database config?
I dunno.
Looks like perl grabs it from this line, but I dont know perl.
my $event_path = getEventPath( $event );
chdir( $event_path );
It is stored in /usr/local/etc/zm.conf - could be from there?
I can't see it in DB, but may be wrong.
If that still doesn't work, you could comment this:
my $event_path = getEventPath( $event );
and replace with:
my $event_path = 'your path';
Edit:
Looks like the perl module gets the path from ZoneMinder.pm
in /usr/lib/perl5/site_perl/5.10.0/
which then calls /usr/lib/perl5/site_perl/5.10.0/ZoneMinder/General.pm
and this function.