Mercurial > mplayer.hg
annotate DOCS/xml/en/radio.xml @ 20641:2155f45d58c2
Move "and" to end of list, improves grammar
author | torinthiel |
---|---|
date | Sat, 04 Nov 2006 09:24:33 +0000 |
parents | c0687e92d463 |
children | b210a229fbcb |
rev | line source |
---|---|
20535 | 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 | 4 <title>Radio</title> |
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 | 8 |
9 <para> | |
19586 | 10 This section is about how to enable listening to radio from |
11 a V4L-compatible radio tuner. See the man page for a | |
12 description of radio options and keyboard controls. | |
19572 | 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 | |
19586 | 22 <option>--enable-radio</option> and (if you want capture support) |
23 <option>--enable-radio-capture</option>. | |
19572 | 24 </para></step> |
25 <step><para> | |
26 Make sure your tuner works with another radio software in Linux, for | |
27 example <application>XawTV</application>. | |
28 </para></step> | |
29 </procedure> | |
30 </sect2> | |
31 | |
32 <sect2 id="radio-tips"> | |
33 <title>Usage tips</title> | |
34 <para> | |
19586 | 35 The full listing of the options is available in the manual page. |
19572 | 36 Here are just a few tips: |
37 </para> | |
38 <itemizedlist> | |
39 <listitem> | |
40 <para> | |
41 Use the <option>channels</option> option. An example: | |
42 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen> | |
19586 | 43 Explanation: With this option, only the 104.4 and 103.9 radio stations |
44 will be usable. There will be a nice OSD text upon channel switching, | |
45 displaying the channel's name. Spaces in the channel name must be | |
46 replaced by the "_" character. | |
19572 | 47 </para> |
48 </listitem> | |
49 | |
50 <listitem> | |
51 <para> | |
52 There are several ways of capturing audio. You can grab the sound either using | |
53 your sound card via an external cable connection between video card and line-in, | |
54 or using the built-in ADC in the saa7134 chip. In the latter case, you have to | |
19586 | 55 load the <systemitem>saa7134-alsa</systemitem> or |
56 <systemitem>saa7134-oss</systemitem> driver. | |
19572 | 57 </para> |
58 </listitem> | |
59 | |
60 <listitem> | |
61 <para> | |
62 <application>MEncoder</application> cannot be used for audio capture, because it | |
19586 | 63 requires a video stream to work. So your can either use |
64 <application>arecord</application> from ALSA project or | |
65 use <option>-ao pcm:file=file.wav</option>. In the latter case you | |
66 will not hear any sound (unless you are using a line-in cable and | |
67 have switched line-in mute off). | |
19572 | 68 </para> |
69 </listitem> | |
70 </itemizedlist> | |
71 </sect2> | |
72 | |
73 | |
74 <sect2 id="radio-examples"> | |
75 <title>Examples</title> | |
76 | |
77 | |
78 <informalexample> | |
79 <para> | |
19586 | 80 Input from standard V4L (using line-in cable, capture switched off): |
19572 | 81 <screen> |
20045 | 82 mplayer radio://104.4 |
83 </screen> | |
19572 | 84 </para> |
85 </informalexample> | |
86 | |
87 <informalexample> | |
88 <para> | |
19586 | 89 Input from standard V4L (using line-in cable, capture switched off, |
90 V4Lv1 interface): | |
19572 | 91 <screen> |
20045 | 92 mplayer -radio driver=v4l radio://104.4 |
93 </screen> | |
19572 | 94 </para> |
95 </informalexample> | |
96 | |
97 <informalexample> | |
98 <para> | |
99 Playing second channel from channel list: | |
100 <screen> | |
20045 | 101 mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2 |
102 </screen> | |
19572 | 103 </para> |
104 </informalexample> | |
105 | |
106 <informalexample> | |
107 <para> | |
19586 | 108 Passing sound over the PCI bus from the radio card's internal ADC. |
109 In this example the tuner is used as a second sound card | |
110 (ALSA device hw:1,0). For saa7134-based cards either the | |
111 saa7134-alsa or saa7134-oss module must be loaded. | |
20045 | 112 <screen> |
113 mplayer -rawaudio rate=32000 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm radio://2/capture | |
114 </screen> | |
19586 | 115 <note><para>When using ALSA device names colons must be replaced |
116 by equal signs, commas by periods. | |
117 </para></note> | |
19572 | 118 </para> |
119 </informalexample> | |
120 </sect2> | |
121 </sect1> | |
122 | |
123 </chapter> |