2006-10-31 12:23:38 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2006-09-02 13:33:50 +00:00
|
|
|
<!-- $Revision$ -->
|
2006-08-29 00:57:26 +00:00
|
|
|
<chapter id="radio">
|
2006-08-28 18:43:46 +00:00
|
|
|
<title>Radio</title>
|
|
|
|
|
2006-08-29 00:57:26 +00:00
|
|
|
<sect1 id="radio-input" xreflabel="Radio input">
|
|
|
|
<title>Radio input</title>
|
2006-08-28 18:43:46 +00:00
|
|
|
|
|
|
|
<para>
|
2006-08-29 16:36:45 +00:00
|
|
|
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.
|
2006-08-28 18:43:46 +00:00
|
|
|
</para>
|
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<!-- ********** -->
|
2006-08-28 18:43:46 +00:00
|
|
|
|
|
|
|
<sect2 id="radio-compilation">
|
|
|
|
<title>Compilation</title>
|
|
|
|
|
|
|
|
<procedure>
|
|
|
|
<step><para>
|
2007-06-08 14:52:18 +00:00
|
|
|
First, you have to recompile <application>MPlayer</application> using
|
|
|
|
<filename>./configure</filename> with <option>--enable-radio</option> and
|
|
|
|
(if you want capture support) <option>--enable-radio-capture</option>.
|
2006-12-08 11:38:06 +00:00
|
|
|
</para></step>
|
2006-08-28 18:43:46 +00:00
|
|
|
<step><para>
|
|
|
|
Make sure your tuner works with another radio software in Linux, for
|
|
|
|
example <application>XawTV</application>.
|
2006-12-08 11:38:06 +00:00
|
|
|
</para></step>
|
2006-08-28 18:43:46 +00:00
|
|
|
</procedure>
|
|
|
|
</sect2>
|
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<!-- ********** -->
|
|
|
|
|
2006-08-28 18:43:46 +00:00
|
|
|
<sect2 id="radio-tips">
|
|
|
|
<title>Usage tips</title>
|
2006-12-08 11:38:06 +00:00
|
|
|
|
2006-08-28 18:43:46 +00:00
|
|
|
<para>
|
2006-08-29 16:36:45 +00:00
|
|
|
The full listing of the options is available in the manual page.
|
2006-08-28 18:43:46 +00:00
|
|
|
Here are just a few tips:
|
2006-12-23 23:20:42 +00:00
|
|
|
|
2006-08-28 18:43:46 +00:00
|
|
|
<itemizedlist>
|
2006-12-08 11:38:06 +00:00
|
|
|
<listitem><para>
|
|
|
|
Use the <option>channels</option> option. An example:
|
|
|
|
<screen>-radio channels=104.4-Sibir,103.9-Maximum</screen>
|
2007-06-08 19:38:05 +00:00
|
|
|
Explanation: With this option, only the 104.4 and 103.9 radio stations
|
2006-12-08 11:38:06 +00:00
|
|
|
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
|
2006-12-14 13:49:57 +00:00
|
|
|
replaced by the "_" character.
|
2006-12-08 11:38:06 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
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 <systemitem>saa7134-alsa</systemitem> or
|
2007-06-08 14:52:18 +00:00
|
|
|
<systemitem>saa7134-oss</systemitem> driver.
|
2006-12-08 11:38:06 +00:00
|
|
|
</para></listitem>
|
|
|
|
<listitem><para>
|
|
|
|
<application>MEncoder</application> cannot be used for audio capture,
|
|
|
|
because it requires a video stream to work. So your can either use
|
|
|
|
<application>arecord</application> from ALSA project or
|
|
|
|
use <option>-ao pcm:file=file.wav</option>. 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).
|
|
|
|
</para></listitem>
|
2006-08-28 18:43:46 +00:00
|
|
|
</itemizedlist>
|
2006-12-08 11:38:06 +00:00
|
|
|
</para>
|
2006-08-28 18:43:46 +00:00
|
|
|
</sect2>
|
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<!-- ********** -->
|
2006-08-28 18:43:46 +00:00
|
|
|
|
|
|
|
<sect2 id="radio-examples">
|
|
|
|
<title>Examples</title>
|
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<informalexample><para>
|
2006-08-29 16:36:45 +00:00
|
|
|
Input from standard V4L (using line-in cable, capture switched off):
|
2006-12-08 11:38:06 +00:00
|
|
|
<screen>mplayer radio://104.4</screen>
|
|
|
|
</para></informalexample>
|
2006-08-28 18:43:46 +00:00
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<informalexample><para>
|
2006-08-29 16:36:45 +00:00
|
|
|
Input from standard V4L (using line-in cable, capture switched off,
|
|
|
|
V4Lv1 interface):
|
2006-12-08 11:38:06 +00:00
|
|
|
<screen>mplayer -radio driver=v4l radio://104.4</screen>
|
|
|
|
</para></informalexample>
|
2006-08-28 18:43:46 +00:00
|
|
|
|
2006-12-08 11:38:06 +00:00
|
|
|
<informalexample><para>
|
2006-08-28 18:43:46 +00:00
|
|
|
Playing second channel from channel list:
|
2006-12-08 11:38:06 +00:00
|
|
|
<screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen>
|
|
|
|
</para></informalexample>
|
2006-08-28 18:43:46 +00:00
|
|
|
|
|
|
|
<informalexample>
|
|
|
|
<para>
|
2006-08-29 16:36:45 +00:00
|
|
|
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
|
2007-06-08 14:52:18 +00:00
|
|
|
<systemitem>saa7134-alsa</systemitem> or <systemitem>saa7134-oss</systemitem>
|
|
|
|
module must be loaded.
|
2006-10-04 21:11:42 +00:00
|
|
|
<screen>
|
2006-12-08 11:38:06 +00:00
|
|
|
mplayer -rawaudio rate=32000 radio://2/capture \
|
|
|
|
-radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
|
2006-10-04 21:11:42 +00:00
|
|
|
</screen>
|
2007-06-08 14:52:18 +00:00
|
|
|
<note><para>
|
|
|
|
When using ALSA device names colons must be replaced
|
2006-08-29 16:36:45 +00:00
|
|
|
by equal signs, commas by periods.
|
|
|
|
</para></note>
|
2006-08-28 18:43:46 +00:00
|
|
|
</para>
|
|
|
|
</informalexample>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|
|
|
|
|
|
</chapter>
|