[1.28.1]+[Miniserver-Ubuntu14.04]+[video.mjpg] = unwatchable

Forum for questions and support relating to the 1.28.x releases only.
Locked
meon
Posts: 5
Joined: Wed Nov 30, 2011 8:56 am

[1.28.1]+[Miniserver-Ubuntu14.04]+[video.mjpg] = unwatchable

Post by meon »

The Roline LAN only IP-Camera's Videostream admin:password@192.168.2.201:80/mjpg/video.mjpg works fine in every browser.

The Camera allows to send the MJPG-stream compressed as MPEG-4 or MJPEG Data, i tried both @ 640x480.
screenshots hostet @ offsite-URL look too spamy wrote:Default Video Format : MPEG4 or MJPEG
Video Resolution : 640x480
Video Quality : CBR / VBR
ZoneMinder-Settings of the corresponding Monitor:
  • SourceType: Remote
  • Remote Protocol: HTTP (Simple)
  • Hostname: admin:password@192.168.2.201
  • Port: 80
  • Path: /mjpg/video.mjpg
  • WxH: 640x480
...and left everything else as set by default.

Without "admin:password@Hostname" i get tons of log-entries "Failed authentication: unable to get response".
Having the correct username and password in the Hostname generates the following Log (Loglevel:info@all)

Code: Select all

2015-09-28 16:01:01.070550	zmdc	942	WAR	Can't find process with command of 'zma -m 4'	        zmdc.pl	
2015-09-28 16:01:00.969627	zmc_m4 1607  INF	Starting  Capture	                                        zmc.cpp	
2015-09-28 16:01:00.898740	zmdc	1607  INF	'zmc -m 4' started at 15/09/28 16:01:00	                zmdc.pl	
2015-09-28 16:01:00.898690	zmdc	942	INF	'zmc -m 4' starting at 15/09/28 16:01:00, pid = 1607	zmdc.pl	
After that the log shows some errors when i open the "Montage" view:

Code: Select all

2015-09-28 16:29:02.050074	web_php	1199	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:51.765822	web_php	1199	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:41.677492	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:31.186390	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:20.854836	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:10.697452	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:28:00.465412	web_php	1196	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:27:50.245756	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:27:39.927524	web_php	1590	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:27:29.665274	web_php	1196	ERR	socket_sendto( /var/run/zm/zms-009573s.sock ) failed: No such file or directory	includes/functions.php	2330
2015-09-28 16:27:19.499411	zms	2100	INF	Terminating Logger	zm_logger.cpp	235
2015-09-28 16:27:19.431401	zms	2100	ERR	Terminating, last frame sent time 1443450438.931247 secs more than maximum of 10.000000	zm_monitor.cpp	4155
2015-09-28 16:27:18.834686	zms	2100	WAR	Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor xx	zm_monitor.cpp	426
2015-09-28 16:27:18.834375	zms	2097	WAR	Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor xx	zm_monitor.cpp	426
2015-09-28 16:27:18.762762	zms	2096	WAR	Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor xy	zm_monitor.cpp	426

The only picture i get from that monitor is a "broken picture" symbol, while the two other cams that stream via "videostream.cgi" work fine are showing up perfectly.

Have i missed to install some decoding-library in the system?
Spent the half day trying around, but actually i have no more idea and i thank you in advance for any suggestions.

Best regards,
mEon
  • Mini-ITX Fractal Nas Array
  • i7-3770K + 12GB DDR3
  • 6x Samsung HD204UI Raid5/Raid6
  • Ubuntu 14.04 Minimal Server
    * Archipel Orchestrator Virtualization Host
    * Xubuntu Desktop with Plank Dock
[/color]
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: [1.28.1]+[Miniserver-Ubuntu14.04]+[video.mjpg] = unwatch

Post by knight-of-ni »

Hey, I want to hang your post up on a plaque and announce to everyone that this is how you create a troubleshooting thread.
You've posted the important information including your camera config and provided log entries of your output.

You'd be surprised how many people just post "it doesn't work" and then expect us to magically know what is going wrong. And getting the user to produce the right information feels like pulling teeth sometimes.

In any case....

Code: Select all

2015-09-28 16:01:01.070550   zmdc   942   WAR   Can't find process with command of 'zma -m 4'           zmdc.pl   
2015-09-28 16:01:00.969627   zmc_m4 1607  INF   Starting  Capture                                           zmc.cpp   
2015-09-28 16:01:00.898740   zmdc   1607  INF   'zmc -m 4' started at 15/09/28 16:01:00                   zmdc.pl   
2015-09-28 16:01:00.898690   zmdc   942   INF   'zmc -m 4' starting at 15/09/28 16:01:00, pid = 1607   zmdc.pl 
I've noticed this happening more frequently. Yes it should go on the long list of things to look into, but it might mean a timing problem that will correct itself in a few seconds, rather than a clue for the problem you are experiencing.

So do the following:
1) start zoneminder (or just save the monitor config w/o chaning anything)
2) do NOT try to open a live view
3) watch the log for a good 30 seconds

Look for any events that say "Capturing at x.xx fps".

This is going to tell us whether or not your backend is working, which will tell us what to troubleshoot.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Re: [1.28.1]+[Miniserver-Ubuntu14.04]+[video.mjpg] = unwatch

Post by kylejohnson »

It sounds like you have three or so cameras added to ZM, and two of them work fine (you can view them live, edit zones, etc)?
Idling as gnulnx in #zoneminder on freenode. Come say hi!
bbunge
Posts: 2930
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: [1.28.1]+[Miniserver-Ubuntu14.04]+[video.mjpg] = unwatch

Post by bbunge »

Did you enable CGI in Apache?

Can you provide more info on your camera? Make and Model?

Thanks
Locked