FFMPEG Ubuntu 14.04 - ZM 126.5

Forum for questions and support relating to the 1.27.x releases only.
Locked
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

FFMPEG Ubuntu 14.04 - ZM 126.5

Post by Biggus »

Hi,

I followed the guide here http://www.zoneminder.com/wiki/index.ph ... e_easy_way

However when I try to export a video it is coming up as failed. I have ticked used FFMPEG under the ZM options but it still doesn't work. I believe this is because FFMPEG isn't installed.

How do I go about installing it? I'm still quite new to this so please be gentle.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: FFMPEG Ubuntu 14.04 - ZM 126.5

Post by PacoLM »

Hi,

I just fixed the same problem in a BeagleBone Black. Even you may have a different hw, try following these steps to install ffmpeg with h264 support: http://derekmolloy.ie/building-ffmpeg-f ... om-source/

Be sure you have checked the OPT_FFMPEG and puth a valid path for PATH_FFMPEG.

Now I have it working... 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...
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: FFMPEG Ubuntu 14.04 - ZM 126.5

Post by Biggus »

Hi PacoLM,

I'm still quite new to Ubuntu so I don't know how to build from source, is there any easier way of doing this such as apt-get. In previous version of ZM/Ubuntu 12.04 the FFMPEG works quite well. Is a new thing in 14.04 where you have to go build and install yourself.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: FFMPEG Ubuntu 14.04 - ZM 126.5

Post by knight-of-ni »

Since you have installed zoneminder from the official Ubuntu repos, my guess is they are doing the same thing as Fedora and shipping zm without ffmpeg support due to legal gray areas cocnerning h264.

Instead, I recommend you go with iconnor's ubuntu ppa:
https://launchpad.net/~iconnor/+archive ... zoneminder

His package was built with ffmepg support and will pull in the proper dependencies for you.

Please note that there currently are no released versions of zoneminder that are fully compatible with Ubuntu 13.10 or newer.
Perhaps the Ubuntu package maintainer(s) didn't know this.

Some users have chosen to work around this by using the most recent zoneminder code in master, but understand that you are effectively becoming a beta tester.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: FFMPEG Ubuntu 14.04 - ZM 126.5

Post by bbunge »

I just successfully exported images from a Ubuntu 14.04 server running ZM 1.26.5!
Did not have the FFMPEG checked in Options:Images:OPT_FFMPEG
Since this setup saves the video stream as JPEG files I consider the system to be working! Others may disagree..

Update: You can try to add /usr/bin/avconv in the area above. Not sure if this works but I was able to export an event that contained an HTML file that played the jpg images in a loop. Not sure if there is a way to export a real video file but in most wotk I've done with police they are very happy to have a sequence of files.

The setup procedure in the "easy" series does not make ZM compatible with Ubuntu but makes Ubuntu and Apache compatible with ZM. I for one am very grateful for all the work folks have done on ZM. The not-for-profit I help with could not afford a camera system such as the one we set up with ZM! 15 cameras, by-the-way, with a mix of analog, IP and h.264 running on a second hand Dell Optiplex 780. So far I've recorded 242,256 events and the 500 GIG disk is 80% full with three months of motion detection! Not bad for software that is not fully compatible....
Locked