annotate DOCS/xml/zh_CN/mencoder.xml @ 24888:b2402b4f0afa

libaf: change filter input/output ratio calculations Change the audio filters to use a double instead of rationals for the ratio of output to input size. The rationals could overflow when calculating the overall ratio of a filter chain and gave no real advantage compared to doubles.
author uau
date Thu, 01 Nov 2007 06:52:01 +0000
parents 68d7472231cf
children 8eb40cd093a3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21687
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
21696
68d7472231cf consistent naming for revision tags
diego
parents: 21687
diff changeset
2 <!-- synced with r21612 -->
21687
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
3 <chapter id="mencoder">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
4 <title><application>MEncoder</application>的基础用法</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
5
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
6 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
7 如果你想得到<application>MEncoder</application>的有效选项列表,请参照man页。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
8 对于一系列简易的例子以及几个编码参数的详细说明,参照从MPlayer-users邮件列表
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
9 的一些邮件中搜集来的<ulink url="../../tech/encoding-tips.txt">编码小窍门</ulink>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
10 从<ulink url="http://lists.mplayerhq.hu/pipermail/mplayer-users/">压缩包</ulink>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
11 中还可以找到大量的关于<application>MEncoder</application>编码的各个方面的讨论
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
12 以及用其编码的相关问题。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
13 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
14
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
15
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
16 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
17
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
18
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
19 <sect1 id="menc-feat-selecting-codec">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
20 <title>选择编解码器及容器格式</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
21
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
22 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
23 编码使用的音频及视频编码器分别通过<option>-oac</option>及
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
24 <option>-ovc</option>选项指定
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
25 例如输入如下命令
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
26 <screen>mencoder -ovc help</screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
27 可列出你机器上相应版本的<application>MEncoder</application>所支持的所有视频编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
28 下列选择也是可用的:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
29 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
30
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
31 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
32 音频编码器:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
33 <informaltable frame="all">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
34 <tgroup cols="2">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
35 <thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
36 <row><entry>音频编码器名称</entry><entry>描述</entry></row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
37 </thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
38 <tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
39 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
40 <entry>mp3lame</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
41 <entry>通过LAME编码为VBR,ABR或CBR格式的MP3文件</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
42 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
43 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
44 <entry>lavc</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
45 <entry>利用<link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem>中的一个编码器</link>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
46 </entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
47 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
48 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
49 <entry>faac</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
50 <entry>FAAC AAC音频编码器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
51 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
52 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
53 <entry>toolame</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
54 <entry>MPEG音频Layer 2编码器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
55 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
56 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
57 <entry>twolame</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
58 <entry>基于tooLAME的MPEG音频Layer 2编码器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
59 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
60 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
61 <entry>pcm</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
62 <entry>未压缩的PCM音频</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
63 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
64 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
65 <entry>copy</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
66 <entry>不要重新编码,这是复制已压缩的各桢</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
67 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
68 </tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
69 </tgroup>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
70 </informaltable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
71 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
72
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
73 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
74 是频编码器:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
75 <informaltable frame="all">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
76 <tgroup cols="2">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
77 <thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
78 <row><entry>是频编码器名称</entry><entry>描述</entry></row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
79 </thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
80 <tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
81 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
82 <entry>lavc</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
83 <entry>使用<link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem>中的一个是频编码器</link>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
84 </entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
85 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
86 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
87 <entry>xvid</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
88 <entry>Xvid, MPEG-4高级简单格式(ASP)编码器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
89 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
90 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
91 <entry>x264</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
92 <entry>x264, MPEG-4高级视频编码(AVC), AKA H.264编码器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
93 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
94 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
95 <entry>nuv</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
96 <entry>nuppel视频,为一些实时程序所用</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
97 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
98 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
99 <entry>raw</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
100 <entry>未压缩的视频桢</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
101 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
102 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
103 <entry>copy</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
104 <entry>不要重新编码,只是复制已压缩的各桢</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
105 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
106 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
107 <entry>frameno</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
108 <entry>用于三通道编码(不推荐)</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
109 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
110 </tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
111 </tgroup>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
112 </informaltable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
113 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
114
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
115 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
116 输出容器格式通过<option>-of</option>选项选择。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
117 输入:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
118 <screen>mencoder -of help</screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
119 以便列出你机器上相应版本的<application>MEncoder</application>所支持的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
120 所有容器。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
121 如下选项也是可用的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
122 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
123
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
124 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
125 容器格式:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
126 <informaltable frame="all">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
127 <tgroup cols="2">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
128 <thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
129 <row><entry>容器格式名称</entry><entry>描述</entry></row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
130 </thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
131 <tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
132 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
133 <entry>lavf</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
134 <entry>由<systemitem class="library">libavformat</systemitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
135 支持的一种容器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
136 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
137 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
138 <entry>avi</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
139 <entry>音-视频混合</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
140 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
141 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
142 <entry>mpeg</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
143 <entry>MPEG-1及MPEG-2节目流</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
144 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
145 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
146 <entry>rawvideo</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
147 <entry>原始视频流(未经混合 - 只含一视频流)</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
148 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
149 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
150 <entry>rawaudio</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
151 <entry>原始音频流(未经混合 - 只含一音频流)</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
152 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
153 </tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
154 </tgroup>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
155 </informaltable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
156 AVI容器是<application>MEncoder</application>的基本容器格式,也就是说它能够
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
157 被最好的处理,<application>MEncoder</application>也是为之而设计。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
158 如上所述,其他容器格式也可被使用,但你使用的时候可能遇到问题。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
159 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
160
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
161 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
162 <systemitem class="library">libavformat</systemitem>容器:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
163 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
164
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
165 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
166 如果你选择了<systemitem class="library">libavformat</systemitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
167 来做输出文件的混编(通过使用<option>-of lavf</option>选项),
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
168 适当的容器将由文件扩展名而定。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
169 你也可以通过<systemitem class="library">libavformat</systemitem>的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
170 <option>format</option>选项强制一种容器格式。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
171
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
172 <informaltable frame="all">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
173 <tgroup cols="2">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
174 <thead><row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
175 <entry><systemitem class="library">libavformat</systemitem>容器名称</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
176 <entry>描述</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
177 </row></thead>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
178 <tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
179 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
180 <entry>mpg</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
181 <entry>MPEG-1及MPEG-2节目流</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
182 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
183 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
184 <entry>asf</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
185 <entry>高级流格式</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
186 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
187 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
188 <entry>avi</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
189 <entry>音-视频混合</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
190 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
191 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
192 <entry>wav</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
193 <entry>波形音频</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
194 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
195 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
196 <entry>swf</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
197 <entry>Macromedia Flash</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
198 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
199 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
200 <entry>flv</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
201 <entry>Macromedia Flash视频</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
202 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
203 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
204 <entry>rm</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
205 <entry>RealMedia</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
206 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
207 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
208 <entry>au</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
209 <entry>SUN AU</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
210 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
211 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
212 <entry>nut</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
213 <entry>NUT开放容器(实验中,不兼容标准)</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
214 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
215 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
216 <entry>mov</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
217 <entry>QuickTime</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
218 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
219 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
220 <entry>mp4</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
221 <entry>MPEG-4格式</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
222 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
223 <row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
224 <entry>dv</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
225 <entry>Sony数字视频容器</entry>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
226 </row>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
227 </tbody>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
228 </tgroup>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
229 </informaltable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
230 如你所见,<systemitem class="library">libavformat</systemitem>允许
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
231 <application>MEncoder</application>把媒体混合到各种格式的容器内。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
232 不巧的是,因为<application>MEncoder</application>从开始设计的时候
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
233 没有支持AVI之外的其他容器,你要小心最终生成的文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
234 请多次检查以确认音频/视频同步是正确的以及文件能在
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
235 <application>MPlayer</application>之外的播放器中播放。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
236 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
237
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
238 <example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
239 <title>编码为Macromedia Flash格式</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
240 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
241 生成Macromedia Flash视频,以便在安装有Macromedia Flash插件的网页浏览器中播放:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
242 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
243 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
244 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
245 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
246 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
247 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
248 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
249
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
250 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
251
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
252
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
253 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
254
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
255
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
256 <sect1 id="menc-feat-selecting-input">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
257 <title>选择输入文件或设备</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
258
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
259 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
260 <application>MEncoder</application>可以从文件或直接从DVD或VCD的盘片进行编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
261 秩序在命令行中包含文件名以便从文件进行编码,或
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
262 <option>dvd://</option><replaceable>标题数</replaceable>或
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
263 <option>vcd://</option><replaceable>轨道数</replaceable>以便从DVD标题或VCD轨
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
264 道进行编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
265 如果你已经把DVD复制到你的硬盘上(你可以使用像<application>dvdbackup</application>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
266 这样的工具,大多数系统上都有),然后想从副本进行编码,你仍需使用
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
267 <option>dvd://</option>语法,加上附带了指向DVD副本的根目录的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
268 <option>-dvd-device</option>选项。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
269
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
270 <option>-dvd-device</option>及<option>-cdrom-device</option>选项也能用于
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
271 覆盖用来直接从光盘中直接读取数据的设备的路径,如果缺省的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
272 <filename>/dev/dvd</filename>及<filename>/dev/cdrom</filename>在你的系统上步工作
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
273 的话。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
274 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
275
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
276 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
277 当从DVD进行编码时,最好是选其中的一章或几章进行编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
278 为此你可以使用<option>-chapter</option>选项。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
279 例如<option>-chapter</option> <replaceable>1-4</replaceable>将只编码DVD中的1至4章。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
280 如果你针对包含1400MB数据的两张CD进行编码,这将非常有用,因为你可以确定只在一章的边
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
281 缘处分割,而不是在一个场景中间。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
282 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
283
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
284 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
285 如果你有张被支持的电视卡,你也可以通过播放电视节目的设备进行编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
286 使用<option>tv://</option><replaceable>channelnumber</replaceable>为文件名,
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
287 并用<option>-tv</option>配置各种截取选项。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
288 DVB输入工作原理类似。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
289 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
290 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
291
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
292
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
293 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
294
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
295
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
296 <sect1 id="menc-feat-mpeg4">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
297 <title>编码为双通道MPEG-4 ("DivX")</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
298
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
299 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
300 之所以这样命名,是因为这种编码<emphasis>两次</emphasis>对文件进行编码。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
301 第一次编码(配音通道)生成一些几兆大的临时文件(<filename>*.log</filename>),
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
302 先不要删除它们(你可以删除AVI或者通过重定向到<filename>/dev/null</filename>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
303 而不生成视频)。第二次编码时,生成了双通道输出文件,使用的即是从临时文件提供
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
304 的比特律数据。生成文件会有更好的图像质量。如果这是你第一次听说,你可以在互联
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
305 网上找到相关参考。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
306 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
307
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
308 <example id="copy_audio_track">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
309 <title>复制音轨</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
310 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
311 双通道编码在复制音轨时将DVD的第二个轨道转换成MPEG-4 ("DivX") AVI。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
312 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
313 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
314 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
315 -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
316 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
317 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
318 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
319
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
320 <example id="encode_audio_track">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
321 <title>对音轨编码</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
322 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
323 将一个DVD编码成MPEG-4 ("DivX") AVI,音轨采用MP3格式
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
324 使用这个方法的时候要当心,因为有时它可能造成音/视频不同步。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
325 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
326 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
327 -oac mp3lame -lameopts vbr=3 -o /dev/null
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
328 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
329 -oac mp3lame -lameopts vbr=3 -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
330 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
331 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
332 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
333 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
334
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
335
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
336 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
337
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
338
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
339 <sect1 id="menc-feat-handheld-psp">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
340 <title>编码为Sony PSP视频格式</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
341
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
342 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
343 <application>MEncoder</application>支持到Sony PSP的视频格式转换,但是依赖于
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
344 PSP软件修改,对不同软件限制也许会有不同。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
345 如果你遵守如下守则,你将不会遇到什么问题:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
346 <itemizedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
347 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
348 <emphasis role="bold">比特律</emphasis>:不应超过每秒1500kb,然而过去的版本
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
349 几乎支持任何比特律只要头文件声明其不是太高。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
350 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
351 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
352 <emphasis role="bold">维数</emphasis>:PSP视频的长宽应是16的倍数,并且长*宽的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
353 积应&lt;= 64000。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
354 在一些情况下,PSP可能播放更高分辨率的文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
355 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
356 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
357 <emphasis role="bold">音频</emphasis>:其采样率针对MPEG-4应为24kHz,针对H.264
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
358 为48kHz。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
359 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
360 </itemizedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
361 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
362
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
363 <example id="encode_for_psp">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
364 <title>编码到PSP</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
365 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
366 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
367 mencoder -ofps 30000/1001 -af lavcresample=24000 -vf harddup -of lavf \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
368 -oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
369 -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
370 <replaceable>input.video</replaceable> -o <replaceable>output.psp</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
371 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
372 注意你可以通过
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
373 <option>-info name=<replaceable>MovieTitle</replaceable></option>为视频摄者标题。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
374 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
375 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
376 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
377
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
378
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
379 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
380
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
381
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
382 <sect1 id="menc-feat-mpeg">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
383 <title>编码为MPEG格式</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
384 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
385 <application>MEncoder</application>可生成MPEG (MPEG-节目流)格式的文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
386 通常,当你使用MPEG-1或MPEG-2视频,是因为你的编码受限于SVCD, VCD, 或DVD。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
387 这些格式所需的特别要求将在
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
388 <link linkend="menc-feat-vcd-dvd"> VCD及DVD生成指南 </link>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
389 中进行解释
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
390 section.
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
391 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
392
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
393 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
394 要改变<application>MEncoder</application>的输出文件格式,使用
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
395 <option>-of mpeg</option>选项。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
396 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
397
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
398 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
399 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
400 例如:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
401 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
402 mencoder <replaceable>input.avi</replaceable> -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
403 -oac copy <replaceable>other_options</replaceable> -o <replaceable>output.mpg</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
404 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
405 可生成为只有有限多媒体支持的系统进行播放的MPEG-1文件,例如默认安装的Windows:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
406 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
407 mencoder <replaceable>input.avi</replaceable> -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
408 -o <replaceable>output.mpg</replaceable> -oac lavc -lavcoptc acodec=mp2:abitrate=224 -ovc lavc \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
409 -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
410 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
411 同上,但使用了<systemitem class="library">libavformat</systemitem> MPEG混合器:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
412 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
413 mencoder <replaceable>input.avi</replaceable> -o <replaceable>VCD.mpg</replaceable> -ofps 25 -vf scale=352:288,harddup -of lavf \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
414 -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
415 -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
416 -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
417 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
418 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
419 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
420
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
421 <note><title>提示:</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
422 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
423 如果由于某种原因,第二次编码的效果不能令你满意,你可以使用另外一种比特律
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
424 重新执行视频编码,只要你保存了前一次编码中生成的统计文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
425 这是可行因为生成统计文件的主要目的是记录每桢的复杂度,不是特别依赖于比特律。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
426 然而,你要注意的是如果所有编码按照与最终生成文件的比特律相差不大的参数执行
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
427 程序,你将得到最佳效果。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
428 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
429 </note>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
430 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
431
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
432
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
433 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
434
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
435
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
436 <sect1 id="menc-feat-rescale">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
437 <title>改变电影大小</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
438
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
439 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
440 经常出现要改变电影图片大小的需求。原因可能是多样的:减小文件大小,网络带宽
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
441 等等。大多数人甚至在将DVD或SVCD转换成DivX AVI时也改变影片大小。如果你想改变
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
442 影片大小,阅读<link linkend="aspect">保持长宽比</link>一节
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
443 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
444
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
445 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
446 变换过程由<literal>scale</literal>视频滤镜处理:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
447 <option>-vf scale=<replaceable>宽</replaceable>:<replaceable>高</replaceable></option>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
448 输出质量可由<option>-sws</option>选项调节。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
449 如果没有设置,<application>MEncoder</application>将使用2:双三次。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
450 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
451
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
452 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
453 用法:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
454 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
455 mencoder <replaceable>input.mpg</replaceable> -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
456 -vf scale=640:480 -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
457 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
458 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
459 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
460
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
461
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
462 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
463
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
464
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
465 <sect1 id="menc-feat-streamcopy">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
466 <title>媒体流复制</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
467
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
468 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
469 <application>MEncoder</application>能以两种方式处理输入媒体流:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
470 <emphasis role="bold">编码</emphasis>或<emphasis role="bold">复制</emphasis>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
471 本节是关于<emphasis role="bold">复制</emphasis>的。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
472 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
473
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
474 <itemizedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
475 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
476 <emphasis role="bold">视频流</emphasis> (选项<option>-ovc copy</option>):
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
477 一系列工作可以完成的很好 :) 好像把FLI或VIVO或MPEG-1视频放入(不是转换)到
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
478 一个AVI文件中!当然,只有<application>MPlayer</application>能播放这样的文
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
479 件:)并且也许它并没有生活上的实际价值。实际意义上:当只有音频流要被编码(
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
480 例如从无压缩的PCM到MP3)时,视频流才可能有用。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
481 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
482 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
483 <emphasis role="bold">音频流</emphasis> (选项<option>-oac copy</option>):
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
484 直接的。你可能提取一个外部音频文件(MP3,WAV)并将其合成到一个输出媒体流里。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
485 为此可使用<option>-audiofile <replaceable>文件名</replaceable></option>选项。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
486 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
487 </itemizedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
488
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
489 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
490 使用<option>-oac copy</option>从一种容器格式复制到另一种容器格式时,你可能需要
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
491 使用<option>-fafmttag</option>选项以保持原始文件的音频格式标签。例如,如果你将
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
492 一个使用AAC音频的NSV文件转换到AVI容器中,音频格式文件标签可能是错误的,需要被
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
493 转换。对于详细的音频格式标签,查看<filename>codecs.conf</filename>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
494 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
495
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
496 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
497 例子:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
498 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
499 mencoder <replaceable>input.nsv</replaceable> -oac copy -fafmttag 0x706D \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
500 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
501 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
502 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
503 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
504
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
505
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
506 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
507
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
508
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
509 <sect1 id="menc-feat-enc-images">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
510 <title>从多个输入图像文件进行编码(JPEG, PNG, TGA等)</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
511
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
512 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
513 <application>MEncoder</application>可以通过一个或多个JPEG, PNG, TGA, 或其
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
514 他图片文件制作电影。使用简单的桢复制,它能生成MJPEG (移动JPEG), MPNG
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
515 (移动PNG)或MTGA (移动TGA) 文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
516 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
517
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
518 <orderedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
519 <title>进程描述:</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
520 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
521 <application>MEncoder</application>使用<systemitem class="library">libjpeg</systemitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
522 (当解码PNG时,它将使用<systemitem class="library">libpng</systemitem>)将输入图片进行
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
523 <emphasis>解码</emphasis>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
524 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
525 <listitem><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
526 <application>MEncoder</application>然后将解码好的图片送到被选定的视频压缩器中
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
527 (DivX4, Xvid, FFmpeg msmpeg4等)。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
528 </para></listitem>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
529 </orderedlist>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
530
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
531 <formalpara>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
532 <title>例子</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
533 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
534 关于<option>-mf</option>选项的解释在man页中。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
535
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
536 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
537 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
538 使用当前目录下所有JPEG文件生成MPEG-4文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
539 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
540 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
541 -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
542 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
543 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
544 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
545
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
546 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
547 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
548 使用当前目录中的一些JPEG文件生成MPEG-4文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
549 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
550 mencoder mf://<replaceable>frame001.jpg,frame002.jpg</replaceable> -mf w=800:h=600:fps=25:type=jpg \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
551 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
552 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
553 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
554 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
555
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
556 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
557 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
558 使用显示指示的一系列JPEG文件生成MPEG-4文件(当前目录下的list.txt包含被用做源的文件列表,
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
559 一个一行):
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
560 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
561 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
562 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
563 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
564 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
565 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
566
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
567 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
568 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
569 使用当前目录下所有JPEG文件生成移动JPEG(MJPEG)文件:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
570 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
571 mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc copy -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
572 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
573 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
574 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
575
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
576 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
577 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
578 使用当前目录下所有PNG文件生成未压缩的文件:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
579 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
580 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc raw -oac copy -o <replaceable>output.avi</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
581 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
582 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
583 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
584
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
585 <note><para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
586 宽度必须是4的倍数,这是原始RGB AVI文件格式的限制。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
587 </para></note>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
588
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
589 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
590 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
591 使用当前目录下所有PNG文件生成移动PNG (MPNG)文件:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
592 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
593 mencoder mf://*.png -mf w=800:h=600:fps=25:type=png -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
594 --></screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
595 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
596 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
597
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
598 <informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
599 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
600 使用当前目录下的所有TGA文件生成移动TGA (MTGA)文件:
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
601 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
602 mencoder mf://*.tga -mf w=800:h=600:fps=25:type=tga -ovc copy -oac copy -o <replaceable>output.avi</replaceable><!--
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
603 --></screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
604 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
605 </informalexample>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
606 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
607 </formalpara>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
608 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
609
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
610
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
611 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
612
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
613
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
614 <sect1 id="menc-feat-extractsub">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
615 <title>将DVD子标题提取到VOBsub文件</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
616
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
617 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
618 <application>MEncoder</application>能将DVD子标题提取到VOBsub格式的文件中。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
619 它们是一对由<filename>.idx</filename>及<filename>.sub</filename>结尾的文件
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
620 组成。并且经常被压缩成一个<filename>.rar</filename>文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
621 <application>MPlayer</application>可通过
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
622 <option>-vobsub</option>及<option>-vobsubid</option>选项播放这些文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
623 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
624
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
625 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
626 你可以通过<option>-vobsubout</option>指定输出文件的基础名(例如不包括
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
627 <filename>.idx</filename>或<filename>.sub</filename>后缀),对于生成文件
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
628 子标题的索引使用<option>-vobsuboutindex</option>。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
629 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
630
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
631 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
632 如果不是从DVD输入,你应该使用<option>-ifo</option>来表明构建
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
633 生成的<filename>.idx</filename>文件所需的<filename>.ifo</filename>文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
634 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
635
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
636 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
637 如果输入不是DVD并且你没有<filename>.ifo</filename>文件,你需使用
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
638 <option>-vobsubid</option>选项以使其知道放入<filename>.idx</filename>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
639 文件的语言标识。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
640 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
641
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
642 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
643 如果<filename>.sub</filename>及<filename>.idx</filename>文件存在,每次
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
644 执行都回添加子标题。所以你再开始前需要手动清除这些文件。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
645 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
646
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
647 <example id="copying_two_subtitles_from_a_dvd_while_doing_two_pass_encoding">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
648 <title>在做双通道编码时从DVD复制子标题</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
649 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
650 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
651 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
652 -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 0 -sid 2
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
653 mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
654 -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 1 -sid 5<!--
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
655 --></screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
656 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
657
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
658 <example id="copying_a_french_subtitle_from_an_mpeg_file">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
659 <title>从一个MPEG文件复制法文子标题</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
660 <screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
661 rm <replaceable>subtitles.idx</replaceable> <replaceable>subtitles.sub</replaceable>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
662 mencoder <replaceable>movie.mpg</replaceable> -ifo <replaceable>movie.ifo</replaceable> -vobsubout <replaceable>subtitles</replaceable> -vobsuboutindex 0 \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
663 -vobsuboutid fr -sid 1 -nosound -ovc copy
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
664 </screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
665 </example>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
666 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
667
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
668
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
669 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
670
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
671
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
672 <sect1 id="aspect">
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
673 <title>保持视频画面比例</title>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
674 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
675 DVD及SVCD(例如MPEG-1/2)文件包含画面比例,此信息可用来指示播放器应如何显示视频流,
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
676 所以显示的人不会有个鸡蛋头(例如480x480 + 4:3 = 640x480)。然而当编码为AVI(DivX)
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
677 文件时,你要小心AVI头信息里没有包含这些值。重新设置这些比例是非常讨厌并且很花时间,
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
678 应该有更好的方法!
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
679 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
680
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
681 <para>还有</para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
682
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
683 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
684 MPEG-4有个独特的特点:视频流可以包含它需要的画面比例。是的,正像MPEG-1/2 (DVD,
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
685 SVCD)及H.263文件一样。可惜的是,除了<application>MPlayer</application>几乎没有播放器
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
686 支持这项MPEG-4属性。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
687 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
688
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
689 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
690 这种特性之可以与
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
691 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>的
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
692 <systemitem>mpeg4</systemitem>编码器一同使用。记住:虽然
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
693 <application>MPlayer</application>可以正常播放所生成的文件,其他播放器可能使用错误
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
694 的图象比例。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
695 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
696
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
697 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
698 你应剪切电影图像上下方的黑条。针对<systemitem>cropdetect</systemitem>及
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
699 <systemitem>crop</systemitem>滤镜的用法参考man页。
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
700 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
701
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
702 <para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
703 用法
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
704 <screen>mencoder <replaceable>sample-svcd.mpg</replaceable> -vf crop=714:548:0:14 -oac copy -ovc lavc \
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
705 -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -o <replaceable>output.avi</replaceable></screen>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
706 </para>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
707 </sect1>
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
708
c259aca9e09f new file: DOCS/xml/zh_CN/mencoder.xml
kraymer
parents:
diff changeset
709 </chapter>