How to compile with vlc support?

Forum for questions and support relating to the 1.26.x releases only.
Post Reply
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

How to compile with vlc support?

Post by Basildane » Wed Mar 05, 2014 6:01 pm

I did

# apt-get install libVLC5
# cmake -C zm_conf.cmake -DENABLE_MMAP=yes .

Returns -- Optional libraries not found: cURL libVLC

mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: How to compile with vlc support?

Post by mastertheknife » Wed Mar 05, 2014 10:24 pm

VLC source type support is enabled by default, as long as you have the dependencies needed for it (libvlc-dev)
You are probably missing a dev package, try libvlc5-dev or libvlc5-devel
And -DENABLE_MMAP=yes is a workaround that is not required anymore since v1.26.5.
Kfir Itzhak.

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Wed Mar 05, 2014 10:52 pm

Thanks. I couldn't find any libvlc5-dev or libvlc5-devel, but I found libvlc-dev, and it compiled with that.
Unfortunately, the channel doesn't start up. This is the error from the log:

2014-03-05 17:49:15.460351 zmc_m8 1070 FAT Unable to create libvlc instance due to: (null) /usr/local/src/zoneminder/src/zm_libvlc_camera.cpp 143

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

Re: How to compile with vlc support?

Post by PacoLM » Sat Mar 22, 2014 2:33 pm

Hi,

Same error ( FAT [Unable to create libvlc instance due to: (null)]) in Ubuntu 12.04 and ZM1.27. Monitor in mmpeg works, same camera trying to get a rstp using vlc fails.

Any clue?

PacoLM

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Sat Mar 22, 2014 6:06 pm

I was finally able to find all the dependencies for vlc here:

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

Then I was able to get the vlc channels up.
However, they lockup after a few hours. So I'm back to ffmpeg.

Let me know if you have better luck.

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

Re: How to compile with vlc support?

Post by PacoLM » Sun Mar 23, 2014 8:49 pm

Hi,

The camera now works in VLC mode. I will post results.

Thanks,

PacoLM

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

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

Re: How to compile with vlc support?

Post by PacoLM » Tue Mar 25, 2014 5:53 pm

Hi Basil,

In my ZM test system with Ubuntu Precise, only with one monitor working in vlc mode, tt worked fine for more than one day.

PacoLM

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Tue Mar 25, 2014 6:10 pm

There could be many differences in our setups.
For example, what bitrate, fps and resolution do you run the camera?

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

Re: How to compile with vlc support?

Post by PacoLM » Tue Mar 25, 2014 6:24 pm

Config of my camera:

FPS:30 FPS
Resolution: 640x368
Bitrate: should be 640x386x30, isn't it?

PacoLM

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Tue Mar 25, 2014 6:33 pm

On mine I configure the overall bitrate on the control panel of the camera.

I'm sending 1280x960, 32 bit color, 4,096 kbps, 20 fps, CBR, I-frame interval of 80.

I shutdown and reset after failures 3 times to make sure it wasn't fluke. It just keeps failing. And fails on multiple cameras.

FFMPEG is working, although it smears up a few times a day. I haven't tried bringing the resolution down, I could try it for a test, but I can't leave it that way. I actually need more res for security uses.

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

Re: How to compile with vlc support?

Post by PacoLM » Tue Mar 25, 2014 6:36 pm

I have to lower down the resolution due to the quality of the cable, is not a CAT6, I have a regular cable. When I was setting up the system, I tried with a shorter CAT6 cable and also worked for hours.

Hope it helps,

Thanks,

PacoLM

mini-ITX system (6 IPCams - Ubuntu14.04 - ZM1.31.1)

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Tue Mar 25, 2014 6:39 pm

OK, now you have my curiosity. I'm going to take a channel and set it down to 640x360 for tonight and see what happens.

However, I am running 5e cable, and I test them, and they are on a layer II switch with QOS giving priority to video and VoIP... I don't think it's the cable.

User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane » Sat Mar 29, 2014 3:53 am

After a couple of days of running 3 HD cameras on vlc, 1 of them has locked up twice, while 2 seemed to run ok.
Unfortunately zm doesn't seem to know the camera freezes and takes no action, so the image is stuck all day until I catch it and restart the channel.

I can't live with that so I'm back on ffmpeg again.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests