Camera Streaming Not working

Forum for questions and support relating to the 1.30.x releases only.
lilmissndemon
Posts: 17
Joined: Thu Apr 27, 2017 9:57 pm

Re: Camera Streaming Not working

Post by lilmissndemon »

rockedge wrote: Mon May 01, 2017 1:06 am open /etc/apache2/config-enabled, is there anything in there resembling zoneminder.conf? If not....copy zoneminder.conf to there and restart Apache. If there is already a zoneminder.conf and/or this still does not work then go ahead and uninstall. Then try a new fresh install using the correct version of install instructions for Ubuntu. Lets see if that straightens ZM out!
Yeah i found the file was empty copied it saved it still no luck gonna uninstall and try again later thanx for your help in this matter

would you suggest that shell script with mariadb?
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Camera Streaming Not working

Post by rockedge »

I have not tried the script out but yes I would give it a try. Or the docs here http://zoneminder.readthedocs.io/en/sta ... untu-16-04 for a mysql version. Let me know how you make out. Good Luck!
linuxnutt
Posts: 37
Joined: Fri Aug 12, 2016 6:06 am

Re:[Solved] Camera Streaming Not working - I see stills No Streaming

Post by linuxnutt »

I wanted to finally close out this post with a solution that finally worked for me in the hopes that it will save someone else time if they have the same problem. I was getting stills when I pulled up the alerts but no video streaming. The error below exemplified the problem I was having and yet after three attempts to reinstall I was still having errors following these install instructions (I sure I was doing something wrong) - Mint 18 running ZM1.30.2. Followed the easy way instructions as I have done previously.
https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way
See above for better understanding of the problems and error issues.
ERROR:
getStreamCmdResponse stream error: Socket does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/lat ... window-etc for more information. - checkStreamForErrors()

Solution:
I followed this install and it worked. Here you are simply installing a pre-configured dvd or usb. I used the dvd. This method is also referred to as ZM on a stick. The dvd will boot up into Lubuntu running from the dvd. You can then install Lubuntu (a version of Ubuntu) and ZM from the live dvd. Like the instructions mention the dvd install did fail for me also, so Open a terminal - System Tools - LXTerminal and type this, sudo sh -c 'ubiquity gtk_ui' . It installed for me.
https://wiki.zoneminder.com/Lubuntu_16. ... DVD_or_USB.

One gotcha after the install is that I was not able to connect to the internet so I followed this tutorial to fix the /etc/resolv.conf so I would have dns resolver and be able to connect to the internet. apt-get updates are necessary to get to the latest verson of ZM 1.30.4.
https://www.quora.com/How-can-I-configu ... ermanently
use, Ladislav Rydzyk, Linux DIY Enthusiast guide for fixing /etc/resolv.conf.

Now you can update your system and get the latest version of ZM:
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Finally do change database password - mariabd roots password using the link in the ZM document ... https://www.liquidweb.com/kb/change-a-p ... mand-line/.
uiguy
Posts: 6
Joined: Wed Mar 08, 2017 3:29 pm

Re: Camera Streaming Not working

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
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Camera Streaming Not working

Post by bbunge »

uiguy wrote: Mon Jul 02, 2018 11:09 am 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
Did you use the instructions at: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

Did you add to my.cnf: sql_mode = NO_ENGINE_SUBSTITUTION

Did you: adduser www-data video
uiguy
Posts: 6
Joined: Wed Mar 08, 2017 3:29 pm

Re: Camera Streaming Not working

Post by uiguy »

yes, yes and yes, the only addition I did was securing phpMyadmin following instructions here: https://www.digitalocean.com/community/ ... untu-16-04
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Camera Streaming Not working

Post by rockedge »

I use a similar camera to stream a aquarium of trout raised from eggs 24/7 for the last 6 years. at the moment it is running off a very old 2002 Dell laptop with 512 megs of RAM.....using Puppy Linux Xenial (Ubuntu 16.04 binaries) and zoneminder 1.30.4 stable......these are my settings at the moment..with a frame rate of 5 (low RAM)
Screenshot-8-320px.png
Screenshot-8-320px.png (45.03 KiB) Viewed 2931 times
Screenshot-9-320px.png
Screenshot-9-320px.png (83.73 KiB) Viewed 2928 times
I have not yet really done much experimenting with the settings. Buffers are set to the defaults.
Locked