Building a Linux PVR Part I - MythTV Setup and Installby Kristopher Kubicki on September 3, 2004 12:05 AM EST
- Posted in
Installing the OS and DriversAs a forewarning, this is not a replacement for the excellent MythTV documentation. We have only included our installation for completeness.
SuSE 9.1 has a blindly simple installation, so we won't really go over that here. We used all default options while installing; everything went very smoothly. Although you may run YAST now for the online update, remember to re-run it again later if you install any RPMs. This is particularly true if you install the kernel-source RPM after you have already updated your kernel to a different version. For the remainder of our article, we will use the 2.6.5-7.104-default kernel.
Unfortunately - as we had somewhat expected - SuSE does not have very good support for Hauppauge hardware encoding PVRs. SuSE knows it's there; it just doesn't know what to do with it.
For us, the most painful part of the installation came when installing IvyTv, the open Linux drivers for iTVC15 found on the Hauppauge PVR-250. IvyTV (commonly called "ivtv") has a simple download page, and we opted for the 0.1.9 release found here. Since we will be compiling some kernel modules, we need to install the kernel-source package from YAST or via RPM. YAST solves all the dependency issues for us, so that is what we generally use.
Back in the ivtv driver directory, we go ahead and run make. If the Linux kernel source is installed correctly, within a few seconds, we should have working PVR kernel modules. We can attempt to load the card right now using the commands below:
# modprobe i2c-core
# modprobe i2c-algo-bit
# modprobe tuner type=2
# modprobe msp3400
# modprobe videodev
# modprobe saa7115
# modprobe ivtv
Post Your CommentPlease log in or sign up to comment.
View All Comments
sprockkets - Monday, September 6, 2004 - linkDon't forget with TiVo can only do what it does and nothing else, unlike your computer which can do much more.
Here are some of my thoughts on that program:
Using a LeadTek Win Fast 200XP Deluxe
Needing to setup an MySQL server just to get it to work right is downright gay. And it seems that the tv listings program was only properly installed ironically due to using apt-get by trying Freevo's installation which automatically downloaded all the necessary dependancies from people who automatically package the program for certain distros. Perhaps this has changed but when I tried doing it I got the "well I'm missing one of a few hundred sub program dependacies."
Next, using the composite or s-video in was frustrating, the only way I got it to work was to assign on the one of the config pages that s-video was for the same as TV or something. Then, since it only works by always time shifting, using the program to play games is useless due to the lag it introduces.
Then you can watch the massive files it makes when making video recordings, which them means you must transcode later. I checked off the options to do so but found it never compressed them anyhow. I'm sure it was user error for this and other stuff.
Running LeadTek's own program for recording is so painfully easy compared to using mythtv or freevo, and does it directly to Divx5/mp3 format as well, on the fly and never skips (only works at low res though but an hour gives you a 700MB file) but of course requires windows. Using motv/xawtv is just as good for tunning, but it's recording sucks (not to mention I had to toy with the tuner setting in my /etc/config stuff to get it to tune right).
Then if you can use mplayer to tune to the right frequency, read 15k lines of documentation to word the right command with xvid, then doing the same thing with Leadtek's program is great, since the main bottleneck with Leadtek's program is that since it has to encode and decode at the same time to let you see what you are recording, it prevents you from doing a higher res recording. If it allowed you to not see it while recording then it would be perfect.
Mythtv:Has the Linux theme of being very configurable, works, looks great, free, and can use multiple computers and network them for remote watching. But getting all the deps to install, and running all the backend and crap makes it clumsy and frustrating at times.
Freevo: Works with python and works if you can. Using apt get makes an easy install. Uses mplayer to record so setting it to encode on the fly is great and for small files sizes that don't need transcoding later.
Xawtv: Using in SuSE 9.1 is easy and built in for BTTV cards, but recording sucks.
Windows/Leaktek software: Like anything else Windows, easy. Only flaw is the low res divx encoding (and Microsoft's constant bs tricks into making the mp3 codec on the system work only at 22khz and low bitrates to make it look crappy).
Mythtv prepackaged with Knoppix: Have downloaded it but haven't tried it.
Oh, and for the #1, I know all about TV out issues with Linux and getting it to work. But unlike previous versions of Linux, I found that SuSE 9.1 can easily switch from S-Video to normal video out on my SS40G system, using the built in SiS300 graphics and it's built in video out chip. I set the resolution easily with the Control Center in KDE.
NogginBoink - Sunday, September 5, 2004 - linkSnuffy,
While you're correct on the upfront costs, MythTV has a longterm advantage. You can upgrade your hard drive at will. And, as I suspect we'll read in the second installment, MythTV supports unlimited tuners, AND HDTV tuners.
The HD part is what's motivating me to put together my first-ever Linux box.
KristopherKubicki - Sunday, September 5, 2004 - linktrikster2: We actually do the final testing (Part II) with MCE versus knoppmyth. I just wanted to show the though process in the meantime
KristopherKubicki - Sunday, September 5, 2004 - linkNogginBoink: Yes.
Danj2K - Sunday, September 5, 2004 - linkSomething this article doesn't mention is that users outside the US and Canada can't use the Zap2it option and instead are required to use XMLTV. This is worth mentioning since XMLTV does not appear to automatically tune in channels, it just downloads schedule data for them - which makes sense, because in the UK (for example) the frequency of the various channels is dependent on where in the country you are and which transmitter you are receiving them from. When I tried to build a MythTV box that was as far as I got, since I was unable to find out how to tune it in.
Quink - Sunday, September 5, 2004 - linkYou don't use mythtv to save money. You use it because you like to tinker, like a challenge or anything along those lines.
Secondly making use of valuable tools like irc.freenode.org #mythtv-users cuts down a lot on time.
Also, why would you not use a SFF or mATX system? Who in their right mind would spend $600+ and not make size a focus too.
Plus, from experience, its easier to go with a via mobo, NOT kt400 of any type, preferablly a kt333. ATI 9200 or thereabouts works a lot easier to IMHO. Do that, have some general linux knowledge, and get things done very quickly.
trikster2 - Sunday, September 5, 2004 - link
It's been said 10 times above, but I can't help it, I have to say it again: Shame, shame on you for not using knoppmyth!!!!!
Also your linux box should be $100 cheaper:
The case you picked is available from silverstontek under the name GD98.
It's available at www.gameve.com and sundialmicro for $29
To make all things equal you should have used the Hauppauge WinTV PVR-250MCE in both computers. It is available at www.pcalchemy.com fo r $99.
It's very common for people to throw together HTPC's out of spare parts. It would be cool to compare both machines with low end CPU's, like a 1 gig duron.......
mcdrama - Sunday, September 5, 2004 - linkI have been using KnoppMyth ( www.mysettopbox.tv ) for almost a year now and would never buy a TiVo now. ;)
My box is an AthlonXP 1.6GHz, 768MB PC2700 DDR, 120GB IDE hard drive, Hauppauge PVR-250, Netgear USB 802.11b adapter, all inside a Shuttle XPC box that sits next to my TV. ;) I built my system for $450, after BIOS update, no problems with watching a recording at the same time as recording a TV show.
If you build one of these boxes, just make sure to NOT get a VIA based chipset. The VIA south bridge chipsets have a PCI?/IDE? bug which causes recordings to stop recording when you try to watch a different recording.
Upgrading the BIOS, and upgrading the RAM from 256MB to 768MB seems to have fixed this problem with my Shuttle XPC SK41G.
excaliberpc.com has XPC barebones from $148 up to $300+, check www.pricewatch.com for other parts prices.
Snuffaluffaguss - Sunday, September 5, 2004 - link"Considering the cost of a TiVo, service runs anywhere from $100 to $600 per year depending on what DVR and subscription you buy."
That is pretty false info. An 40 hour tivo is 199 -a 100 dollar rebate, so $99 and the lifetime subscription is $299. So its its only 500 pre rebate, 400 after rebate for LIFE, not year. An 80 hour would be $100 bucks more. Its really not that much cheaper.
NogginBoink - Sunday, September 5, 2004 - linkI'm confused.
The sempron is a 32-bit chip, right?
DFI's website says that the K8M800-MLVF motherboard is an AMD-64 motherboard.
Can you put a 32 bit Sempron in a socket for a 64-bit chip?