Mercurial > mplayer.hg
comparison DOCS/xml/en/mencoder.xml @ 21521:b210a229fbcb
General reformatting round:
- fix some " -> "
- reindent with more consistency
- visual markup of <sect?> tags
- break overly long lines
- add missing <replaceable> tags in examples
- cola truck standing by
author | torinthiel |
---|---|
date | Fri, 08 Dec 2006 11:38:06 +0000 |
parents | 275446fef914 |
children | f551403d82a9 |
comparison
equal
deleted
inserted
replaced
21520:0977cf2eb136 | 21521:b210a229fbcb |
---|---|
37 <tgroup cols="2"> | 37 <tgroup cols="2"> |
38 <thead> | 38 <thead> |
39 <row><entry>Audio codec name</entry><entry>Description</entry></row> | 39 <row><entry>Audio codec name</entry><entry>Description</entry></row> |
40 </thead> | 40 </thead> |
41 <tbody> | 41 <tbody> |
42 <row> | 42 <row> |
43 <entry>mp3lame</entry> | 43 <entry>mp3lame</entry> |
44 <entry>encode to VBR, ABR or CBR MP3 with LAME</entry> | 44 <entry>encode to VBR, ABR or CBR MP3 with LAME</entry> |
45 </row> | 45 </row> |
46 <row> | 46 <row> |
47 <entry>lavc</entry> | 47 <entry>lavc</entry> |
48 <entry>use one of <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem>'s audio codecs</link> | 48 <entry>use one of <link linkend="menc-feat-enc-libavcodec-audio-codecs"><systemitem class="library">libavcodec</systemitem>'s audio codecs</link> |
49 </entry> | 49 </entry> |
50 </row> | 50 </row> |
51 <row> | 51 <row> |
52 <entry>faac</entry> | 52 <entry>faac</entry> |
53 <entry>FAAC AAC audio encoder</entry> | 53 <entry>FAAC AAC audio encoder</entry> |
54 </row> | 54 </row> |
55 <row> | 55 <row> |
56 <entry>toolame</entry> | 56 <entry>toolame</entry> |
57 <entry>MPEG Audio Layer 2 encoder</entry> | 57 <entry>MPEG Audio Layer 2 encoder</entry> |
58 </row> | 58 </row> |
59 <row> | 59 <row> |
60 <entry>twolame</entry> | 60 <entry>twolame</entry> |
61 <entry>MPEG Audio Layer 2 encoder based on tooLAME</entry> | 61 <entry>MPEG Audio Layer 2 encoder based on tooLAME</entry> |
62 </row> | 62 </row> |
63 <row> | 63 <row> |
64 <entry>pcm</entry> | 64 <entry>pcm</entry> |
65 <entry>uncompressed PCM audio</entry> | 65 <entry>uncompressed PCM audio</entry> |
66 </row> | 66 </row> |
67 <row> | 67 <row> |
68 <entry>copy</entry> | 68 <entry>copy</entry> |
69 <entry>do not reencode, just copy compressed frames</entry> | 69 <entry>do not reencode, just copy compressed frames</entry> |
70 </row> | 70 </row> |
71 </tbody> | 71 </tbody> |
72 </tgroup> | 72 </tgroup> |
73 </informaltable> | 73 </informaltable> |
74 </para> | 74 </para> |
75 | 75 |
79 <tgroup cols="2"> | 79 <tgroup cols="2"> |
80 <thead> | 80 <thead> |
81 <row><entry>Video codec name</entry><entry>Description</entry></row> | 81 <row><entry>Video codec name</entry><entry>Description</entry></row> |
82 </thead> | 82 </thead> |
83 <tbody> | 83 <tbody> |
84 <row> | 84 <row> |
85 <entry>lavc</entry> | 85 <entry>lavc</entry> |
86 <entry>use one of <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem>'s video codecs</link> | 86 <entry>use one of <link linkend="menc-feat-enc-libavcodec-video-codecs"><systemitem class="library">libavcodec</systemitem>'s video codecs</link> |
87 </entry> | 87 </entry> |
88 </row> | 88 </row> |
89 <row> | 89 <row> |
90 <entry>xvid</entry> | 90 <entry>xvid</entry> |
91 <entry>Xvid, MPEG-4 Advanced Simple Profile (ASP) codec</entry> | 91 <entry>Xvid, MPEG-4 Advanced Simple Profile (ASP) codec</entry> |
92 </row> | 92 </row> |
93 <row> | 93 <row> |
94 <entry>x264</entry> | 94 <entry>x264</entry> |
95 <entry>x264, MPEG-4 Advanced Video Coding (AVC), AKA H.264 codec</entry> | 95 <entry>x264, MPEG-4 Advanced Video Coding (AVC), AKA H.264 codec</entry> |
96 </row> | 96 </row> |
97 <row> | 97 <row> |
98 <entry>nuv</entry> | 98 <entry>nuv</entry> |
99 <entry>nuppel video, used by some realtime applications</entry> | 99 <entry>nuppel video, used by some realtime applications</entry> |
100 </row> | 100 </row> |
101 <row> | 101 <row> |
102 <entry>raw</entry> | 102 <entry>raw</entry> |
103 <entry>uncompressed video frames</entry> | 103 <entry>uncompressed video frames</entry> |
104 </row> | 104 </row> |
105 <row> | 105 <row> |
106 <entry>copy</entry> | 106 <entry>copy</entry> |
107 <entry>do not reencode, just copy compressed frames</entry> | 107 <entry>do not reencode, just copy compressed frames</entry> |
108 </row> | 108 </row> |
109 <row> | 109 <row> |
110 <entry>frameno</entry> | 110 <entry>frameno</entry> |
111 <entry>used for 3-pass encoding (not recommended)</entry> | 111 <entry>used for 3-pass encoding (not recommended)</entry> |
112 </row> | 112 </row> |
113 </tbody> | 113 </tbody> |
114 </tgroup> | 114 </tgroup> |
115 </informaltable> | 115 </informaltable> |
116 </para> | 116 </para> |
117 | 117 |
131 <tgroup cols="2"> | 131 <tgroup cols="2"> |
132 <thead> | 132 <thead> |
133 <row><entry>Container format name</entry><entry>Description</entry></row> | 133 <row><entry>Container format name</entry><entry>Description</entry></row> |
134 </thead> | 134 </thead> |
135 <tbody> | 135 <tbody> |
136 <row> | 136 <row> |
137 <entry>lavf</entry> | 137 <entry>lavf</entry> |
138 <entry>one of the containers supported by | 138 <entry>one of the containers supported by |
139 <systemitem class="library">libavformat</systemitem></entry> | 139 <systemitem class="library">libavformat</systemitem></entry> |
140 </row> | 140 </row> |
141 <row> | 141 <row> |
142 <entry>avi</entry> | 142 <entry>avi</entry> |
143 <entry>Audio-Video Interleaved</entry> | 143 <entry>Audio-Video Interleaved</entry> |
144 </row> | 144 </row> |
145 <row> | 145 <row> |
146 <entry>mpeg</entry> | 146 <entry>mpeg</entry> |
147 <entry>MPEG-1 and MPEG-2 PS</entry> | 147 <entry>MPEG-1 and MPEG-2 PS</entry> |
148 </row> | 148 </row> |
149 <row> | 149 <row> |
150 <entry>rawvideo</entry> | 150 <entry>rawvideo</entry> |
151 <entry>raw video stream (no muxing - one video stream only)</entry> | 151 <entry>raw video stream (no muxing - one video stream only)</entry> |
152 </row> | 152 </row> |
153 <row> | 153 <row> |
154 <entry>rawaudio</entry> | 154 <entry>rawaudio</entry> |
155 <entry>raw audio stream (no muxing - one audio stream only)</entry> | 155 <entry>raw audio stream (no muxing - one audio stream only)</entry> |
156 </row> | 156 </row> |
157 </tbody> | 157 </tbody> |
158 </tgroup> | 158 </tgroup> |
159 </informaltable> | 159 </informaltable> |
160 The AVI container is the native container format for | 160 The AVI container is the native container format for |
161 <application>MEncoder</application>, which means that it's the one that | 161 <application>MEncoder</application>, which means that it's the one that |
183 <thead><row> | 183 <thead><row> |
184 <entry><systemitem class="library">libavformat</systemitem> container name</entry> | 184 <entry><systemitem class="library">libavformat</systemitem> container name</entry> |
185 <entry>Description</entry> | 185 <entry>Description</entry> |
186 </row></thead> | 186 </row></thead> |
187 <tbody> | 187 <tbody> |
188 <row> | 188 <row> |
189 <entry>mpg</entry> | 189 <entry>mpg</entry> |
190 <entry>MPEG-1 and MPEG-2 PS</entry> | 190 <entry>MPEG-1 and MPEG-2 PS</entry> |
191 </row> | 191 </row> |
192 <row> | 192 <row> |
193 <entry>asf</entry> | 193 <entry>asf</entry> |
194 <entry>Advanced Streaming Format</entry> | 194 <entry>Advanced Streaming Format</entry> |
195 </row> | 195 </row> |
196 <row> | 196 <row> |
197 <entry>avi</entry> | 197 <entry>avi</entry> |
198 <entry>Audio-Video Interleaved</entry> | 198 <entry>Audio-Video Interleaved</entry> |
199 </row> | 199 </row> |
200 <row> | 200 <row> |
201 <entry>wav</entry> | 201 <entry>wav</entry> |
202 <entry>Waveform Audio</entry> | 202 <entry>Waveform Audio</entry> |
203 </row> | 203 </row> |
204 <row> | 204 <row> |
205 <entry>swf</entry> | 205 <entry>swf</entry> |
206 <entry>Macromedia Flash</entry> | 206 <entry>Macromedia Flash</entry> |
207 </row> | 207 </row> |
208 <row> | 208 <row> |
209 <entry>flv</entry> | 209 <entry>flv</entry> |
210 <entry>Macromedia Flash video</entry> | 210 <entry>Macromedia Flash video</entry> |
211 </row> | 211 </row> |
212 <row> | 212 <row> |
213 <entry>rm</entry> | 213 <entry>rm</entry> |
214 <entry>RealMedia</entry> | 214 <entry>RealMedia</entry> |
215 </row> | 215 </row> |
216 <row> | 216 <row> |
217 <entry>au</entry> | 217 <entry>au</entry> |
218 <entry>SUN AU</entry> | 218 <entry>SUN AU</entry> |
219 </row> | 219 </row> |
220 <row> | 220 <row> |
221 <entry>nut</entry> | 221 <entry>nut</entry> |
222 <entry>NUT open container (experimental and not yet spec-compliant)</entry> | 222 <entry>NUT open container (experimental and not yet spec-compliant)</entry> |
223 </row> | 223 </row> |
224 <row> | 224 <row> |
225 <entry>mov</entry> | 225 <entry>mov</entry> |
226 <entry>QuickTime</entry> | 226 <entry>QuickTime</entry> |
227 </row> | 227 </row> |
228 <row> | 228 <row> |
229 <entry>mp4</entry> | 229 <entry>mp4</entry> |
230 <entry>MPEG-4 format</entry> | 230 <entry>MPEG-4 format</entry> |
231 </row> | 231 </row> |
232 <row> | 232 <row> |
233 <entry>dv</entry> | 233 <entry>dv</entry> |
234 <entry>Sony Digital Video container</entry> | 234 <entry>Sony Digital Video container</entry> |
235 </row> | 235 </row> |
236 </tbody> | 236 </tbody> |
237 </tgroup> | 237 </tgroup> |
238 </informaltable> | 238 </informaltable> |
239 As you can see, <systemitem class="library">libavformat</systemitem> | 239 As you can see, <systemitem class="library">libavformat</systemitem> |
240 allows <application>MEncoder</application> to mux into a considerable | 240 allows <application>MEncoder</application> to mux into a considerable |
245 Please check to be sure that the audio/video synchronization is OK | 245 Please check to be sure that the audio/video synchronization is OK |
246 and that the file can be played correctly by players other than | 246 and that the file can be played correctly by players other than |
247 <application>MPlayer</application>. | 247 <application>MPlayer</application>. |
248 </para> | 248 </para> |
249 | 249 |
250 <informalexample> | 250 <example> |
251 <para>Example:</para> | 251 <title>encode to Macromedia Flash format</title> |
252 <para> | 252 <para> |
253 Creating a Macromedia Flash video suitable for playback in a web browser | 253 Creating a Macromedia Flash video suitable for playback in a web browser |
254 with the Macromedia Flash plugin: | 254 with the Macromedia Flash plugin: |
255 <screen> | 255 <screen> |
256 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf \ | 256 mencoder <replaceable>input.avi</replaceable> -o <replaceable>output.flv</replaceable> -of lavf \ |
257 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \ | 257 -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \ |
258 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 | 258 -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 |
259 </screen> | 259 </screen> |
260 </para> | 260 </para> |
261 </informalexample> | 261 </example> |
262 | 262 |
263 </sect1> | 263 </sect1> |
264 | 264 |
265 | 265 |
266 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | 266 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
316 | 316 |
317 <sect1 id="menc-feat-mpeg4"> | 317 <sect1 id="menc-feat-mpeg4"> |
318 <title>Encoding two pass MPEG-4 ("DivX")</title> | 318 <title>Encoding two pass MPEG-4 ("DivX")</title> |
319 | 319 |
320 <para> | 320 <para> |
321 The name comes from the fact that this method encodes the file <emphasis>twice</emphasis>. | 321 The name comes from the fact that this method encodes the file |
322 The first encoding (dubbed pass) creates some temporary files | 322 <emphasis>twice</emphasis>. The first encoding (dubbed pass) creates some |
323 (<filename>*.log</filename>) with a size of few megabytes, do not delete | 323 temporary files (<filename>*.log</filename>) with a size of few megabytes, do |
324 them yet (you can delete the AVI or rather just not create any video by | 324 not delete them yet (you can delete the AVI or rather just not create any video |
325 redirecting it into <filename>/dev/null</filename>). | 325 by redirecting it into <filename>/dev/null</filename>). |
326 In the second pass, the two pass output | 326 In the second pass, the two pass output |
327 file is created, using the bitrate data from the temporary files. The | 327 file is created, using the bitrate data from the temporary files. The |
328 resulting file will have much better image quality. If this is the first | 328 resulting file will have much better image quality. If this is the first |
329 time you heard about this, you should consult some guides available on the | 329 time you heard about this, you should consult some guides available on the |
330 net. | 330 net. |
554 <sect1 id="menc-feat-enc-images"> | 554 <sect1 id="menc-feat-enc-images"> |
555 <title>Encoding from multiple input image files (JPEG, PNG, TGA, etc.)</title> | 555 <title>Encoding from multiple input image files (JPEG, PNG, TGA, etc.)</title> |
556 | 556 |
557 <para> | 557 <para> |
558 <application>MEncoder</application> is capable of creating movies from one | 558 <application>MEncoder</application> is capable of creating movies from one |
559 or more JPEG, PNG, TGA, or other image files. With simple framecopy it can create MJPEG | 559 or more JPEG, PNG, TGA, or other image files. With simple framecopy it can |
560 (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files. | 560 create MJPEG (Motion JPEG), MPNG (Motion PNG) or MTGA (Motion TGA) files. |
561 </para> | 561 </para> |
562 | 562 |
563 <orderedlist> | 563 <orderedlist> |
564 <title>Explanation of the process:</title> | 564 <title>Explanation of the process:</title> |
565 <listitem><para> | 565 <listitem><para> |
566 <application>MEncoder</application> <emphasis>decodes</emphasis> the input image(s) with | 566 <application>MEncoder</application> <emphasis>decodes</emphasis> the input |
567 <systemitem class="library">libjpeg</systemitem> (when decoding PNGs, it | 567 image(s) with <systemitem class="library">libjpeg</systemitem> (when decoding |
568 will use <systemitem class="library">libpng</systemitem>). | 568 PNGs, it will use <systemitem class="library">libpng</systemitem>). |
569 </para></listitem> | 569 </para></listitem> |
570 <listitem><para> | 570 <listitem><para> |
571 <application>MEncoder</application> then feeds the decoded image to the | 571 <application>MEncoder</application> then feeds the decoded image to the |
572 chosen video compressor (DivX4, Xvid, FFmpeg msmpeg4, etc.). | 572 chosen video compressor (DivX4, Xvid, FFmpeg msmpeg4, etc.). |
573 </para></listitem> | 573 </para></listitem> |
598 </para> | 598 </para> |
599 </informalexample> | 599 </informalexample> |
600 | 600 |
601 <informalexample> | 601 <informalexample> |
602 <para> | 602 <para> |
603 Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current directory | 603 Creating an MPEG-4 file from explicit list of JPEG files (list.txt in current |
604 contains the list of files to use as source, one per line): | 604 directory contains the list of files to use as source, one per line): |
605 <screen> | 605 <screen> |
606 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \ | 606 mencoder mf://<replaceable>@list.txt</replaceable> -mf w=800:h=600:fps=25:type=jpg \ |
607 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable> | 607 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o <replaceable>output.avi</replaceable> |
608 </screen> | 608 </screen> |
609 </para> | 609 </para> |
627 </screen> | 627 </screen> |
628 </para> | 628 </para> |
629 </informalexample> | 629 </informalexample> |
630 | 630 |
631 <note><para> | 631 <note><para> |
632 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI format. | 632 Width must be integer multiple of 4, it is a limitation of the RAW RGB AVI |
633 format. | |
633 </para></note> | 634 </para></note> |
634 | 635 |
635 <informalexample> | 636 <informalexample> |
636 <para> | 637 <para> |
637 Creating a Motion PNG (MPNG) file from all the PNG files in the current | 638 Creating a Motion PNG (MPNG) file from all the PNG files in the current |
735 | 736 |
736 <para>There is</para> | 737 <para>There is</para> |
737 | 738 |
738 <para> | 739 <para> |
739 MPEG-4 has a unique feature: the video stream can contain its needed aspect | 740 MPEG-4 has a unique feature: the video stream can contain its needed aspect |
740 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there are | 741 ratio. Yes, just like MPEG-1/2 (DVD, SVCD) and H.263 files. Regretfully, there |
741 few video players apart from <application>MPlayer</application> that support this | 742 are few video players apart from <application>MPlayer</application> that |
742 MPEG-4 attribute. | 743 support this MPEG-4 attribute. |
743 </para> | 744 </para> |
744 | 745 |
745 <para> | 746 <para> |
746 This feature can be used only with | 747 This feature can be used only with |
747 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s | 748 <link linkend="ffmpeg"><systemitem class="library">libavcodec</systemitem></link>'s |