comparison DOCS/xml/en/radio.xml @ 19572:5486c0d3860f

Forgotten documentation part of radio support patch by Vladimir Voroshilov (voroshil gmail com)
author reimar
date Mon, 28 Aug 2006 18:43:46 +0000
parents
children 94e4ef4195d3
comparison
equal deleted inserted replaced
19571:a894b3a3d28c 19572:5486c0d3860f
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!-- $Revision: 17322 $ -->
3 <chapter id="tv">
4 <title>Radio</title>
5
6 <sect1 id="radio" xreflabel="Radio">
7 <title>Radio</title>
8
9 <para>
10 This section is about how to enable <emphasis role="bold">listening
11 from V4L compatible Radio tuner</emphasis>. See the man page for a description
12 of Radio options and keyboard controls.
13 </para>
14
15
16 <sect2 id="radio-compilation">
17 <title>Compilation</title>
18
19 <procedure>
20 <step><para>
21 First, you have to recompile MPlayer using <filename>./configure</filename> with
22 --enable-radio and (if you want capture support) --enable-radio-capture.
23 </para></step>
24 <step><para>
25 Make sure your tuner works with another radio software in Linux, for
26 example <application>XawTV</application>.
27 </para></step>
28 </procedure>
29 </sect2>
30
31 <sect2 id="radio-tips">
32 <title>Usage tips</title>
33 <para>
34 The full listing of the options is available on the manual page.
35 Here are just a few tips:
36 </para>
37 <itemizedlist>
38 <listitem>
39 <para>
40 Use the <option>channels</option> option. An example:
41 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen>
42 Explanation: using this option, only the 104.4 and 103.9 radio stations
43 will be usable, and there will be a nice OSD text upon channel switching, displaying the
44 channel's name. Spaces in the channel name must be replaced by the
45 &quot;_&quot; character.
46 </para>
47 </listitem>
48
49 <listitem>
50 <para>
51 There are several ways of capturing audio. You can grab the sound either using
52 your sound card via an external cable connection between video card and line-in,
53 or using the built-in ADC in the saa7134 chip. In the latter case, you have to
54 load the <emphasis role="bold">saa7134-alsa</emphasis> or
55 <emphasis role="bold">saa7134-oss</emphasis> driver.
56 </para>
57 </listitem>
58
59 <listitem>
60 <para>
61 <application>MEncoder</application> cannot be used for audio capture, because it
62 requires video stream to work. So your can either use arecord from ALSA project or
63 use <option>-ao pcm:file=file.wav</option>. In second case you will not hear any sound
64 (except you using line-in cable and have switched line-in mute off)
65 </para>
66 </listitem>
67 </itemizedlist>
68 </sect2>
69
70
71 <sect2 id="radio-examples">
72 <title>Examples</title>
73
74
75 <informalexample>
76 <para>
77 Input from standard V4L (using line-in cable. capture switched off):
78 <screen>
79 mplayer radio://104.4<!--
80 --></screen>
81 </para>
82 </informalexample>
83
84 <informalexample>
85 <para>
86 Input from standard V4L (using line-in cable. capture switched off, V4Lv1 interface):
87 <screen>
88 mplayer -radio driver=v4l radio://104.4<!--
89 --></screen>
90 </para>
91 </informalexample>
92
93 <informalexample>
94 <para>
95 Playing second channel from channel list:
96 <screen>
97 mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2<!--
98 --></screen>
99 </para>
100 </informalexample>
101
102 <informalexample>
103 <para>
104 Using sound through pci bus from radio card's internal ADC. In this example tuner used as second sound card
105 (ALSA device hw:1,0). For saa7134 based cards either saa7134-alsa or saa7134-oss module must be
106 loaded . NOTE: when using ALSA device names colons must be replaced with equals, commas with dots.
107 <screen>
108 mplayer -rawaudio rate=32000 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm radio://2/capture<!--
109 --></screen>
110 </para>
111 </informalexample>
112 </sect2>
113 </sect1>
114
115 </chapter>