Page 1 of 1

How to compile with vlc support?

Posted: Wed Mar 05, 2014 6:01 pm
by Basildane
I did

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

Returns -- Optional libraries not found: cURL libVLC

Re: How to compile with vlc support?

Posted: Wed Mar 05, 2014 10:24 pm
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.

Re: How to compile with vlc support?

Posted: Wed Mar 05, 2014 10:52 pm
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

Re: How to compile with vlc support?

Posted: Sat Mar 22, 2014 2:33 pm
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

Re: How to compile with vlc support?

Posted: Sat Mar 22, 2014 6:06 pm
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.

Re: How to compile with vlc support?

Posted: Sun Mar 23, 2014 8:49 pm
by PacoLM
Hi,

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

Thanks,

PacoLM

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 5:53 pm
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

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 6:10 pm
by Basildane
There could be many differences in our setups.
For example, what bitrate, fps and resolution do you run the camera?

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 6:24 pm
by PacoLM
Config of my camera:

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

PacoLM

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 6:33 pm
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.

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 6:36 pm
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

Re: How to compile with vlc support?

Posted: Tue Mar 25, 2014 6:39 pm
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.

Re: How to compile with vlc support?

Posted: Sat Mar 29, 2014 3:53 am
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.