Mercurial > mplayer.hg
annotate DOCS/xml/en/radio.xml @ 21827:b0bc0d81f91b
Subtitle handling cleanup: factor out code for parsing embedded subtitles
and adding and removing of lines in subtitle struct into subreader.c.
author | reimar |
---|---|
date | Sat, 06 Jan 2007 19:07:58 +0000 |
parents | 893e314fff49 |
children | 77ab4749d111 |
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: |
21732 | 41 |
19572 | 42 <itemizedlist> |
21521 | 43 <listitem><para> |
44 Use the <option>channels</option> option. An example: | |
45 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen> | |
46 Explanation: With this option, only the 104.4 and 103.9 radio stations | |
47 will be usable. There will be a nice OSD text upon channel switching, | |
48 displaying the channel's name. Spaces in the channel name must be | |
21596 | 49 replaced by the "_" character. |
21521 | 50 </para></listitem> |
51 <listitem><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 | |
54 line-in, or using the built-in ADC in the saa7134 chip. In the latter case, | |
55 you have to load the <systemitem>saa7134-alsa</systemitem> or | |
56 <systemitem>saa7134-oss</systemitem> driver. | |
57 </para></listitem> | |
58 <listitem><para> | |
59 <application>MEncoder</application> cannot be used for audio capture, | |
60 because it requires a video stream to work. So your can either use | |
61 <application>arecord</application> from ALSA project or | |
62 use <option>-ao pcm:file=file.wav</option>. In the latter case you | |
63 will not hear any sound (unless you are using a line-in cable and | |
64 have switched line-in mute off). | |
65 </para></listitem> | |
66 </itemizedlist> | |
19572 | 67 </para> |
68 </sect2> | |
69 | |
21521 | 70 <!-- ********** --> |
19572 | 71 |
72 <sect2 id="radio-examples"> | |
73 <title>Examples</title> | |
74 | |
21521 | 75 <informalexample><para> |
19586 | 76 Input from standard V4L (using line-in cable, capture switched off): |
21521 | 77 <screen>mplayer radio://104.4</screen> |
78 </para></informalexample> | |
19572 | 79 |
21521 | 80 <informalexample><para> |
19586 | 81 Input from standard V4L (using line-in cable, capture switched off, |
82 V4Lv1 interface): | |
21521 | 83 <screen>mplayer -radio driver=v4l radio://104.4</screen> |
84 </para></informalexample> | |
19572 | 85 |
21521 | 86 <informalexample><para> |
19572 | 87 Playing second channel from channel list: |
21521 | 88 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen> |
89 </para></informalexample> | |
19572 | 90 |
91 <informalexample> | |
92 <para> | |
19586 | 93 Passing sound over the PCI bus from the radio card's internal ADC. |
94 In this example the tuner is used as a second sound card | |
95 (ALSA device hw:1,0). For saa7134-based cards either the | |
96 saa7134-alsa or saa7134-oss module must be loaded. | |
20045 | 97 <screen> |
21521 | 98 mplayer -rawaudio rate=32000 radio://2/capture \ |
99 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm | |
20045 | 100 </screen> |
19586 | 101 <note><para>When using ALSA device names colons must be replaced |
102 by equal signs, commas by periods. | |
103 </para></note> | |
19572 | 104 </para> |
105 </informalexample> | |
106 </sect2> | |
107 </sect1> | |
108 | |
109 </chapter> |