Building a Linux PVR Part I - MythTV Setup and Install
by Kristopher Kubicki on September 3, 2004 12:05 AM EST- Posted in
- Linux
Introduction
Once in a while, we get so excited about writing an article that we completely lose focus and end up with a 10,000 word epic instead of a concise little review. This two-part Linux TiVo article ended up being one of those articles. Of course, we aren't really building a Linux TiVo, but rather something as close as we can come, with some rudimentary hardware and free software - such as Linux and MythTV.Considering the cost of a TiVo, service runs anywhere from $100 to $600 per year depending on what DVR and subscription you buy. Building a moderate MythTV machine for around $500 actually saves us money in the long run. Building our own device also allows us to upgrade hardware easily and reconfigure the software at our will.
Ultimately, we would like our machine comparable to a TiVo device; but in actuality, we really would like it to perform as well or better than a machine based on the same hardware running the newest Windows Media Center (Anand wrote a small MCE introduction 18 months ago). Recently, we obtained a new whitebox Media Center device with similar hardware found in this Part I of our Linux TiVo experiment. Our goal for Part I of the article is to get Linux, MythTV and all the trimmings working successfully so that we can square both machines off against each other; and then compare encoding, image quality and functionality. We are publishing Part I: The Installation today, but expect Part II: The Comparison in just a few days.
If all goes well, we will probably follow up with a Part III some weeks later, dissecting Freevo, GeexBox, etc.
38 Comments
View All Comments
sprockkets - Monday, September 6, 2004 - link
Don'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.
Bottom line:
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 - link
Snuffy,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 - link
trikster2: We actually do the final testing (Part II) with MCE versus knoppmyth. I just wanted to show the though process in the meantimeKristopher
KristopherKubicki - Sunday, September 5, 2004 - link
NogginBoink: Yes.Kristopher
Danj2K - Sunday, September 5, 2004 - link
Something 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 - link
You 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
http://www.sundialmicro.com/cgi-bin/sundial/gd98le...
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 - link
I 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 - link
I'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?