New ZM user having problems... please help. (SOLVED!!!)

Support and queries relating to all previous versions of ZoneMinder
Locked
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

New ZM user having problems... please help. (SOLVED!!!)

Post by zonaboy »

I'm running a newly installed Ubuntu 8.04 64bit desktop system and have downloaded and installed ZM 1.23.3 from source. I am using a PV-149 8-port card.

ZM Console seems to be running ok, but I just dont get any video or stills (broken image) to show up in the monitor window.

I'm using /dev/video0 with channel 0, NTSC, greyscale pallette, width=320 height=240 in monitor mode.

Using xawtv, I can see video from my camera, so I'm pretty sure the camera and card are setup correctly.

here's dmesg | grep bttv :

Code: Select all

[   30.693733] bttv: driver version 0.9.17 loaded
[   30.693736] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   30.693775] bttv: Bt8xx card found (0).
[   30.693807] bttv0: Bt878 (rev 17) at 0000:04:08.0, irq: 17, latency: 16, mmio: 0xfd6ff000
[   30.694563] bttv0: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[   30.694566] bttv0: using: ProVideo PV150 [card=98,autodetected]
[   30.694593] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   30.694867] bttv0: tuner absent
[   30.694884] bttv0: registered device video0
[   30.694896] bttv0: registered device vbi0
[   30.694916] bttv0: PLL: 28636363 => 35468950 .. ok
[   30.727436] bttv: Bt8xx card found (1).
[   30.727469] bttv1: Bt878 (rev 17) at 0000:04:09.0, irq: 18, latency: 16, mmio: 0xfd6fd000
[   30.727491] bttv1: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[   30.727493] bttv1: using: ProVideo PV150 [card=98,autodetected]
[   30.727517] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   30.727794] bttv1: tuner absent
[   30.727826] bttv1: registered device video1
[   30.727839] bttv1: registered device vbi1
[   30.727859] bttv1: PLL: 28636363 => 35468950 .. ok
[   30.764265] bttv: Bt8xx card found (2).
[   30.764300] bttv2: Bt878 (rev 17) at 0000:04:0a.0, irq: 19, latency: 16, mmio: 0xfd6fb000
[   30.764750] bttv2: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[   30.764752] bttv2: using: ProVideo PV150 [card=98,autodetected]
[   30.764777] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   30.765060] bttv2: tuner absent
[   30.765081] bttv2: registered device video2
[   30.765095] bttv2: registered device vbi2
[   30.765117] bttv2: PLL: 28636363 => 35468950 .. ok
[   30.795786] bttv: Bt8xx card found (3).
[   30.795819] bttv3: Bt878 (rev 17) at 0000:04:0b.0, irq: 16, latency: 16, mmio: 0xfd6f9000
[   30.795828] bttv3: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[   30.795830] bttv3: using: ProVideo PV150 [card=98,autodetected]
[   30.795854] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[   30.796129] bttv3: tuner absent
[   30.796145] bttv3: registered device video3
[   30.796158] bttv3: registered device vbi3
[   30.796178] bttv3: PLL: 28636363 => 35468950 .<6>ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16
[  327.828195] bttv0: PLL can sleep, using XTAL (28636363).
[  451.680383] bttv0: PLL: 28636363 => 35468950 .. ok
[  459.233008] bttv0: PLL can sleep, using XTAL (28636363).
[  464.019668] bttv0: timeout: drop=23 irq=26857/26857, risc=4bcbb01c, bits: HSYNC
[  464.019939] bttv0: reset, reinitialize
[  464.020029] bttv0: PLL can sleep, using XTAL (28636363).
[ 1599.806376] bttv0: PLL: 28636363 => 35468950 .. ok
[ 1599.835485] bttv0: PLL can sleep, using XTAL (28636363).
from xawtv -hwscan :

Code: Select all

This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.24-16-generic)
looking for available devices
port 92-92
    type : Xvideo, image scaler
    name : Intel(R) Video Overlay

/dev/video0: OK                         [ -device /dev/video0 ]
    type : v4l2
    name : BT878 video (ProVideo PV150)
    flags: overlay capture  

/dev/video1: OK                         [ -device /dev/video1 ]
    type : v4l2
    name : BT878 video (ProVideo PV150)
    flags: overlay capture  

/dev/video2: OK                         [ -device /dev/video2 ]
    type : v4l2
    name : BT878 video (ProVideo PV150)
    flags: overlay capture  

/dev/video3: OK                         [ -device /dev/video3 ]
    type : v4l2
    name : BT878 video (ProVideo PV150)
    flags: overlay capture  
when i Startup ZM, this is what shows up in /var/log/messages :

Code: Select all

May 24 15:02:36 bigbro zmpkg[8947]: INF [Command: start] 
May 24 15:02:36 bigbro zmfix[8952]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.08952]
May 24 15:02:36 bigbro zmdc[8954]: INF [Server starting at 08/05/24 15:02:36] 
May 24 15:02:38 bigbro zmu[8966]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.08966]
May 24 15:02:38 bigbro zmu[8966]: WAR [Shared memory not initialised by capture daemon, some query functions may not be available or produce invalid results]
May 24 15:02:39 bigbro zmdc[8982]: INF ['zmc -d /dev/video0' started at 08/05/24 15:02:39] 
May 24 15:02:39 bigbro zmdc[8954]: INF ['zmc -d /dev/video0' starting at 08/05/24 15:02:39, pid = 8982] 
May 24 15:02:39 bigbro zmc_dvideo0[8982]: INF [Debug Level = 0, Debug Log = <none>]
May 24 15:02:39 bigbro zmc_dvideo0[8982]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.08982]
May 24 15:02:39 bigbro zmc_dvideo0[8982]: INF [Starting Capture]
May 24 15:02:39 bigbro zmdc[8954]: INF ['zmc -d /dev/video0' already running at 08/05/24 15:02:39, pid = 8982] 
May 24 15:02:40 bigbro zmdc[8985]: INF ['zmfilter.pl' started at 08/05/24 15:02:40] 
May 24 15:02:40 bigbro zmdc[8954]: INF ['zmfilter.pl' starting at 08/05/24 15:02:40, pid = 8985] 
May 24 15:02:40 bigbro zmdc[8987]: INF ['zmaudit.pl -c' started at 08/05/24 15:02:40] 
May 24 15:02:40 bigbro zmdc[8954]: INF ['zmaudit.pl -c' starting at 08/05/24 15:02:40, pid = 8987] 
May 24 15:02:40 bigbro zmfilter[8985]: INF [Scanning for events] 
May 24 15:02:40 bigbro zmdc[8990]: INF ['zmwatch.pl' started at 08/05/24 15:02:40] 
May 24 15:02:40 bigbro zmdc[8954]: INF ['zmwatch.pl' starting at 08/05/24 15:02:40, pid = 8990] 
May 24 15:02:40 bigbro zmdc[8992]: INF ['zmupdate.pl -c' started at 08/05/24 15:02:40] 
May 24 15:02:40 bigbro zmwatch[8990]: INF [Watchdog starting] 
May 24 15:02:40 bigbro zmwatch[8990]: INF [Watchdog pausing for 30 seconds] 
May 24 15:02:40 bigbro zmdc[8954]: INF ['zmupdate.pl -c' starting at 08/05/24 15:02:40, pid = 8992] 
May 24 15:02:40 bigbro Update agent starting at 08/05/24 15:02:40 

here's a snipped from /tmp/zm_debug.log :

Code: Select all

5/24/08 15:06:38.472370 zmu[9322].INF-zm_debug.c/305 [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.09322]
05/24/08 15:06:38.472539 zmu[9322].DB1-zm_monitor.cpp/1964 [Got 1 monitors]
05/24/08 15:06:38.472649 zmu[9322].DB1-zm_monitor.cpp/259 [monitor purpose=0]
05/24/08 15:06:38.472655 zmu[9322].DB1-zm_monitor.cpp/266 [shm.size=3073516]
05/24/08 15:06:38.472706 zmu[9322].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]
05/24/08 15:06:38.473283 zmu[9322].DB1-zm_monitor.cpp/348 [Monitor sony has function 2]
05/24/08 15:06:38.473290 zmu[9322].DB1-zm_monitor.cpp/349 [Monitor sony LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
05/24/08 15:06:38.473295 zmu[9322].DB1-zm_monitor.cpp/350 [Monitor sony IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, 
FM = 0]
05/24/08 15:06:38.473303 zmu[9322].DB1-zm_monitor.cpp/2109 [Loaded monitor 2(sony), 0 zones]
I've been scanning through all the threads I can to find something to help, but so far... nothing. Any help or suggestions would be greatly appreciated!

edit : problem solved (see below)!!!

thanks,
keith
Last edited by zonaboy on Sun May 25, 2008 3:27 pm, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Try switch xawtv to V4L mode and see if it works, ZM does not support V4L2 yet.
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

Post by zonaboy »

cordel wrote:Try switch xawtv to V4L mode and see if it works, ZM does not support V4L2 yet.
thanks for the quick response! i'm sure this is going to sound totally newbish... but how do i do that? Is that a ZM config option somewhere? (i actually thought xawtv was a separate standalone app).

thanks again for your help... i'm going crazy here trying to get this to work.

-keith
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Ubuntu 8.04 Is using a newer kernel that has dropped V4L drivers in favor of V4L2.
if xawtv can work in V4L mode, then in theory zm should also be work.
If xawtv can't work in V4L mood, then ZM has not a chance.

xawtv --help /// should say how to
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

Post by zonaboy »

cordel wrote:Ubuntu 8.04 Is using a newer kernel that has dropped V4L drivers in favor of V4L2.
if xawtv can work in V4L mode, then in theory zm should also be work.
If xawtv can't work in V4L mood, then ZM has not a chance.

xawtv --help /// should say how to
ah... i'm tracking with ya now. but is it possible they took out v4l support in this version of xawtv cause i'm not seeing the option to run in v4l mode (vice v4l2 mode). here's the output of xawtv --help on my box :

Code: Select all

This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.24-16-generic)

usage: xawtv [ options ] [ station ]
options:
  -h  -help           print this text
  -v  -debug n        debug level n, n = [0..2]
      -remote         assume remote display
  -n  -noconf         don't read the config file
  -m  -nomouse        startup with mouse pointer disabled
  -f  -fullscreen     startup in fullscreen mode
      -(no)dga        enable/disable DGA extention
      -(no)vm         enable/disable VidMode extention
      -(no)randr      enable/disable Xrandr extention
      -(no)xv         enable/disable Xvideo extention altogether
      -(no)xv-video   enable/disable Xvideo extention (for video only,
                      i.e. XvPutVideo() calls)
      -(no)xv-image   enable/disable Xvideo extention (for image scaling
                      only, i.e. XvPutImage() calls)
      -(no)gl         enable/disable OpenGL
  -b  -bpp n          color depth of the display is n (n=24,32)
  -o  -outfile file   filename base for snapshots
  -c  -device file    use <file> as video4linux device
  -C  -dspdev file    use <file> as audio (oss) device
      -vbidev file    use <file> as vbi device
      -joydev file    use <file> as joystick device
      -shift x        shift display by x bytes
      -fb             let fb (not X) set up v4l device
      -parallel n     use n compression threads
      -bufcount n     use n video buffers
      -hwscan         print a list of available devices.
thanks for your help cordel!!!
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

Post by zonaboy »

hi cordel... i haven't been able to figure out how to run xawtv in v4l mode, but i did find this post : http://www.zoneminder.com/forums/viewto ... 878+kworld

my kernel is : 2.6.24-16-generic which according to this thread, should be "ok" with v4l.

i also ran the mplayer test mentioned in tht thread with the v4l switch, and I get good solid video. so i'm *hoping* that its not a v4l issue... but then again, i still get nada from ZM???

edit : i also tried running Ekiga (video phone) and switching between V4L and V4L2 drivers... both seemed to work ok. ???

does that help? any other ideas?

thanks!
keith
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I should have been a bit more spacific :roll:
ZM takes snapshots from the cards ports, the very spacific test we would use with xawtv is to take a snapshot with it. honestly I don't know why it is so different than the normal viewing method and I have never seen or heard anyone explain it (que for anyone with that kowledge to chime in :P ) and why the method is so different, I just assume that the bttv driver does something a little different such as just dirrecting video vs just aquiring enough data to have one frame/snapshot.

If you would like, you are welcome to PM me with ssh access as I would be curious to take a peek and see what the case might be assuming of coarse this is a dedicated system with no personal valuables :wink: Besides I got a score to settle with someone that had posted that ZM does not work on Umbuntu 8, Since I just set one up today I know that it does and he is a tard, but even better to do it for you :D and it will be a freebe :P
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

much appreciated

Post by zonaboy »

PM sent. :D
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Replied :wink:
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay so it was a few things, although the IRQ conflict was the biggest problem and zms was in the wrong place.
So are we all good now? :lol:
zonaboy
Posts: 14
Joined: Wed May 07, 2008 2:42 pm

Post by zonaboy »

cordel wrote:Okay so it was a few things, although the IRQ conflict was the biggest problem and zms was in the wrong place.
So are we all good now? :lol:
All good is an understatement!!! :)

yep, everything seems to be humming along now, thanks to you! Can't thank you enough for all the troubleshooting and configuration tweaking you did cordel.

so in summary : Zoneminder 1.23.3 compiled with ffmpeg on an Ubuntu 8.04 64bit (2.6.24-16) system works great!!!
BitBass
Posts: 8
Joined: Mon Sep 08, 2008 3:26 am

Post by BitBass »

Sorry to dig up an old thread but how does one go about disabling the floppy and parallel ports to free up IRQ's? I'm pretty sure that's my problem but I can't find a way to do it.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

It is either a selection in your BIOS, or not. If not, there is nothing you can do.
BitBass
Posts: 8
Joined: Mon Sep 08, 2008 3:26 am

Post by BitBass »

Well, I did that and the IRQ list is significantly shorter, however, I still have this:

16: 0 0 IO-APIC-fasteoi uhci_hcd:usb1, uhci_hcd:usb4
18: 3 0 IO-APIC-fasteoi uhci_hcd:usb3, libata, bttv1
19: 3 0 IO-APIC-fasteoi uhci_hcd:usb2, bttv0
21: 3 0 IO-APIC-fasteoi bttv2
22: 523 0 IO-APIC-fasteoi eth0, bttv3

Note how many still overlap with other services.

When I open the live stream window in ZM I'm getting black screens and 0 fps. Also, I install XAWTV and get the following:

xawtv -hwscan
xdpyinfo: unable to open display "".
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.24-19-server)
Error: Can't open display:


Any suggestions? This worked before with the Bluecherry LiveCD but I was hoping to use an up to date version so I'm building this from scratch.

Thanks!
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Look for a "reset ESCD" in your BIOS. It will reshuffle the IRQs and hopefully do a better job this time. (If you have it as an option...)
Locked