Mercurial > mplayer.hg
comparison DOCS/tech/formats.txt @ 2767:812e60e913a2
fixes suggested by atmos
author | arpi |
---|---|
date | Thu, 08 Nov 2001 13:37:32 +0000 |
parents | a24cd70a12d1 |
children | 8bb4e195d7d7 |
comparison
equal
deleted
inserted
replaced
2766:49c31fd18273 | 2767:812e60e913a2 |
---|---|
44 enables -ni option if it finds non-interleaved content. but sometimes | 44 enables -ni option if it finds non-interleaved content. but sometimes |
45 the stream seems to be interleaved, but with bad sync so it should be | 45 the stream seems to be interleaved, but with bad sync so it should be |
46 played as non-interleaved otherwise you get a-v desync or buffer overflow. | 46 played as non-interleaved otherwise you get a-v desync or buffer overflow. |
47 | 47 |
48 MPlayer supports 2 kind of timing for AVI files: | 48 MPlayer supports 2 kind of timing for AVI files: |
49 - bps-based: it is baed on bitrate/samplerate of video/audio steram. | 49 - bps-based: it is based on bitrate/samplerate of video/audio steram. |
50 this method is used by most players, including avifile and wmp. | 50 this method is used by most players, including avifile and wmp. |
51 files with broken headers, and files created with VBR audio but not | 51 files with broken headers, and files created with VBR audio but not |
52 vbr-compliant encoder will result a-v desync with this method. | 52 vbr-compliant encoder will result a-v desync with this method. |
53 (mostly at seeking). | 53 (mostly at seeking). |
54 - interleaving-based: note: it can't be used togethwer with -ni | 54 - interleaving-based: note: it can't be used togethwer with -ni |
59 Headers: AVI files has a mandatory header at the begin of the file, | 59 Headers: AVI files has a mandatory header at the begin of the file, |
60 describing video parameters (resolution, fps) and codecs. Optionally | 60 describing video parameters (resolution, fps) and codecs. Optionally |
61 they have an INDEX block at the end of the file. It's optional, but | 61 they have an INDEX block at the end of the file. It's optional, but |
62 most files has such block, because it REQUIRES for seeking. | 62 most files has such block, because it REQUIRES for seeking. |
63 Btw usually it can be rebuild from file content, mplayer does it with | 63 Btw usually it can be rebuild from file content, mplayer does it with |
64 the -idx switch. Mplayer can fix broken index blocks using -forceidx. | 64 the -idx switch. Mplayer can recreate broken index blocks using -forceidx. |
65 As AVI files needs index for random access, broken files with no index | 65 As AVI files needs index for random access, broken files with no index |
66 are usually unplayable. | 66 are usually unplayable. |
67 Of course, cutting/joining AVI files needs special programs. | 67 Of course, cutting/joining AVI files needs special programs. |
68 | 68 |
69 Codecs: any audio and video codecs allowed, but I note that VBR audio is | 69 Codecs: any audio and video codecs allowed, but I note that VBR audio is |
88 Asf uses fixed packet size, so it is seekable without any INDEX block, | 88 Asf uses fixed packet size, so it is seekable without any INDEX block, |
89 and broken files are playable well. | 89 and broken files are playable well. |
90 | 90 |
91 Codecs: video is mostly microsoft's mpeg4 variants: MP42, MP43 (aka DivX), | 91 Codecs: video is mostly microsoft's mpeg4 variants: MP42, MP43 (aka DivX), |
92 WMV1 and WMV2. but any codecs allowed. | 92 WMV1 and WMV2. but any codecs allowed. |
93 audio is usually wma or voxware, but any codecs allowed. | 93 audio is usually wma or voxware, sometimes mp3, but any codecs allowed. |
94 | 94 |
95 FPS: no fixed fps, every video frame has an exact timestamp instead. | 95 FPS: no fixed fps, every video frame has an exact timestamp instead. |
96 I've got stream with up to 3 sec frame display times. | 96 I've got stream with up to 3 sec frame display times. |
97 | 97 |
98 - QuickTime / MOV files: | 98 - QuickTime / MOV files: |
99 They come from Mac users, usually with .mov or .qt extension, but as | 99 They come from Mac users, usually with .mov or .qt extension, but as |
100 MPEG Group choose quicktime as recommended file format for MPEG4, | 100 MPEG Group choose quicktime as recommended file format for MPEG4, |
101 sometimes you meet quicktime files with .mpg extension. | 101 sometimes you meet quicktime files with .mpg or .mp4 extension. |
102 | 102 |
103 At first look, it's a mixture of ASF and AVI. | 103 At first look, it's a mixture of ASF and AVI. |
104 It requires INDEX block for random access and seeking, and even for | 104 It requires INDEX block for random access and seeking, and even for |
105 playback, like AVI, but uses timestamps instead of constant framerate | 105 playback, like AVI, but uses timestamps instead of constant framerate |
106 and has more flexible stream options (including network stuff) like ASF. | 106 and has more flexible stream options (including network stuff) like ASF. |
108 Headers: header can be placed at the beginning or at the end of file. | 108 Headers: header can be placed at the beginning or at the end of file. |
109 About half of my files has it at the begining, others has it at the end. | 109 About half of my files has it at the begining, others has it at the end. |
110 Broken files are only playable if they have header at the beginning! | 110 Broken files are only playable if they have header at the beginning! |
111 | 111 |
112 Codecs: any codecs allowed, both CBR and VBR. | 112 Codecs: any codecs allowed, both CBR and VBR. |
113 Note: most new mov files use Sorenson video and audio, they are | 113 Note: most new mov files use Sorenson video and QDesign Music audio, |
114 patented, closed, secret, (TM)-ed etc formats, only Apple's quicktime | 114 they are patented, closed, secret, (TM)-ed etc formats, only Apple's |
115 player is able to playback these files (on win/mac only). | 115 quicktime player is able to playback these files (on win/mac only). |
116 | 116 |
117 - VIVO files: | 117 - VIVO files: |
118 They are funny streams. They have a human-readable ascii header at | 118 They are funny streams. They have a human-readable ascii header at |
119 the beginning, followed by interleaved audio and video chunks. | 119 the beginning, followed by interleaved audio and video chunks. |
120 It has no index block, has no fixed packetsize or sync bytes, and most | 120 It has no index block, has no fixed packetsize or sync bytes, and most |