Black Picture after installation of 1.24.2

Forum for questions and support relating to the 1.24.x releases only.
Locked
moep
Posts: 5
Joined: Wed Nov 19, 2008 3:47 pm

Black Picture after installation of 1.24.2

Post by moep »

Hello,

I updated my zoneminder installation to 1.24.2 today. I installed it from source on Ubuntu 9.04 using the guide in the wiki.

Everything worked out fine but now I can’t get a picture on any of my cameras anymore. They just stay black. All of the sources (/dev/video*) in ZM also show up as red for some reason.

I’ve tried "chmod 777 /dev/video*" for debugging purposes but that changes nothing. Everything worked fine with the older version (I believe it was 1.23.3 or so).

Here are the logs:

Code: Select all

zmu -d /dev/video0 -q -v

Video Device: /dev/video0
General Capabilities
  Driver: bttv
  Card: BT878 video (ProVideo PV150)
  Bus: PCI:0000:08:04.0
  Version: 0.9.17
  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: 1063 x 608
  Default: 924 x 576
  Current: 924 x 576
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 
/var/log/messages:

Code: Select all

Jul 10 13:45:12 hsrzm zmc_dvideo1[14810]: INF [Debug Level = 0, Debug Log = <none>]
Jul 10 13:45:12 hsrzm zmc_dvideo0[14808]: INF [Starting Capture]
Jul 10 13:45:12 hsrzm zmc_dvideo0[14808]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jul 10 13:45:12 hsrzm zmc_dvideo0[14808]: INF [Backtrace complete, please execute the following command for more information]
Jul 10 13:45:12 hsrzm zmc_dvideo0[14808]: INF [addr2line -e /usr/local/bin/zmc 0xb8026424 0xb8026424 0xb7b396d0 0xb7b3b098 0x805584d 0x80688cf 0x80691a4 0x804c4db 0xb7b24775 0x804c041]
Jul 10 13:45:12 hsrzm zmc_dvideo3[14809]: INF [Starting Capture]
Jul 10 13:45:12 hsrzm zmc_dvideo3[14809]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jul 10 13:45:12 hsrzm zmc_dvideo3[14809]: INF [Backtrace complete, please execute the following command for more information]
Jul 10 13:45:12 hsrzm zmc_dvideo3[14809]: INF [addr2line -e /usr/local/bin/zmc 0xb7f27424 0xb7f27424 0xb7a3a6d0 0xb7a3c098 0x805584d 0x80688cf 0x80691a4 0x804c4db 0xb7a25775 0x804c041]
Jul 10 13:45:12 hsrzm zmc_dvideo7[14811]: INF [Starting Capture]
Jul 10 13:45:12 hsrzm zmc_dvideo7[14811]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jul 10 13:45:12 hsrzm zmc_dvideo7[14811]: INF [Backtrace complete, please execute the following command for more information]
Jul 10 13:45:12 hsrzm zmc_dvideo7[14811]: INF [addr2line -e /usr/local/bin/zmc 0xb7f40424 0xb7f40424 0xb7a536d0 0xb7a55098 0x805584d 0x80688cf 0x80691a4 0x804c4db 0xb7a3e775 0x804c041]
Jul 10 13:45:12 hsrzm zmc_dvideo1[14810]: INF [Starting Capture]
Jul 10 13:45:12 hsrzm zmc_dvideo1[14810]: INF [Got signal 6 (Aborted), exiting and forcing backtrace]
Jul 10 13:45:12 hsrzm zmc_dvideo1[14810]: INF [Backtrace complete, please execute the following command for more information]
Jul 10 13:45:12 hsrzm zmc_dvideo1[14810]: INF [addr2line -e /usr/local/bin/zmc 0xb7f40424 0xb7f40424 0xb7a536d0 0xb7a55098 0x805584d 0x80688cf 0x80691a4 0x804c4db 0xb7a3e775 0x804c041]
Backtrace:

Code: Select all

addr2line -e /usr/local/bin/zmc 0xb7f40424 0xb7f40424 0xb7a536d0 0xb7a55098 0x805584d 0x80688cf 0x80691a4 0x804c4db 0xb7a3e775 0x804c041
??:0
??:0
??:0
??:0
??:0
/usr/src/ZoneMinder-1.24.2/src/zm_local_camera.cpp:386
/usr/src/ZoneMinder-1.24.2/src/zm_local_camera.cpp:1439
/usr/src/ZoneMinder-1.24.2/src/zmc.cpp:199
??:0
/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
/tmp/zmdc.log:

Code: Select all

07/10/09 13:45:12.065848 zmdc[13409].ERR ['zmc -d /dev/video0' exited abnormally, exit status 6]
07/10/09 13:45:12.071852 zmdc[13409].ERR ['zmc -d /dev/video3' exited abnormally, exit status 6]
07/10/09 13:45:12.072185 zmdc[13409].ERR ['zmc -d /dev/video7' exited abnormally, exit status 6]
07/10/09 13:45:12.079844 zmdc[13409].ERR ['zmc -d /dev/video1' exited abnormally, exit status 6]
ipcs -l

Code: Select all

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 1731
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
//edit:

maybe this helps (I’ve enabled debug for zmc):

Code: Select all

07/10/09 14:52:48.204120 zmc_dvideo1[4051].INF-zmc.cpp/188 [Starting Capture]
07/10/09 14:52:48.204250 zmc_dvideo1[4051].DB3-zm_local_camera.cpp/349 [Opening video device /dev/video1]
07/10/09 14:52:48.204309 zmc_dvideo1[4051].DB2-zm_local_camera.cpp/355 [V4L2 support enabled, using V4L2 api]
07/10/09 14:52:48.204329 zmc_dvideo1[4051].DB3-zm_local_camera.cpp/360 [Checking video device capabilities]
07/10/09 14:52:48.204352 zmc_dvideo1[4051].DB3-zm_local_camera.cpp/370 [Setting up video format]
07/10/09 14:52:48.204382 zmc_dvideo1[4051].FAT-zm_local_camera.cpp/386 [Failed to set video format: Invalid argument]
07/10/09 14:52:48.204526 zmc_dvideo1[4051].INF-zm_signal.cpp/64 [Got signal 6 (Aborted), exiting and forcing backtrace]
07/10/09 14:52:48.204608 zmc_dvideo1[4051].ERR-zm_signal.cpp/84 [Signal address is (nil), from 0xb7f32424]
Why does it fail to set the video format?

It is set to PAL and RGB24 which is also what the old installation was set to and worked just fine.
User avatar
henriquejf
Posts: 77
Joined: Tue Feb 10, 2009 12:01 pm
Location: Brazil

Post by henriquejf »

try to run on the terminal as root:

zmfix

or have a look at the permissions for the /dev/videoxxx by doing

ls -l /dev/video*

hope it helps
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What are the settings you have defined in ZM for that monitor, and are they within the bounds of the output you have above from zmu?
moep
Posts: 5
Joined: Wed Nov 19, 2008 3:47 pm

Post by moep »

I fixed the problem by trying different Device Format/Capture Palette options for the cameras.

The working settings in 1.23.x were PAL/RGB24 but in 1.24.2 I had to set PAL B/BGR24 to make the cameras work. Everything is back to normal now. :)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

07/10/09 14:52:48.204382 zmc_dvideo1[4051].FAT-zm_local_camera.cpp/386 [Failed to set video format: Invalid argument]
This error is a good indicator that it didn't agree with one of the setting you had. Glad you got it sorted.
Locked