Mercurial > mplayer.hg
annotate DOCS/xml/en/radio.xml @ 21521:b210a229fbcb
General reformatting round:
- fix some " -> "
- 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 |
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 | |
21521 | 15 <!-- ********** --> |
19572 | 16 |
17 <sect2 id="radio-compilation"> | |
18 <title>Compilation</title> | |
19 | |
20 <procedure> | |
21 <step><para> | |
21521 | 22 First, you have to recompile MPlayer using <filename>./configure</filename> |
23 with <option>--enable-radio</option> and (if you want capture support) | |
19586 | 24 <option>--enable-radio-capture</option>. |
21521 | 25 </para></step> |
19572 | 26 <step><para> |
27 Make sure your tuner works with another radio software in Linux, for | |
28 example <application>XawTV</application>. | |
21521 | 29 </para></step> |
19572 | 30 </procedure> |
31 </sect2> | |
32 | |
21521 | 33 <!-- ********** --> |
34 | |
19572 | 35 <sect2 id="radio-tips"> |
36 <title>Usage tips</title> | |
21521 | 37 |
19572 | 38 <para> |
19586 | 39 The full listing of the options is available in the manual page. |
19572 | 40 Here are just a few tips: |
41 <itemizedlist> | |
21521 | 42 <listitem><para> |
43 Use the <option>channels</option> option. An example: | |
44 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen> | |
45 Explanation: With this option, only the 104.4 and 103.9 radio stations | |
46 will be usable. There will be a nice OSD text upon channel switching, | |
47 displaying the channel's name. Spaces in the channel name must be | |
48 replaced by the "_" character. | |
49 </para></listitem> | |
50 <listitem><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 | |
53 line-in, or using the built-in ADC in the saa7134 chip. In the latter case, | |
54 you have to load the <systemitem>saa7134-alsa</systemitem> or | |
55 <systemitem>saa7134-oss</systemitem> driver. | |
56 </para></listitem> | |
57 <listitem><para> | |
58 <application>MEncoder</application> cannot be used for audio capture, | |
59 because it requires a video stream to work. So your can either use | |
60 <application>arecord</application> from ALSA project or | |
61 use <option>-ao pcm:file=file.wav</option>. In the latter case you | |
62 will not hear any sound (unless you are using a line-in cable and | |
63 have switched line-in mute off). | |
64 </para></listitem> | |
65 </itemizedlist> | |
19572 | 66 </para> |
67 </sect2> | |
68 | |
21521 | 69 <!-- ********** --> |
19572 | 70 |
71 <sect2 id="radio-examples"> | |
72 <title>Examples</title> | |
73 | |
21521 | 74 <informalexample><para> |
19586 | 75 Input from standard V4L (using line-in cable, capture switched off): |
21521 | 76 <screen>mplayer radio://104.4</screen> |
77 </para></informalexample> | |
19572 | 78 |
21521 | 79 <informalexample><para> |
19586 | 80 Input from standard V4L (using line-in cable, capture switched off, |
81 V4Lv1 interface): | |
21521 | 82 <screen>mplayer -radio driver=v4l radio://104.4</screen> |
83 </para></informalexample> | |
19572 | 84 |
21521 | 85 <informalexample><para> |
19572 | 86 Playing second channel from channel list: |
21521 | 87 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen> |
88 </para></informalexample> | |
19572 | 89 |
90 <informalexample> | |
91 <para> | |
19586 | 92 Passing sound over the PCI bus from the radio card's internal ADC. |
93 In this example the tuner is used as a second sound card | |
94 (ALSA device hw:1,0). For saa7134-based cards either the | |
95 saa7134-alsa or saa7134-oss module must be loaded. | |
20045 | 96 <screen> |
21521 | 97 mplayer -rawaudio rate=32000 radio://2/capture \ |
98 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm | |
20045 | 99 </screen> |
19586 | 100 <note><para>When using ALSA device names colons must be replaced |
101 by equal signs, commas by periods. | |
102 </para></note> | |
19572 | 103 </para> |
104 </informalexample> | |
105 </sect2> | |
106 </sect1> | |
107 | |
108 </chapter> |