Mercurial > mplayer.hg
annotate DOCS/xml/zh_CN/radio.xml @ 29356:aba22a71e58f
10l, use fopen directly instead of open + fdopen
author | reimar |
---|---|
date | Fri, 26 Jun 2009 15:28:30 +0000 |
parents | 0f1b5b68af32 |
children |
rev | line source |
---|---|
21795 | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- synced with r21748 --> | |
3 <chapter id="radio"> | |
4 <title>广播电台</title> | |
5 | |
6 <sect1 id="radio-input" xreflabel="Radio input"> | |
7 <title>电台输入</title> | |
8 | |
9 <para> | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
21795
diff
changeset
|
10 这一部分将说明如何从V4L兼容的电台调谐器收听电台广播。 |
21795 | 11 请阅读手册中关于电台的可选项和键盘控制的描述。 |
12 </para> | |
13 | |
14 <!-- ********** --> | |
15 | |
16 <sect2 id="radio-compilation"> | |
17 <title>编译</title> | |
18 | |
19 <procedure> | |
20 <step><para> | |
21 首先, 你需要重新编译MPlayer, 使用<filename>./configure</filename>带上选项 | |
22 <option>--enable-radio</option> 和(如果你想要支持捕捉) | |
23 <option>--enable-radio-capture</option> | |
24 </para></step> | |
25 <step><para> | |
26 确认你的电台调谐器可以和Linux的其他收音软件工作。 比如<application>XawTV</application>。 | |
27 </para></step> | |
28 </procedure> | |
29 </sect2> | |
30 | |
31 <!-- ********** --> | |
32 | |
33 <sect2 id="radio-tips"> | |
34 <title>使用技巧</title> | |
35 | |
36 <para> | |
37 可用选项的完整列表在手册中有列出。 | |
38 这里只给出一些技巧: | |
39 | |
40 <itemizedlist> | |
41 <listitem><para> | |
42 使用<option>channels</option>选项。 例子: | |
43 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen> | |
44 解释: 使用该选项, 则只可使用104.4和103.9电台。 在频道切换时, 将会有个不错的OSD文字, | |
45 显示频道的名字。 频道的名字中的空格必须替换成下划线("_")。 | |
46 </para></listitem> | |
47 <listitem><para> | |
48 有好几种方法可以捕捉声音。 为捕捉音频, 你可以通过连接视频卡和音频输入的外接线用你的声卡捕捉, | |
49 也可以使用saa7134芯片内置的ADC。 在后一种情况下, 你要加载<systemitem>saa7134-alsa</systemitem> | |
50 或<systemitem>saa7134-oss</systemitem>驱动。 | |
51 </para></listitem> | |
52 <listitem><para> | |
53 <application>MEncoder</application>不能用于音频捕捉, | |
54 因为它需要视频流才工作。 因此你可以, 或使用ALSA项目的<application>arecord</application>, | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
21795
diff
changeset
|
55 或者使用选项<option>-ao pcm:file=file.wav</option>。 在后一种情况下, |
21795 | 56 你将听不到任何声音 (除非你用了输入线, 并且关闭了输入线静音)。 |
57 </para></listitem> | |
58 </itemizedlist> | |
59 </para> | |
60 </sect2> | |
61 | |
62 <!-- ********** --> | |
63 | |
64 <sect2 id="radio-examples"> | |
65 <title>例子</title> | |
66 | |
67 <informalexample><para> | |
68 从标准的V4L输入 (使用输入线, 捕捉开关关闭): | |
69 <screen>mplayer radio://104.4</screen> | |
70 </para></informalexample> | |
71 | |
72 <informalexample><para> | |
73 从标准的V4L输入 (使用输入线, 捕捉开关关闭, V4Lv1接口): | |
74 <screen>mplayer -radio driver=v4l radio://104.4</screen> | |
75 </para></informalexample> | |
76 | |
77 <informalexample><para> | |
78 播放频道列表中的第二个频道: | |
79 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen> | |
80 </para></informalexample> | |
81 | |
82 <informalexample> | |
83 <para> | |
84 把声音从收音卡的内置ADC传到PCI总线。 | |
85 在这个例子中, 调谐器被用成是第二块声卡(ALSA device hw:1,0)。 | |
86 对于基于saa7134的卡, 必须加载 saa7134-alsa 或 saa7134-oss 模块。 | |
87 <screen> | |
88 mplayer -rawaudio rate=32000 radio://2/capture \ | |
89 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm | |
90 </screen> | |
91 <note><para>当使用ALSA设备名时, 冒号(:)必须替换成等号(=), | |
92 逗号(,)要替换成句点(.) | |
93 </para></note> | |
94 </para> | |
95 </informalexample> | |
96 </sect2> | |
97 </sect1> | |
98 | |
99 </chapter> |