Slow framerates on PV-149

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
startrk
Posts: 8
Joined: Wed May 23, 2007 9:02 pm

Slow framerates on PV-149

Post by startrk »

I have a Bluecherry PV-149 Zoneminder 1.22.3 on a P4 2.6GHz, 1Gb Ram, 250GB disk. The monitors are setup to run at 25fps but when you view the events it looks like zm is capturing at 5fps. The syslog show that each monitor is capturing and processing at 24.5fps. There are no errors in the syslog or zm logs. I have the bttv card=77,77,77,77 option on and dmesg reports

[ 12.447456] Linux video capture interface: v2.00
[ 12.500105] bttv: driver version 0.9.16 loaded
[ 12.500112] bttv: using 8 buffers with 2080k (520 pages) each for capture

[ 12.870544] bttv: Bt8xx card found (0).
[ 12.870580] ACPI: PCI Interrupt 0000:04:08.0[A] -> GSI 22 (level, low) -> IRQ 217
[ 12.870600] bttv0: Bt878 (rev 17) at 0000:04:08.0, irq: 217, latency: 132, mmio: 0xe8000000
[ 12.870626] bttv0: detected: Provideo PV150A-1 [card=98], PCI subsystem ID is aa00:1460
[ 12.870633] bttv0: using: ProVideo PV150 [card=98,autodetected]
[ 12.870669] bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 12.872032] bttv0: using tuner=-1
[ 12.872039] bttv0: i2c: checking for TDA9875 @ 0xb0... not found
[ 12.874314] bttv0: i2c: checking for TDA7432 @ 0x8a... not found
[ 12.876549] bttv0: i2c: checking for TDA9887 @ 0x86... not found
[ 12.878926] bttv0: registered device video0
[ 12.878980] bttv0: registered device vbi0
[ 12.879013] bttv0: PLL: 28636363 => 35468950 .. ok
[ 12.913770] bttv: Bt8xx card found (1).
[ 12.913796] ACPI: PCI Interrupt 0000:04:09.0[A] -> GSI 23 (level, low) -> IRQ 209
[ 12.913811] bttv1: Bt878 (rev 17) at 0000:04:09.0, irq: 209, latency: 132, mmio: 0xe8002000
[ 12.913834] bttv1: detected: Provideo PV150A-2 [card=98], PCI subsystem ID is aa01:1461
[ 12.913838] bttv1: using: ProVideo PV150 [card=98,autodetected]
[ 12.913866] bttv1: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 12.915087] bttv1: using tuner=-1
[ 12.915093] bttv1: i2c: checking for TDA9875 @ 0xb0... not found
[ 12.917329] bttv1: i2c: checking for TDA7432 @ 0x8a... not found
[ 12.919562] bttv1: i2c: checking for TDA9887 @ 0x86... not found
[ 12.921829] bttv1: registered device video1
[ 12.921860] bttv1: registered device vbi1
[ 12.921884] bttv1: PLL: 28636363 => 35468950 .. ok
[ 12.953664] bttv: Bt8xx card found (2).
[ 12.953688] ACPI: PCI Interrupt 0000:04:0a.0[A] -> GSI 20 (level, low) -> IRQ 177
[ 12.953703] bttv2: Bt878 (rev 17) at 0000:04:0a.0, irq: 177, latency: 132, mmio: 0xe8004000
[ 12.953725] bttv2: detected: Provideo PV150A-3 [card=98], PCI subsystem ID is aa02:1462
[ 12.953728] bttv2: using: ProVideo PV150 [card=98,autodetected]
[ 12.953755] bttv2: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 12.954963] bttv2: using tuner=-1
[ 12.954968] bttv2: i2c: checking for TDA9875 @ 0xb0... not found
[ 12.957206] bttv2: i2c: checking for TDA7432 @ 0x8a... not found
[ 12.959439] bttv2: i2c: checking for TDA9887 @ 0x86... not found
[ 12.961700] bttv2: registered device video2
[ 12.961736] bttv2: registered device vbi2
[ 12.961759] bttv2: PLL: 28636363 => 35468950 .. ok
[ 12.993574] bttv: Bt8xx card found (3).
[ 12.993597] ACPI: PCI Interrupt 0000:04:0b.0[A] -> GSI 21 (level, low) -> IRQ 225
[ 12.993612] bttv3: Bt878 (rev 17) at 0000:04:0b.0, irq: 225, latency: 132, mmio: 0xe8006000
[ 12.993632] bttv3: detected: Provideo PV150A-4 [card=98], PCI subsystem ID is aa03:1463
[ 12.993635] bttv3: using: ProVideo PV150 [card=98,autodetected]
[ 12.993664] bttv3: gpio: en=00000000, out=00000000 in=00ffffff [init]
[ 12.994851] bttv3: using tuner=-1
[ 12.994856] bttv3: i2c: checking for TDA9875 @ 0xb0... not found
[ 12.997092] bttv3: i2c: checking for TDA7432 @ 0x8a... not found
[ 12.999331] bttv3: i2c: checking for TDA9887 @ 0x86... not found
[ 13.001593] bttv3: registered device video3
[ 13.001628] bttv3: registered device vbi3
[ 13.001652] bttv3: PLL: 28636363 => 35468950 .. ok
[ 13.047725] bt878: AUDIO driver version 0.0.0 loaded
[ 13.047770] bt878: Bt878 AUDIO function found (0).
[ 13.047795] ACPI: PCI Interrupt 0000:04:08.1[A] -> GSI 22 (level, low) -> IRQ 217
[ 13.047803] bt878_probe: card id=[0x1460aa00], Unknown card.
[ 13.047804] Exiting..
[ 13.047811] ACPI: PCI interrupt for device 0000:04:08.1 disabled
[ 13.047814] bt878: probe of 0000:04:08.1 failed with error -22
[ 13.047819] bt878: Bt878 AUDIO function found (0).
[ 13.047834] ACPI: PCI Interrupt 0000:04:09.1[A] -> GSI 23 (level, low) -> IRQ 209
[ 13.047841] bt878_probe: card id=[0x1461aa01], Unknown card.
[ 13.047842] Exiting..
[ 13.047848] ACPI: PCI interrupt for device 0000:04:09.1 disabled
[ 13.047850] bt878: probe of 0000:04:09.1 failed with error -22
[ 13.047853] bt878: Bt878 AUDIO function found (0).
[ 13.047869] ACPI: PCI Interrupt 0000:04:0a.1[A] -> GSI 20 (level, low) -> IRQ 177
[ 13.047875] bt878_probe: card id=[0x1462aa02], Unknown card.
[ 13.047876] Exiting..
[ 13.047882] ACPI: PCI interrupt for device 0000:04:0a.1 disabled
[ 13.047884] bt878: probe of 0000:04:0a.1 failed with error -22
[ 13.047888] bt878: Bt878 AUDIO function found (0).
[ 13.047903] ACPI: PCI Interrupt 0000:04:0b.1[A] -> GSI 21 (level, low) -> IRQ 225
[ 13.047910] bt878_probe: card id=[0x1463aa03], Unknown card.
[ 13.047911] Exiting..
[ 13.047917] ACPI: PCI interrupt for device 0000:04:0b.1 disabled
[ 13.047919] bt878: probe of 0000:04:0b.1 failed with error -22
[ 13.177819] tuner: Unknown parameter `type'
[ 27.416204] bttv0: PLL can sleep, using XTAL (28636363).
[ 27.754432] bttv1: PLL can sleep, using XTAL (28636363).
[ 28.138570] bttv2: PLL can sleep, using XTAL (28636363).
[ 28.333579] bttv3: PLL can sleep, using XTAL (28636363).

Any thoughts?

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

Post by cordel »

So what does ZM report the framerate is (check the logs, should tell you)?
Sika
Posts: 29
Joined: Mon Feb 06, 2006 8:21 am
Location: New Zealand

Post by Sika »

This looks like the problem.

[ 12.870633] bttv0: using: ProVideo PV150 [card=98,autodetected]

You need to change your modprobe file to bttv card=98,98,98,98

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

Post by cordel »

Actualy he don't need anything in modprobe as the card is properly detected by the bttv driver. I missed that you had insmoded the devices as 77. Thats wrong for this card and since it is auto detected, no need to insmod it, so you should remove the option in modprobe.
startrk
Posts: 8
Joined: Wed May 23, 2007 9:02 pm

Post by startrk »

Well.. I reinstalled on top of Debian instead of Ubuntu using the .deb packages and the framerate problem has ended. Now the weird thing is when I reboot I get black screens in my monitors until I run xawtv. Then everything works great. Thanks for your help!!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Check this thread and see if it helps:
http://www.zoneminder.com/forums/viewto ... mfix+chmod
startrk
Posts: 8
Joined: Wed May 23, 2007 9:02 pm

Post by startrk »

My permissions are setup correctly. The monitors are not down but only show up with messed up black images. There are no persmission denied errors in the logs. www-data is in the video group. /usr/bin/zmfix has the correct permissions... It is like debian modprobes the bttv driver and zoneminder accesses it but it is running in PAL mode and won't switch out until I manually do it in xawtv. Is there a gbuffers tag I should add in my modprobe or default settings somewhere that set it to always use NTSC? Thanks for you time.
Post Reply