Streaming problem

Support and queries relating to all previous versions of ZoneMinder
Locked
Marinator
Posts: 11
Joined: Wed Jul 06, 2005 5:21 pm

Streaming problem

Post by Marinator »

Hello, I love Zoneminfder and it is working well, except for a small problem. It appears that some JPEG's my camera is sending are in an invalid structure. This is causing zmc to crash and restart constantly. The effect on this to me is that about 75% of my events contain about 40 JPEGs that are completely black and have no information in them, then the correct images begin when viewed in "still" mode. These events will not stream using JPEG or MPEG, but rather the first valid image only is displayed.

I am using a Toshiba IK-WB01A over 802.11b Wi-Fi. I can login to the camera's native interface and watch uninterrupted streaming with no apparent dropping of frames.

I am running it on a ClarkConnect box which is CentOS 4 which I think is pretty much the same as Redhat Enterprise Linux 4.

This is my zmdc.log:

Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:52:29, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:52:45
'zmc -m 1' starting at 05/08/01 10:52:45, pid = 15128
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:52:55, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' starting at 05/08/01 10:53:05, pid = 15157
'zmc -m 1' started at 05/08/01 10:53:05
Bogus DQT index 15
'zmc -m 1' crashed at 05/08/01 10:53:27, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:53:35
'zmc -m 1' starting at 05/08/01 10:53:35, pid = 15213
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:53:45, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:53:55
'zmc -m 1' starting at 05/08/01 10:53:55, pid = 15241
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:54:01, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:54:16
'zmc -m 1' starting at 05/08/01 10:54:16, pid = 15269
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:54:39, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:54:46
'zmc -m 1' starting at 05/08/01 10:54:46, pid = 15309
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:54:55, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:55:06
'zmc -m 1' starting at 05/08/01 10:55:06, pid = 15463
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/01 10:55:12, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/01 10:55:27
'zmc -m 1' starting at 05/08/01 10:55:27, pid = 15491

There is the additional issue of the uninitialized value in zmdc.pl, but I don't really know what to do about that. Line 346 is:

if ( $pid_hash{$cpid} )

and appears to be in the restart subroutine so if I can get ZMC to stop crashing, it should go away.

This is my messages.log

Aug 1 11:00:01 ccserver zmc_m1[15921]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:00:01 ccserver zmc_m1[15921]: INF [Starting Capture]
Aug 1 11:00:22 ccserver zmc_m1[16074]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:00:22 ccserver zmc_m1[16074]: INF [Starting Capture]
Aug 1 11:00:52 ccserver zmc_m1[16136]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:00:52 ccserver zmc_m1[16136]: INF [Starting Capture]
Aug 1 11:01:06 ccserver zmc_m1[16136]: ERR [Select timed out]
Aug 1 11:01:22 ccserver zmc_m1[16181]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:01:22 ccserver zmc_m1[16181]: INF [Starting Capture]
Aug 1 11:01:42 ccserver zmc_m1[16211]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:01:43 ccserver zmc_m1[16211]: INF [Starting Capture]
Aug 1 11:02:03 ccserver zmc_m1[16239]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:02:03 ccserver zmc_m1[16239]: INF [Starting Capture]
Aug 1 11:02:13 ccserver zmc_m1[16277]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:02:13 ccserver zmc_m1[16277]: INF [Starting Capture]
Aug 1 11:02:34 ccserver zmc_m1[16306]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:02:34 ccserver zmc_m1[16306]: INF [Starting Capture]
Aug 1 11:02:41 ccserver zmc_m1[16306]: ERR [Invalid response status 210326512: Not found]
Aug 1 11:02:54 ccserver zmc_m1[16358]: INF [Debug Level = 0, Debug Log = <none>]
Aug 1 11:02:54 ccserver zmc_m1[16358]: INF [Starting Capture]

I guess I am looking for a solution that may involve ignoring the error or fixing the JPEG before it gets analyzed or anything else that may work.

Thanks in advance.

Marin
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Assuming you have 1.21.3 try modifying Options->Network->ZM_NETCAM_REGEXPS?

Phil
Marinator
Posts: 11
Joined: Wed Jul 06, 2005 5:21 pm

Post by Marinator »

Thanks Phil, I have tried it and it seems to make no difference. I have also tried changing ZM_HTTP_VERSION to 1.0, also with no effect.

Any thoughts on how I can ignore the error to prevent zmc from crashing?

Thanks

Marin
Marinator
Posts: 11
Joined: Wed Jul 06, 2005 5:21 pm

Any thoughts

Post by Marinator »

Anyone have any thoughts?

I am running v1.21.3 and I have tried switching both ZM_NETCAM_REGEXPS and ZM_HTTP_VERSION but neither made any difference. This is a sample of my messages.log

Aug 10 09:14:14 ccserver zmc_m1[19053]: ERR [Found bogus jpeg header '4023']
Aug 10 09:14:17 ccserver zmc_m1[19053]: ERR [Found bogus jpeg header 'aac7']
Aug 10 09:14:33 ccserver zmc_m1[19057]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:14:33 ccserver zmc_m1[19057]: INF [Starting Capture]
Aug 10 09:14:34 ccserver zmc_m1[19057]: ERR [Found bogus jpeg header '6355']
Aug 10 09:14:37 ccserver zmc_m1[19057]: ERR [Found bogus jpeg header '170b']
Aug 10 09:14:38 ccserver zmc_m1[19057]: ERR [Found bogus jpeg header 'ffd1']
Aug 10 09:14:53 ccserver zmc_m1[19061]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:14:54 ccserver zmc_m1[19061]: INF [Starting Capture]
Aug 10 09:14:54 ccserver zmc_m1[19061]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:14:58 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header '6824']
Aug 10 09:14:59 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header 'd595']
Aug 10 09:15:01 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header '05df']
Aug 10 09:15:02 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header '5003']
Aug 10 09:15:02 ccserver zmc_m1[19061]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:15:02 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header '90e3']
Aug 10 09:15:05 ccserver zmc_m1[19061]: ERR [Found bogus jpeg header 'a500']
Aug 10 09:15:14 ccserver zmc_m1[19189]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:15:14 ccserver zmc_m1[19189]: INF [Starting Capture]
Aug 10 09:15:16 ccserver zmc_m1[19189]: ERR [Found bogus jpeg header 'e158']
Aug 10 09:15:20 ccserver zmc_m1[19189]: ERR [Select timed out]
Aug 10 09:15:21 ccserver zmc_m1[19189]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:15:22 ccserver zmc_m1[19189]: ERR [Found bogus jpeg header 'a280']
Aug 10 09:15:24 ccserver zmc_m1[19189]: ERR [Found bogus jpeg header 'f8a9']
Aug 10 09:15:34 ccserver zmc_m1[19194]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:15:34 ccserver zmc_m1[19194]: INF [Starting Capture]
Aug 10 09:15:34 ccserver zmc_m1[19194]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:15:35 ccserver zmc_m1[19194]: ERR [Found bogus jpeg header '03ff']
Aug 10 09:15:36 ccserver zmc_m1[19194]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:15:37 ccserver zmc_m1[19194]: ERR [Found bogus jpeg header '928b']
Aug 10 09:15:38 ccserver zmc_m1[19194]: ERR [Found bogus jpeg header 'f8f9']
Aug 10 09:15:40 ccserver zmc_m1[19194]: ERR [Found bogus jpeg header '9495']
Aug 10 09:15:54 ccserver zmc_m1[19200]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:15:55 ccserver zmc_m1[19200]: INF [Starting Capture]
Aug 10 09:16:15 ccserver zmc_m1[19205]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:16:15 ccserver zmc_m1[19205]: INF [Starting Capture]
Aug 10 09:16:15 ccserver zmc_m1[19205]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:16:18 ccserver zma_m1[15989]: INF [Shed: 13000 - Processing at 2.91 fps]
Aug 10 09:16:22 ccserver zmc_m1[19205]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:16:35 ccserver zmc_m1[19220]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:16:35 ccserver zmc_m1[19220]: INF [Starting Capture]
Aug 10 09:16:55 ccserver zmc_m1[19225]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:16:56 ccserver zmc_m1[19225]: INF [Starting Capture]
Aug 10 09:17:26 ccserver zmc_m1[19229]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:17:26 ccserver zmc_m1[19229]: INF [Starting Capture]
Aug 10 09:17:46 ccserver zmc_m1[19233]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:17:46 ccserver zmc_m1[19233]: INF [Starting Capture]
Aug 10 09:17:58 ccserver zmc_m1[19233]: ERR [Invalid response status 210326512: Not found]
Aug 10 09:18:26 ccserver zmc_m1[19267]: INF [Debug Level = 0, Debug Log = <none>]
Aug 10 09:18:27 ccserver zmc_m1[19267]: INF [Starting Capture]


this is my zmdc.log

Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/10 09:17:40, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' starting at 05/08/10 09:17:46, pid = 19233
'zmc -m 1' started at 05/08/10 09:17:46
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/10 09:18:13, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/10 09:18:26
'zmc -m 1' starting at 05/08/10 09:18:26, pid = 19267
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/10 09:18:43, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/10 09:18:57
'zmc -m 1' starting at 05/08/10 09:18:57, pid = 19277
Invalid JPEG file structure: two SOI markers
'zmc -m 1' crashed at 05/08/10 09:19:06, exit status 1
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 346, <CLIENT> line 1.
'zmc -m 1' started at 05/08/10 09:19:17
'zmc -m 1' starting at 05/08/10 09:19:17, pid = 19283

Does anyone have the Toshiba IK - WB01A working properly?

Thanks

Marin
Locked