Mercurial > mplayer.hg
annotate DOCS/xml/en/formats.xml @ 12000:204cb6d58da6
Keep the ./configure options for xvid in sync.
author | rathann |
---|---|
date | Fri, 27 Feb 2004 07:10:27 +0000 |
parents | d5c84f4b8740 |
children | bc34137bb0b0 |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10679
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <sect1 id="formats"> |
4 <title>Supported formats</title> | |
5 | |
6 <para> | |
7 It is important to clarify a common mistake. When people see a file with a | |
8 <filename>.AVI</filename> extension, they immediately conclude that it is | |
9 not an MPEG file. That is not true. At least not entirely. Contrary to | |
10 popular belief such a file <emphasis>can</emphasis> contain MPEG1 video. | |
11 </para> | |
12 | |
13 <para> | |
14 You see, a <emphasis role="bold">codec</emphasis> is not the same as a | |
15 <emphasis role="bold">file format</emphasis>. | |
16 Examples of video <emphasis role="bold">codecs</emphasis> are: MPEG1, MPEG2, DivX, Indeo5, 3ivx. | |
17 Examples of file <emphasis role="bold">formats</emphasis> are: MPG, AVI, ASF. | |
18 </para> | |
19 | |
20 <para> | |
21 In theory, you can put an OpenDivX video and MP3 audio | |
22 into an <emphasis role="bold">MPG format file</emphasis>. However, most | |
23 players will not play it, since they expect MPEG1 video and MP2 audio (unlike | |
24 <emphasis role="bold">AVI</emphasis>, <emphasis role="bold">MPG</emphasis> | |
25 does not have the necessary fields to describe its video and audio streams). | |
26 Or you might put MPEG1 video into an AVI file. | |
27 <ulink url="http://ffmpeg.sourceforge.net/">FFmpeg</ulink> and | |
11540 | 28 <link linkend="mencoder"><application>MEncoder</application></link> can create these files. |
9675 | 29 </para> |
30 | |
31 | |
32 <sect2 id="video-formats"> | |
33 <title>Video formats</title> | |
34 | |
35 <sect3 id="mpg-vob-dat"> | |
36 <title>MPEG files</title> | |
37 | |
38 <para> | |
39 MPEG files come in different guises: | |
40 </para> | |
41 | |
42 <itemizedlist> | |
43 <listitem><simpara> | |
44 MPG: This is the most <emphasis role="bold">basic</emphasis> form of the | |
45 MPEG file formats. It contains MPEG1 video, and MP2 (MPEG-1 layer 2) or | |
46 rarely MP1 audio. | |
47 </simpara></listitem> | |
48 <listitem><simpara> | |
49 DAT: This is the very same format as MPG with a different extension. It | |
50 is used on <emphasis role="bold">Video CDs</emphasis>. Due to the way VCDs | |
51 are created and Linux is designed, the DAT files cannot be played nor copied | |
10184
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
9683
diff
changeset
|
52 from VCDs as regular files. You have to use <option>vcd://</option> |
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
9683
diff
changeset
|
53 to play a Video CD. |
9675 | 54 </simpara></listitem> |
55 <listitem><simpara> | |
56 VOB: This is the MPEG file format on <emphasis role="bold">DVDs</emphasis>. | |
57 It is the same as MPG, plus the capability to contain subtitles or non-MPEG | |
58 (AC3) audio. It contains encoded MPEG2 video and usually AC3 audio, but DTS, | |
9683 | 59 MP2 and uncompressed LPCM are allowed, too. <emphasis role="bold">Read the |
11483 | 60 <link linkend="dvd">DVD</link> section</emphasis>! |
9675 | 61 </simpara></listitem> |
62 </itemizedlist> | |
63 | |
64 <para> | |
65 Series of frames form independent groups in MPEG files. This means that you | |
66 can cut/join an MPEG file with standard file tools (like | |
67 <command>dd</command>, <command>cut</command>), and it remains completely | |
68 functional. | |
69 </para> | |
70 | |
71 <para> | |
72 One important feature of MPGs is that they have a field to describe the | |
73 aspect ratio of the video stream within. For example SVCDs have 480x480 | |
74 resolution video, and in the header that field is set to 4:3, so that it is | |
75 played at 640x480. AVI files do not have this field, so they have to be | |
76 rescaled during encoding or played with the <option>-aspect</option> | |
77 option. | |
78 </para> | |
79 </sect3> | |
80 | |
81 | |
82 <sect3 id="avi"> | |
83 <title>AVI files</title> | |
84 | |
85 <para> | |
86 Designed by Microsoft, <emphasis role="bold">AVI (Audio Video Interleaved)</emphasis> | |
87 is a widespread multipurpose format currently used mostly for DivX and DivX4 | |
88 video. It has many known drawbacks and shortcomings (for example in streaming). It | |
89 supports one video stream and 0 to 99 audio streams and can be as big as | |
9683 | 90 2GB, but there exists an extension allowing bigger files called |
91 <emphasis role="bold">OpenDML</emphasis>. Microsoft currently strongly | |
92 discourages its use and encourages ASF/WMV. Not that anybody cares. | |
9675 | 93 </para> |
94 | |
95 <para> | |
96 There is a hack that allows AVI files to contain an Ogg Vorbis audio | |
97 stream, but makes them incompatible with standard AVI. | |
98 <application>MPlayer</application> supports playing these files. Seeking is | |
99 also implemented but severely hampered by badly encoded files with | |
100 confusing headers. Unfortunately the only encoder currently capable of | |
101 creating these files, <application>NanDub</application>, has this problem. | |
102 </para> | |
103 | |
104 <note> | |
105 <para> | |
106 DV cameras create raw DV streams that DV grabbing utilities convert to two | |
107 different types of AVI files. The AVI will then contain either separate | |
108 audio and video streams that <application>MPlayer</application> can play or | |
109 the raw DV stream for which support is under development. | |
110 </para> | |
111 </note> | |
112 | |
113 <para> | |
114 There are two kinds of AVI files: | |
115 <itemizedlist> | |
116 <listitem><simpara> | |
117 <emphasis role="bold">Interleaved:</emphasis> Audio and video content is | |
118 interleaved. This is the standard usage. Recommended and mostly used. Some tools | |
119 create interleaved AVIs with bad sync. <application>MPlayer</application> | |
120 detects these as interleaved, and this climaxes in loss of A/V sync, | |
121 probably at seeking. These files should be played as non-interleaved | |
122 (with the <option>-ni</option> option). | |
123 </simpara></listitem> | |
124 <listitem><simpara> | |
125 <emphasis role="bold">Non-interleaved:</emphasis> First comes the whole | |
126 video stream, then the whole audio stream. It thus needs a lot of seeking, | |
127 making playing from network or CD-ROM difficult. | |
128 </simpara></listitem> | |
129 </itemizedlist> | |
130 </para> | |
131 | |
132 <para> | |
133 <application>MPlayer</application> supports two kinds of timings for AVI | |
134 files: | |
135 <itemizedlist> | |
136 <listitem><simpara> | |
137 <emphasis role="bold">bps-based:</emphasis> It is based on the | |
138 bitrate/samplerate of the video/audio stream. This method is used by | |
139 most players, including <ulink url="http://avifile.sourceforge.net">avifile</ulink> | |
140 and <application>Windows Media Player</application>. Files with broken | |
141 headers, and files created with VBR audio but not VBR-compliant encoder | |
142 will result in A/V desync with this method (mostly at seeking). | |
143 </simpara></listitem> | |
144 <listitem><simpara> | |
145 <emphasis role="bold">interleaving-based:</emphasis> It does not use the bitrate | |
146 value of the header, instead it uses the relative position of interleaved | |
147 audio and video chunks, making badly encoded files with VBR audio playable. | |
148 </simpara></listitem> | |
149 </itemizedlist> | |
150 </para> | |
151 | |
152 <para> | |
153 Any audio and video codec is allowed, but note that VBR audio is not well | |
154 supported by most players. The file format makes it possible to use VBR | |
155 audio, but most players expect CBR audio, thus they fail with VBR. VBR is | |
156 uncommon and Microsoft's AVI specs only describe CBR audio. I also noticed | |
157 that most AVI encoders/multiplexers create bad files when using VBR audio. | |
11540 | 158 There are only two known exceptions: <application>NanDub</application> and |
159 <link linkend="mencoder"><application>MEncoder</application></link>. | |
9675 | 160 </para> |
161 </sect3> | |
162 | |
163 | |
164 <sect3 id="asf-wmv"> | |
165 <title>ASF/WMV files</title> | |
166 <para> | |
167 ASF (Active Streaming Format) comes from Microsoft. They developed two | |
168 variants of ASF, v1.0 and v2.0. v1.0 is used by their media tools (<application>Windows | |
169 Media Player</application> and <application>Windows Media Encoder</application>) | |
170 and is very secret. v2.0 is published and patented :). Of course they differ, | |
171 there is no compatibility at all (it is just another legal game). | |
172 <application>MPlayer</application> supports only v1.0, as nobody has ever seen | |
173 v2.0 files :). Note that ASF files nowadays come with the extension | |
174 <filename>.WMA</filename> or <filename>.WMV</filename>. | |
175 </para> | |
176 </sect3> | |
177 | |
178 | |
179 <sect3 id="qt-mov"> | |
180 <title>QuickTime/MOV files</title> | |
181 | |
182 <para> | |
183 These formats were designed by Apple and can contain any codec, CBR or VBR. | |
184 They usually have a <filename>.QT</filename> or <filename>.MOV</filename> | |
185 extension. Note that since the MPEG4 group chose QuickTime as the recommended | |
186 file format for MPEG4, their MOV files come with a <filename>.MPG</filename> or | |
187 <filename>.MP4</filename> extension (Interestingly the video and audio | |
9683 | 188 streams in these files are real MPG and AAC files. You can even extract them with the |
9675 | 189 <option>-dumpvideo</option> and <option>-dumpaudio</option> options.). |
190 </para> | |
191 | |
192 <note> | |
193 <para> | |
194 Most new QuickTime files use <emphasis role="bold">Sorenson</emphasis> video and | |
195 QDesign Music audio. See our <link linkend="sorenson">Sorenson</link> codec section. | |
196 </para> | |
197 </note> | |
198 </sect3> | |
199 | |
200 | |
201 <sect3 id="vivo"> | |
202 <title>VIVO files</title> | |
203 | |
204 <para> | |
205 <application>MPlayer</application> happily demuxes VIVO file formats. The | |
206 biggest disadvantage of the format is that it has no index block, nor a | |
207 fixed packet size or sync bytes and most files lack even keyframes, so | |
208 forget seeking! | |
209 </para> | |
210 | |
211 <para> | |
212 The video codec of VIVO/1.0 files is standard <emphasis role="bold">h.263</emphasis>. | |
213 The video codec of VIVO/2.0 files is a modified, nonstandard | |
214 <emphasis role="bold">h.263v2</emphasis>. The audio is the same, it may be | |
215 <emphasis role="bold">g.723 (standard)</emphasis>, or | |
216 <emphasis role="bold">Vivo Siren</emphasis>. | |
217 </para> | |
218 | |
219 <para> | |
220 See the | |
221 <link linkend="vivo-video">VIVO video codec</link> and | |
222 <link linkend="vivo-audio">VIVO audio codec</link> | |
223 sections for installation instructions. | |
224 </para> | |
225 </sect3> | |
226 | |
227 | |
228 <sect3 id="fli"> | |
229 <title>FLI files</title> | |
230 <para> | |
231 <emphasis role="bold">FLI</emphasis> is a very old file format used by | |
232 Autodesk Animator, but it is a common file format for short animations on the net. | |
233 <application>MPlayer</application> demuxes and decodes FLI movies and is | |
234 even able to seek within them (useful when looping with the | |
235 <option>-loop</option> option). FLI files do not have keyframes, so the | |
236 picture will be messy for a short time after seeking. | |
237 </para> | |
238 </sect3> | |
239 | |
240 | |
241 <sect3 id="realmedia"> | |
242 <title>RealMedia (RM) files</title> | |
243 | |
244 <para> | |
245 Yes, <application>MPlayer</application> can read (demux) RealMedia | |
246 (<filename>.rm</filename>) files. Seeking works, but you have to explicitly | |
247 specify the <option>-forceidx</option> option (the format supports | |
248 keyframes). Here are the lists of the supported <link | |
249 linkend="realvideo">RealVideo</link> and <link | |
250 linkend="realaudio">RealAudio</link> codecs. | |
251 </para> | |
252 </sect3> | |
253 | |
254 | |
255 <sect3 id="nuppelvideo"> | |
256 <title>NuppelVideo files</title> | |
257 <para> | |
258 <ulink url="http://mars.tuwien.ac.at/~roman/nuppelvideo">NuppelVideo</ulink> | |
259 is a TV grabber tool (AFAIK:). <application>MPlayer</application> can read | |
260 its <filename>.NUV</filename> files (only NuppelVideo 5.0). Those files can | |
261 contain uncompressed YV12, YV12+RTJpeg compressed, YV12 RTJpeg+lzo | |
262 compressed, and YV12+lzo compressed frames. | |
263 <application>MPlayer</application> decodes (and also <emphasis role="bold">encodes</emphasis> | |
264 them with <application>MEncoder</application> to DivX/etc!) them all. Seeking works. | |
265 </para> | |
266 </sect3> | |
267 | |
268 | |
269 <sect3 id="yuv4mpeg"> | |
270 <title>yuv4mpeg files</title> | |
271 <para> | |
272 <ulink url="http://mjpeg.sourceforge.net">yuv4mpeg / yuv4mpeg2</ulink> | |
273 is a file format used by the | |
274 <ulink url="http://mjpeg.sf.net">mjpegtools programs</ulink>. | |
275 You can grab, produce, filter or encode video in this format using these tools. | |
276 The file format is really a sequence of uncompressed YUV 4:2:0 images. | |
277 </para> | |
278 </sect3> | |
279 | |
280 | |
281 <sect3 id="film"> | |
282 <title>FILM files</title> | |
283 <para> | |
284 This format is used on old Sega Saturn CD-ROM games. | |
285 </para> | |
286 </sect3> | |
287 | |
288 | |
289 <sect3 id="roq"> | |
290 <title>RoQ files</title> | |
291 <para> | |
292 RoQ files are multimedia files used in some ID games such as Quake III and | |
293 Return to Castle Wolfenstein. | |
294 </para> | |
295 </sect3> | |
296 | |
297 | |
298 <sect3 id="ogg"> | |
299 <title>OGG/OGM files</title> | |
300 <para> | |
301 This is a new fileformat from <ulink url="http://www.xiph.org">Xiphophorus</ulink>. | |
302 It can contain any video or audio codec, CBR or VBR. You'll need | |
303 <systemitem class="library">libogg</systemitem> and | |
304 <systemitem class="library">libvorbis</systemitem> installed before | |
305 compiling <application>MPlayer</application> to be able to play it. | |
306 </para> | |
307 </sect3> | |
308 | |
309 | |
310 <sect3 id="sdp"> | |
311 <title>SDP files</title> | |
312 <para> | |
313 <ulink url="ftp://ftp.rfc-editor.org/in-notes/rfc2327.txt">SDP</ulink> is an | |
314 IETF standard format for describing video and/or audio RTP streams. | |
315 (The "<ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>" | |
316 are required.) | |
317 </para> | |
318 </sect3> | |
319 | |
320 | |
321 <sect3 id="pva"> | |
322 <title>PVA files</title> | |
323 <para> | |
324 PVA is an MPEG-like format used by DVB TV boards' software (e.g.: | |
10679 | 325 <application>MultiDec</application>, <application>WinTV</application> under Windows). |
9675 | 326 </para> |
327 | |
328 <para> | |
329 The PVA specifications can be downloaded from the following address: | |
330 <ulink url="http://www.technotrend.de/download/av_format_v1.pdf"/> | |
331 </para> | |
332 </sect3> | |
333 | |
334 | |
335 <sect3 id="gif"> | |
336 <title>GIF files</title> | |
337 <para> | |
338 The <emphasis role="bold">GIF</emphasis> format is a common format for web | |
339 graphics. There are two versions of the GIF spec, GIF87a and GIF89a. The | |
11540 | 340 main difference is that GIF89a allows for animation. <application>MPlayer</application> |
341 supports both formats through use of <systemitem class="library">libungif</systemitem> or | |
9675 | 342 another libgif-compatible library. Non-animated GIFs will be displayed as |
343 single frame videos. (Use the <option>-loop</option> and <option>-fixed-vo</option> | |
344 options to display these longer.) | |
345 </para> | |
346 | |
347 <para> | |
348 <application>MPlayer</application> currently does not support seeking in GIF | |
349 files. GIF files do not necessarily have a fixed frame size, nor a fixed | |
350 framerate. Rather, each frame is of independent size and is supposed to be | |
351 positioned in a certain place on a field of fixed-size. The framerate is | |
352 controlled by an optional block before each frame that specifies the next | |
353 frame's delay in centiseconds. | |
354 </para> | |
355 | |
356 <para> | |
357 Standard GIF files contain 24-bit RGB frames with at most an 8-bit indexed | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
11002
diff
changeset
|
358 palette. These frames are usually LZW-compressed, although some GIF encoders |
9675 | 359 produce uncompressed frames to avoid patent issues with LZW compression. |
360 </para> | |
361 | |
362 <para> | |
363 If your distribution does not come with <systemitem class="library">libungif</systemitem>, | |
364 download a copy from the | |
365 <ulink url="http://prtr-13.ucsc.edu/~badger/software/libungif/index.shtml">libungif | |
366 homepage</ulink>. For detailed technical information, have a look at the | |
367 <ulink url="http://www.w3.org/Graphics/GIF/spec-gif89a.txt">GIF89a specification</ulink>. | |
368 </para> | |
369 </sect3> | |
370 </sect2> | |
371 | |
372 <!-- ********** --> | |
373 | |
374 <sect2 id="audio-formats"> | |
375 <title>Audio formats</title> | |
376 | |
377 <para> | |
378 <application>MPlayer</application> is a <emphasis role="bold">movie</emphasis> | |
379 and not a <emphasis role="bold">media</emphasis> player, although it can play | |
380 some audio file formats (they are listed in the sections below). This is not | |
381 a recommended usage of <application>MPlayer</application>, you better use <ulink | |
382 url="http://www.xmms.org">XMMS</ulink>. | |
383 </para> | |
384 | |
385 <sect3 id="mp3"> | |
386 <title>MP3 files</title> | |
387 <para> | |
388 You may have problems playing certain MP3 files that | |
389 <application>MPlayer</application> will misdetect as MPEGs and play | |
390 incorrectly or not at all. This cannot be fixed without dropping support | |
391 for certain broken MPEG files and thus will remain like this for the | |
392 foreseeable future. The <option>-demuxer</option> flag described in the | |
11731 | 393 man page may help you in these cases. |
9675 | 394 </para> |
395 </sect3> | |
396 | |
397 <sect3 id="wav"> | |
398 <title>WAV files</title> | |
399 <para> | |
400 </para> | |
401 </sect3> | |
402 | |
403 <sect3 id="ogg-vorbis"> | |
404 <title>OGG/OGM files (Vorbis)</title> | |
405 <para> | |
406 Requires properly installed | |
407 <systemitem class="library">libogg</systemitem> and | |
408 <systemitem class="library">libvorbis</systemitem>. | |
409 </para> | |
410 </sect3> | |
411 | |
412 <sect3 id="wma-asf"> | |
413 <title>WMA/ASF files</title> | |
414 <para> | |
415 </para> | |
416 </sect3> | |
417 | |
418 <sect3 id="mp4"> | |
419 <title>MP4 files</title> | |
420 <para></para> | |
421 </sect3> | |
422 | |
423 <sect3 id="cdda"> | |
424 <title>CD audio</title> | |
425 <para> | |
426 <application>MPlayer</application> can use <application>cdparanoia</application> | |
427 to play CDDA (Audio CD). The scope of this section does not contain enumerating | |
428 <application>cdparanoia</application>'s features. | |
429 </para> | |
430 | |
431 <para> | |
432 See the man page's <option>-cdda</option> option which can be used to pass | |
433 options to <application>cdparanoia</application>. | |
434 </para> | |
435 </sect3> | |
436 | |
437 <sect3 id="xmms"> | |
438 <title>XMMS</title> | |
439 <para> | |
440 <application>MPlayer</application> can use <application>XMMS</application> input | |
441 plugins to play many file formats. There are plugins for SNES game tunes, SID | |
442 tunes (from Commodore 64), many Amiga formats, .xm, .it, VQF, musepack, Bonk, | |
443 shorten and many others. You can find them at the | |
444 <ulink url="http://www.xmms.org/plugins_input.html">XMMS input plugin page</ulink>. | |
445 </para> | |
446 | |
447 <para> | |
448 For this feature you need to have <application>XMMS</application> and compile | |
449 <application>MPlayer</application> with <filename>./configure --enable-xmms</filename>. | |
450 If that does not work, you might need to set the <application>XMMS</application> | |
451 plugin and library path explicitly by way of the <option>--with-xmmsplugindir</option> | |
11002
d8c03c27af4f
Configure option typo found by Piotr Michniewski <cobra_666@poczta.onet.pl>
diego
parents:
10913
diff
changeset
|
452 and <option>--with-xmmslibdir</option> options. |
9675 | 453 </para> |
454 </sect3> | |
455 </sect2> | |
456 </sect1> |