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. ;-)

Console or Terminal Method
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.

Console or Terminal Method
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:

Console or Terminal Method
There's a console based EPG TV Guide tool that grabs the EPG data and prints to stdout. When I tried it once or twice, I believe I used either dvbstream or dvbstreamer.

Q. How do I update the EPG data ...

The catch is, you need to have this run in the background while you are not recording as it will use the only tuner on your card for getting the broadcasted EPG data. When a recording starts, the recording script needs to check for this dvbstreamer and kill it before the recording starts, else the recording will fail to initiate as the only tuner is being used. The data being retrieved is simple ASCII text and can be likely easily parsed by even a script. I just haven't had the time to write such a script or console program, and the EPG data broadcasted here is not consistent with more accurate web based options such as TitanTV.

Console or Terminal Method
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.)