Using a Hauppauge PVR 150/250/350/500 TV Tuner card in Ubuntu/Linux

Posted by wolfen69 on Apr 19, 2010 9:20 PM EDT
The Linux Curmudgeon
Mail this story
Print this story

Getting traditional TV to work in linux can be an exercise in frustration at times. For those with a Hauppauge PVR 150/250/350/500, you are in luck. The following tutorial will get you up and going in no time. It Is aimed at ubuntu users, but if you are a bit resourceful, you will be able to get it to work on the distro of your choice.

Getting traditional TV to work in linux can be an exercise in frustration at times. For those with a Hauppauge PVR 150/250/350/500, you are in luck. The following tutorial will get you up and going in no time. It Is aimed at ubuntu users, but if you are a bit resourceful, you will be able to get it to work on the distro of your choice.

Do: sudo apt-get install ivtv-utils vlc

Open VLC player

Media -> Open Capture Device -> PVR (from pull down menu) -> Play.

Then you can do (in terminal)

ivtv-tune -c25 (25 is channel number)

Which changes the channel. (this is for people that have cable coming into their computer directly, and NOT coming from the cable box)

If your signal is coming from a cable or satellite box, do ivtv-tune -c3 and change the channel on the box.

ivtv-tune -h

To see the options which control the card.

For a cool desktop tv remote,(so you dont have to use terminal to change channels, or to start tv) go to: CSMonkey TV Remote Highly recommended. (only works on ubuntu)

Remember to have Java installed first. Then you can right click>properties> open with> java. After that, just click normally to launch.

I might add, if your distribution does have the ivtv firmware in the kernel, (all newer kernels do) just get the firmware here and extract the file and put it in /lib/firmware. Then do: (as root)

rmmod ivtv

then

modprobe ivtv

To record tv while you're watching, in VLC, go to Views and check off advanced contols. You will then see a record button in vlc's interface. All recordings will be saved to your home folder.

To schedule a tv for future viewing, we are going to use cron for the job.

We need to make sure you are a member of the crontab group first. Go to System>Administration>Users and Groups and unlock the window by clicking the keys button, or the "unlock" button. Enter password. Then click on Manage Groups button. Scroll down until you see the crontab entry. Highlight it, and then click on Properties. Check your name if it is not already. Log out and then back in.

First, select which channel you want to record by: (we will use channel 25 as an example)

ivtv-tune -c25

Then, in the same terminal window, do:

crontab -e

Delete everything you see in there.

Then as an example of a recording you want done on Dec. 31 4:00 PM to 5:30 PM, you would enter in crontab: (see below for an explanation of how cron works)

# start recording 00 16 31 12 05 cat /dev/video0 > /home/user_name/name_of_show.mpg # stop recording 30 17 31 12 05 killall cat

To save the job, do Ctrl-X then Y then Enter.

Remember to put your user name in after /home. You can also save the file wherever you want, I just used /home as an example. You can name the show whatever you want, just make sure you have .mpg after the name.

For those not familiar with cron, in the line 00 16 31 12 05 cat /dev/video0 > /home/user_name/name_of_show.mpg

00 represents the minutes of the hour (4:00), 16 is the hour (4:00 a 24 hour clock is used, 12 midnight would be 00, 1 AM would be 01, etc.), 31 is the date, 12 is the month, 05 is the day of the week -Thurs. in this case. (Sunday is 00, Monday is 01, etc)

You may also find the following link useful. Thanks to MeKino for this. http://ubuntuforums.org/showthread.php?t=758845

Hopefully I have helped some people get their all important TV fix.

Full Story

  Nav
» Read more about: Groups: Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.