Page 1 of 1

Video Generation Failed

Posted: Thu Apr 16, 2015 5:16 pm
by craigwhiz
My setup:
Zoneminder v1.28.1
Ubuntu 14.04 Server

- First I open the event by clicking on the event number and the video starts to play
- Then I click the 'Video' link just above the video playing (this gives me the video popup)
- I accept the defaults and click the 'Generate Video' button
- Then I get the 'Video Generation Failed!' message

The System Log entry from Zoneminder Console:
"Unable to generate video, check /usr/share/zoneminder/events/2/15/04/16/10/51/59/ffmpeg.log for details"

- I don't find an ffmpeg.log there, only the individual image files and the zmEventDetail.html and zmEventImages.html files

In the /var/log/apache2/error.log, I see these corresponding entries to my failed video export attempt:

[Thu Apr 16 11:23:12.064757 2015] [:error] [pid 1809] [client xxxx] ERR [Command 'cat 'temp/zmFileList.txt' | zip -q 'temp/zmExport.zip' -@' returned with status 12], referer: /zm/index.php?view=export&eids[]=776
[Thu Apr 16 11:23:12.072515 2015] [:error] [pid 1809] [client xxxxx] ERR [Export Failed], referer: /zm/index.php?view=export&eids[]=776
[Thu Apr 16 11:25:25.840177 2015] [:error] [pid 1812] [client xxxxx] ERR [Command 'cat 'temp/zmFileList.txt' | zip -q 'temp/zmExport.zip' -@' returned with status 12], referer: /zm/index.php?view=export&eids[]=776&exportFile=temp/zmExport.zip&generated=1
[Thu Apr 16 11:25:25.847893 2015] [:error] [pid 1812] [client xxxx] ERR [Export Failed], referer: /zm/index.php?view=export&eids[]=776&exportFile=temp/zmExport.zip&generated=1
[Thu Apr 16 11:30:15.910123 2015] [:error] [pid 1727] [client xxxx] ERR [Command 'cat 'temp/zmFileList.txt' | zip -q 'temp/zmExport.zip' -@' returned with status 12], referer: /zm/index.php?view=export&eids[]=776
[Thu Apr 16 11:30:15.916774 2015] [:error] [pid 1727] [client xxxxx] ERR [Export Failed], referer: /zm/index.php?view=export&eids[]=776
sh: 0: Illegal option -y
[Thu Apr 16 11:31:07.874512 2015] [:error] [pid 1730] [client xxxx] ERR [Video Generation Failed], referer: /zm/index.php?view=video&eid=776
sh: 0: Illegal option -y
[Thu Apr 16 12:02:16.676787 2015] [:error] [pid 1813] [client xxxxx] ERR [Video Generation Failed], referer: /zm/index.php?view=video&eid=776

Looking through the Troubleshooting page and the FAQ, I search for zoneminder related logs and am having trouble finding them where they should be according to the FAQ and Troubleshooting pages.

Any advice?

Thanks in advance,
-c

Re: Video Generation Failed

Posted: Fri Apr 17, 2015 6:18 am
by PacoLM
Hi,

Could you check that you have the ffmpeg location configured properly in Options::Images::PATH_FFMPEG?
In order to get the path, you could run the command

Code: Select all

which ffmpeg
it will output the path where the binary executable is.

Hope it helps,

PacoLM

Re: Video Generation Failed

Posted: Fri Apr 17, 2015 1:36 pm
by craigwhiz
That worked!

Big thanks, PacoLM!!

Re: Video Generation Failed

Posted: Sat Apr 18, 2015 7:56 pm
by PacoLM
Congratulations!