Mercurial > mplayer.hg
annotate DOCS/formats.html @ 4409:61e53100353e
add XF86 multimedia key cucc.
author | pontscho |
---|---|
date | Tue, 29 Jan 2002 16:35:53 +0000 |
parents | 4b231f3778a6 |
children | 0ae360217690 |
rev | line source |
---|---|
2745 | 1 <HTML> |
2 <BODY BGCOLOR=WHITE> | |
3 | |
4 <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2> | |
5 | |
6 | |
7 <P><B><A NAME=2.1>2.1. Supported formats</A></B></P> | |
8 | |
9 <P><B>MPlayer</B> can read/play from the following devices/formats:<BR> | |
10 <UL> | |
11 <LI> <A HREF="#2.1.1.1">VCD</A> (Video CD) directly from CD-ROM or from CDRwin's .bin image file | |
12 <LI> <A HREF="#2.1.1.1">DVD</A>, directly from your DVD disk, using libdvdread for decryption | |
13 <LI> <A HREF="#2.1.1.1">MPEG 1/2</A> System Stream (PS/PES/VOB) and Elementary Stream (ES) file | |
14 formats | |
15 <LI> <A HREF="#2.1.1.2">RIFF AVI</A> file format | |
16 <LI> <A HREF="#2.1.1.3">ASF/WMV</A> 1.0 file format | |
17 <LI> <A HREF="#2.1.1.4">QT/MOV</A> file format with (un)compressed headers | |
18 <LI> <A HREF="#2.1.1.5">VIVO</A> format (.viv files) | |
3806 | 19 <LI> <A HREF="#2.1.1.6">FLI</A> format |
20 <LI> <A HREF="#2.1.1.7">RealMedia</A> format (.rm files) | |
3816 | 21 <LI> <A HREF="#2.1.1.8">NuppelVideo</A> format (.nuv files) |
3818 | 22 <LI> <A HREF="#2.1.1.9">yuv4mpeg</A> format |
4339 | 23 <LI> <A HREF="#2.1.1.10">FILM</A> format |
2761 | 24 <LI> supports <A HREF="documentation.html#3.3">reading from stdin</A>, or network via HTTP |
2745 | 25 </UL></P> |
26 | |
27 <P>It's important to clarify a popular mistake. When people see a file with | |
28 <B>.AVI</B> extension, they instantly declare that isn't an MPEG file. | |
29 That's not true. At least not entirely. If you tell them that such a file | |
30 can contain MPEG1 video, they laugh at you. Feel free to kick their dumbass | |
31 faces, then tell them to RTFM.</P> | |
32 | |
33 <P>You see, a <B>codec</B> isn't equal to a <B>file format</B>.<BR> | |
34 Video <B>codecs</B> are: MPEG1, MPEG2, DivX, Indeo5, 3ivx.<BR> | |
2865 | 35 Video <B>formats</B> are: MPG, AVI, ASF.<BR> |
2745 | 36 </P> |
37 | |
38 <P>In theory, you can happily put an OpenDivX video and MP3 audio | |
39 into a <B>.MPG</B> format file. Though most players won't play it, since | |
40 they expect MPEG1 video and MP2 audio (<B>.MPG</B> doesn't have the | |
41 necessary fields to describe its video and audio streams, like <B>.AVI</B> | |
4177 | 42 does). Or put MPEG1 video to an .AVI. For example <A HREF="http://ffmpeg.sourceforge.net">ffmpeg</A> |
43 and <A HREF="encoding.html">MEncoder</A> can create these files.</P> | |
2745 | 44 |
45 <P>Audio <B>codecs</B> and <B>formats</B> are basically the same terms.</P> | |
46 | |
47 | |
48 <P><B><A NAME=2.1.1>2.1.1. Video formats</A></B></P> | |
49 | |
50 | |
2865 | 51 <P><B><A NAME=2.1.1.1>2.1.1.1. MPEG files</A></B></P> |
2745 | 52 |
53 <P> | |
54 <LI>MPG : this is the most <B>basic</B> form of MPEG file formats. Contains | |
2865 | 55 MPEG1 video, and MP2 (MPEG-1 layer 2) audio, or rarely MP1.</LI> |
56 <LI>DAT : this is the very same format as MPG, just different extension. Used | |
57 on <B>Video CD</B>s. Due to the nature VCDs are created and Linux is designed, | |
2745 | 58 the DAT files can't be played nor copied from VCDs. You have to use the |
59 <CODE>-vcd</CODE> option to play the VideoCD.</LI> | |
2865 | 60 <LI>VOB : this is the MPEG file format on <B>DVD</B>s. The same as MPG, plus |
61 capability to contain subtitles, or non-MPEG (AC3) audio. Contains encoded MPEG2 | |
62 video, and usually AC3 audio, but MP2 is allowed too.<BR> | |
63 <B>Read the <A HREF="cd-dvd.html#4.2">DVD section</A> !</B></LI> | |
2745 | 64 </P> |
65 | |
2865 | 66 <P>In MPEG files, series of frames are grouped together, and are independent |
67 from the other groups. What this means is you can cut/join an MPEG file with | |
68 standard file-tools (like dd, cut), and it remains completely functional.</P> | |
69 | |
2761 | 70 <P>One important feature for MPGs is that they have a field to describe |
71 the aspect ratio of the video stream within. For example SVCDs have | |
72 480x480 resolution video, and in the header that field is set to 4:3, so | |
73 it's played at 640x480. AVI files don't have this field, so one has to | |
2865 | 74 rescale it during encoding.</P> |
2761 | 75 |
2745 | 76 |
77 <P><B><A NAME=2.1.1.2>2.1.1.2. AVI files</A></B></P> | |
78 | |
79 <P>Designed by Micro$oft, the <B>AVI (Audio Video Interleaved)</B> is a | |
80 widespread multipurpose format, currently used mostly for DivX and DivX4 | |
81 videos. Has many known drawbacks, and inabilities (for example in streaming). | |
82 Has support for one video stream, and 99 audio streams. Can be as big as | |
83 2Gb. There exists an extension for it to be bigger, called <B>OpenDMS</B>. | |
2761 | 84 M$ currently strongly discourages its use and propagates ASF/WMV. Not if |
2745 | 85 anybody cares.<BR> |
86 <B>NOTE</B> : DV cameras can create two types of AVI format, one is the usual and | |
87 playable, the other is neither.</P> | |
88 | |
2865 | 89 <P>There are two kinds of AVI files: |
90 <UL> | |
91 <LI><B>Interleaved</B> : audio and video content is interleaved. This is the | |
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> | |
96 <LI><B>Non-interleaved</B> : bad. First come the whole video stream, then the whole | |
97 audio stream, thus needs a lot of seeking. It's very bad when playing from | |
98 network or CDROM.</LI> | |
99 </UL> | |
100 </P> | |
101 | |
102 <P>MPlayer supports 2 kind of timing for AVI files: | |
103 <UL> | |
104 <LI><B>bps-based</B> : it is based on bitrate/samplerate of video/audio stream. This | |
105 method is used by most players, including avifile and windows media player. | |
106 Files with broken headers, and files created with VBR audio but not | |
107 VBR-compliant encoder will result in A/V desync with this method (mostly at | |
108 seeking).</LI> | |
109 <LI><B>interleaving-based</B> : it doesn't use bitrate value of the header, instead | |
110 it uses the relative position of interleaved audio and video chunks. Makes | |
111 some badly encoded file with VBR audio playable.</LI> | |
112 </UL> | |
113 </P> | |
114 | |
115 <P>Any audio and video codec is allowed, but note that VBR audio isn't well | |
116 supported by most of the players. The file format makes it possible to use VBR | |
117 audio, but most players expect CBR audio, thus they fail with VBR. VBR is | |
118 unusual, and Microsoft's AVI specs only describe CBR audio. I also note, that | |
3027 | 119 most AVI encoders/multiplexers create bad files if using VBR audio. Only 2 |
2865 | 120 exception (known by me): NaNDub and <A HREF="encoding.html">MEncoder</A>.</P> |
121 | |
2745 | 122 |
123 <P><B><A NAME=2.1.1.3>2.1.1.3. ASF/WMV files</A></B></P> | |
124 | |
2865 | 125 <P>ASF (active streaming format) comes from Microsoft. They developed two |
126 variants of ASF, v1.0 and v2.0. v1.0 is used by their media tools (windows | |
127 media player and windows media encoder) and is very secret. v2.0 is published | |
128 and patented :). Of course they differ, there is no compatibility at all (it's | |
129 just another legal game). <B>MPlayer</B> supports only v1.0, as nobody has ever seen | |
130 v2.0 files :) . Note, that .ASF files nowdays come with the extension .WMA or | |
131 .WMV.</P> | |
2745 | 132 |
133 | |
2865 | 134 <P><B><A NAME=2.1.1.4>2.1.1.4. QuickTime/MOV files</A></B></P> |
135 | |
136 <P>These are from Macintosh. Usually have extensions of .QT or .MOV . Note | |
137 that since the MPEG4 Group chose QuickTime as the recommended file format | |
3027 | 138 for MPEG4, their .MOV files come with .MPG or .MP4 extension (interesting |
139 that in these files the video stream is a real .MPG file. With the | |
140 <CODE>-dumpvideo</CODE> option you can even extract it.).</P> | |
2745 | 141 |
2865 | 142 <P><B>Codecs</B>: any codecs allowed, both CBR and VBR. Note: most new mov files use |
143 <B>Sorenson</B> video and QDesign Music audio. These formats are completely | |
144 secret, and only Apple's quicktime player is able to play these files (on | |
145 win/mac only).</P> | |
146 | |
2745 | 147 |
148 <P><B><A NAME=2.1.1.5>2.1.1.5. VIV files</A></B></P> | |
149 | |
2865 | 150 <P><B>MPlayer</B> happily demuxes VIVO file formats. The format's big |
151 disadvantage is that it has no index block, nor fixed packetsize or sync bytes, | |
152 and most files lack even keyframes, so forget seeking!</P> | |
153 | |
154 <P>VIVO/1.0 files' video codec is standard <B>h.263</B> . The VIVO/2.0 files' | |
155 video codec is a modified, nonstandard <B>h.263</B> . Audio is the same, | |
156 it may be <B>g.723</B> (standard), or <B>Vivo Siren</B> .</P> | |
157 | |
158 <P>See the <A HREF=codecs.html#2.2.1.4>VIVO video codec</A> | |
3239
ef38487113b1
"Software AC3 decoding" section. Patch by Stephen Davies <steve@daviesfam.org>
gabucino
parents:
3027
diff
changeset
|
159 and <A HREF=codecs.html#2.2.2.4>VIVO audio codec</A> sections for installation |
2855 | 160 instructions.</P> |
2745 | 161 |
162 | |
3806 | 163 <P><B><A NAME=2.1.1.6>2.1.1.6. FLI files</A></B></P> |
164 | |
165 <P><B>FLI</B> is a very old fileformat used by Autodesk Animator, but it's | |
166 a common fileformat 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 -loop option). FLI files don't have keyframes, so picture | |
169 will be messy for a short time after seeking.</P> | |
170 | |
171 | |
172 <P><B><A NAME=2.1.1.7>2.1.1.7. RealMedia (RM) files</A></B></P> | |
173 | |
174 <P>Yes, <B>MPlayer</B> can read (demux) RealMedia (.rm) files. Seeking | |
175 is under implementation, and RM has keyframes so it will be flawless. | |
176 Here are the lists of the supported <A HREF="codecs.html#2.2.1.8">RealVideo</A> | |
177 and <A HREF="codecs.html#2.2.2.5">RealAudio</A> codecs. | |
178 | |
179 | |
3816 | 180 <P><B><A NAME=2.1.1.8>2.1.1.8. NuppelVideo files</A></B></P> |
181 | |
182 <P><A HREF="http://mars.tuwien.ac.at/~roman/nuppelvideo">NuppelVideo</A> | |
183 is a TV grabber tool (AFAIK:). <B>MPlayer</B> can read its <CODE>.nuv</CODE> | |
184 files (only NuppelVideo 5.0). Those files can contain uncompressed YV12, | |
185 YV12+RTJpeg compressed, YV12 RTJpeg+lzo compressed, and YV12+lzo compressed | |
186 frames, <B>MPlayer</B> decodes (and also <B>encodes</B> them with MEncoder to | |
187 DivX/etc!) them all. Seeking is under implementation.</P> | |
188 | |
189 | |
3818 | 190 <P><B><A NAME=2.1.1.9>2.1.1.9. yuv4mpeg files</A></B></P> |
191 | |
192 <P><A HREF="http://mjpeg.sourceforge.net">yuv4mpeg / yuv4mpeg2</A> is | |
193 also a fileformat for TV grabbing, or so :) I know only one thing about it: | |
194 we support it.</P> | |
195 | |
196 | |
4339 | 197 <P><B><A NAME=2.1.1.10>2.1.1.10. FILM files</A></B></P> |
198 | |
199 <P>This format is used on old Sega Saturn CD-ROM games.</P> | |
200 | |
201 | |
2745 | 202 <P><B><A NAME=2.1.2>2.1.2. Audio formats</A></B></P> |
203 | |
204 <P>Currently <B>MPlayer</B> is still a <B>Movie</B> and not a <B>Media</B> | |
205 player, thus the pure audio formats (for example MP3, WAV, audio ASF) are | |
206 unplayable. Use <A HREF="http://www.xmms.org">xmms</A>, <A HREF="http://www.mpg123.de">mpg123</A> | |
207 or whatever.</P> | |
208 | |
209 </BODY> | |
210 </HTML> |