[MPlayer-users] mencoder & cron
D Richard Felker III
dalias at aerifal.cx
Mon Apr 28 15:37:52 CEST 2003
On Sun, Apr 27, 2003 at 10:53:16PM -0700, drwhat wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sunday 27 April 2003 08:33 am, Attila Kinali wrote:
> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > On Thu, 24 Apr 2003 23:25:36 -0700
> >
> > drwhat <drwhat at ncplus.net> wrote:
> > > now.. my question.. I have been trying to setup a pvr using mencoder, but
> > > have run into a problem with crontab and mencoder... when ever I try to
> > > setup a scheduled recording via cron... mencoder runs for about 3
> > > seconds.. then dies.. no error messages anywhere :/
> >
> > If mencoder realy doesnt give any msg (which i cant believe) use
> > strace.
> >
>
> well... it(mencoder) doesn't give any msgs about it dieing... I did do an
> strace.. got lots of junk I don't know how to interput, but it did show:
>
> 13350 22:35:02 write(1, "Pos: 0.6s 18f ( 0%) 0fps"..., 69) = -1 EPIPE
> (Broken pipe)
>
> the script that I am using is:
>
> mencoder -tv
> on:driver=v4l:input=1:norm=NTSC:chanlist=us-broadcast:channel=3:width=720:height=480:audiorate=48000:buffersize=44
> - -ovc lavc -oac mp3lame -lameopts cbr:br=128 -lavcopts
> vcodec=mpeg4:vbitrate=2000:v4mv -vop pp=lb -o $1 -endpos $2
>
> my cron job setup for it is:
>
> 35 22 * * * /home/drwhat/bin/vcr "test.avi 00:05:00"
You need to redirect stdout/err to a file or /dev/null; otherwise your
crond/mailer is going to get annoyed after tons of status junk is spit
out, and close the pipe!
Rich
More information about the MPlayer-users
mailing list