Mercurial > mplayer.hg
annotate DOCS/formats.html @ 6965:f8ea0af8edb0
optimization
author | michael |
---|---|
date | Sun, 11 Aug 2002 10:12:15 +0000 |
parents | 87deea511b1f |
children | 916f62dd0910 |
rev | line source |
---|---|
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2745 | 2 <HTML> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4663
diff
changeset
|
3 |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4663
diff
changeset
|
4 <HEAD> |
6882
f3f87f6bf5cf
Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents:
6775
diff
changeset
|
5 <TITLE>Formats - MPlayer - The Movie Player for Linux</TITLE> |
6391 | 6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css"> |
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4663
diff
changeset
|
8 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4663
diff
changeset
|
9 |
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
10 <BODY> |
2745 | 11 |
12 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
13 <P><B><A NAME="formats">2.1 Supported formats</A></B></P> |
2745 | 14 |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
15 <P>It is important to clarify a common mistake. When people see a file with a |
6960 | 16 <B>.AVI</B> extension, they immediately conclude that it is not an MPEG file. |
17 That is not true. At least not entirely. Contrary to popular belief such a | |
18 file <B>can</B> contain MPEG1 video.</P> | |
2745 | 19 |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
20 <P>You see, a <B>codec</B> is not the same as a <B>file format</B>.<BR> |
6960 | 21 Examples of video <B>codecs</B> are: MPEG1, MPEG2, DivX, Indeo5, 3ivx.<BR> |
22 Examples of file <B>formats</B> are: MPG, AVI, ASF.<BR> | |
2745 | 23 </P> |
24 | |
6960 | 25 <P>In theory, you can put an OpenDivX video and MP3 audio into an <B>MPG</B> |
26 format file. However, most players will not play it, since they expect MPEG1 | |
27 video and MP2 audio (unlike <B>AVI</B>, <B>MPG</B> does not have the | |
28 necessary fields to describe its video and audio streams). Or you might put | |
29 MPEG1 video into an AVI file. | |
30 <A HREF="http://ffmpeg.sourceforge.net">FFmpeg</A> and | |
31 <A HREF="encoding.html">MEncoder</A> can create these files.</P> | |
2745 | 32 |
33 | |
34 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
35 <P><B><A NAME="video_formats">2.1.1 Video formats</A></B></P> |
2745 | 36 |
37 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
38 <P><B><A NAME="mpeg">2.1.1.1 MPEG files</A></B></P> |
2745 | 39 |
5395 | 40 <P>MPEG files come in different guises:</P> |
41 | |
42 <UL> | |
6960 | 43 <LI>MPG: This is the most <B>basic</B> form of the MPEG file formats. It |
44 contains MPEG1 video, and MP2 (MPEG-1 layer 2) or rarely MP1 audio.</LI> | |
45 <LI>DAT: This is the very same format as MPG with a different extension. It | |
46 is used on <B>Video CD</B>s. Due to the way VCDs are created and Linux is | |
47 designed, DAT files cannot be played nor copied from VCDs as regular files. | |
48 You have to use the <CODE>-vcd</CODE> option to play the Video CD.</LI> | |
49 <LI>VOB: This is the MPEG file format on <B>DVD</B>s. It is the same as MPG, | |
50 plus the capability to contain subtitles or non-MPEG (AC3) audio. It | |
51 contains encoded MPEG2 video and usually AC3 audio, but DTS, MP2 and | |
52 uncompressed LPCM are allowed, too.<BR> <B>Read the <A | |
53 HREF="cd-dvd.html#dvd">DVD section</A>!</B></LI> | |
5395 | 54 </UL> |
2745 | 55 |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
56 <P>Series of frames form independent groups in MPEG files. This means that you |
6960 | 57 can cut/join an MPEG file with standard file tools (like <CODE>dd</CODE>, |
58 <CODE>cut</CODE>), and it remains completely functional.</P> | |
2865 | 59 |
6960 | 60 <P>One important feature of MPGs is that they have a field to describe the |
61 aspect ratio of the video stream within. For example SVCDs have 480x480 | |
62 resolution video, and in the header that field is set to 4:3, so that it is | |
63 played at 640x480. AVI files do not have this field, so they have to be | |
64 rescaled during encoding or played with the <CODE>-aspect</CODE> option.</P> | |
2761 | 65 |
2745 | 66 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
67 <P><B><A NAME="avi">2.1.1.2 AVI files</A></B></P> |
2745 | 68 |
6960 | 69 <P>Designed by Microsoft, <B>AVI (Audio Video Interleaved)</B> is a widespread |
70 multipurpose format currently used mostly for DivX and DivX4 video. It has | |
71 many known drawbacks and shortcomings (for example in streaming). It | |
72 supports one video stream and 0 to 99 audio streams. File size is limited to | |
73 2GB, but there exists an extension allowing bigger files called | |
74 <B>OpenDMS</B>. Microsoft currently strongly discourages its use and | |
75 encourages ASF/WMV. Not that anybody cares.<BR> | |
5444 | 76 |
6175
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
77 <P>There is a hack that allows AVI files to contain an Ogg Vorbis audio |
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
78 stream, but makes them incompatible with standard AVI. <B>MPlayer</B> |
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
79 supports playing these files. Seeking is also implemented but severely |
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
80 hampered by badly encoded files with confusing headers. Unfortunately the |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
81 only encoder currently capable of creating these files, NanDub, has this |
6175
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
82 problem.</P> |
9c2cca3804c0
better wording, patch by Diego Biurrun <diego@biurrun.de>
arpi
parents:
6168
diff
changeset
|
83 |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
84 <P><B>Note:</B> DV cameras create raw DV streams that DV grabbing utilities |
6960 | 85 convert to two different types of AVI files. The AVI will then contain either |
86 separate audio and video streams that <B>MPlayer</B> can play or the raw DV | |
87 stream for which support is under development.</P> | |
2745 | 88 |
5395 | 89 <P>There are two kinds of AVI files:</P> |
2865 | 90 <UL> |
5395 | 91 <LI><B>Interleaved:</B> Audio and video content is interleaved. This is the |
2865 | 92 standard usage. Recommended and mostly used. Some tools create interleaved |
93 AVIs with bad sync. <B>MPlayer</B> detects these as interleaved, and this | |
94 climaxes in loss of A/V sync, probably at seeking. These files should be | |
95 played as non-interleaved (with the <CODE>-ni</CODE> option).</LI> | |
5395 | 96 <LI><B>Non-interleaved:</B> First comes the whole video stream, then the whole |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
97 audio stream. It thus needs a lot of seeking, making playing from network or |
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
98 CD-Rom difficult.</LI> |
2865 | 99 </UL> |
100 | |
5395 | 101 <P><B>MPlayer</B> supports two kinds of timings for AVI files:</P> |
2865 | 102 <UL> |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
103 <LI><B>bps-based</B>: It is based on the bitrate/samplerate of the video/audio stream. This |
5395 | 104 method is used by most players, including <A HREF="http://avifile.sourceforge.net">avifile</A> |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
105 and Windows Media Player. |
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
106 Files with broken headers, and files created with VBR audio but not with a |
2865 | 107 VBR-compliant encoder will result in A/V desync with this method (mostly at |
108 seeking).</LI> | |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
109 <LI><B>interleaving-based</B>: It does not use the bitrate value of the header, instead |
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
110 it uses the relative position of interleaved audio and video chunks, making |
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
111 badly encoded files with VBR audio playable.</LI> |
2865 | 112 </UL> |
113 | |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
114 <P>Any audio and video codec is allowed, but note that VBR audio is not well |
6960 | 115 supported by most players. The file format makes it possible to use VBR |
116 audio, but most players expect CBR audio, thus they fail with VBR. VBR is | |
117 uncommon and the Microsoft AVI specs only describe CBR audio. Most AVI | |
118 encoders/multiplexers create bad files when using VBR audio. There are only | |
119 two known exceptions: NanDub and <A HREF="encoding.html">MEncoder</A>.</P> | |
2865 | 120 |
2745 | 121 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
122 <P><B><A NAME="asf">2.1.1.3 ASF/WMV files</A></B></P> |
2745 | 123 |
2865 | 124 <P>ASF (active streaming format) comes from Microsoft. They developed two |
6960 | 125 variants of ASF, v1.0 and v2.0. v1.0 is used by their media tools (Windows |
126 Media Player and Windows Media Encoder) and is very secret. v2.0 is published | |
127 and patented :). Of course they differ, there is no compatibility at all (it | |
128 is just another legal game). <B>MPlayer</B> supports only v1.0, as nobody has | |
129 ever seen v2.0 files :). Note that ASF files nowadays come with the extension | |
130 .WMA or .WMV.</P> | |
2745 | 131 |
132 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
133 <P><B><A NAME="mov">2.1.1.4 QuickTime/MOV files</A></B></P> |
2865 | 134 |
6960 | 135 <P>These formats were designed by Apple and can contain any codec, CBR or VBR. |
136 They usually have a .QT or .MOV extension. Ever since the MPEG4 group chose | |
137 QuickTime as the recommended file format for MPEG4, their MOV files come with | |
138 an | |
139 .MPG or .MP4 extension (Interestingly the video and audio streams in these | |
140 files are real MPG and AAC files. You can even extract them with the | |
141 <CODE>-dumpvideo</CODE> and <CODE>-dumpaudio</CODE> options.).</P> | |
2745 | 142 |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
143 <P><B>Note:</B> Most new QuickTime files use <B>Sorenson</B> video and QDesign |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
144 Music audio. See our <A HREF="codecs.html#sorenson">Sorenson</A> codec |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
145 section. QDesign Music audio currently cannot be played.</P> |
2865 | 146 |
2745 | 147 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
148 <P><B><A NAME="vivo">2.1.1.5 VIVO files</A></B></P> |
2745 | 149 |
6960 | 150 <P><B>MPlayer</B> happily demuxes VIVO file formats. The biggest disadvantage |
151 of the format is that it has no index block, nor a fixed packet size or sync | |
152 bytes and most files lack even keyframes, so forget seeking!</P> | |
2865 | 153 |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
154 <P>The video codec of VIVO/1.0 files is standard <B>h.263</B>. The video codec |
6960 | 155 of VIVO/2.0 files is a modified, nonstandard <B>h.263v2</B>. The audio is the |
156 same, it may be <B>g.723</B> (standard), or <B>Vivo Siren</B>.</P> | |
2865 | 157 |
6960 | 158 <P>See the <A HREF="codecs.html#vivo_video">VIVO video codec</A> and |
159 <A HREF="codecs.html#vivo_audio">VIVO audio codec</A> sections for installation | |
160 instructions.</P> | |
2745 | 161 |
162 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
163 <P><B><A NAME="fli">2.1.1.6 FLI files</A></B></P> |
3806 | 164 |
6960 | 165 <P><B>FLI</B> is a very old file format used by Autodesk Animator, but it is a |
166 common file format for short animations on the net. <B>MPlayer</B> demuxes | |
167 and decodes FLI movies and is even able to seek within them (useful when | |
168 looping with the <CODE>-loop</CODE> option). FLI files do not have keyframes, | |
169 so the picture will be messy for a short time after seeking.</P> | |
3806 | 170 |
171 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
172 <P><B><A NAME="real">2.1.1.7 RealMedia (RM) files</A></B></P> |
3806 | 173 |
6357 | 174 <P>Yes, <B>MPlayer</B> can read (demux) RealMedia (.rm) files. Seeking works, |
175 but you have to explicitly specify the <CODE>-forceidx</CODE> option | |
176 (the format supports keyframes). Here are the lists of the supported | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
177 <A HREF="codecs.html#realvideo">RealVideo</A> |
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
178 and <A HREF="codecs.html#realaudio">RealAudio</A> codecs.</P> |
6357 | 179 |
3806 | 180 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
181 <P><B><A NAME="nuppelvideo">2.1.1.8 NuppelVideo files</A></B></P> |
3816 | 182 |
183 <P><A HREF="http://mars.tuwien.ac.at/~roman/nuppelvideo">NuppelVideo</A> | |
6960 | 184 is a TV grabber tool (AFAIK:). <B>MPlayer</B> can read its .NUV files (only |
185 NuppelVideo 5.0). Those files can contain uncompressed YV12, YV12+RTJpeg | |
186 compressed, YV12 RTJpeg+lzo compressed, and YV12+lzo compressed frames. | |
187 <B>MPlayer</B> decodes them all (and also <B>encodes</B> them with | |
188 <B>MEncoder</B> to DivX/etc!). Seeking works.</P> | |
3816 | 189 |
190 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
191 <P><B><A NAME="yuv4mpeg">2.1.1.9 yuv4mpeg files</A></B></P> |
3818 | 192 |
6960 | 193 <P><A HREF="http://mjpeg.sourceforge.net">yuv4mpeg / yuv4mpeg2</A> is a file |
194 format used by the <A HREF="http://mjpeg.sf.net">mjpegtools programs</A>. | |
195 You can grab, produce, filter or encode video in this format using these | |
196 tools. The file format is really a sequence of uncompressed YUV 4:2:0 | |
197 images. | |
5122
0d1642a26189
"sok ize, mutyur, bizbasz." --Gabucino, Feb 12 23:39:36 2002
arpi
parents:
5094
diff
changeset
|
198 </P> |
3818 | 199 |
200 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
201 <P><B><A NAME="film">2.1.1.10 FILM files</A></B></P> |
4339 | 202 |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
203 <P>This format is used on old Sega Saturn CD-Rom games.</P> |
4339 | 204 |
205 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
206 <P><B><A NAME="roq">2.1.1.11 RoQ files</A></B></P> |
4503 | 207 |
4584 | 208 <P>RoQ files are multimedia files used in some ID games such as Quake III and |
209 Return to Castle Wolfenstein.</P> | |
4503 | 210 |
211 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
212 <P><B><A NAME="ogg">2.1.1.12 OGG files</A></B></P> |
5860 | 213 |
6775
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
214 <P>This is a new file format from <A HREF="http://www.xiph.org">Xiphophorus</A>. |
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
215 It can contain any video or audio codec, CBR or VBR. You will need to |
7a41ce77089f
Moved RealPlayer libs installation to codecs.html where all the other
diego
parents:
6604
diff
changeset
|
216 have <CODE>libogg</CODE> and <CODE>libvorbis</CODE> installed |
5959 | 217 before compiling <B>MPlayer</B> to be able to play it.</P> |
5860 | 218 |
219 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
220 <P><B><A NAME="audio_formats">2.1.2 Audio formats</A></B></P> |
2745 | 221 |
5378 | 222 <P><B>MPlayer</B> is a <B>Movie</B> and not a <B>Media</B> player, although |
223 it can play some audio file formats (they are listed in the sections below). | |
224 This is not a recommended usage of <B>MPlayer</B>, you better use | |
225 <A HREF="http://www.xmms.org">xmms</A>.</P> | |
226 | |
227 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
228 <P><B><A NAME="mp3">2.1.2.1 MP3 files</A></B></P> |
5362
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
229 |
5882b38e1c2d
applied Diego's cosmetics patch :) with some small fixes
arpi
parents:
5122
diff
changeset
|
230 <P>You may have problems playing certain MP3 files that <B>MPlayer</B> will |
6960 | 231 misdetect as MPEGs and play incorrectly or not at all. This cannot be fixed |
232 without dropping support for certain broken MPEG files and thus will remain | |
233 like this for the foreseeable future. The <CODE>-demuxer</CODE> flag | |
234 described in the manpage may help you in these cases.</P> | |
2745 | 235 |
5378 | 236 |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
237 <P><B><A NAME="wav">2.1.2.2 WAV files</A></B></P> |
5378 | 238 |
239 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
240 <P><B><A NAME="ogg_vorbis">2.1.2.3 OGG files (Vorbis)</A></B></P> |
5378 | 241 |
5860 | 242 <P>Requires properly installed <CODE>libogg</CODE> and |
243 <CODE>libvorbis</CODE>.</P> | |
5378 | 244 |
245 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
246 <P><B><A NAME="wma">2.1.2.4 WMA/ASF files</A></B></P> |
5378 | 247 |
248 | |
6906
3274d0725fde
Changed all link names from the section number to a sensible label.
diego
parents:
6882
diff
changeset
|
249 <P><B><A NAME="mp4">2.1.2.5 MP4 files</A></B></P> |
5378 | 250 |
2745 | 251 </BODY> |
252 </HTML> |