using bktr(4)

bktr0 at pci1 dev 7 function 0
bktr0: interrupting at irq 9
bktr0: Hauppauge Model 44801 D126
bktr0: Hauppauge WinCast/TV, Philips NTSC tuner.
Brooktree Bt878 Video Capture (Audio Section) (miscellaneous multimedia, revision 0x11) at pci1 dev 7 function 1 not configured

Being used in a NetBSD/i386 box.

It might be good to note that a 1GHz Pentium Ⅲ (such as ["Chapek Ⅸ"]) isn't quite up to the task of real-time encoding.

bsdbktr_tvtune

http://mina.naguib.ca/dist/bsdbktr_tvtune-0.02.tar.gz

Easy to port to NetBSD with a few changes to the include files. Expect this in pkgsrc-wip soon.

mplayer

mplayer tv:// -tv driver=bsdbt848:input=1:norm=ntsc:audioid=0:width=640:height=480

Where width=x and height=y are the dimensions of capture.

mencoder

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \
  -vf scale=720:480 -srate 48000 \
  -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=7000:\
keyint=18:vstrict=0:acodec=ac3:abitrate=192:aspect=4/3 -ofps 30000/1001 \
  -fps 30000/1001 -o movie.mpg \
  -tv driver=bsdbt848:input=0:norm=ntsc:width=720:height=480:fps=30000/1001:\
audioid=0:audiorate=48000:adevice=/dev/sound tv:// -hr-edl-seek -edl bktr.edl

command

0 3 0

bktr.edl

transcode

transcode -i /dev/bktr0 -p /dev/sound0 -x bktr=norm=ntsc:vsource=tuner:asource=tuner,sunau \  -g 320x240 -o video.y4m -y yuv4mpeg,wav -m video.wav -f 29.97 -e 44100 -D 2 -k -c 0-01:00

Pkgsrc needs to be modified to build support for bktr and sunau, sigh.

These uncompressed outputs can be used with various tools:

ffmpeg

A little help here?

bttv notes

That one card we have is card=50 type=2.

BktrNotes (last edited 2008-04-18 00:47:28 by JonathanKollasch)