Libvlc doesn't work

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

Libvlc doesn't work

Post by Biggus »

I'm running a Ubuntu 14.04 server with ZM 1.27.1 installed. I installed this from the iconnor/zoneminder-master PPA.
When using FFMPEG my camera works, however when attempting to use libvlc it doesn't. I've installed libvlc.

Is this a known bug or am I doing something wrong?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

Post by PacoLM »

Hi,

Could you tell me how to install the lastest version under Ubuntu 14.04?

Regards,

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: Libvlc doesn't work

Post by Biggus »

- apt-add-repository ppa:iconnor/zoneminder-master
- apt-get update
- apt-get install zoneminder
- cp /etc/zm/apache.conf /etc/apache2/sites-enabled/zm.conf
- a2enmod cgi

Everything works apart from Libvlc.. Just wondering if I'm the only one.
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Libvlc doesn't work

Post by bbunge »

You are not the Lone Ranger. I've tried several times with basically your install with the same results. FFMPEG works fine, however, even though FFMPEG is not installed with 14.04!

bb
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

Post by PacoLM »

Biggus wrote:- apt-add-repository ppa:iconnor/zoneminder-master
- apt-get update
- apt-get install zoneminder
- cp /etc/zm/apache.conf /etc/apache2/sites-enabled/zm.conf
- a2enmod cgi

Everything works apart from Libvlc.. Just wondering if I'm the only one.
Thanks, I will give it a try!

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: Libvlc doesn't work

Post by Biggus »

Hi PacoLM,

Did you manage to test? I'm keen to get LIBVLC working :-)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

Post by PacoLM »

Well, Ubuntu server 14.04 and ZM1.27.99 working, but didn't tried libVLC, only ffmpeg. Will try it these days, keep you informed!

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: Libvlc doesn't work

Post by Biggus »

OK, I've just updated to 1.27.99 with iconnor/zoneminder-master PPA.

FFMPEG works fine.
Libvlc doesn't

Image
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

Post by PacoLM »

Have you installed libvlc?

Just in case you don't, try this:
apt-get install libvlc-dev libvlc5 libvlccore-dev libvlccore5 vlc-data vlc

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

Post by PacoLM »

Just tried it after installing the vlc libraries, it works way better than with ffmpeg

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
bbunge
Posts: 2967
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Libvlc doesn't work without additional VLC files.

Post by bbunge »

Wow! Got it to work!!! Below are the steps I used (basically from my "Easy" series).

I should add that I'm watching an H.264 camera 30 miles away, ported through a firewall, with little strain on my DSL!

Install Ubuntu Server

Install Basic Server (if you used the mini.iso), OpenSSH Server, and LAMP Server (LAMP installs Apache2, PHP, and MySQL server)

Log in then become root:

sudo su

apt-get update
apt-get upgrade
apt-get dist-upgrade

Optional: Set static IP address

nano /etc/network/interfaces

Make changes similar to this:

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1

Note: for Ubuntu 14.04 the resolv.conf is dynamically assigned. The "dns-servers" entry in the interfaces file will set the DNS Multiple DNS server entries can be used.

Reboot server

Add Repository

apt-get install python-software-properties
add-apt-repository ppa:iconnor/zoneminder-master
apt-get update

Install Zoneminder

apt-get install zoneminder

Note: a couple of package configurations will open up. These are to configure Nullmailer. You can just OK them and come back to configure them later.

Install "extra" VLC components (vlc may be optional?)

apt-get install libvlc-dev libvlccore-dev vlc

Add delay to allow MySQL to start before Zoneminder

nano /etc/init.d/zoneminder

Add sleep 15 as shown:

start() {
sleep 15
echo -n "Starting $prog: "

Ctrl+o Enter to save

CTRL+x to exit

Create a directory in apache2

mkdir /etc/apache2/conf.d

Create two symbolic links

ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf

CGI is not enabled in Ubuntu 14.04 by default. Enable it this way:

a2enmod cgi

Create a new user

adduser www-data video

Restart Apache

/etc/init.d/apache2 force-reload

or

service apache2 restart



Install Cambozola (needed if you use Internet Explorer)


cd /usr/src && wget http://www.andywilcock.com/code/cambozo ... est.tar.gz

tar -xzvf cambozola-latest.tar.gz

replace 935 with cambozola version downloaded

cp cambozola-0.935/dist/cambozola.jar /usr/share/zoneminder

You should now be able to access the web server using https://servername

NTP Daily Sync

nano /etc/cron.daily/ntpdate

Copy the following into nano

!/bin/sh ntpdate ntp.ubuntu.com

Ctrl+o Enter to save

CTRL+x to exit

chmod 755 /etc/cron.daily/ntpdate

Open Zoneminder in web browser

http://serverip/zm

Click Options

Uncheck: Check with zoneminder.com for updated versions (?) click Save

Click Images tab

check Is the (optional) cambozola java streaming client installed (?) Click Save
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Libvlc doesn't work

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

Re: Libvlc doesn't work

Post by Biggus »

Cheers bbunge

Rebuilt everything from scratch and followed your instructions and now this works perfect.

Ubuntu 14.
ZM 1.27.99
Libvlc
Ffmpeg

Only issue I have now is with cambozola not working in IE correctly but I'll put in another post about that.
carcachute
Posts: 38
Joined: Wed Jul 23, 2014 12:21 am

Re: Libvlc doesn't work

Post by carcachute »

I encountered this problem too. The Zoneminder package seems to install libvlc but not vlc. When I looked in /var/log/syslog, you'll see messages about missing VLC plugins.

I'm guessing the vlc package contains the plugins necessary for libvlc to work with ZM.

Unfortunately the vlc package also installs X11, QT, etc., which is a bunch of crud that is completely unnecessary for a headless server box.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Libvlc doesn't work

Post by knight-of-ni »

carcachute wrote:I encountered this problem too. The Zoneminder package seems to install libvlc but not vlc. When I looked in /var/log/syslog, you'll see messages about missing VLC plugins.

I'm guessing the vlc package contains the plugins necessary for libvlc to work with ZM.

Unfortunately the vlc package also installs X11, QT, etc., which is a bunch of crud that is completely unnecessary for a headless server box.
The vlc-core package contains the necessary support for zoneminder w/o requiring any Xorg packages.
I think on Ubuntu the name of the package is libvlccore... the exact name varies by distro.
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/
Locked