Building a PVR: Status

Setback

It looks like I’ve got a defective Hauppauge PVR-500. I set up the tuner in the PVR-350 and both of the tuners in the PVR-500. Everything looked like it was working fine so I started programming recording schedules. If I tried to use all three tuners at once – record two shows while watching a third – MythTV would hang (mythfrontend would loose connection to mythbackend).

I restarted and tried just switching through the cards (Y key). Every time I hit the second PVR-500 tuner I’d see the same symptoms.

Finally, I deleted all of the capture card settings and configured each of the tuners individually. That seems to confirm that the second tuner in the PVR-500 is failing. The /var/log/messages shows the ivtv drivers initializing the card/tuner successfully, but when MythTV tries to access the stream it times out and fails.

A thorough search of Google reveals that lots of people are successfully using this card with MythTV and/or KnoppMyth so it looks like it’s personal :-(.

Update: Not a defective card, an IRQ conflict. It looks like it’s unresolvable too. I’ve moved the card around (I’ve only got two slots) and mucked with the BIOS settings but I can’t seem to get both tuners to work at the same time.

Likes

I’m liking the ability of taking control of the TV. Using keyword and title searches is pretty cool. I’ve already told the box to record "Charlie Brown’s Christmas" and "A Christmas Carol" two specials I would have missed otherwise.

Dislikes

The noise – The GX240 is pretty quiet as far as PCs go, but it’s still pretty noisy in my quiet living room.

It’s ugly – I wish I had a AV cabinet to hide it in, but we have a pretty minimalist living room.

Observations

The hardware MPEG encoders/decoder do their job well. While recording one show and watching another the CPU is running at about 6% utilization. That’s pretty amazing.

Remaining

DVD playback – I’ve only tried one commercial DVD (The Incredibles if you must know) and it didn’t work. It looks like there is a bunch of tweaking that needs to be done to make that work.

Update: It’s working now. Not a bunch of tweaking, just one step.

Remaining remote button mapping – There are several buttons that are not mapped correctly (or at all) on the Hauppauge remote.

Audio routing – I’ve got to scrounge the correct cables to get the audio from the PVR-350 card routed through the onboard audio card, to unify the TV/DVD audio, and so MythTV can control the volume.

Building a PVR: PVR-350 TV out

The Hauppauge PVR-350 card has a tuner, hardware MPEG-2 encoder, hardware MPEG-2 decoder, and TV out. By using the TV out and taking advantage of the hardware MPEG-2 decoder you can greatly reduce the load on your CPU.

However, X11 in KnoppMyth is not configured to use the TV out on the PVR-350 card by default. Luckily, there is a perl script called pvr.pl that will do this for you. First, su to root and run getpvr.pl and follow the instructions. getpvr.pl will ask you some questions and grab the correct version of pvr.pl for you.

Since there doesn’t seem to be a pvr.pl script specifically for KnoppMyth R5A26 just yet, I selected the R5A22 release instead and that seemed to work for me.

Also, the pvr.pl script will configure X11 to use the S-Video output on the PVR-350. If you need to use the composite output you’ll have to modify the /etc/X11/XF86Config-4 file directly.

Building a PVR: Hauppauge Remote

The PVR-350 card came with a remote control (as seen in an image in this post), model number A415-HPG (found under its batteries). I selected "Hauppauge Remote" (16) and then "Grey Remote" (b) when setting up MythTV.

After that lirc will see the remote through the IR sensor but the buttons are not mapped correctly. Using the lirc config files in the post by Russ in this thread will fix most of the mappings – though there is still some tweaking to be done.

Building a PVR: Setup

The actual install of KnoppMyth went pretty smoothly. I use the Systm Episode 2 video as an overview for the basic configuration. The only thing they didn’t cover was the Myth setup for the PVR-500 card. The trick (as documented here) was to configure each of it’s tuners as a separate video device (ie: /dev/video0, /dev/video1) with both using Tuner 0.

Bulding a PVR: Dremel time!

The PVR-500 card contains dual tuners and that makes it longer than a 1/2 PCI card length. It ends up being just a little more than 1 cm longer than the PCI card cage used in the Dell.

I pulled the cage of the riser card and tried the PVR-500 in the Dell with the case closed. If you squint you can see that the card just fits. It’s a tight squeeze. The power connector for the hard drive is just touching the edge of the card:

DSCF1574.jpg

To get the card to fit, I had to remove a chunk of the metal card cage.

Card cage before:

DSCF1573.jpg

Card cage after:

DSCF1575.jpg

And with the PVR-500 installed:

DSCF1577.jpg