Foscam FI9803P

Forum for questions and support relating to the 1.29.x releases only.
Locked
leb0rtran
Posts: 6
Joined: Sun Feb 07, 2016 4:51 pm

Foscam FI9803P

Post by leb0rtran »

Hi,

today I installed Zoneminder on Ubuntu Server 14.04.3 as the Installation Guide suggests (Easy Way, http://zoneminder.readthedocs.org/en/la ... buntu-14-x)

Then i tried to add my Foscam FI9803P, but I cannot get a picture of the stream.
A few errors occur in the log files.

Code: Select all

2016-02-07 17:14:41.304242	zmc_m2		3654	INF	Monitor-2: 5000 - Capturing at 22.73 fps	zm_monitor.cpp	3131
2016-02-07 17:13:57.880741	zmc_m2		3654	INF	Monitor-2: 4000 - Capturing at 23.26 fps	zm_monitor.cpp	3131
2016-02-07 17:13:55.088488	web_js		1975	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:13:54.992267	web_php		1975	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:13:42.990347	web_js		3612	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:13:42.910662	web_php		3612	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:13:30.635633	web_js		3612	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:13:30.566482	web_php		3612	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:13:18.638717	web_js		3612	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:13:18.386601	web_php		3612	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:13:14.460920	zmc_m2		3654	INF	Monitor-2: 3000 - Capturing at 23.26 fps	zm_monitor.cpp	3131
2016-02-07 17:13:06.367266	web_js		3670	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:13:06.325253	web_php		3670	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:12:54.292980	web_js		3670	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:12:53.740867	web_php		3670	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:12:41.703375	web_js		3670	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-07 17:12:41.622281	web_php		3670	ERR	socket_sendto( /var/run/zm/zms-453364s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-07 17:12:31.023755	zmc_m2		3654	INF	Monitor-2: 2000 - Capturing at 22.73 fps	zm_monitor.cpp	3131
I use as source "FFMPEG" with the link "rtsp://user:pass@10.37.50.193:554/videoMain"
The rtsp link works fine in VLC player.

Because of the log I suggest the webcam is well recognized (the current fps seems to be correct) but the stream cannot be decoded? Is the problem FFMPEG? Ubuntu 14 uses a fork of FFMPEG (I think avlib).

Can someone help?

Edit:
Also recording and downloading the video (as image, not as a video file) works fine.
Playback of the redorded video does not work in the browser.

Edit2:
If I open the video? url directly (http://surveillance/cgi-bin/nph-zms?mod ... 1454869678) I get: The requested URL /cgi-bin/nph-zms was not found on this server.

CGI seems to be enabled:

Code: Select all

sudo a2enmod cgi
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Module cgi already enabled
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Foscam FI9803P

Post by bbunge »

Open Zoneminder in a web browser (http://server-ip/zm).

Click on Options - Paths Change PATH_ZMS to /zm/cgi-bin/nph-zms

See instructions @ https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

You also need to have the camera resolution spot on in the ZM settings or it will not work!
leb0rtran
Posts: 6
Joined: Sun Feb 07, 2016 4:51 pm

Re: Foscam FI9803P

Post by leb0rtran »

Thanks for your reply.
I changed the "PATH_ZMS" value (it was indeed wrong) and rebooted the server.
What do you mean by camera resolution spot?
The actual camera resolution? I changed the resolution to 1080x720 (8bit grey scale color).

The error stayed the same:

Code: Select all

2016-02-08 18:34:24.848100	web_js		1348	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-979357s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-08 18:34:24.799863	web_php		1348	ERR	socket_sendto( /var/run/zm/zms-979357s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-08 18:34:12.793589	web_js		1348	ERR	getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-979357s.sock ) failed: No such file or directory - checkStreamForErrors()	?view=watch	
2016-02-08 18:34:12.745146	web_php		1346	ERR	socket_sendto( /var/run/zm/zms-979357s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2371
2016-02-08 18:34:08.971250	zma_m2		1188	INF	Monitor-2: 31000 - Analysing at 8.40 fps	zm_monitor.cpp	1287
2016-02-08 18:34:08.715235	zmc_m2		1187	INF	Monitor-2: 31000 - Capturing at 8.33 fps	zm_monitor.cpp	3131
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Foscam FI9803P

Post by bbunge »

"Spot on" means it has to be exactly right! If you do not enter the camera resolution exactly, you will not get a picture in Zoneminder.

use capture width/height 1280 / 720
leb0rtran
Posts: 6
Joined: Sun Feb 07, 2016 4:51 pm

Re: Foscam FI9803P

Post by leb0rtran »

Ok, I did that
the 1080 was just a typo.
I used as settings width:1280, height:720

Image
Image
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Foscam FI9803P

Post by bbunge »

Camera settings can be trying. Google is your friend when researching how to do setup. Foscam is not much help...

I run a FI9821W V2 as a test camera. It is a 720P h.264 camera and its main stream settings are as follows:
Stream Type HD Mode
Resolution 720P
Bit Rate 200K
Frame Rate 2
Key Frame Interval 10
Variable bitrate Yes

Zoneminder settings
Source Type Ffmpeg
Source Path rtsp://admin:password@192.168.3.25:88/videoMain
Capture Width 640
Capture Height 320

I've found that the resolution can be multiples of 640x320 such as 320x160. Therefor 1280x640 should work. But start low and work up...
leb0rtran
Posts: 6
Joined: Sun Feb 07, 2016 4:51 pm

Re: Foscam FI9803P

Post by leb0rtran »

Are you sure the problem are the camera settings?

Because if I set the camera to motion detect (mdetect) events are created and I can download them (via export) as images. The images are correct (720x1280, correct content). With the html file which is included in the exported .zip file I can play them.

Only the live stream and the playback of recorded events via browser does not work.
It doesn't work in Firefox, IE and Opera.
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: Foscam FI9803P

Post by akg1508 »

leb0rtran wrote:Thanks for your reply.
I changed the "PATH_ZMS" value (it was indeed wrong) and rebooted the server.
What do you mean by camera resolution spot?
The actual camera resolution? I changed the resolution to 1080x720 (8bit grey scale color).
Disclaimer: I'm a new user, so please confirm anything I say.

Just wondering why you have the camera set to 8 bit grey scale? Did you change the settings on the camera to output grey scale?

P.S. I just installed ZoneMinder 1.29.0 with a Foscam FI9805E today without any problems (32 bit colour).
bbunge
Posts: 2935
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Foscam FI9803P

Post by bbunge »

Did you enable CGI in Apache2?

See: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

What you are describing now indicates that you do not have cgi enabled or the PATH_ZMS is set wrong. Your cameras are likely working if the Function and Source lines for the camera are green in the main web gui.
I keep giving you the install instructions hoping you will start over with a fresh install of Ubuntu server and follow the steps I have spent hours working on to make sure they work the first time! Yes, getting the camera settings can be tough especially with a camera that has not been documented. If you work with a Ubuntu server install disk to set up the system, add LAMP and OpenSSL, then use Putty or another SCP program from another PC you can log into your server, become root or sudo su, and copy the steps and paste them into the terminal window.

leb0rtran wrote:Are you sure the problem are the camera settings?

Because if I set the camera to motion detect (mdetect) events are created and I can download them (via export) as images. The images are correct (720x1280, correct content). With the html file which is included in the exported .zip file I can play them.

Only the live stream and the playback of recorded events via browser does not work.
It doesn't work in Firefox, IE and Opera.
ixos
Posts: 4
Joined: Thu Feb 11, 2016 4:48 pm

Re: Foscam FI9803P

Post by ixos »

I have an FI9805P (Or E, I forget..) working.

Settings:
Server: none
Source type: ffmpeg
Function: mocord

Source Tab:
Source Path: rtsp://user:pass@camera_ip:port/videoMain
Remote Method: RTP/Unicast
Colorspace: 24bit
Width: 1280
Height: 960

Though it looks like yours and my settings are nearly the same?
leb0rtran
Posts: 6
Joined: Sun Feb 07, 2016 4:51 pm

Re: Foscam FI9803P

Post by leb0rtran »

Thanks for your help

I did a complete reinstall with the tutorial from bbunge (it differed much from the tutorial I used in the first place) and the video settings from ixos and now it works.
racelife
Posts: 84
Joined: Mon Mar 22, 2010 11:38 pm

Re: Foscam FI9803P

Post by racelife »

bbunge wrote:Open Zoneminder in a web browser (http://server-ip/zm).

Click on Options - Paths Change PATH_ZMS to /zm/cgi-bin/nph-zms

See instructions @ https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

You also need to have the camera resolution spot on in the ZM settings or it will not work!
I was having the same problem with some different ip cams and changing the path worked for me. I used the instructions that bbunge referenced when doing the clean install so I'm not sure what I missed.
Locked