Sophie

Sophie

distrib > Mageia > 1 > i586 > by-pkgid > d358e2c90ba2fd90e64d20630dc870f4 > files > 243

mplayer-doc-1.0-1.rc4.0.r32713.5.2.mga1.i586.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>3.14. Radio</title><link rel="stylesheet" type="text/css" href="default.css"><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html" title="MPlayer - The Movie Player"><link rel="up" href="usage.html" title="Chapter 3. Usage"><link rel="prev" href="tv-teletext.html" title="3.13. Teletext"><link rel="next" href="video.html" title="Chapter 4. Video output devices"><link rel="preface" href="howtoread.html" title="How to read this documentation"><link rel="chapter" href="intro.html" title="Chapter 1. Introduction"><link rel="chapter" href="install.html" title="Chapter 2. Installation"><link rel="chapter" href="usage.html" title="Chapter 3. Usage"><link rel="chapter" href="video.html" title="Chapter 4. Video output devices"><link rel="chapter" href="ports.html" title="Chapter 5. Ports"><link rel="chapter" href="mencoder.html" title="Chapter 6. Basic usage of MEncoder"><link rel="chapter" href="encoding-guide.html" title="Chapter 7. Encoding with MEncoder"><link rel="chapter" href="faq.html" title="Chapter 8. Frequently Asked Questions"><link rel="appendix" href="bugreports.html" title="Appendix A. How to report bugs"><link rel="appendix" href="skin.html" title="Appendix B. MPlayer skin format"><link rel="subsection" href="radio.html#radio-tips" title="3.14.1. Usage tips"><link rel="subsection" href="radio.html#radio-examples" title="3.14.2. Examples"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">3.14. Radio</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="tv-teletext.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Usage</th><td width="20%" align="right"> <a accesskey="n" href="video.html">Next</a></td></tr></table><hr></div><div class="sect1" title="3.14. Radio"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="radio"></a>3.14. Radio</h2></div></div></div><p>
This section is about how to enable listening to radio from
a V4L-compatible radio tuner. See the man page for a
description of radio options and keyboard controls.
</p><div class="sect2" title="3.14.1. Usage tips"><div class="titlepage"><div><div><h3 class="title"><a name="radio-tips"></a>3.14.1. Usage tips</h3></div></div></div><p>
The full listing of the options is available in the manual page.
Here are just a few tips:

</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>
  Make sure your tuner works with another radio software in Linux, for
  example <span class="application">XawTV</span>.
</p></li><li class="listitem"><p>
  Use the <tt class="option">channels</tt> option. An example:
  </p><pre class="screen">-radio channels=104.4-Sibir,103.9-Maximum</pre><p>
  Explanation: With this option, only the 104.4 and 103.9 radio stations
  will be usable. There will be a nice OSD text upon channel switching,
  displaying the channel's name. Spaces in the channel name must be
  replaced by the "_" character.
</p></li><li class="listitem"><p>
  There are several ways of capturing audio. You can grab the sound either using
  your sound card via an external cable connection between video card and
  line-in, or using the built-in ADC in the saa7134 chip. In the latter case,
  you have to load the <code class="systemitem">saa7134-alsa</code> or
  <code class="systemitem">saa7134-oss</code> driver.
</p></li><li class="listitem"><p>
  <span class="application">MEncoder</span> cannot be used for audio capture,
  because it requires a video stream to work. So your can either use
  <span class="application">arecord</span> from ALSA project or
  use <tt class="option">-ao pcm:file=file.wav</tt>. In the latter case you
  will not hear any sound (unless you are using a line-in cable and
  have switched line-in mute off).
</p></li></ul></div><p>
</p></div><div class="sect2" title="3.14.2. Examples"><div class="titlepage"><div><div><h3 class="title"><a name="radio-examples"></a>3.14.2. Examples</h3></div></div></div><div class="informalexample"><p>
Input from standard V4L (using line-in cable, capture switched off):
</p><pre class="screen">mplayer radio://104.4</pre><p>
</p></div><div class="informalexample"><p>
Input from standard V4L (using line-in cable, capture switched off,
V4Lv1 interface):
</p><pre class="screen">mplayer -radio driver=v4l radio://104.4</pre><p>
</p></div><div class="informalexample"><p>
Playing second channel from channel list:
</p><pre class="screen">mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</pre><p>
</p></div><div class="informalexample"><p>
Passing sound over the PCI bus from the radio card's internal ADC.
In this example the tuner is used as a second sound card
(ALSA device hw:1,0). For saa7134-based cards either the
<code class="systemitem">saa7134-alsa</code> or <code class="systemitem">saa7134-oss</code>
module must be loaded.
</p><pre class="screen">
mplayer -rawaudio rate=32000 radio://2/capture \
    -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
</pre><p>
</p><div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
When using ALSA device names colons must be replaced
by equal signs, commas by periods.
</p></div><p>
</p></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tv-teletext.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="usage.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="video.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">3.13. Teletext </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 4. Video output devices</td></tr></table></div></body></html>