TV Tuner

This is a stub for using TV Tuners with Gentoo Linux.

(Need entries for for kernel config of analog and digital tuner drivers.)

(Need entries for your preferred method of viewing and recording. I use the console and figured some would be interested how I do this. ;-)

Scan for Channels
To get a list of channels from your digital TV USB or PCI tuning device, use dvbscan.

For the US over-the-air digital TV:

Channel Naming Problems of DVBSCAN
The channel naming scheme for over-the-air digital TV is likely not well thought out in your area. The first field of this file is the lettered name field, of which, you may likely see duplicate identical names and no channel numbers. The remainder of the fields relate to the frequency.

For my area, the channel number reported by dvbscan on stdout is correct, but the channel lettered identification contains identical duplicates or is not well named. I have already emailed the linux-media mailing list on Sep 29 2011 to include a switch for writing the channel number to the file instead of the channel letter identification.

For the meantime, I've found a method of creating duplicate frequency entries, and then replacing the channel letter name field with the channel's number. More duplicated entries can be created to eleviate the need for typing ".1" for the first channel.

Playing Channels
There's a multitude of media players, of which, mplayer seems to be the most popular and lightest on resources.

MPlayer will use the first field of each line within the channels.conf file for playback. If you have duplicate entries like I do and haven't renamed them as I've done so above, you'll need to specify the entire line from the channels.conf to play the second, third, fourth, ... duplicated entries:

Guide Data
There's a console based EPG TV Guide tool that grabs the EPG data and prints to stdout, but cannot be used at the same time on single tuner based cards. (Can't recall the name of the tool.)

Scheduling
You can schedule to records a channel by creating a script to record (mencoder) a certain number of minutes (or hours) using vixie-cron (ie. crontab -e).

Setup a crontab entry, as user, root or within /etc/cron, but I prefer a user cron entry.

# Record Doctor Who #  Sundays @ 23:00 #0 23 * * 0 $HOME/bin/record-ch9.1-60m.sh 0 23 * * Sun $HOME/bin/record-ch9.1-60m.sh   #   Thursdays @ 20:00 #0 20 * * 4 $HOME/bin/record-ch9.1-60m.sh 0 20 * * Thu $HOME/bin/record-ch9.1-60m.sh

Save and exit your console editor of choice. No need to restart cron as changes take effect immediately. (Read 'man 5 crontab' for an explanation of crontab field names.)