No Video

Forum for questions and support relating to the 1.25.x releases only.
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

No Video

Post by teraquad »

Hi,

I am unable to get the video working in any of the usual screens. It does however navigate fill up the disk and show normal activity. So. i think it is working otherwise. It complains about monitor 1 and refuses to set it up properly. I can however set up any number of other monitors > 1 and, they work normally, except the picture.

Also the log shows an error or two. Perhaps it will tell someone whats up.

Following is the report:

Code: Select all

2013-05-20 23:14:40.078830	zmdc	2839	ERR	'zmc -d 192.168.1.76' exited abnormally, exit status 255	zmdc.pl	
2013-05-20 23:14:40.074701	zmc_d192_168_1_76	5219	ERR	No monitors found	zmc.cpp	187
2013-05-20 23:14:40.054060	zmdc	5219	INF	'zmc -d 192.168.1.76' started at 13/05/20 19:14:40	zmdc.pl	
2013-05-20 23:14:40.054030	zmdc	2839	INF	'zmc -d 192.168.1.76' starting at 13/05/20 19:14:40, pid = 5219	zmdc.pl	
2013-05-20 23:14:40.047670	zmdc	2839	INF	Starting pending process, zmc -d 192.168.1.76	zmdc.pl	

Code: Select all

2013-05-20 23:18:10.479323	zma_m4	2940	INF	Monitor-4: 23842 - Gone into alert state	zm_monitor.cpp	1382
2013-05-20 23:18:09.914488	zma_m4	2940	INF	Monitor-4: 23839 - Gone back into alarm state	zm_monitor.cpp	1373
2013-05-20 23:18:09.763207	web_php	4343	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-570514s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-20 23:18:09.447558	zma_m4	2940	INF	Monitor-4: 23837 - Gone into alert state	zm_monitor.cpp	1382
2013-05-20 23:18:09.249174	zma_m4	2940	INF	Monitor-4: 23836 - Gone back into alarm state	zm_monitor.cpp	1373

Code: Select all

2013-05-20 23:17:45.100440	zmdc	2839	INF	'zmc -m 1' crashed, signal 134	zmdc.pl	
2013-05-20 23:17:44.146710	zmdc	2839	ERR	'zma -m 1' exited abnormally, exit status 255	zmdc.pl	
2013-05-20 23:17:44.116701	zmc_m1	5257	ERR	Got unexpected memory map file size 10753524, expected 36865524	zm_monitor.cpp	364
2013-05-20 23:17:44.105642	zma_m1	5255	ERR	Shared data not initialised by capture daemon	zm_monitor.cpp	434
2013-05-20 23:17:44.103911	zma_m1	5255	ERR	Got unexpected memory map file size 10753524, expected 36865524	zm_monitor.cpp	364
2013-05-20 23:17:44.074170	zmdc	5255	INF	'zma -m 1' started at 13/05/20 19:17:44	zmdc.pl	
2013-05-20 23:17:44.068380	zmdc	2839	INF	'zmc -m 1' starting at 13/05/20 19:17:44, pid = 5257	zmd

Code: Select all

2013-05-20 23:18:10.479323	zma_m4	2940	INF	Monitor-4: 23842 - Gone into alert state	zm_monitor.cpp	1382
2013-05-20 23:18:09.914488	zma_m4	2940	INF	Monitor-4: 23839 - Gone back into alarm state	zm_monitor.cpp	1373
2013-05-20 23:18:09.763207	web_php	4343	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-570514s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-20 23:18:09.447558	zma_m4	2940	INF	Monitor-4: 23837 - Gone into alert state	zm_monitor.cpp	1382
2013-05-20 23:18:09.249174	zma_m4	2940	INF	Monitor-4: 23836 - Gone back into alarm state	zm_monitor.cpp	1373
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: No Video

Post by PacoLM »

Have you tried to restart zoneminder after changing the monitor settings?. These errors complaining about the size of the memory map file should dissapear.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Hi,

Thanks for the reply!

Yes i have. I did notice this morning that the log is reporting differently. here is the new log info. I presume that the video problem is related to the errors showing up on the log. At one time it was complaining about monitor size and a negative number. I dont see that now.

Code: Select all

 2013-05-21 08:35:01.210900	zmdc	2519	ERR	'zma -m 1' exited abnormally, exit status 8	zmdc.pl	
2013-05-21 08:35:01.200547	zma_m1	3184	INF	addr2line -e /usr/bin/zma() 0x3ac640efa0 0x439d1b 0x42a643 0x42b1f8 0x405500 0x3ac6021b75 0x40572d	zm_signal.cpp	127
2013-05-21 08:35:01.200346	zma_m1	3184	INF	Backtrace complete, please execute the following command for more information	zm_signal.cpp	126
2013-05-21 08:35:01.200096	zma_m1	3184	ERR	Backtrace: /usr/bin/zma() [0x40572d]	zm_signal.cpp	123
2013-05-21 08:35:01.199895	zma_m1	3184	ERR	Backtrace: /lib64/libc.so.6(__libc_start_main+0xf5) [0x3ac6021b75]	zm_signal.cpp	123
2013-05-21 08:35:01.199693	zma_m1	3184	ERR	Backtrace: /usr/bin/zma() [0x405500]	zm_signal.cpp	123
2013-05-21 08:35:01.199491	zma_m1	3184	ERR	Backtrace: /usr/bin/zma() [0x42b1f8]	zm_signal.cpp	123
2013-05-21 08:35:01.199268	zma_m1	3184	ERR	Backtrace: /usr/bin/zma() [0x42a643]	zm_signal.cpp	123
2013-05-21 08:35:01.199035	zma_m1	3184	ERR	Backtrace: /usr/bin/zma() [0x439d1b]	zm_signal.cpp	123
2013-05-21 08:35:01.198756	zma_m1	3184	ERR	Backtrace: /lib64/libpthread.so.0() [0x3ac640efa0]	zm_signal.cpp	123
2013-05-21 08:35:01.198325	zma_m1	3184	ERR	Signal address is 0x10202, no eip	zm_signal.cpp	91
2013-05-21 08:35:01.197796	zma_m1	3184	INF	Got signal 8 (Floating point exception), crashing	zm_signal.cpp	73
2013-05-21 08:34:57.532129	zma_m1	3184	INF	In mode 5/1, warming up	zma.cpp	101
2013-05-21 08:34:57.488160	zmdc	3184	INF	'zma -m 1' started at 13/05/21 04:34:57	zmdc.pl	
Thanks for any help you can give. I am very much in the dark.
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: No Video

Post by PacoLM »

I believe this errors are related to the ffmpeg encoder or one of the libraries it uses. I tried to install ZM in all the gadgets I own, using mainly Debian and Ubuntu, and I got this error in one CuBox (ARM based device). I fixed the error that time downloading the source code of ffmpeg version 0.91 (I think, not completely sure about the version) and recompiling the ffmpeg encoder.

Hope it helps!

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Thanks,

on the fedora 18 guide to install, there was some mention of ffmpeg having to be compiled because it was changed. perhaps that carrys over to Fedora 19. I will work on that. it is functioning otherwise though because i can pull up stills with no problems.
ffmpeg libraries from Fedora rpms do not work with zm. You have to install from source (yuck).

Thanks for the reply!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Hi,

I have compiled ffmpeg but am not sure where the files should go. (my first compile). Also i installed the flash player. But no results. I am seeing a socks error in the log and am not sure how to attack that problem or if it even has anything to do with video.

Log info:

Code: Select all

2013-05-23 08:16:00.160526	zmc_m3	2741	WAR	Corrupt JPEG data: 6 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:15:52.527373	zmc_m3	2741	WAR	Corrupt JPEG data: 8 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:15:29.928946	web_php	1617	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-288242s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-23 08:15:23.882792	web_php	1617	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-288242s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-23 08:15:15.588890	web_php	1621	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-642115s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-23 08:15:09.589179	web_php	1620	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-244633s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-23 08:15:02.403145	web_php	2825	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-966446s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-05-23 08:14:54.145266	zmc_m3	2741	WAR	Corrupt JPEG data: 2 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:14:52.878139	zmc_m6	2759	INF	Monitor-1: 3000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-05-23 08:14:52.678716	zmc_m4	2750	INF	Monitor-4: 3000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-05-23 08:14:52.340901	zmc_m3	2741	INF	Monitor-3: 3000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-05-23 08:14:52.219453	zmc_m2	2732	INF	Monitor-2: 3000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-05-23 08:14:16.221553	zmc_m3	2741	WAR	Corrupt JPEG data: 1 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:13:51.949137	zmc_m3	2741	WAR	Corrupt JPEG data: 1 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:13:17.837895	zmc_m3	2741	WAR	Corrupt JPEG data: 1 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:12:41.946183	zmc_m3	2741	WAR	Corrupt JPEG data: 3 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:11:39.570865	zmc_m3	2741	WAR	Corrupt JPEG data: 3 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:11:35.762271	zmc_m3	2741	WAR	Corrupt JPEG data: 7 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:11:32.298743	zmc_m6	2759	INF	Monitor-1: 2000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-05-23 08:11:32.088870	zmc_m4	2750	INF	Monitor-4: 2000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-05-23 08:11:31.742497	zmc_m3	2741	INF	Monitor-3: 2000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-05-23 08:11:31.624084	zmc_m2	2732	INF	Monitor-2: 2000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-05-23 08:09:25.592526	zmc_m3	2741	WAR	Corrupt JPEG data: 4 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:08:59.920885	zmc_m3	2741	WAR	Corrupt JPEG data: 3 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:08:56.911975	zmc_m3	2741	WAR	Corrupt JPEG data: 12 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63
2013-05-23 08:08:41.259215	zmc_m3	2741	WAR	Corrupt JPEG data: 3 extraneous bytes before marker 0xd9	zm_jpeg.cpp	63]
Thanks for the help.
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: No Video

Post by PacoLM »


After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Thanks! for the reply.


I will study on the information and see what i can do. Fedora and deb are probably similar enough to follow the same steps. It may be worth noteing that the cameras are D-Link rather than the ones mentioned. Do you think the socket errors are related to the same issue?

I dont actually get jpg errors most of the time unless i am trying to view a monitor. It will happily sit on the console without complaint.
2013-05-23 14:35:56.943412 zmc_m2 2732 INF Monitor-2: 117000 - Capturing at 5.00 fps zm_monitor.cpp 2598
2013-05-23 14:33:18.067393 web_php 2825 ERR socket_sendto( /var/lib/zoneminder/sock/zms-724739s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:32:44.818212 zmc_m6 2759 INF Monitor-1: 116000 - Capturing at 5.00 fps zm_monitor.cpp 2598
2013-05-23 14:32:40.463822 zmc_m4 2750 INF Monitor-4: 116000 - Capturing at 4.98 fps zm_monitor.cpp 2598
2013-05-23 14:32:37.478224 zmc_m3 2741 INF Monitor-3: 116000 - Capturing at 4.98 fps zm_monitor.cpp 2598
2013-05-23 14:32:36.361545 zmc_m2 2732 INF Monitor-2: 116000 - Capturing at 4.98 fps zm_monitor.cpp 2598
2013-05-23 14:32:10.696093 web_php 2818 ERR socket_sendto( /var/lib/zoneminder/sock/zms-834903s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:57.197106 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:51.164857 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:45.128210 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:39.077872 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:33.044276 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:27.008394 web_php 1618 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:23.897216 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-584190s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:20.106258 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:31:14.069872 web_php 1620 ERR socket_sendto( /var/lib/zoneminder/sock/zms-491110s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php 2322
2013-05-23 14:29:24.222764 zmc_m6 2759 INF Monitor-1: 115000 - Capturing at 4.98 fps zm_monitor.cpp 2598
2013-05-23 14:29:19.914010 zmc_m4 2750 INF Monitor-4: 115000 - Capturing at 5.00 fps zm_monitor.cpp 2598
2013-05-23 14:29:16.916480 zmc_m3 2741 INF Monitor-3: 115000 - Capturing at 5.00 fps zm_monitor.cpp 2598
2013-05-23 14:29:15.818040 zmc_m2 2732 INF Monitor-2: 115000 - Capturing at 5.00 fps zm_monitor.cpp 2598
2013-05-23 14:26:03.679619 zmc_m6 2759 INF Monitor-1: 114000 - Capturing at 5.00 fps zm_monitor.cpp 2598
The above was captured just after i attempted to view several monitors.

Thanks!
George....
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: No Video

Post by PacoLM »


After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Thanks!

I made the changes in ajax folder as outlined, with no noticable results. I will doubble check my work this weekent. I noticed the corrupt jpgs are more prevalent than i first thought. Hopefully i can work on that while i am gone.

I am going on vacation so i will not be able to reply for a few days.

Thank you very much for your help!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Hi,

Thanks for the reply and the links. I have copied the cgi files to the apache cgi directory as done in the post referenced. I can't see any difference in the socket problem. Did i mention that the socket problem only appears when i try to view a monitor. The jpg problem seems to have gone though. So all i am left with is the socket problem and the Video problem which i assume are related..



Code: Select all

2013-06-11 11:39:01.364464	zmc_m6	2763	INF	Monitor-1: 1000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-06-11 11:39:00.696918	zmc_m4	2754	INF	Monitor-4: 1000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-06-11 11:39:00.428445	zmc_m3	2745	INF	Monitor-3: 1000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-06-11 11:39:00.163442	zmc_m2	2736	INF	Monitor-2: 1000 - Capturing at 4.98 fps	zm_monitor.cpp	2598
2013-06-11 11:38:59.863206	zmc_dvideo0	2727	INF	Monitor-8: 1000 - Capturing at 5.00 fps	zm_monitor.cpp	2598
2013-06-11 11:36:48.554502	web_php	1720	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-464277s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-06-11 11:36:39.517378	web_php	1720	ERR	socket_sendto( /var/lib/zoneminder/sock/zms-464277s.sock ) failed: No such file or directory	/usr/share/zoneminder/www/includes/functions.php	2322
2013-06-11 11:35:42.820400	zmaudit	2780	INF	Deleted 2188 log table entries by time	zmaudit.pl	
2013-06-11 11:35:42.049040	zmfilter	2772	INF	Scanning for events	zmfilter.pl	
2013-06-11 11:35:42.040470	zmdc	2801	INF	'zmupdate.pl -c' started at 13/06/11 07:35:42	zmdc.pl	
2013-06-11 11:35:42.036270	zmdc	2700	INF	'zmupdate.pl -c' starting at 13/06/11 07:35:42, pid = 2801	zmdc.pl	
2013-06-11 11:35:41.913410	zmwatch	2788	INF	Watchdog pausing for 30 seconds	zmwatch.pl	
2013-06-11 11:35:41.911360	zmwatch	2788	INF	Watchdog starting	zmwatch.pl	
Thanks!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: No Video

Post by PacoLM »

Try to change your Config::Paths::ZM_PATH_ZMS settings

"The ZoneMinder streaming server is required to send streamed images to your browser. It will be installed into the cgi-bin path given at configuration time. This option determines what the web path to the server is rather than the local path on your machine. Ordinarily the streaming server runs in parser-header mode however if you experience problems with streaming you can change this to non-parsed-header (nph) mode by changing 'zms' to 'nph-zms'."

Hope it helps,

PacoLM

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Hi,

I gave it a try and discovered that it was already nph-zms. I changed it to zms restarted and I found no difference in the live video.

It seems that this problem is fairly common as i have found other threads with similar themes. Unfortunately none of them have solved the problem.

Thanks for the help!
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
User avatar
teraquad
Posts: 90
Joined: Fri Mar 09, 2012 2:03 pm
Location: New Bern, NC

Re: No Video

Post by teraquad »

Hi,

Has anyone solved this problem? I am still looking for a solution.

Thanks!
george....
Fedora 23, ZM 1.28
N4ZPO (ham Radio)
8)
foldedhome
Posts: 8
Joined: Wed May 22, 2013 7:46 pm

Re: No Video

Post by foldedhome »

i am still having the same issue, i have copied the cgi-bin folders around but still mkes no difference.

i am going to download a prebuilt live zoneminder image and check what fies etc are used with tat.

stve :roll: :roll:
Locked