Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash trick of the day



On Mar 25, 2007, at 5:12 PM, David Kramer wrote:

> Along with the MythTV thing now working, I have a need to record  
> certain things from the capture card outside of MythTV (because you  
> need to navigate menus to get to the On Demand stuff, etc).  I also  
> record stuff from the line in connected to my Sirius radio.  What I  
> needed was a way to run a command for a specific length of time,  
> then kill it.  This is what I came up with:

I've created my own similar scripts to do the same thing - mostly out  
of frustration with MythTV and the desire for something simple and  
reliable.

> I can use this in conjunction with "dd if=/dev/video0  
> of=mycaptured.mpeg" to capture video for a given time, for instance.

Any advantage to using dd over cat?  I simply do "cat /dev/video >  
file.mpg"




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org