rendered paste bodyfor encoding into mpeg2 using the hauppauge pvr250mce i use the following script:
#!/bin/bash
#script name:pvr
#description:just a little script to do video capturing using mplayer/mencoder
#written by:William Hinds, aka virsys, aka drwhat
#January 1, 2005
cd /home/drwhat/video/
killall -9 cat 2&>1&>/dev/null
killall -9 sleep
sudo /usr/local/bin/ivtvctl -p 5 --set-ctrl=volume=64512 --set-codec-params=bitrate=3000000,bitrate_peak=3500000,stream_type=10,dnr_mode=3,dnr_spatial=0,dnr_temporal=0,aspect=2,audio=0x00a9 --set-format=width=720,height=480
# cat /dev/video0 > $1-`/bin/date +%R-%m%d%Y` &
# cat /dev/video0 > $1-`/bin/date +%m%d%Y-%R`.mpg &
# cat /dev/video0 > /home/drwhat/video/burn/$1 &
# cat /dev/video0 |mencoder -aspect 4:3 -of avi -oac lavc -lavcopts acodec=ac3:abitrate=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000:vhq -vf scale=720:480 -ofps 29.97 -o /home/drwhat/video/$1-`/bin/date +%m%d%Y-%R.avi` - 2&>1&>/dev/null &
cat /dev/video0 > /home/drwhat/video/$1-`/bin/date +%m%d%Y-%R` &
sleep $2 && killall -9 cat
to record into avi using the hauppauge wintv-go bttv card i use the following:
#!/bin/sh
#script name:vcr
#description:just a little script to do video capturing using mplayer/mencoder in defualt low-quality
#OS:Manrake-linux, v10.2rc1
#written by:William Hinds, aka virsys, aka drwhat
#march 18, 2005
cd /home/drwhat/video
aumix -l 0 -x 75 -v 75 -w 75 -m 0 -l R -m q2&>1&>~/tmp/aumix.log
# kill `ps ax | grep 'mencoder' | awk '{print $1}'`
#
# encode ac3/divx5
# #trell:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4
#
mencoder tv://$3 -tv driver=v4l2:device=/dev/video1:input=0:norm=NTSC:chanlist=us-cable:width=720:height=480:audiorate=48000:alsa:amode=0:adevice=hw.0 -aspect 4:3 -of avi -oac lavc -lavcopts acodec=ac3:abitrate=128 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800 -ofps 29.97 -o /home/drwhat/video/$1-`/bin/date +%m%d%Y-%R.divx` -endpos $2 -info name="$1" 2&>1&>/dev/null
#
aumix v -l 0 -x 0 -w 100 2&>1&>~/tmp/aumix.log
#mplayer tv://3 -tv driver=v4l2:device=/dev/video1:input=0:norm=NTSC:chanlist=us-cable:width=640:height=480:audiorate=48000:alsa:amode=0:adevice=hw.0 -aspect 4:3