[mythtv-users] Happauge HVR-1800 . . . latest opinions?
David Rees
drees76 at gmail.com
Tue Mar 3 02:31:38 UTC 2009
On Mon, Mar 2, 2009 at 5:58 PM, Brian Steele <steele.brian at gmail.com> wrote:
> On Wed, Feb 25, 2009 at 4:28 PM, George Nassas <gnassas at mac.com> wrote:
>> BTW, how did you do the capture? Nothing I tried seem to work for me.
>
> From a bash script:
>
> cat /dev/video0 > /tmp/blah.mpg &
> _pid=$!
> sleep 5
> kill -TERM $_pid
> rm -f /tmp/blah.mpg
Slightly simpler version for you which eliminates a bit of IO since
you're just deleting the tmp file anyway. And in theory, writing to
/tmp without using mktemp is a security hole.
cat /dev/video0 > /dev/null &
_pid=$!
sleep 5
kill -TERM $_pid
-Dave
More information about the mythtv-users
mailing list