How to use libvlc

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

How to use libvlc

Post by Biggus »

I currently have my cameras running in ffmpeg however I get the smearing effect quite often, as you can gather I'm keen to try out the libvlc option. I've just upgraded my zoneminder to 1.27 and the libvlc option is now available however when I edit my cameras config from ffmpeg to libvlc the camera stops working, what other steps do I have to do to make this work,

The cameras are Foscam FI9828W & FI9805W
Biggus
Posts: 96
Joined: Mon Nov 18, 2013 9:15 am

Re: How to use libvlc

Post by Biggus »

I've solved it, it was basically because I didn't have the libvlc installed.

All I had to do was open up a terminal and type

"apt-get install libvlc-dev libvlc5 libvlccore-dev libvlccore5 vlc-data vlc"

then reboot the machine and now it works.

I'm going to monitor to see how I get on.
rceccleston
Posts: 9
Joined: Wed Jan 22, 2014 10:00 am

Re: How to use libvlc

Post by rceccleston »

As listed above, I have installed the modules but I still receive the following alerts in the logs.

'You must have vlc libraries installed to use vlc cameras for monitor 1'

'zmc -m 1' exited abnormally, exit status 255'

'Memory map file '/dev/shm/zm.mmap.1' should have been 896 but was instead 0 '

Does LVC require a desktop interface since I am running a command line only.
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How to use libvlc

Post by PacoLM »

Hi,

I'm running headless too and libvlc is working.

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: How to use libvlc

Post by Biggus »

I'm running headless too and its working fine.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: How to use libvlc

Post by knight-of-ni »

The required package names are stated in the zonemidner README file for Ubuntu, CentOS, and Fedora. The names vary by distro.

The good news is that you don't have to install the full vlc application (command line users rejoice!).

If compiling from source, note that you have to have the libraries installed *before* you run cmake (or configure for autotools). Zoneminder will autodetect the prescense of these libraries and will disable support for libvlc at build time if it does not detect them.
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/
PoDoNoK
Posts: 2
Joined: Tue Jun 10, 2014 7:52 am

Re: How to use libvlc

Post by PoDoNoK »

Hi, my Linux distr is OpenSuse 12.1. Which libraries must be installed before using libvlc?
I have running latest version of ZoneMinder which was instaled from rpm. I tried to use as is, but my HD cam doesnt work ((( I also tried install vlc libs like its discribed in change log for CentOS, I mean vlc-devel vlc-core, anyway doesnt work((
How to solve this problem? Did anybody tried use vlc lib in OpenSuse?

Thanks!
Just like this
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: How to use libvlc

Post by SteveGilvarry »

knnniggett wrote:The required package names are stated in the zonemidner README file for Ubuntu, CentOS, and Fedora. The names vary by distro.
I think master Readme package list for Ubuntu is missing packages for some of the new functionality. I couldn't see curl or vlc libs, I would add them but i forget which ones I grabbed to solve cmake not finding them.

Code: Select all

aptitude install -y apache2 mysql-server php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf libjpeg8-dev libjpeg8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libphp-serialization-perl libgnutls-dev libjpeg8-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev libtool ffmpeg libnetpbm10-dev libavdevice-dev libmime-lite-perl dh-autoreconf dpatch;
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Locked