[SOLVED] Problems with BTTV on 14.04

Forum for questions and support relating to the 1.26.x releases only.
Locked
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

[SOLVED] Problems with BTTV on 14.04

Post by haus »

Hi all,

My ZM box has been humming along nicely for years until a recent heat wave caused total and sudden hard drive failure. As a result, I've decided to start from scratch and rebuild on Ubuntu server 14.04. I've got ZM up and running using this guide (http://www.zoneminder.com/wiki/index.ph ... e_easy_way) but I can't get any of my analog camera video sources to work.

I have a Kodicomm clone and another one of those cheap 4-in-1 cards, and they have always worked with:

Code: Select all

options i2c-algo-bit bit_test=1
options bttv card=102,102,102,102,102,102,102,102,77 tuner=4,4,4,4,4,4,4,4,4 gbuffers=32 chroma_agc=1
in /etc/modprobe.d/options.

Now, no matter what I do, dmesg | grep bttv reports:

Code: Select all

[  312.628183] bttv: 8: Bt878 (rev 17) at 0000:04:0f.0, irq: 16, latency: 64, mmio: 0xfdff1000
[  312.628204] bttv: 8: using:  *** UNKNOWN/GENERIC ***  [card=0,autodetected]
[  319.060022] bttv: 8: tuner type unset
[  319.060187] bttv: 8: registered device video8
[  319.060241] bttv: 8: registered device vbi8
It's like it doesn't see the card types I am trying to define. /dev/videoX (0-8) is red in the ZM interface. Since it has been a very long time since I set up bttv on Ubuntu, I'm wondering if there is something that has changed significantly in recent years that I'm not finding via searches?
Last edited by haus on Sat May 03, 2014 11:39 pm, edited 1 time in total.
haus
Posts: 213
Joined: Thu Oct 11, 2007 5:10 am

Re: Problems with BTTV on 14.04

Post by haus »

Ok, replying to myself, I sort of got it working. I put "bt878" in /etc/modules and put:

Code: Select all

options bttv card=102,102,102,102,102,102,102,102 tuner=4,4,4,4,4,4,4,4 gbuffers=32 chroma_agc=1
in /etc/modprobe.d/bttv.conf

and now I get some video (orange sources in console though) and this dmesg:

Code: Select all

 [  412.376089] bttv: 7: Bt878 (rev 17) at 0000:04:0f.0, irq: 16, latency: 64, mmio: 0xfdff1000
[  412.376117] bttv: 7: using: IVC-200 [card=102,insmod option]
[  412.376343] bttv: 7: tuner absent
[  412.376400] bttv: 7: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[  412.408049] bttv: PLL set ok
[  412.408162] bttv: 7: registered device video7
[  412.408934] bttv: 7: registered device vbi7
I'll continue futzing and report back whatever seems to work, assuming I make more progress.

Edit: Silly me, sources are orange in monitor mode, and green in modect, so I think this is working as expected now.

Final config has this in /etc/modprobe.d/bttv.conf:

Code: Select all

options i2c-algo-bit bit_test=1
options bttv card=77,102,102,102,102,102,102,102,102 tuner=4,4,4,4,4,4,4,4 gbuffers=32 chroma_agc=1
and "bt878" in /etc/modules.

Working beautifully.
Locked