Video Generation Failed!

Support and queries relating to all previous versions of ZoneMinder
ilababy
Posts: 53
Joined: Mon Apr 17, 2006 10:07 pm

Video Generation Failed!

Post 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.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What errors do you get in the logs?
When you run:
ffmpeg -version
what do you get?
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post 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
ilababy
Posts: 53
Joined: Mon Apr 17, 2006 10:07 pm

Post 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.
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post by MJN »

Have you checked where you've got ffmpeg installed? Try locate ffmpeg as see where it lives...

Mathew
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
ilababy
Posts: 53
Joined: Mon Apr 17, 2006 10:07 pm

Post 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
User avatar
MJN
Posts: 251
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
ilababy
Posts: 53
Joined: Mon Apr 17, 2006 10:07 pm

Post by ilababy »

Sorry but i don't have zmvideo.log, zmpkg.log and zmdc.log.
Any ideas?
Thanks.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What happened too them?
You were posting some of the errors from those logs earlier.
vanbosco
Posts: 11
Joined: Fri Feb 02, 2007 8:02 pm
Location: Italy

Post 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.
occhiostanco
Posts: 48
Joined: Tue Mar 21, 2006 1:37 pm

Re: Video Generation Failed!

Post 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
ilababy
Posts: 53
Joined: Mon Apr 17, 2006 10:07 pm

Post by ilababy »

Perfect. Is all OK!

Thanks.
d0t101101
Posts: 14
Joined: Mon Dec 24, 2007 9:49 pm

Re: Video Generation Failed!

Post 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!
.
Locked