Just installed a new zoneminder 1.24.4.
Connected a 700 TVL color NTSC analog camera through a BlueCherry capture card. Running Ubuntu 11.10.
I can use zoneminder fine with Grey pallet, but any change to a color pallet causes zmc to crash.
Camera works fine with xawtv, shows full color image.
Turning up debuging, the zmc log:
01/07/12 08:56:38.146236 zmc_dvideo0[11031].DB4-zm_local_camera.cpp/390 [ v4l2_data.fmt.fmt.pix.colorspace = 00000000]
01/07/12 08:56:38.146251 zmc_dvideo0[11031].DB4-zm_local_camera.cpp/391 [ v4l2_data.fmt.fmt.pix.priv = 00000000]
01/07/12 08:56:38.146281 zmc_dvideo0[11031].FAT-zm_local_camera.cpp/410 [Failed to set video format: Invalid argument]
System log:
Jan 7 08:56:38 cctvdvr zmdc[10990]: INF [Starting pending process, zmc -d /dev/video0]
Jan 7 08:56:38 cctvdvr zmdc[10990]: INF ['zmc -d /dev/video0' starting at 12/01/07 08:56:38, pid = 11031]
Jan 7 08:56:38 cctvdvr zmdc[11031]: INF ['zmc -d /dev/video0' started at 12/01/07 08:56:38]
Jan 7 08:56:38 cctvdvr zmc_dvideo0[11031]: INF [Debug Level = 0, Debug Log = <none>]
Jan 7 08:56:38 cctvdvr zmc_dvideo0[11031]: INF [New Debug Level = 9, New Debug Log = /tmp/zm/zm_debug.log.11031]
Jan 7 08:56:38 cctvdvr zmc_dvideo0[11031]: INF [Starting Capture]
Jan 7 08:56:38 cctvdvr zmc_dvideo0[11031]: FAT [Failed to set video format: Invalid argument]
Jan 7 08:56:38 cctvdvr zmdc[10990]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Setup is simple, just one monitor and resolution set at 320x240. All color pallets fail, however started simple with the RGB24.
There is another error in the start of the zmc log:
01/07/12 08:56:38.079876 zmc_dvideo0[11031].INF-zm_debug.c/296 [New Debug Level = 9, New Debug Log = /tmp/zm/zm_debug.log.11031]
01/07/12 08:56:38.080173 zmc_dvideo0[11031].DB1-zm_monitor.cpp/1755 [Got 1 monitors]
01/07/12 08:56:38.080244 zmc_dvideo0[11031].DB2-zm_local_camera.cpp/292 [V4L support enabled, using V4L2 api]
01/07/12 08:56:38.081074 zmc_dvideo0[11031].DB1-zm_monitor.cpp/340 [monitor purpose=1]
01/07/12 08:56:38.081115 zmc_dvideo0[11031].DB1-zm_monitor.cpp/347 [mem.size=9217192]
01/07/12 08:56:38.081175 zmc_dvideo0[11031].DB1-zm_monitor.cpp/371 [Unable to map file /dev/shm/zm.mmap.5 (9217192 bytes) to locked memory, trying unlocked]
01/07/12 08:56:38.087385 zmc_dvideo0[11031].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
01/07/12 08:56:38.087573 zmc_dvideo0[11031].DB9-zm_image.cpp/1352 [x1:0,y1:239 x2:0,y2:0]
Which led me to play around with the shmall and shmmax settings, tried:
kernel.shmall = 134217728
kernel.shmmax = 134217728
and
kernel.shmall = 536870912
kernel.shmmax = 536870912
Which should be more than enough for the one camera and low resolution, same error occurs on both settings.
zmu config data on video source:
zmu -d /dev/video0 -q -v
Video Device: /dev/video0
General Capabilities
Driver: bttv
Card: BT878 video (ProVideo PV183)
Bus: PCI:0000:03:04.0
Version: 0.9.18
Type: 0x5000015
Supports video capture (X)
Does not support video output
Supports frame buffer overlay
Supports VBI capture
Does not support VBI output
Does not support sliced VBI capture
Does not support sliced VBI output
Does not support video output overlay
Does not have tuner
Does not have audio in and/or out
Does not have radio
Supports read/write i/o (X)
Does not support async i/o
Supports streaming i/o (X)
Standards:
NTSC
NTSC-M
NTSC-M-JP
NTSC-M-KR
PAL
PAL-BG
PAL-H
PAL-I
PAL-DK
PAL-M
PAL-N
PAL-Nc
PAL-60
SECAM
SECAM-B
SECAM-G
SECAM-H
SECAM-DK
SECAM-L
SECAM-Lc
Formats:
8 bpp, gray (GREY)
8 bpp, dithered color (HI24)
15 bpp RGB, le (RGBO)
15 bpp RGB, be (RGBQ)
16 bpp RGB, le (RGBP)
16 bpp RGB, be (RGBR)
24 bpp RGB, le (BGR3)
32 bpp RGB, le (BGR4)
32 bpp RGB, be (RGB4)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, YUYV (YUYV)
4:2:2, packed, UYVY (UYVY)
4:2:2, planar, Y-Cb-Cr (422P)
4:2:0, planar, Y-Cb-Cr (YU12)
4:2:0, planar, Y-Cr-Cb (YV12)
4:1:1, planar, Y-Cb-Cr (411P)
4:1:0, planar, Y-Cb-Cr (YUV9)
4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
Bounds: 838 x 504
Default: 768 x 480
Current: 768 x 480
Inputs: 2
Input 0
Name: Composite0
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
Input 1
Name: Composite1
Type: Camera
Audioset: 00000001
Standards: 0xffbfff
Power on (X)
Signal detected (X)
Colour Signal detected
Horizontal Lock detected
A little stumped for ideas on what to look for next.
BTW, memory looks fine:
free
total used free shared buffers cached
Mem: 1026068 881368 144700 0 62856 289696
-/+ buffers/cache: 528816 497252
Swap: 2095096 8700 2086396
Increased swap just in case, but no help.