Setting Up TV Card in FreeBSD Box
Sunday, 16. July 2006, 09:58:11
Yeah..finally, after for about two weeks concentrating on setting up my TV Card, it's now time to watch my fave infotainment ;p heheheh..There's so much problem during I set it up, but the the most desperating things is the hardware configuration. First time when I plug the TV Card (V-Stream XPERT TV-PVR 878) on my PC, I found nothing..what happen in there..??? It's totally different what Windows did when I plug it..heheheh..kidding..there's no plug and play in FreeBSD or Linux box..just plug and pray, I mean plug then learn.. 
Ok, the most important thing in FreeBSD is its handbook..so I tried to read how to set up a TV Card. Search..search..read..read..and I got the answer. Very helpfull answer..this is what that handbook said :
To use your card, you will need to load the bktr(4) driver, this can be done by adding the following line to the /boot/loader.conf file like this:
bktr_load="YES"
but..it means that I have to reboot my box before it works? oh no..wasting time..so I tried to type this in my konsole :
# kldload bktr
just like to load my sound device...(you don't need to do this again after reboot) and then 'dmesg' it...taraaaaaaaaaaa...I found this :
# dmesg
--cut here--
bktr0: <BrookTree 878> mem 0xef000000-0xef000fff irq 18 at device 15.0 on pci0
bktr0: Warning - card vendor 0x0a01 (model 0x17de) unknown.
bktr0: MT2032: Companycode=2c2c Part=2c Revision=2c
bktr0: MT2032 not found or unknown type
bktr0: Pinnacle/Miro TV, Temic NTSC tuner.
--cut here--
hummm..what a nice try isn't it? but..let's see this section (line two, four, and the last) what the hell is it? Unknown..??? Warning..??? and the ast one..Pinnacle/Miro TV, Temic NTSC tuner??? wooooeeee..isn't it an error in my kernel? hummm..think..think..then I try to see my pci configuration :
# pciconf -lv
bktr0@pci0:15:0:class=0x040000 card=0x17de0a01 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none0@pci0:15:1:class=0x048000 card=0x17de0a01 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
yes..it was detected..but why it gave me a wrong info about the card..??? again..think..think..o yeah..I try to see the bktr manual (# man bktr) and get this one : --heheheheh..kidding..I won't just paste it here (too much character there) just try it by yourself, ok..??!!
Then I got that I have to do this one to define my card :
# sysctl hw.bt848.card=2 (type of my card) <-- gambling in identify my card is hauppauge one (high end TV Card)
# sysctl hw.bt848.tuner=10 (type of my tuner) <-- the type/model of my tuner (PHILIPS_FR1216_PAL 10 FM radio support)
uhuuuyyyy..that means I have to googling up what is the type of my card..wait..in the end of its manual, my card is supported by bktr(4) as a Pinnacle TV..humm..a light come to my face
but, my tuner is PAL..not NTSC one..and it is Phillips FM tuner ("type 10" in bktr manual). Aaaarrrggghhh..dizzy..!!! Don't care about that..How to test my TV now..???
I used to install a TV player such as FXTV and XAWTV (the first one, because I use ports to install, needs ftp connection to get the distfiles and and the proxy blocking up the ftp access) so I try to use XAWTV (I have copy its installer from my friend).
# tar -xzvf xawtv-version.tar.gz
# cd /xawtv
# ./configure
# gmake install clean
then run it on my luvly KDE..hummm..I still got nothing..what happen again..??? ooooowwww...I forgot to plug the coaxial cable to my TV Card (how can it works without a signal source..???) heheheheh..finally I found a sound like this "zzzzzzzzzzzzzzz........." hey where is the picture? try on by one..oh it should be use "grabdisplay" on its capture mode. Yeaaaaaaaa...got it..I can see a million ants there (javanese usually call it "gambar semut")
the final things I have to do is read the manual of the XAWTV..yeph..set the channel, turn it on PAL mode, and lets watch the infotainment..!!! Nagita Slavinaaaa..I'm coming..!!!
Don't you belive this one..I completed the hardware configuration just in two days, and the next day I have waste my time in XAWTV configuration..because I still can't see anything there..just got "zzzzzzzztttt" sound. I try to ask it on many FreeBSD forums (with no answers), ask it on #freebsdhelp and #freebsd @ EFnet and just got "I don't care..!!!" from many skillfull poeple there..and last..I have banned..!!!
Until I got a message in my dream (this problem make me can't sleep tight) and then realize that dream in my luvly box..it works..!!! Stupid me..I have wrong in entering the channel in "station ID" box not in "channel" box..what the...(I have to pay for my idiots behaviour with two weeks in desperate condition) T_T
I have tried another TV Card and it need different configuration, this is the way (you can choose one of them) to configure my second card that plugged into my system (Winfast TV with PAL Tuner):
1. the basic configuration both same with the first one
2. we can recompile our kernel with some modification (add this in the last line):
# TV Card
device bktr
device iicbus
device iicbb
device smbus
options OVERRIDE_CARD=2 # 'gambling' with assuming it's a hauppauge model
options OVERRIDE_TUNER=10 # Tuner Philips with FM radio support
options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL # to force the card work on PAL modec
- compile my new kernel..let's learn to compile..!!!
- run XAWTV and watch DORA... =)
- I recommend to use the second way. Using the second one no more need to do "sysctl" and set PAL standard on xawtv (see what happen when we "dmesg" it). Here is it :
bktr0: <BrookTree 878> mem 0xef000000-0xef000fff irq 18 at device 15.0 on pci0
bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner.
Have fun with Televison....
--both of my card is using bttv848/878 chipset..I don't have any idea in setting up a card using "saa" chipset..maybe next time I'll try that one--
Yess..next step is configuring the ffmpeg, ffserver, and its x264 and also lame plugin... =)
-EOF-
Ok, the most important thing in FreeBSD is its handbook..so I tried to read how to set up a TV Card. Search..search..read..read..and I got the answer. Very helpfull answer..this is what that handbook said :
To use your card, you will need to load the bktr(4) driver, this can be done by adding the following line to the /boot/loader.conf file like this:
bktr_load="YES"
but..it means that I have to reboot my box before it works? oh no..wasting time..so I tried to type this in my konsole :
# kldload bktr
just like to load my sound device...(you don't need to do this again after reboot) and then 'dmesg' it...taraaaaaaaaaaa...I found this :
# dmesg
--cut here--
bktr0: <BrookTree 878> mem 0xef000000-0xef000fff irq 18 at device 15.0 on pci0
bktr0: Warning - card vendor 0x0a01 (model 0x17de) unknown.
bktr0: MT2032: Companycode=2c2c Part=2c Revision=2c
bktr0: MT2032 not found or unknown type
bktr0: Pinnacle/Miro TV, Temic NTSC tuner.
--cut here--
hummm..what a nice try isn't it? but..let's see this section (line two, four, and the last) what the hell is it? Unknown..??? Warning..??? and the ast one..Pinnacle/Miro TV, Temic NTSC tuner??? wooooeeee..isn't it an error in my kernel? hummm..think..think..then I try to see my pci configuration :
# pciconf -lv
bktr0@pci0:15:0:class=0x040000 card=0x17de0a01 chip=0x036e109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878 MediaStream Controller'
class = multimedia
subclass = video
none0@pci0:15:1:class=0x048000 card=0x17de0a01 chip=0x0878109e rev=0x11 hdr=0x00
vendor = 'Brooktree Corporation'
device = 'Bt878/Fusion878A Video Capture (Audio Section)'
class = multimedia
yes..it was detected..but why it gave me a wrong info about the card..??? again..think..think..o yeah..I try to see the bktr manual (# man bktr) and get this one : --heheheheh..kidding..I won't just paste it here (too much character there) just try it by yourself, ok..??!!
# sysctl hw.bt848.card=2 (type of my card) <-- gambling in identify my card is hauppauge one (high end TV Card)
# sysctl hw.bt848.tuner=10 (type of my tuner) <-- the type/model of my tuner (PHILIPS_FR1216_PAL 10 FM radio support)
uhuuuyyyy..that means I have to googling up what is the type of my card..wait..in the end of its manual, my card is supported by bktr(4) as a Pinnacle TV..humm..a light come to my face
I used to install a TV player such as FXTV and XAWTV (the first one, because I use ports to install, needs ftp connection to get the distfiles and and the proxy blocking up the ftp access) so I try to use XAWTV (I have copy its installer from my friend).
# tar -xzvf xawtv-version.tar.gz
# cd /xawtv
# ./configure
# gmake install clean
then run it on my luvly KDE..hummm..I still got nothing..what happen again..??? ooooowwww...I forgot to plug the coaxial cable to my TV Card (how can it works without a signal source..???) heheheheh..finally I found a sound like this "zzzzzzzzzzzzzzz........." hey where is the picture? try on by one..oh it should be use "grabdisplay" on its capture mode. Yeaaaaaaaa...got it..I can see a million ants there (javanese usually call it "gambar semut")
the final things I have to do is read the manual of the XAWTV..yeph..set the channel, turn it on PAL mode, and lets watch the infotainment..!!! Nagita Slavinaaaa..I'm coming..!!!
Don't you belive this one..I completed the hardware configuration just in two days, and the next day I have waste my time in XAWTV configuration..because I still can't see anything there..just got "zzzzzzzztttt" sound. I try to ask it on many FreeBSD forums (with no answers), ask it on #freebsdhelp and #freebsd @ EFnet and just got "I don't care..!!!" from many skillfull poeple there..and last..I have banned..!!!
Until I got a message in my dream (this problem make me can't sleep tight) and then realize that dream in my luvly box..it works..!!! Stupid me..I have wrong in entering the channel in "station ID" box not in "channel" box..what the...(I have to pay for my idiots behaviour with two weeks in desperate condition) T_T
I have tried another TV Card and it need different configuration, this is the way (you can choose one of them) to configure my second card that plugged into my system (Winfast TV with PAL Tuner):
1. the basic configuration both same with the first one
2. we can recompile our kernel with some modification (add this in the last line):
# TV Card
device bktr
device iicbus
device iicbb
device smbus
options OVERRIDE_CARD=2 # 'gambling' with assuming it's a hauppauge model
options OVERRIDE_TUNER=10 # Tuner Philips with FM radio support
options BROOKTREE_SYSTEM_DEFAULT=BROOKTREE_PAL # to force the card work on PAL modec
- compile my new kernel..let's learn to compile..!!!
- run XAWTV and watch DORA... =)
- I recommend to use the second way. Using the second one no more need to do "sysctl" and set PAL standard on xawtv (see what happen when we "dmesg" it). Here is it :
bktr0: <BrookTree 878> mem 0xef000000-0xef000fff irq 18 at device 15.0 on pci0
bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner.
Have fun with Televison....
--both of my card is using bttv848/878 chipset..I don't have any idea in setting up a card using "saa" chipset..maybe next time I'll try that one--
Yess..next step is configuring the ffmpeg, ffserver, and its x264 and also lame plugin... =)
-EOF-











