The Caboteria / Tech Web / LaborIntensiveTv (revision 22)
Most folks buy their TV's at places like Sears or Best Buy, and there's a lot to be said for plunking your credit card down and driving home with a functional television set. But that's not my style. I've been using a Commodore 64 color monitor hooked up to a VCR since the late 80's and it's worked great. On the other hand, VCR's are going the way of the dodo and a 13" television with weak mono sound isn't much fun so I should probably upgrade.

Given my fondness for doing things the hard way I've decided to hack together a computer-powered television set using parts that I've mostly already got lying around the house.

Bill of materials:

As a proof of concept I think I'll try to get my office computer to work with the TV card. The only problem is that my office computer is a diskless workstation so I've been using pre-built kernels from the LTSP project at http://www.ltsp.org/, and their kernels don't have all of the drivers that I need.

Change of plan: I found a project called MythTV http://www.mythtv.org/ which can run in client-server mode. This will allow me to run the tuner in a server in the basement and the display on a workstation in the den.

I wanted to put the tuner card in my 1U VA Linux server but for some reason the card wasn't seen by the operating system. Maybe the little right-angle riser card was broken? In any case it worked just fine in my Intel 815 mobo which will allow me to get it working but then I'll have to move it to my other server, I guess. That's the price you pay for a 1U form factor.

Building MythTV was somewhat challenging. It has lots of dependencies but they're spelled out on the website. This is one of those times where Debian is a good and bad thing. Good because it's so easy to find and install software, bad because many people expect files to be where Red Hat puts them and Debian often puts them somewhere else.

On the other hand, why build when you can apt-get? http://dijkstra.csh.rit.edu:8088/~mdz/debian/dists/unstable/mythtv/

Here's a command-line recorder: http://www.stack.nl/~brama/vcr/

http://tvtime.sf.net/

Here's a site that has a version of mythtv integrated on a knoppix cdrom: http://mysettopbox.tv/knoppmyth.html

Here's a software PVR aimed for European users (but with some nice design features) http://etv.sourceforge.net/

2003-06-20 - Spent a couple of hours fooling around with the setup. Was able to get the capture part working just fine (had to compile i2c as a module, also v4l stuff which is very old in the kernel). I can run xawtv and capture snapshots and they look fine. Display is FUBAR - I've installed X and DRI and it seems to run OK, but it splashes pixels all over the display. Looks almost as if you took the red, green and blue parts of the pixels and put them side by side instead of combining them into a single pixel. Guess I'll need some help.

In the mean time I figured out that the cable no longer provides basic signals (it did when we moved in) so I have to use a powered antenna to play around, which works poorly since I've got all of the gear in the basement. Comcast wants $45/mo for basic cable which seems amazingly expensive to me. I would get a $20 discount on the cable modem but I don't care since my company pays that.

2003-09-05 - I've switched over to RCN and signed up for cable tv and made a little more progress. The display problem above must be an X Windows configuration problem because I can run xawtv on the server but display it on my diskless workstation and the picture is fine (although not the most crisp since it's going over the network). It's pretty cool to see that X can stream TV over the network.

2003-09-13 - Got sound and video working on the server. No real problems - I used the debian kernel, alsa, and bttv packages.

2003-09-14 - Moved the tuner card to "phoenix", my Compaq DL380 server. Now I can use the PIII desktop as a client and (hopefully) run it diskless. I was using the on-board sound on the desktop so I had to use a SoundBlaster Live! card that I had lying around in the server.

2003-09-16 - Turns out sound was more complicated than I thought. Mythtv always records and then plays the recording back; that's how it can do things like pause and rewind "live" tv. So you need to set up the sound card so it is recording the Line input but it must be muted. The biggest hassle was figuring out what the different features of the SoundBlaster Live card were and how they worked.

Here's a dump of the card with a working config:

All of the pictures had strange jagged lines when things moved. It turns out there's an option to "de-interlace" the video on the client side. It crashes on the PII machine but works fine on the PIII.

XVideo and Xinerama don't play nice so it looks as if I can't watch TV on my dual-head machine. That's sort of OK since it doesn't have quite enough CPU either.

2003-09-19 - the wierdest problem so far. Cable channels 2 and channel 14 (WGBH-2 and WGBX-44) didn't have the right audio - they had the BBC instead. I was seriously stumped until I noticed that channel 6 (WFXT-25) was in Spanish. Googling for "Mythtv SAP" did the trick. Turns out there's some really random bttv module option that fixed it:

options bttv audiomux=0x56664e
In debian you add this to /etc/modutils/arch/i386, in other flavors of GNU/Linux I think it's /etc/modules.conf.

See http://www.gossamer-threads.com/archive/MythTV_C2/Users_F11/bttv_driver_&_Aver_Studio_TV_Tuner_P73141/ for more info.

2003-09-23 - It turns out that video files are big. Who knew? I managed to wedge this server last night by filling it up with The Simpsons videos. Probably a good idea to put the recordings on a partition other than /.

Installed Myth Weather which is quite cool but I doubt that I'll use it.

2003-09-30 - Adding DVD support to Mythtv was pretty close to trivial. At some time between a year ago and now, someone packaged mplayer and ogle for Debian, so they're both an apt-get away. During the installation process you'll be prompted with the name of a script that will find and install CSS so you can watch encrypted DVD's. The Mythttv module is called MythDVD. Playing is trivially easy but I haven't quite figured out how to rip yet. That's OK, I don't have enough disk space anyway.

I had to add a link from /dev/cdrom to /dev/dvd and make sure that your user is in the cdrom group, but other than that it just works. Cool!

2003-10-18 - I bought an infrared receiver from ebay for $10, my second ebay purchase. It plugs into the serial port and has a little box with a red window in front. I spent about an hour trying to get it to work before realizing that the serial port on the machine I was using was disabled by the BIOS. Duh!

2003-11-01 - caveat emptor. turns out that the infrared receiver (a Silitek SM-1000) only works with the remote that's supposed to come with it, despite the seller's claim that it works with any remote. I picked up a set with the receiver and remote for $30.

To play DVD's standalone you can mplayer dvd:// -vo xv. The -vo xv part is important, without that it skips a lot.

The infrared setup is pretty hokey; there's one daemon to read the device, then another program (irxevent) to translate from the remote control events to keystrokes. With my remote, the problem is that the joystick in the center is much too sensitive which makes it very hard to move one channel at a time.

2003-12-14 - in order to not fill up my / partition (which is small) I symlinked /var/cache/mythtv and /var/lib/mythtv to directories under /home/mythtv. I couldn't find any other way to tell mythtv where to put the files. UPDATE /var/lib/mythtv (where mythtv records shows) is now a mount point on the IDE disk. For now it's a 30GB drive but one of these days I'll swap it for something bigger.

2004-02-15 - I haven't been fiddling much, but I've been watching a lot. Things seem to work well, and MythTV is getting better all the time. Now I wonder if I want to get a better encoder card, I hear that they're worth it because they produce higher-quality output.

2004-02-21 - while I was monkeying around inside the machine (to add an IDE controller) I rearranged the order of the cards to see if it would make a difference in the picture quality. The DL380 has horizontal PCI slots and I put the tuner in the topmost slot so that its electronic side was facing the top of the case, and its back was facing the other cards. It makes a noticable difference! Most channels aren't affected but channels 2 and 6 were very noisy and, while still somewhat noisy, are improved.

2004-02-24 - I'd like to be able to record shows and archive them onto cd or dvd. http://www.forevermore.net/mythtv/ has a tool that transcodes mythtv's file format into formats that can be burned onto disk. Need to try it out.

2004-02-25 - I tried running nuvexport (see above) and it seemed to work OK, but it takes a long time to run. An hour-long show takes 6 hours to transcode to SVCD-quality mpeg, and ends up as an 850mb file. Transcoding to VCD takes the same time but results in a 644MB file so it looks as if it will fit on a CD. Then vcdimager turns it into something that cdrdao can write onto the disk. Hardly user-friendly.

 $ nuvexport (runs interactively)
 $ vcdimager practice1-vcd.mpg
 $ cdrdao write --device 0,0,0 videocd.cue
Our standalone DVD player doesn't seem to like the CD-R media, but it plays in mplayer just fine.

Here's a hint on how to get nuvexport to use the mythtv commercial cutlist when you export: http://www.gossamer-threads.com/archive/MythTV_C2/Users_F11/Nuvexport_and_cutlist_P101885/

Topic attachments
I Attachment Action Size Date Who Comment
Texttxt mythtv-mixer.txt manage 10.2 K 20 Sep 2003 - 23:18 TobyCabot soundblaster live mixer configuration
Edit | Attach | Print version | History: r51 | r24 < r23 < r22 < r21 | Backlinks | Raw View | Raw edit | More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback