Image

Imagebudhaboy wrote in Imagelinux

I'm feeling unspeakably lazy and since I haven't written a bash script in about a year, I thought I'd ask you folks for a hint before I started looking in books.

I got the drivers for a Hauppague TV tuner card working, but I'm way too lazy to finish installing mythTV. Since you can capture mpegs trivially by typing cat /dev/video1 > mycapturedvideo.mpg, I wrote a couple of bash scripts to change the channels, change the channels, view with timeshifting (note: the card I've got isn't supported by mplayer... or the 'other' tv front ends... only mythtv apparently).

Here's my question.

Does anyone have a quick hack in bash to allow me capture a stream for a set period of time?

For example.

I'm currently calling my 'playtv' routine thus:

./playtv 45

What I'd like to do is:

./recordtv channel numberofminutes

This will allow me to set cron jobs to 'tivo', and I can be the lazy-assed geek I've always dreamed of.

There's got to be a quick hack... anyone? beuller?