intertwingly

It’s just data

Stalking the wild PVR...


As with many journeys, most of the interesting things happen in the tangents and detours taken.

My goal at the moment is to get MythTV running... as the primary author of this application runs Debian unstable, following a similar path seemed to wise.

Unstable appears to be a name explicitly designed to scare away the newbies.  Despite this name, getting from installation to a working client was pretty easy.  Download CD image.  Burn CD ROM.  Boot from CD ROM.  If you can partition a hard drive, then you can install Debian unstable.

The client has come a long way since I last checked.  Mozilla presents web pages with readable fonts now.  CUPS and Samba were simple to set up with webmin.  Enough so, that I've made a provisional decision to make this my default OS on my primary desktop machine.  What makes it really nice is that everything is designed to be scriptable.  You can set things with the Control Center in KDE or Gnome, or with a web interface, or via the command lines and text editors. 

Once the OS is installed, installing the MythTV application is a snap.  Update sources.list, and apt-get install mythtv and you are done.  Note: if this is a fresh install, you probably should heed the recommendation to put a root password on your mysql installation.  This converts the one step process into a three step process:

apt-get install mysql-server
mysqladmin -u root password 'passwordyouwant'
apt-get install mythtv

That's the good news.  But we aren't done yet.  There is a MythTV setup that looks to be pretty simple and an install of a device driver that is considerably less so.

There appears to be two basic classes of video capture devices.  The first set, and the cheaper of the two, are frame grabbers.  This means that the task of encoding this is left to your computer.  This is fine if you have a beefy computer that you can dedicate to this task.  Video capture is a realtime operation, if the CPU is busy, the video stream won't wait...

Apparently, debugged device drivers exist for this.

Hardware MPEG-2 encoders are an alternative.  Seems to be the wise choice for the long term, but for the short term, the problem is that the device drivers are under active development, and aren't prepackaged.  Instead, there are build instructions for these things.  Lots of them.  Many of which provide inconsistent or incompatible advice.  All in various degrees of being out of date, or for a given hardware/OS configuration that may be different than yours, or based on a different set of preferences than you mike like.

For example, I started with MythTV on a dedicated Eden/PVR350 Mythbox Walkthrough, which was last updated on the 30th of November 2003.  In the little over two months since that was published, the Apt source for the Perl modules changed to

deb http://www.pcxperience.org/apt/debian unstable/

The instructions also mention ptune-ui but don't mention apt-get install perl-tk.  One can either use ptune without the ui, or one can install perl-tk.  No biggie.

More significantly are the ways in which I deviated from the instructions.  The instructions start with building your own kernel and replacing the kernel image.  I'd much rather:

apt-get --yes install kernel-headers-`uname -r`

I don't see the need to install ALSA as my sound is already working.  When the instructions come to the point where it describes getting a "decent window manager and display manager", this clearly comes down to personal taste.  I haven't yet tried to install lirc (the infrared remote daemon), and I already said that I installed MythTV using apt-get instead of building it from CVS.

The problem is what to do when things don't work.  Particularly when you see messages like Failed to bind port 6543, and the best suggestion you can find online is this.  Which, amusingly enough, worked for me... once.

This best antidote to these problems is to have access to somebody who has been through this before.  In my case, I've gotten as far as I have due to the patient advice of John Beimler.

In the process, I learned some things, and made some mistakes.  I have some new things to try the next time around.  I've grown reaquanted with old friends like Samba, and discovered a new friend with apt-move.  Network install is great, but installing from your hard drive is even better.  I can now do a complete reinstall, with the users, network, printer, and display configured the way I like it in about 10 to 15 minutes.

The inevitable result of this is that I will ultimately end up with a set of instructions that work for me, I will post them and link to them from the wiki, and in two months they will be out of date.

Hopefully because more packages are directly installable.