Kodak DVC-325 can't grab image

Support and queries relating to all previous versions of ZoneMinder
Locked
arosboro
Posts: 5
Joined: Fri Dec 09, 2005 11:07 pm

Kodak DVC-325 can't grab image

Post by arosboro »

I have a Kodak DVC-325 but I can't seem to get a jpeg or other appropriate image to appear from the source in zoneminder. It works fine with gqcam and I've read someone else in the forum has their kodak working.

I was wondering if anyone else could give me some tips. It's the final problem to overcome before I have a fully working setup.

Here's my tail of /var/log/messages:

Code: Select all

 # tail /var/log/messages 
Dec 10 02:25:52 freevo zmc_dvideo0[16519]: INF [Debug Level = 0, Debug Log = <none>]
Dec 10 02:25:53 freevo zmc_dvideo0[16519]: ERR [Failed to set picture attributes: Invalid argument]
Dec 10 02:26:04 freevo zmc_dvideo0[16525]: INF [Debug Level = 0, Debug Log = <none>]
Dec 10 02:26:05 freevo zmc_dvideo0[16525]: ERR [Failed to set picture attributes: Invalid argument]
Dec 10 02:28:21 freevo zmc_dvideo0[16549]: INF [Debug Level = 0, Debug Log = <none>]
Dec 10 02:28:21 freevo zmc_dvideo0[16549]: ERR [Failed to set picture attributes: Invalid argument]
Dec 10 02:28:31 freevo zmc_dvideo0[16551]: INF [Debug Level = 0, Debug Log = <none>]
Dec 10 02:28:32 freevo zmc_dvideo0[16551]: ERR [Failed to set picture attributes: Invalid argument]
Dec 10 02:29:17 freevo zmu[16560]: WAR [Unable to authenticate user admin]
Dec 10 02:29:19 freevo zmu[16562]: WAR [Unable to authenticate user admin]
Thankyou.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

ERR [Failed to set picture attributes: Invalid argument]
Usually is a result of an incorrect image size or color is set in zm.

I'll ask but I have just been dispatched out to work so I may not be able to respond for a couple days.

What are your settings in zm?

Try to start with some thing common place like 320x240 and try different color pallets.

Regards,
Corey
arosboro
Posts: 5
Joined: Fri Dec 09, 2005 11:07 pm

Post by arosboro »

here's my source tab from zm:

Code: Select all

Device Path                                         /dev/video0
Device Channel	                                   0
Device Format (0=PAL,1=NTSC etc)                    0
Capture Palette	                                  grey
Capture Width (pixels)	                           320
Capture Height (pixels)	                          240
Orientation                                         Normal


and zmu -d /dev/video -v -q:

Code: Select all

Video Capabilities
  Name: Kodak DVC-325
  Type: 1
    Can capture
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 640
  Maximum Height: 480
  Minimum Width: 160
  Minimum Height: 120
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 640
  Height: 480
Picture Attributes
  Palette: 4 - 24bit RGB
  Colour Depth: 24
  Brightness: 65024
  Hue: 0
  Colour :0
  Contrast: 0
  Whiteness: 0
Channel 0 Attributes
  Name: SPCA501
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
here is a log too:

Code: Select all

 # tail /tmp/zm_debug.log.21477
12/10/05 13:56:22.328742 zmc_dvideo0[21477].INF-zm_debug.c/305 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.21477]
12/10/05 13:56:22.333448 zmc_dvideo0[21477].DB1-zm_monitor.cpp/941 [Got 1 monitors]
12/10/05 13:56:22.540436 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/77 [Old P:4]
12/10/05 13:56:22.541537 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/78 [Old D:24]
12/10/05 13:56:22.542257 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/79 [Old B:65024]
12/10/05 13:56:22.542960 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/80 [Old h:0]
12/10/05 13:56:22.543676 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/81 [Old Cl:0]
12/10/05 13:56:22.544379 zmc_dvideo0[21477].DB1-zm_local_camera.cpp/82 [Old Cn:0]
12/10/05 13:56:22.545317 zmc_dvideo0[21477].ERR-zm_local_camera.cpp/114 [Failed to set picture attributes: Invalid argument]

happens when I run zmc -d /dev/vide0 at console

I don't think this is a PAL camera ... I bought it in the us and I remember reading somewhere that it's output is neither pal or ntsc, so I've been playing around with those attributes. It works in gqcam and to a degree in xawtv, but it's hard testing because I'm too lazy to run X and plug in a monitor so instead I use X-Win32 remotely.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you bought it in the US then most likely it is NTSC, I has to be one or the other else I don't think it would work.
Is it a color or monochrome camera?
Have you tried changing the color pallate to RGB24 ?

Regards,
Corey
arosboro
Posts: 5
Joined: Fri Dec 09, 2005 11:07 pm

Post by arosboro »

Some how rebooting got my picture working. Maybe the module needed reloaded ... I have it set with NTSC but it works the same with PAL. RGB24 and 320x240 are working. I think grey and 640x480 don't work. 640x480 seems to have errors finding enough memory to store the images. I guess the system only has about 300+ MB ram.

Everything is funcitoning in modect mode w/ jpegs. The only weird thing is that at first I had a black image and I had to set the brightness to 65024 or something like that. Now I have picture but when I adjust hue color or contrast to anything above 0 they go back to 0. Any ideas what may be causing that?

Thanks for your help :)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Darn it I meant to mention that but I guess I got side tracked somewhere and didn't in my last post. Sorry about that. You should always at least restart zm when you make any camera changes.

Regards,
Corey
Locked