Mercurial > mplayer.hg
annotate DOCS/xml/en/radio.xml @ 31860:32a214ee10e5
Restore hunk previously removed in r31354.
This fixes a crash with http://samples.mplayerhq.hu/MPEG2/libmpeg2-crash.vob
author | diego |
---|---|
date | Fri, 06 Aug 2010 23:44:31 +0000 |
parents | bae2bf8c18d3 |
children | 89ba6df5d766 |
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 | |
6 <para> | |
19586 | 7 This section is about how to enable listening to radio from |
8 a V4L-compatible radio tuner. See the man page for a | |
9 description of radio options and keyboard controls. | |
19572 | 10 </para> |
11 | |
21521 | 12 <!-- ********** --> |
19572 | 13 |
31749
bae2bf8c18d3
Drop one pointless subsectioning level from radio input chapter.
diego
parents:
23500
diff
changeset
|
14 <sect1 id="radio-compilation"> |
19572 | 15 <title>Compilation</title> |
16 | |
17 <procedure> | |
18 <step><para> | |
23497 | 19 First, you have to recompile <application>MPlayer</application> using |
20 <filename>./configure</filename> with <option>--enable-radio</option> and | |
21 (if you want capture support) <option>--enable-radio-capture</option>. | |
21521 | 22 </para></step> |
19572 | 23 <step><para> |
24 Make sure your tuner works with another radio software in Linux, for | |
25 example <application>XawTV</application>. | |
21521 | 26 </para></step> |
19572 | 27 </procedure> |
31749
bae2bf8c18d3
Drop one pointless subsectioning level from radio input chapter.
diego
parents:
23500
diff
changeset
|
28 </sect1> |
19572 | 29 |
21521 | 30 <!-- ********** --> |
31 | |
31749
bae2bf8c18d3
Drop one pointless subsectioning level from radio input chapter.
diego
parents:
23500
diff
changeset
|
32 <sect1 id="radio-tips"> |
19572 | 33 <title>Usage tips</title> |
21521 | 34 |
19572 | 35 <para> |
19586 | 36 The full listing of the options is available in the manual page. |
19572 | 37 Here are just a few tips: |
21732 | 38 |
19572 | 39 <itemizedlist> |
21521 | 40 <listitem><para> |
41 Use the <option>channels</option> option. An example: | |
42 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen> | |
23500 | 43 Explanation: With this option, only the 104.4 and 103.9 radio stations |
21521 | 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 | |
21596 | 46 replaced by the "_" character. |
21521 | 47 </para></listitem> |
48 <listitem><para> | |
49 There are several ways of capturing audio. You can grab the sound either using | |
50 your sound card via an external cable connection between video card and | |
51 line-in, or using the built-in ADC in the saa7134 chip. In the latter case, | |
52 you have to load the <systemitem>saa7134-alsa</systemitem> or | |
23497 | 53 <systemitem>saa7134-oss</systemitem> driver. |
21521 | 54 </para></listitem> |
55 <listitem><para> | |
56 <application>MEncoder</application> cannot be used for audio capture, | |
57 because it requires a video stream to work. So your can either use | |
58 <application>arecord</application> from ALSA project or | |
59 use <option>-ao pcm:file=file.wav</option>. In the latter case you | |
60 will not hear any sound (unless you are using a line-in cable and | |
61 have switched line-in mute off). | |
62 </para></listitem> | |
63 </itemizedlist> | |
19572 | 64 </para> |
31749
bae2bf8c18d3
Drop one pointless subsectioning level from radio input chapter.
diego
parents:
23500
diff
changeset
|
65 </sect1> |
19572 | 66 |
21521 | 67 <!-- ********** --> |
19572 | 68 |
31749
bae2bf8c18d3
Drop one pointless subsectioning level from radio input chapter.
diego
parents:
23500
diff
changeset
|
69 <sect1 id="radio-examples"> |
19572 | 70 <title>Examples</title> |
71 | |
21521 | 72 <informalexample><para> |
19586 | 73 Input from standard V4L (using line-in cable, capture switched off): |
21521 | 74 <screen>mplayer radio://104.4</screen> |
75 </para></informalexample> | |
19572 | 76 |
21521 | 77 <informalexample><para> |
19586 | 78 Input from standard V4L (using line-in cable, capture switched off, |
79 V4Lv1 interface): | |
21521 | 80 <screen>mplayer -radio driver=v4l radio://104.4</screen> |
81 </para></informalexample> | |
19572 | 82 |
21521 | 83 <informalexample><para> |
19572 | 84 Playing second channel from channel list: |
21521 | 85 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen> |
86 </para></informalexample> | |
19572 | 87 |
88 <informalexample> | |
89 <para> | |
19586 | 90 Passing sound over the PCI bus from the radio card's internal ADC. |
91 In this example the tuner is used as a second sound card | |
92 (ALSA device hw:1,0). For saa7134-based cards either the | |
23497 | 93 <systemitem>saa7134-alsa</systemitem> or <systemitem>saa7134-oss</systemitem> |
94 module must be loaded. | |
20045 | 95 <screen> |
21521 | 96 mplayer -rawaudio rate=32000 radio://2/capture \ |
97 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm | |
20045 | 98 </screen> |
23497 | 99 <note><para> |
100 When using ALSA device names colons must be replaced | |
19586 | 101 by equal signs, commas by periods. |
102 </para></note> | |
19572 | 103 </para> |
104 </informalexample> | |
105 </sect1> | |
106 | |
107 </chapter> |