Thanks for all the help. I will try your program out as soon as I fix the issues I am having with my video capture card. I moved the PVR-150 to my Xubuntu machine, but it does not seem to recognize it; I do not have a '/dev/video0' entry.
-Tyson On 3/4/07, Rob Ludwick <[EMAIL PROTECTED]> wrote: > Tyson, > > For fun, I wrote the following program. > > Compile it using: > > gcc timed_copy.c -o timed_copy > > Use it like this: > > timed_copy <input device> <output file> <time in seconds> > > You can try it out with /dev/urandom like this: > > timed_copy /dev/urandom ~/output.dat 5 > > That gets you 5 seconds of pseudo random numbers. Whee! > > When you try this out on your PVR-150 you may want to increase > BUFFER_SIZE. > > Also to make this more reliable, I would have put the write call in one > thread and the read call in another thread, increased the buffer size to > 1 MB or more, and passed buffers between the two threads. > > In that way most of the program's time would be spent blocked on the > read() and write() reducing the chance of a buffer overrun from the > video device. > > Enjoy. > > --R > > > On Wed, 2007-02-28 at 23:31 -0500, Rob Ludwick wrote: > > Tyson, > > > > There looks to be some useful information here: > > > > http://www.cs.duke.edu/~reynolds/pvr150/ > > > > It's not completely straightforward and it looks a bit on the old side, > > but the information is mostly there.. > > > > Apparently at ivtvdriver.org there's a command to tune your card to > > a channel called ivtv-tune. There's another called ivtvctl. They look > > useful > > > > Also apparently you just need to know which /dev device and pull the > > video off of it like this: > > > > cat /dev/video0 > /path/to/file.mpg > > > > It's my understanding that the output of ivtv driver is an mpeg > > stream. > > > > --Rob > > > > > > On Wed, 2007-02-28 at 20:48 -0500, Tyson Maxwell wrote: > > > All, > > > > > > I have a Hauppauge PVR-150 and I am looking for a simple framegrabber. > > > Eventually I may try and build a MythTV box, but for now I looking > > > for something simple and command-line based. Basically I just want to > > > issue a command to record a specific channel for a given duration. If > > > anyone knows of a good tool that will do this, please let me know. > > > > > > Thanks, > > > -Tyson > > > > > > _______________________________________________ > > > Fwlug mailing list > > > [email protected] > > > http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org > > > > > > _______________________________________________ > > Fwlug mailing list > > [email protected] > > http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org > > _______________________________________________ > Fwlug mailing list > [email protected] > http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org > > > _______________________________________________ Fwlug mailing list [email protected] http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
