How to compile with vlc support?

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

How to compile with vlc support?

Post by Basildane »

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 »

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 »

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

Re: How to compile with vlc support?

Post by PacoLM »

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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane »

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

Re: How to compile with vlc support?

Post by PacoLM »

Hi,

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

Thanks,

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: How to compile with vlc support?

Post by PacoLM »

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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane »

There could be many differences in our setups.
For example, what bitrate, fps and resolution do you run the camera?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: How to compile with vlc support?

Post by PacoLM »

Config of my camera:

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

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane »

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

Re: How to compile with vlc support?

Post by PacoLM »

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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
Basildane
Posts: 108
Joined: Mon Sep 16, 2013 1:09 pm

Re: How to compile with vlc support?

Post by Basildane »

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 »

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.
Locked