Page 1 of 2

Video Generation Failed!

Posted: Thu Jan 25, 2007 11:23 pm
by ilababy
Why when i try generate video i have this error:
Video Generation Failed!

Ubuntu 6.10 whith zm 1.2.23.

Can you help me please.
Thanks.

Posted: Fri Jan 26, 2007 7:35 am
by cordel
What errors do you get in the logs?
When you run:
ffmpeg -version
what do you get?

Posted: Fri Jan 26, 2007 10:50 am
by MJN
Check your path to ffmpeg in Options > Images > ZM_PATH_FFMPEG. On a default Ubuntu install I believe it's located at /usr/bin/ffmpeg.

Mathew

Posted: Fri Jan 26, 2007 10:14 pm
by ilababy
I change path in /usr/bin/ffmpeg but there is again error.
This is mi zmvideo.log:
01/26/07 23:07:18.412696 zmvideo[6612].INF [/usr/bin/ffmpeg -y -r 24.51 -i %03d-capture.jpg -s 320x240 -r 25 'Event-564-r1-s1.avi' >& ffmpeg.log]
01/26/07 23:07:18.415573 zmvideo[6612].ERR [Unable to generate video, check /var/www/zm//events/15/564/ffmpeg.log for details].
/var/www/zm/events/15/564/ffmpeg.log don't exist.

ffmpeg -version:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 0d.49.0.0
libavcodec version: 0d.51.11.0
libavformat version: 0d.50.5.0
built on Sep 20 2006 00:26:15, gcc: 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)
ffmpeg SVN-rUNKNOWN
libavutil 3211264
libavcodec 3345152
libavformat 3278080

Any ideas? Thanks.

Sorry for my english.

Posted: Fri Jan 26, 2007 10:50 pm
by MJN
Have you checked where you've got ffmpeg installed? Try locate ffmpeg as see where it lives...

Mathew

Posted: Fri Jan 26, 2007 11:23 pm
by cordel
He has it installed as per my request above to display the version.

Do a locate for ffmpeg.log and see what turns up.
also check zmvideo.log this will give you a bit more info.
Worst case, you can pm me your ssh info and I can track it down.

Posted: Tue Jan 30, 2007 6:29 pm
by ilababy
With locate ffmpeg i have /usr/bin/ffmpeg.

I don't have zmvideo.log

I use different events path, with symbolink link to new path.

Sorry for my english

Posted: Tue Jan 30, 2007 8:37 pm
by MJN
cordel wrote:He has it installed as per my request above to display the version.
Sure - it wasn't if ffmpeg was installed but rather where that I was wondering. :)

I asked because the default ZM path location is for it to be in /usr/local/bin/ffmpeg whereas on Ubuntu it's actually installed at /usr/bin/ffmpeg.

Mathew

Posted: Wed Jan 31, 2007 1:48 am
by cordel
You might need to tail all your logs (messages/syslog, zmpkg.log, zmdc.log, zmvideo.log) as I don't remember where the error would turn up (messages/syslog I think) but this will tell if there is a permissions problem or a path problem or maybe both. The problem will be logged somewhere though and with out it we're just guessing and you will continue to pull your hair out.

Posted: Thu Feb 01, 2007 10:35 pm
by ilababy
Sorry but i don't have zmvideo.log, zmpkg.log and zmdc.log.
Any ideas?
Thanks.

Posted: Thu Feb 01, 2007 11:57 pm
by cordel
What happened too them?
You were posting some of the errors from those logs earlier.

Posted: Fri Feb 02, 2007 8:27 pm
by vanbosco
Take a look at this post:
http://www.zoneminder.com/forums/viewto ... ht=zmvideo

I had same problem (on UBUNTU 6.10 and ZM 1.22.3) and removing "&" from line 323 of zmvideo.pl solved the problem.

Re: Video Generation Failed!

Posted: Mon Feb 05, 2007 12:27 pm
by occhiostanco
Most likely, this error raise when the location for the log file produced along with the video (ffmpeg.log) is not writable.
This expecially if you can't fint a ffmpeg.log

Check in zmvideo.pl and change ">& ffmpeg.log" to "&> /tmp/ffmpeg.log"
and see what happens

Roberto

Posted: Mon Feb 05, 2007 4:32 pm
by ilababy
Perfect. Is all OK!

Thanks.

Re: Video Generation Failed!

Posted: Sat Dec 29, 2007 12:48 am
by d0t101101
occhiostanco wrote:Most likely, this error raise when the location for the log file produced along with the video (ffmpeg.log) is not writable.
This expecially if you can't fint a ffmpeg.log

Check in zmvideo.pl and change ">& ffmpeg.log" to "&> /tmp/ffmpeg.log"
and see what happens

Roberto
This suggestion also fixed my problems with video generation using ZM 1.22.3-10 on Ubuntu 7.10.

THANKS!
.