<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hey,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have the following scripts that I am trying to use
to record a program on my PC. This same script worked fine for streamer, but
mencoder has better picture quality and compression with different codecs. The
scripts are as follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>/root/bop/record</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#!/bin/sh</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>v4lctl setstation "MNET"</FONT></DIV>
<DIV><FONT face=Arial size=2>$HOME/bop/record $HOME/bop/bop`date
"+%m-%d"`.avi</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>/root/bop/record</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#!/bin/sh</FONT></DIV>
<DIV><FONT face=Arial size=2>if [ $1 ]; then</FONT></DIV>
<DIV><FONT face=Arial
size=2> mencoder -tv
on:driver=v4l:device=/dev/video0:width=384:height=288:adevice=/dev/dsp:forceaudio:forcechan=2
-o $1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -oac mp3lame -lameopts
cbr:br=32 -endpos 01:05:00</FONT></DIV>
<DIV><FONT face=Arial size=2>else</FONT></DIV>
<DIV><FONT face=Arial size=2> echo
"Need filename to record to"</FONT></DIV>
<DIV><FONT face=Arial size=2>fi </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><STRONG>/var/spool/cron/root</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>00 17 4 * * $HOME/bop/record_bop</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>It will work in the following
situations:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>./record_bop</FONT></DIV>
<DIV><FONT face=Arial size=2>sh $HOME/bop/record_bop</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>but when run by cron, channel is set, ca tell in
/var/log/messages, sound by default comes through the speakers, but no file is
written.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Anybody got an idea?</FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>