Webcam Image Corruption?
Posted: Fri Feb 22, 2013 8:06 am
I have been running v1.25.0 of ZoneMinder with 5 connected IP cams (D-Link DCS910's) without a problem for several months now. (Running on Ubuntu [headless] Server: 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux according to uname -a)
I recently came across an old webcam I was about to throw away, and instead decided to add it as an additional camera feed to my server. It connects up, gets detected correctly and does not give any errors in the logs, but the view it generates is always garbled. Like this:
lsusb output says:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 041e:4029 Creative Technology, Ltd Webcam Live!
v4l-info /dev/video0
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "JPEG"
pixelformat : 0x4745504a [JPEG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x4745504a [JPEG]
fmt.pix.field : NONE
fmt.pix.bytesperline : 320
fmt.pix.sizeimage : 29390
fmt.pix.colorspace : JPEG
fmt.pix.priv : 1
On the Source tab, I am using these settings as per above:
Device Path: /dev/video0
Capture Method: Video For Linux version 2
Device Channel: 0
Device Format: PAL
Capture Palette: JPEG
Capture Width: 320
Capture Height: 240
Preserve Aspect Ratio: (Unticked)
Orientation: Normal
Of course I have tried ALL the available Device Format options as well as ALL the Capture Palette options in the hope of getting lucky and finding the one that works, but it appears that NONE of them do.
Following various suggestions online after googling (For example: http://forums.fedoraforum.org/archive/i ... 54003.html). I have still not been able to resolve this.
I really don't want to have to toss out this perfectly working (under windows) webcam when it should be possible to get it to work with ZoneMinder, but unless I can find a way to get it to actually produce an image, it's not much use to me.
I'd appreciate any help I can get. If you require additional info not already posted, don't hesitate to ask.
I recently came across an old webcam I was about to throw away, and instead decided to add it as an additional camera feed to my server. It connects up, gets detected correctly and does not give any errors in the logs, but the view it generates is always garbled. Like this:
lsusb output says:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 041e:4029 Creative Technology, Ltd Webcam Live!
v4l-info /dev/video0
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "JPEG"
pixelformat : 0x4745504a [JPEG]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 320
fmt.pix.height : 240
fmt.pix.pixelformat : 0x4745504a [JPEG]
fmt.pix.field : NONE
fmt.pix.bytesperline : 320
fmt.pix.sizeimage : 29390
fmt.pix.colorspace : JPEG
fmt.pix.priv : 1
On the Source tab, I am using these settings as per above:
Device Path: /dev/video0
Capture Method: Video For Linux version 2
Device Channel: 0
Device Format: PAL
Capture Palette: JPEG
Capture Width: 320
Capture Height: 240
Preserve Aspect Ratio: (Unticked)
Orientation: Normal
Of course I have tried ALL the available Device Format options as well as ALL the Capture Palette options in the hope of getting lucky and finding the one that works, but it appears that NONE of them do.
Following various suggestions online after googling (For example: http://forums.fedoraforum.org/archive/i ... 54003.html). I have still not been able to resolve this.
I really don't want to have to toss out this perfectly working (under windows) webcam when it should be possible to get it to work with ZoneMinder, but unless I can find a way to get it to actually produce an image, it's not much use to me.
I'd appreciate any help I can get. If you require additional info not already posted, don't hesitate to ask.