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

Re: how to use mencoder to record TV program

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 ------



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 ------


Reply to: