Video Generation Failed

Forum for questions and support relating to the 1.28.x releases only.
Locked
craigwhiz
Posts: 2
Joined: Thu Apr 16, 2015 4:57 pm

Video Generation Failed

Post 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
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Video Generation Failed

Post 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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
craigwhiz
Posts: 2
Joined: Thu Apr 16, 2015 4:57 pm

Re: Video Generation Failed

Post by craigwhiz »

That worked!

Big thanks, PacoLM!!
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Video Generation Failed

Post by PacoLM »

Congratulations!

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
Locked