Included with the latest release of Misterhouse is a PVR script I wrote. Misterhouse is an open source home automation program written entirely in Perl. It is a good platform for developing a PVR because it supports a variety of user input methods including web, voice, IR, X10, e-mail, WAP, and others. v4l_pvr.pl 06/30/2002 Created by David Norwood (dnorwood2@xxxxxxxxx) This script adds Personal Video Recorder (PVR) functionality to Misterhouse systems running Linux. Features: - Automatically records shows that match a list of keywords - Records shows selected from the TV listings - Uses FFMPEGrec for recording, MPlayer for playback, and Xawtv for live TV - Decent video quality on 400 MHz machine, 500MB/hour filesize - Basic web interface for specifying shows to record, watching recordings and live TV Requirements: - misterhouse: http://www.misterhouse.net - A TV tuner card supported by video4linux - Optionally, a video card with TVOUT capability - A kernel that supports v4l1 or v4l2 and a driver for your card (probably bttv) RedHat 7.2 was sufficient for me, but you can get the latest here: http://bytesex.org/bttv/ - xawtv for watching live TV and changing channels: http://bytesex.org/xawtv/ - avifile: http://avifile.sourceforge.net/ - ffmpeg: http://ffmpeg.sourceforge.net/ - nvrec: http://nvrec.sourceforge.net/ - mplayer for video playback: http://www.mplayerhq.hu/homepage/ - a2x for controlling X windows applications: http://www.cl.cam.ac.uk/a2x-voice/a2x-faq.html Setup: Install and configure all the above software. Copy the following scripts into your misterhouse code directory. mh/code/public/v4l_pvr.pl mh/code/bruce/internet_logon.pl mh/code/bruce/tv_info.pl Delete tv_grid.pl from your code directory if you have it. Set the following parameters in your private mh.ini file. pvr_video_dir=/bigdisk/videos # optional, defaults to "$config_parms{data_dir}/videos" html_select_length=9999 # causes web interface to list commands separately zip_code=91360 # go to http://tv.zap2it.com and enter your zip code... tv_provider=296974 # select your provider, click View Listings, code will be in URL tv_hours=0,2,4,6,8,10,12,14,16,18,20,22 # ensures show database will be complete Restart misterhouse, browse to http://localhost:8080/mh4, and click on PVR. Problems: - videos don't play directly on Windows - videos don't contain index according to mplayer - zap2it show data only has half hour resolution