Thanks! It's not easy to use mencoder. I copy and use your script, mencoder report error when parsing -tv option. Then I remove "channel=$CH" from -tv option, mencoder report "Unable to open /dev/dsp" and "0 frames successfully processed, 0 frames droped"
It's too hard to use, I'd rather give up. --- On Mon, 11/3/08, Emanoil Kotsev <[EMAIL PROTECTED]> wrote: > From: Emanoil Kotsev <[EMAIL PROTECTED]> > Subject: Re: how to use mencoder to record TV program > To: debian-user@lists.debian.org > Date: Monday, November 3, 2008, 6:34 AM > Serena Cantor wrote: > > > I have etch and install mplayer from > debian-multimedia. > > I can watch TV with command below: > > > > mplayer -tv > driver=v4l:width=640:height=480:outfmt=i420 -vo xv tv:// > > > > Now I want to record TV program, which command can I > use? > > I wish the output is one to two megabytes per minute. > And the output > > should be playable in Windows as well as in Linux. > producer from real can > > do in sarge. > > Install and use the mencoder command almost the same way as > for watching > with mplayer. Consult man mplayer for option for both apps. > > I've been using following script for analog TV. YOu can > modify it or write > your own one > > ------- script start ------ > #!/bin/bash > > CH=$1 > > TV_DRV="driver=v4l2:outfmt=yuy2:width=640:height=480" > TV_NORM="norm=PAL:normid=0:chanlist=europe-west" > TV_DEV="device=/dev/video0:input=0" > > now_date=`date '+%Y%m%d-%H%M%S'` > mencoder -tv $TV_DRV:$TV_NORM:channel=$CH:$TV_DEV \ > -ovc lavc -lavcopts > vcodec=mpeg4:vqmin=2:vbitrate=1200:mbd=1:keyint=300 \ > -oac lavc -lavcopts acodec=mp3:abitrate=128 \ > -vf scale,pp=lb,denoise3d -o ${now_date}.avi tv:// > ------- script end ------ > > regards > > > -- > To UNSUBSCRIBE, email to > [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]