annotate DOCS/xml/en/radio.xml @ 21521:b210a229fbcb

General reformatting round: - fix some " -> &quot; - reindent with more consistency - visual markup of <sect?> tags - break overly long lines - add missing <replaceable> tags in examples - cola truck standing by
author torinthiel
date Fri, 08 Dec 2006 11:38:06 +0000
parents c0687e92d463
children f551403d82a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20535
c0687e92d463 convert DOCS/xml/en and help_mp-en.h to UTF-8
kraymer
parents: 20045
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
19628
d1794d1814b9 Set default svn:eol-style and svn:keywords properties.
diego
parents: 19586
diff changeset
2 <!-- $Revision$ -->
19583
94e4ef4195d3 Fix build after radio commit, patch by Jindrich Makovicka.
diego
parents: 19572
diff changeset
3 <chapter id="radio">
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
4 <title>Radio</title>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
5
19583
94e4ef4195d3 Fix build after radio commit, patch by Jindrich Makovicka.
diego
parents: 19572
diff changeset
6 <sect1 id="radio-input" xreflabel="Radio input">
94e4ef4195d3 Fix build after radio commit, patch by Jindrich Makovicka.
diego
parents: 19572
diff changeset
7 <title>Radio input</title>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
8
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
9 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
10 This section is about how to enable listening to radio from
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
11 a V4L-compatible radio tuner. See the man page for a
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
12 description of radio options and keyboard controls.
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
13 </para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
14
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
15 <!-- ********** -->
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
16
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
17 <sect2 id="radio-compilation">
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
18 <title>Compilation</title>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
19
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
20 <procedure>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
21 <step><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
22 First, you have to recompile MPlayer using <filename>./configure</filename>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
23 with <option>--enable-radio</option> and (if you want capture support)
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
24 <option>--enable-radio-capture</option>.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
25 </para></step>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
26 <step><para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
27 Make sure your tuner works with another radio software in Linux, for
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
28 example <application>XawTV</application>.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
29 </para></step>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
30 </procedure>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
31 </sect2>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
32
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
33 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
34
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
35 <sect2 id="radio-tips">
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
36 <title>Usage tips</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
37
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
38 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
39 The full listing of the options is available in the manual page.
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
40 Here are just a few tips:
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
41 <itemizedlist>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
42 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
43 Use the <option>channels</option> option. An example:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
44 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
45 Explanation: With this option, only the 104.4 and 103.9 radio stations
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
46 will be usable. There will be a nice OSD text upon channel switching,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
47 displaying the channel's name. Spaces in the channel name must be
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
48 replaced by the &quot;_&quot; character.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
49 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
50 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
51 There are several ways of capturing audio. You can grab the sound either using
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
52 your sound card via an external cable connection between video card and
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
53 line-in, or using the built-in ADC in the saa7134 chip. In the latter case,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
54 you have to load the <systemitem>saa7134-alsa</systemitem> or
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
55 <systemitem>saa7134-oss</systemitem> driver.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
56 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
57 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
58 <application>MEncoder</application> cannot be used for audio capture,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
59 because it requires a video stream to work. So your can either use
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
60 <application>arecord</application> from ALSA project or
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
61 use <option>-ao pcm:file=file.wav</option>. In the latter case you
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
62 will not hear any sound (unless you are using a line-in cable and
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
63 have switched line-in mute off).
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
64 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
65 </itemizedlist>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
66 </para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
67 </sect2>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
68
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
69 <!-- ********** -->
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
70
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
71 <sect2 id="radio-examples">
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
72 <title>Examples</title>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
73
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
74 <informalexample><para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
75 Input from standard V4L (using line-in cable, capture switched off):
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
76 <screen>mplayer radio://104.4</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
77 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
78
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
79 <informalexample><para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
80 Input from standard V4L (using line-in cable, capture switched off,
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
81 V4Lv1 interface):
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
82 <screen>mplayer -radio driver=v4l radio://104.4</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
83 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
84
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
85 <informalexample><para>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
86 Playing second channel from channel list:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
87 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
88 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
89
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
90 <informalexample>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
91 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
92 Passing sound over the PCI bus from the radio card's internal ADC.
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
93 In this example the tuner is used as a second sound card
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
94 (ALSA device hw:1,0). For saa7134-based cards either the
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
95 saa7134-alsa or saa7134-oss module must be loaded.
20045
a40e4a4d6314 some reformatting
diego
parents: 19628
diff changeset
96 <screen>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
97 mplayer -rawaudio rate=32000 radio://2/capture \
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
98 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
20045
a40e4a4d6314 some reformatting
diego
parents: 19628
diff changeset
99 </screen>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
100 <note><para>When using ALSA device names colons must be replaced
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
101 by equal signs, commas by periods.
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
102 </para></note>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
103 </para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
104 </informalexample>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
105 </sect2>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
106 </sect1>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
107
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
108 </chapter>