USB camera in ZoneMinder

Forum for questions and support relating to the 1.29.x releases only.
Locked
laia0911
Posts: 3
Joined: Sat Jul 15, 2017 12:05 am

USB camera in ZoneMinder

Post by laia0911 »

Please, does anyone help me how to set up USB cameras in ZoneMinder :?: :roll:
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: USB camera in ZoneMinder

Post by PacoLM »

Hi,

It will be really useful to search in the wiki or in the forum.
Last edited by PacoLM on Sun Oct 15, 2017 8:07 pm, edited 1 time in total.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
laia0911
Posts: 3
Joined: Sat Jul 15, 2017 12:05 am

Re: USB camera in ZoneMinder

Post by laia0911 »

Hi,

I need tips on how to use USB cameras (WebCam) in ZoneMinder.

And, I'm not from Catalonia. I'm from Brazil.
Sorry, I'm using google translator to express myself in this forum.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: USB camera in ZoneMinder

Post by rockedge »

you must use add monitor, pick "Local" go to the "Source" tab and select the correct settings. path will be like /dev/video0.

make sure the permissions are correct for www-data t see the camera. (add the user www-data to the group "video")

hope this helps.
laia0911
Posts: 3
Joined: Sat Jul 15, 2017 12:05 am

Re: USB camera in ZoneMinder

Post by laia0911 »

I am remotely accessing the server via PuTTY. So my question is how to configure these USB cameras remotely. It is possible? Or just local?
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: USB camera in ZoneMinder

Post by bbunge »

laia0911 wrote: Thu Jul 20, 2017 9:19 pm I am remotely accessing the server via PuTTY. So my question is how to configure these USB cameras remotely. It is possible? Or just local?
You did not say which version of Linux you are using. Here is a link to the WIKI :https://wiki.zoneminder.com/Helpful_use ... _resources

Once Zoneminder is installed and started you use the web console at http://server-ip/zm

One critical step for USB cameras is to add a user to the server:
Create a new user: adduser www-data video
uiguy
Posts: 6
Joined: Wed Mar 08, 2017 3:29 pm

Re: USB camera in ZoneMinder

Post by uiguy »

Hi,

I am getting the following error when trying to setup a local USB webcam

SQL-ERR 'SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'ServerId' at row 1', statement was 'insert into Monitors set LinkedMonitors = '', Name = 'Server', ServerId = '', Type = 'Local', Function = 'Monitor', Enabled = '1', RefBlendPerc = '6', AlarmRefBlendPerc = '6', AnalysisFPS = '', MaxFPS = '', AlarmMaxFPS = '', Protocol = '', Host = '', Port = '80', Options = '', Path = '', User = '', Pass = '', RTSPDescribe = '0', LabelFormat = '%N - %d/%m/%y %H:%M:%S', LabelX = '0', LabelY = '0', LabelSize = '1', ImageBufferCount = '50', WarmupCount = '25', PreEventCount = '25', PostEventCount = '25', StreamReplayBuffer = '1000', AlarmFrameCount = '1', EventPrefix = 'Event-', SectionLength = '600', FrameSkip = '0', MotionFrameSkip = '0', AnalysisUpdateDelay = '0', FPSReportInterval = '1000', DefaultView = 'Events', DefaultRate = '100', DefaultScale = '100', WebColour = 'red', Exif = '0', SignalCheckColour = '#0000c0', Device = '/dev/video0', Method = 'v4l2', Channel = '0', Format = '255', Palette = '1448695129', V4LMultiBuffer = '', V4LCapturesPerFrame = '1', Colours = '3', Width = '640', Height = '480', Orientation = '0', Deinterlacing = '0', Sequence = 18'

The camera is lcoated at /dev/video0

I am using Ubuntu 16.04. The camera is a Microsoft LifeCam HD-5001

Can anyone help?

Thanks
Locked