📄 tvcard.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="generator" content="HTML Tidy, see www.w3.org" /><title>Setting Up TV Cards</title><meta name="GENERATOR" content="Modular DocBook HTML Stylesheet Version 1.7" /><link rel="HOME" title="FreeBSD Handbook" href="index.html" /><link rel="UP" title="Multimedia" href="multimedia.html" /><link rel="PREVIOUS" title="Video Playback" href="video-playback.html" /><link rel="NEXT" title="Image Scanners" href="scanners.html" /><link rel="STYLESHEET" type="text/css" href="docbook.css" /></head><body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#840084"alink="#0000FF"><div class="NAVHEADER"><table summary="Header navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><th colspan="3" align="center">FreeBSD Handbook</th></tr><tr><td width="10%" align="left" valign="bottom"><a href="video-playback.html"accesskey="P">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 7 Multimedia</td><td width="10%" align="right" valign="bottom"><a href="scanners.html"accesskey="N">Next</a></td></tr></table><hr align="LEFT" width="100%" /></div><div class="SECT1"><h1 class="SECT1"><a id="TVCARD" name="TVCARD">7.5 Setting Up TV Cards</a></h1><i class="AUTHORGROUP"><span class="CONTRIB">Original contribution by</span> JosefEl-Rayes.</i> <i class="AUTHORGROUP"><span class="CONTRIB">Enhanced and adapted by</span>Marc Fonvieille.</i> <div class="SECT2"><h2 class="SECT2"><a id="AEN8994" name="AEN8994">7.5.1 Introduction</a></h2><p>TV cards allow you to watch broadcast or cable TV on your computer. Most of themaccept composite video via an RCA or S-video input and some of these cards come with a FMradio tuner.</p><p>FreeBSD provides support for PCI-based TV cards using a Brooktree Bt848/849/878/879 ora Conexant CN-878/Fusion 878a Video Capture Chip with the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=bktr&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">bktr</span>(4)</span></a> driver. Youmust also ensure the board comes with a supported tuner, consult the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=bktr&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">bktr</span>(4)</span></a> manual pagefor a list of supported tuners.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN9004" name="AEN9004">7.5.2 Adding the Driver</a></h2><p>To use your card, you will need to load the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=bktr&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">bktr</span>(4)</span></a> driver, thiscan be done by adding the following line to the <ttclass="FILENAME">/boot/loader.conf</tt> file like this:</p><pre class="PROGRAMLISTING">bktr_load="YES"</pre><p>Alternatively, you may statically compile the support for the TV card in your kernel,in that case add the following lines to your kernel configuration:</p><pre class="PROGRAMLISTING">device bktrdevice iicbusdevice iicbbdevice smbus</pre><p>These additional device drivers are necessary because of the card components beinginterconnected via an I2C bus. Then build and install a new kernel.</p><p>Once the support was added to your system, you have to reboot your machine. During theboot process, your TV card should show up, like this:</p><pre class="PROGRAMLISTING">bktr0: <BrookTree 848A> mem 0xd7000000-0xd7000fff irq 10 at device 10.0 on pci0iicbb0: <I2C bit-banging driver> on bti2c0iicbus0: <Philips I2C bus> on iicbb0 master-onlyiicbus1: <Philips I2C bus> on iicbb0 master-onlysmbus0: <System Management Bus> on bti2c0bktr0: Pinnacle/Miro TV, Philips SECAM tuner.</pre><p>Of course these messages can differ according to your hardware. However you shouldcheck if the tuner is correctly detected; it is still possible to override some of thedetected parameters with <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=sysctl&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">sysctl</span>(8)</span></a> MIBs andkernel configuration file options. For example, if you want to force the tuner to aPhilips SECAM tuner, you should add the following line to your kernel configurationfile:</p><pre class="PROGRAMLISTING">options OVERRIDE_TUNER=6</pre><p>or you can directly use <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=sysctl&sektion=8"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">sysctl</span>(8)</span></a>:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbd class="USERINPUT">sysctl hw.bt848.tuner=6</kbd></pre><p>See the <a href="http://www.FreeBSD.org/cgi/man.cgi?query=bktr&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">bktr</span>(4)</span></a> manual pageand the <tt class="FILENAME">/usr/src/sys/conf/NOTES</tt> file for more details on theavailable options. (If you are under FreeBSD 4.X, <ttclass="FILENAME">/usr/src/sys/conf/NOTES</tt> is replaced with <ttclass="FILENAME">/usr/src/sys/i386/conf/LINT</tt>.)</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN9036" name="AEN9036">7.5.3 Useful Applications</a></h2><p>To use your TV card you need to install one of the following applications:</p><ul><li><p><a href="http://www.FreeBSD.org/cgi/url.cgi?ports/multimedia/fxtv/pkg-descr"><ttclass="FILENAME">multimedia/fxtv</tt></a> provides TV-in-a-window and image/audio/videocapture capabilities.</p></li><li><p><a href="http://www.FreeBSD.org/cgi/url.cgi?ports/multimedia/xawtv/pkg-descr"><ttclass="FILENAME">multimedia/xawtv</tt></a> is also a TV application, with the samefeatures as <b class="APPLICATION">fxtv</b>.</p></li><li><p><a href="http://www.FreeBSD.org/cgi/url.cgi?ports/misc/alevt/pkg-descr"><ttclass="FILENAME">misc/alevt</tt></a> decodes and displays Videotext/Teletext.</p></li><li><p><a href="http://www.FreeBSD.org/cgi/url.cgi?ports/audio/xmradio/pkg-descr"><ttclass="FILENAME">audio/xmradio</tt></a>, an application to use the FM radio tuner comingwith some TV cards.</p></li><li><p><a href="http://www.FreeBSD.org/cgi/url.cgi?ports/audio/wmtune/pkg-descr"><ttclass="FILENAME">audio/wmtune</tt></a>, a handy desktop application for radio tuners.</p></li></ul><p>More applications are available in the FreeBSD Ports Collection.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN9057" name="AEN9057">7.5.4 Troubleshooting</a></h2><p>If you encounter any problem with your TV card, you should check at first if the videocapture chip and the tuner are really supported by the <ahref="http://www.FreeBSD.org/cgi/man.cgi?query=bktr&sektion=4"><spanclass="CITEREFENTRY"><span class="REFENTRYTITLE">bktr</span>(4)</span></a> driver and ifyou used the right configuration options. For more support and various questions aboutyour TV card you may want to contact and use the archives of the <ahref="http://lists.FreeBSD.org/mailman/listinfo/freebsd-multimedia"target="_top">freebsd-multimedia</a> mailing list.</p></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="video-playback.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="scanners.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Video Playback</td><td width="34%" align="center" valign="top"><a href="multimedia.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Image Scanners</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -