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
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
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
6 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
7 This section is about how to enable listening to radio from
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
8 a V4L-compatible radio tuner. See the man page for a
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
9 description of radio options and keyboard controls.
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
10 </para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
11
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
12 <!-- ********** -->
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
13
31749
bae2bf8c18d3 Drop one pointless subsectioning level from radio input chapter.
diego
parents: 23500
diff changeset
14 <sect1 id="radio-compilation">
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
15 <title>Compilation</title>
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 <procedure>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
18 <step><para>
23497
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
19 First, you have to recompile <application>MPlayer</application> using
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
20 <filename>./configure</filename> with <option>--enable-radio</option> and
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
21 (if you want capture support) <option>--enable-radio-capture</option>.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
22 </para></step>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
23 <step><para>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
24 Make sure your tuner works with another radio software in Linux, for
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
25 example <application>XawTV</application>.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
26 </para></step>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
27 </procedure>
31749
bae2bf8c18d3 Drop one pointless subsectioning level from radio input chapter.
diego
parents: 23500
diff changeset
28 </sect1>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
29
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
30 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
31
31749
bae2bf8c18d3 Drop one pointless subsectioning level from radio input chapter.
diego
parents: 23500
diff changeset
32 <sect1 id="radio-tips">
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
33 <title>Usage tips</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
34
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
35 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
36 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
37 Here are just a few tips:
21732
893e314fff49 Reformatting round continued
torinthiel
parents: 21596
diff changeset
38
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
39 <itemizedlist>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
40 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
41 Use the <option>channels</option> option. An example:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
42 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen>
23500
0b04f0a1aadf reversed previus modification (r23517)
ptt
parents: 23497
diff changeset
43 Explanation: With this option, only the 104.4 and 103.9 radio stations
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
44 will be usable. There will be a nice OSD text upon channel switching,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
45 displaying the channel's name. Spaces in the channel name must be
21596
f551403d82a9 replace &quot; with ", better readability
torinthiel
parents: 21521
diff changeset
46 replaced by the "_" character.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
47 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
48 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
49 There are several ways of capturing audio. You can grab the sound either using
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
50 your sound card via an external cable connection between video card and
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
51 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
52 you have to load the <systemitem>saa7134-alsa</systemitem> or
23497
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
53 <systemitem>saa7134-oss</systemitem> driver.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
54 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
55 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
56 <application>MEncoder</application> cannot be used for audio capture,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
57 because it requires a video stream to work. So your can either use
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
58 <application>arecord</application> from ALSA project or
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
59 use <option>-ao pcm:file=file.wav</option>. In the latter case you
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
60 will not hear any sound (unless you are using a line-in cable and
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
61 have switched line-in mute off).
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
62 </para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
63 </itemizedlist>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
64 </para>
31749
bae2bf8c18d3 Drop one pointless subsectioning level from radio input chapter.
diego
parents: 23500
diff changeset
65 </sect1>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
66
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
67 <!-- ********** -->
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
68
31749
bae2bf8c18d3 Drop one pointless subsectioning level from radio input chapter.
diego
parents: 23500
diff changeset
69 <sect1 id="radio-examples">
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
70 <title>Examples</title>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
71
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
72 <informalexample><para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
73 Input from standard V4L (using line-in cable, capture switched off):
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
74 <screen>mplayer radio://104.4</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
75 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
76
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
77 <informalexample><para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
78 Input from standard V4L (using line-in cable, capture switched off,
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
79 V4Lv1 interface):
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
80 <screen>mplayer -radio driver=v4l radio://104.4</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
81 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
82
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
83 <informalexample><para>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
84 Playing second channel from channel list:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
85 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
86 </para></informalexample>
19572
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
87
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
88 <informalexample>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
89 <para>
19586
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
90 Passing sound over the PCI bus from the radio card's internal ADC.
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
91 In this example the tuner is used as a second sound card
16e32d49b61d grammar/wording/markup fixes
diego
parents: 19583
diff changeset
92 (ALSA device hw:1,0). For saa7134-based cards either the
23497
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
93 <systemitem>saa7134-alsa</systemitem> or <systemitem>saa7134-oss</systemitem>
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
94 module must be loaded.
20045
a40e4a4d6314 some reformatting
diego
parents: 19628
diff changeset
95 <screen>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
96 mplayer -rawaudio rate=32000 radio://2/capture \
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
97 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
20045
a40e4a4d6314 some reformatting
diego
parents: 19628
diff changeset
98 </screen>
23497
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
99 <note><para>
77ab4749d111 small indentation and tags fixes
ptt
parents: 21732
diff changeset
100 When using ALSA device names colons must be replaced
19586
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 </sect1>
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
106
5486c0d3860f Forgotten documentation part of radio support patch
reimar
parents:
diff changeset
107 </chapter>