Wansview NCB541W delivers corrupt JPEG data

Forum for questions and support relating to the 1.25.x releases only.
Locked
Brian de Halma
Posts: 3
Joined: Fri Mar 22, 2013 1:37 pm

Wansview NCB541W delivers corrupt JPEG data

Post by Brian de Halma »

Hi everybody,

first of all I have to admit, that I'm not very experienced with Ubuntu (Using it (V. 12.04) just as fileserver). Nevertheless I was brave enough trying to use Zoneminder as surveillance-server. The Installation process did work smoothly, but now I'm stuck connecting our camera (Wansview NCB541W) to Zoneminder. Here are the settings I used so far:

Name: C-Cam-01
Source Type Remote
Function Monitor
Enabled
Maximum FPS 5.00
Alarm Maximum FPS 5.00
Reference Image Blend 7

Rem. Prot. HTTP
Rem. Meth. Simple
Rem. Host Name <username>:<password>@cameraip
Remote Host Port: 81
Remote Host Path: /videostream.cgi
Remote Image Colors: 24 bit color
Capture Width 160
Capture Heigth 120

All the other settings I left as they were.

What I achieved was, that the camera log-file shows that Zoneminder accessed the camera. But in Zoneminder itself there is nothing more to see than a hole lot of (error) messages in the log-file:

2013-03-22 14:00:00.375580 zmpkg 10064 INF Command: stop zmpkg.pl
2013-03-22 14:00:00.118618 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:55.508037 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:55.106781 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:54.104124 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:52.901025 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:51.898388 zmc_m1 10017 WAR Corrupt JPEG data: 2 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:47.888720 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:44.279735 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:43.878398 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:42.875946 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:42.675145 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:39.467242 zmc_m1 10017 WAR Corrupt JPEG data: 1 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:36.666490 zmdc 10035 INF 'zmupdate.pl -c' started at 13/03/22 13:59:36 zmdc.pl
2013-03-22 13:59:36.666480 zmdc 9994 INF 'zmupdate.pl -c' starting at 13/03/22 13:59:36, pid = 10035 zmdc.pl
2013-03-22 13:59:36.644250 zmwatch 10029 INF Watchdog pausing for 30 seconds zmwatch.pl
2013-03-22 13:59:36.643520 zmwatch 10029 INF Watchdog starting zmwatch.pl
2013-03-22 13:59:36.521920 zmdc 10029 INF 'zmwatch.pl' started at 13/03/22 13:59:36 zmdc.pl
2013-03-22 13:59:36.521150 zmdc 9994 INF 'zmwatch.pl' starting at 13/03/22 13:59:36, pid = 10029 zmdc.pl
2013-03-22 13:59:36.464430 zmfilter 10021 INF Scanning for events zmfilter.pl
2013-03-22 13:59:36.459782 zmc_m1 10017 WAR Corrupt JPEG data: 2 extraneous bytes before marker 0xd9 zm_jpeg.cpp 63
2013-03-22 13:59:36.367820 zmdc 10025 INF 'zmaudit.pl -c' started at 13/03/22 13:59:36 zmdc.pl
2013-03-22 13:59:36.364320 zmdc 9994 INF 'zmaudit.pl -c' starting at 13/03/22 13:59:36, pid = 10025 zmdc.pl
2013-03-22 13:59:36.249570 zmdc 9994 INF 'zmfilter.pl' starting at 13/03/22 13:59:36, pid = 10021 zmdc.pl
2013-03-22 13:59:36.249560 zmdc 10021 INF 'zmfilter.pl' started at 13/03/22 13:59:36 zmdc.pl
2013-03-22 13:59:36.160827 zmc_m1 10017 INF Starting Capture zmc.cpp 191
2013-03-22 13:59:36.143370 zmdc 10017 INF 'zmc -m 1' started at 13/03/22 13:59:36 zmdc.pl
2013-03-22 13:59:36.143370 zmdc 9994 INF 'zmc -m 1' starting at 13/03/22 13:59:36, pid = 10017 zmdc.pl
2013-03-22 13:59:33.038410 zmdc 9994 INF Server starting at 13/03/22 13:59:33 zmdc.pl
2013-03-22 13:59:32.657420 zmpkg 9984 INF Command: start

Does anybody have an idea what the problem is and how it can be solved?

Thanks and Greetings from Rhineland
Olaf
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

Re: Wansview NCB541W delivers corrupt JPEG data

Post by PacoLM »

Google is your friend (and the forum search option too):

http://lachlanmiskin.com/blog/2012/06/2 ... rker-0xd9/
http://www.zoneminder.com/forums/viewto ... +JPEG+data

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...
Brian de Halma
Posts: 3
Joined: Fri Mar 22, 2013 1:37 pm

Re: Wansview NCB541W delivers corrupt JPEG data

Post by Brian de Halma »

Thanks,

Unfortunately only partly. These error-messages are annoying, so its good to know a way to get rid of them. But the main problem is still unsolved: the monitor won't show a picture and I don't know why. It seems Zoneminder has access to the camera and it gets pictures, but can't process them properly.

Olaf
Brian de Halma
Posts: 3
Joined: Fri Mar 22, 2013 1:37 pm

Re: Wansview NCB541W delivers corrupt JPEG data

Post by Brian de Halma »

Hi everybody :D

I solved the problem! For those who have the NCB514W and failed implementing it into zm - here my solution:

The mistake was, that I didn't add user and password in <host path>. So the complete settings which at least work on my system are:

General
Name: <Your Cameras Name> (for example:My_Camera_01)
Source Type: Remote
Function: <choose what you want zm to do>
Enabled: Yes
Maximum FPS: 5.00
Alarm Maximum FPS: 5.00
Reference Image Blend: 7
Triggers: n. a.

Source
Rem. Protocol: HTTP
Rem. Methode: Simple
Rem. Host Name: <username>:<password>@cameraip (username and pw --> camera)
Remote Host Port: <the port your on which your camera is listening>
Remote Host Path: /videostream.cgi?user=<username>&pwd=<password> (username and pw --> zm)
Remote Image Colors: 24 bit color
Capture Width: <Width of camera settings>
Capture Heigth: <Height of camera settings>

All the other settings I left as they were.

Good luck!
Locked