Streaming problem
Posted: Mon Aug 01, 2005 6:16 pm
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
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