Mercurial > mplayer.hg
annotate DOCS/tech/libavc-options.txt @ 9302:e23939b2ac30
sync
author | gabucino |
---|---|
date | Thu, 06 Feb 2003 21:25:48 +0000 |
parents | a90d3367be52 |
children | 4521b6b6348e |
rev | line source |
---|---|
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
1 Description of what all those libavcodec options do ... |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
2 WARNING: I am no encoding expert so the recommendations might be bad ... |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
3 if you find any errors, missing stuff, ... send a patch or cvs commit if you |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
4 have an cvs account :) |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
5 |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
6 lavcopts: (encoder options) |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
7 --------------------------- |
6108 | 8 |
8701
9415a820357a
document minimum qscale correctly. someone should probably add a note
rfelker
parents:
8700
diff
changeset
|
9 vqmin 1-31 (minimum quantizer) for pass1/2 |
6700 | 10 1 is not recommended (much larger file, little quality difference (if u are lucky) |
11 and other weird things (if u are less lucky)) | |
12 weird things: msmpeg4, h263 will be very low quality | |
13 ratecontrol will be confused -> lower quality | |
14 some decoders will not be able to decode it | |
7088 | 15 2 is recommended for normal mpeg4/mpeg1video encoding (default) |
16 3 is recommended for h263(p)/msmpeg4 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
17 the reason for 3 instead of 2 is that 2 could lead to overflows |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
18 (this will be fixed for h263(p) by changing the quanizer per MB in |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
19 the future, but msmpeg4 doesnt support that so it cant be fixed for |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
20 that) |
6108 | 21 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
22 vqscale 1-31 quantizer for constant quantizer / constant quality encoding |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
23 1 is not recommended (much larger file, little quality difference and |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
24 possible other weird things) |
6108 | 25 lower means better quality but larger files |
26 see vqmin | |
27 | |
28 vqmax 1-31 (maximum quantizer) for pass1/2 | |
7088 | 29 31 default |
6108 | 30 10-31 should be a sane range |
31 | |
8492 | 32 mbqmin 1-31 (minimum macroblock quantizer) for pass1/2 |
33 2 default | |
34 | |
35 mbqmax 1-31 (maximum macroblock quantizer) for pass1/2 | |
36 31 default | |
37 | |
6108 | 38 vqdiff 1-31 (maximum quantizer difference between I or P frames) for pass1/2 |
39 3 default | |
40 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
41 vmax_b_frames 0-4 (maximum number of B frames between non B frames) |
6108 | 42 0 no b frames (default) |
7088 | 43 0-2 is a sane range for mpeg4 |
6108 | 44 |
45 vme 0-5 (motion estimation) | |
46 0 none (not recommanded, very lq) | |
47 1 full (not recommanded, too slow) | |
48 2 log (not recommanded, lq) | |
49 3 phods (not recommanded, lq) | |
50 4 EPZS (default) | |
8588 | 51 5 X1 (experimantal, might change from time to time or be just broken) |
9224 | 52 Note: 0-3 ignores the amount of bits spend currently, so dont complain |
53 about low quality | |
6108 | 54 |
55 vhq (high quality mode) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
56 encode each MB as in all modes and choose the best (this is slow but |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
57 better filesize/quality) |
6108 | 58 disabled by default |
59 | |
60 v4mv | |
61 allow 4 MV per MB (little difference in filesize/quality) | |
62 disabled by default | |
63 | |
64 keyint 0-300 (maximum interval between keyframes) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
65 keyframes are needed for seeking as seeking is only possible to a |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
66 keyframe but they need more space than non-keyframes so larger numbers here |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
67 mean slightly smaller files, but less precise seeking |
6108 | 68 0 no keyframes |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
69 >300 is not recommended as the quality might be bad (depends upon |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
70 decoder, encoder and luck) |
7088 | 71 for strict mpeg1/2/4 compliance this would have to be <=132 |
6108 | 72 |
73 vb_strategy 0-1 for pass 2 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
74 0 allways use the max number of B frames (default) |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
75 1 avoid B frames in high motion scenes (this will cause bitrate |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
76 misprediction) |
6108 | 77 |
78 vpass | |
79 1 first pass | |
80 2 second pass | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
81 (only need to specify if two-pass encoding is used) |
7496 | 82 Tip: u can try to use constant quantizer mode for pass1 (vqscale=<quantizer>) |
8191 | 83 for huffyuv: |
84 pass 1 saves statistics | |
85 pass 2 encodes with a optimal huffman table based upon the pass 1 stats | |
6108 | 86 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
87 vbitrate (kbits per second) for pass1/2 |
6108 | 88 800 is default |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
89 (if value is bigger then 16000 it is interpreted as bit not kbit!) |
6108 | 90 |
91 vratetol (filesize tolerance in kbit) for pass1/2 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
92 this is just an approximation, the real difference can be much smaller |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
93 or larger |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
94 1000-100000 is a sane range |
6108 | 95 8000 is default |
96 | |
7088 | 97 vrc_maxrate (maximum bitrate in kbit/sec) for pass1/2 |
98 vrc_minrate (minimum bitrate in kbit/sec) for pass1/2 | |
99 vrc_buf_size (buffer size in kbit) for pass1/2 | |
100 this is for stuff like VCD | |
101 VCD: FIXME | |
102 SVCD: ... | |
103 DVD: ... | |
104 Note: vratetol should not be too large during the 2.pass or there might | |
105 be problems if vrc_(min|max)rate is used | |
106 | |
107 vb_qfactor (-31.0-31.0) for pass1/2 | |
108 1.25 is default | |
109 vi_qfactor (-31.0-31.0) for pass1/2 | |
110 0.8 is default | |
111 vb_qoffset (-31.0-31.0) for pass1/2 | |
112 1.25 is default | |
113 vi_qoffset (-31.0-31.0) for pass1/2 | |
114 0.0 is default | |
115 if v{b|i}_qfactor > 0 | |
116 I/B-Frame quantizer = P-Frame quantizer * v{b|i}_qfactor + v{b|i}_qoffset | |
117 else | |
118 do normal ratecontrol (dont lock to next P frame quantizer) and | |
119 set q= -q * v{b|i}_qfactor + v{b|i}_qoffset | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
120 tip: to do constant quantizer encoding with different quantizers for |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
121 I/P and B frames you can use: |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
122 vqmin=<ip_quant>:vqmax=<ip_quant>:vb_qfactor=<b_quant/ip_quant> |
6108 | 123 |
7088 | 124 vqblur (0.0-1.0) quantizer blur (pass1) |
6108 | 125 0.0 qblur disabled |
126 0.5 is the default | |
127 1.0 average the quantizer over all previous frames | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
128 larger values will average the quantizer more over time so that it will |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
129 be changed slower |
7088 | 130 vqblur (0.0-99.0) quantizer blur (pass2) |
131 gaussian blur (gaussian blur cant be done during pass 1 as the future quantizers arent known) | |
132 0.5 is the default | |
133 larger values will average the quantizer more over time so that it will | |
134 be changed slower | |
6108 | 135 |
7088 | 136 vqcomp quantizer compression (for pass1/2) |
137 depends upon vrc_eq | |
138 | |
139 vrc_eq the main ratecontrol equation (for pass1/2) | |
140 1 constant bitrate | |
141 tex constant quality | |
142 1+(tex/avgTex-1)*qComp approximately the equation of the old ratecontrol code | |
143 tex^qComp with qcomp 0.5 or something like that (default) | |
6108 | 144 |
7088 | 145 infix operators: +,-,*,/,^ |
146 variables: | |
147 tex texture complexity | |
148 iTex,pTex intra, non intra texture complexity | |
149 avgTex average texture complexity | |
150 avgIITex average intra texture complexity in I frames | |
151 avgPITex average intra texture complexity in P frames | |
152 avgPPTex average non intra texture complexity in P frames | |
153 avgBPTex average non intra texture complexity in B frames | |
154 mv bits used for MVs | |
155 fCode maximum length of MV in log2 scale | |
156 iCount number of intra MBs / number of MBs | |
157 var spatial complexity | |
158 mcVar temporal complexity | |
159 qComp qcomp from the command line | |
160 isI, isP, isB is 1 if picture type is I/P/B else 0 | |
161 Pi,E see ur favorite math book | |
162 | |
163 functions: | |
164 max(a,b),min(a,b) maximum / minimum | |
165 gt(a,b) is 1 if a>b, 0 otherwise | |
166 lt(a,b) is 1 if a<b, 0 otherwise | |
167 eq(a,b) is 1 if a==b,0 otherwise | |
168 sin,cos,tan,sinh,cosh,tanh,exp,log,abs | |
169 | |
170 vrc_override user specified quality for specific parts (ending credits ...) (for pass1/2) | |
171 <start-frame>,<end-frame>,<quality>[/<start-frame>,<end-frame>,<quality>[/...]] | |
172 quality 2..31 -> quantizer | |
173 quality -500..0 -> quality correcture in % | |
174 | |
175 vrc_init_cplx (0-1000) initial complexity for pass1 | |
176 | |
177 vqsquish (0 or 1) for pass1/2 how to keep the quantizer between qmin & qmax | |
178 0 use cliping | |
179 1 use a nice differentiable function (default) | |
6108 | 180 |
7039
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
181 vlelim (-1000-1000) single coefficient elimination threshold for luminance |
6256 | 182 0 disabled (default) |
7039
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
183 -4 (JVT recommendation) |
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
184 negative values will allso consider the dc coefficient |
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
185 should be at least -4 or lower for encoding at quant=1 |
6256 | 186 |
7039
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
187 vcelim (-1000-1000) single coefficient elimination threshold for chrominance |
6256 | 188 0 disabled (default) |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
189 7 (JVT recommendation) |
7039
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
190 negative values will allso consider the dc coefficient |
2eae7ac0fa8b
same behavior for luma & chroma single coeff elimination
michael
parents:
7011
diff
changeset
|
191 should be at least -4 or lower for encoding at quant=1 |
6256 | 192 |
8877 | 193 vstrict (-1,0,1) strict standard compliance |
194 0 (default) | |
195 1 only recommended if you want to feed the output into the mpeg4 reference | |
196 decoder | |
197 -1 allows nonstandard YV12 huffyuv encoding (20% smaller files, but | |
198 cant be played back by the official huffyuv codec) | |
6256 | 199 |
200 vdpart data partitioning | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
201 adds 2 byte per video packet |
7724 | 202 each videopacket will be encoded in 3 seperate partitions: |
203 1. MVs (=movement) | |
204 2. DC coefficients (=low res picture) | |
205 3. AC coefficients (=details) | |
206 the MV & DC are most important, loosing them looks far worse than | |
207 loosing the AC and the 1. & 2. partition (MV&DC) are far smaller than | |
208 the 3. partition (AC) -> errors will hit the AC partition much more | |
209 often than the MV&DC -> the picture will look better with partitioning | |
210 than without, as without partitining an error will trash AC/DC/MV | |
211 equally | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
212 improves error-resistance when transfering over unreliable channels (eg. |
6322 | 213 streaming over the internet) |
6256 | 214 |
6257 | 215 vpsize (0-10000) video packet size |
216 0 disabled (default) | |
7724 | 217 100-1000 good choice |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
218 improves error-resistance (see vdpart for more info) |
6257 | 219 |
6552 | 220 gray grayscale only encoding (a bit faster than with color ...) |
221 | |
7236 | 222 vfdct (0-99) dct algorithm |
7179 | 223 0 automatically select a good one (default) |
224 1 fast integer | |
225 2 accurate integer | |
226 3 mmx | |
227 4 mlib | |
7619 | 228 |
229 idct (0-99) idct algorithm | |
230 0 automatically select a good one (default) | |
231 1 jpeg reference integer | |
232 2 simple | |
233 3 simplemmx | |
234 4 libmpeg2mmx (inaccurate, DONT USE for encoding with keyint >100) | |
235 5 ps2 | |
236 6 mlib | |
237 7 arm | |
7623 | 238 note: all these IDCTs do pass the IEEE1180 tests AFAIK |
7179 | 239 |
7496 | 240 lumi_mask (0.0-1.0) luminance masking |
241 0.0 disabled (default) | |
7619 | 242 0.0-0.3 should be a sane range |
7496 | 243 warning: be carefull, too large values can cause disasterous things |
244 warning2: large values might look good on some monitors but may look horrible | |
245 on other monitors | |
246 | |
247 dark_mask (0.0-1.0) darkness masking | |
248 0.0 disabled (default) | |
249 0.0-0.3 should be a sane range | |
250 warning: be carefull, too large values can cause disasterous things | |
251 warning2: large values might look good on some monitors but may look horrible | |
252 on other monitors / TV / TFT | |
253 | |
254 tcplx_mask (0.0-1.0) temporal complexity masking | |
255 0.0 disabled (default) | |
256 | |
257 scplx_mask (0.0-1.0) spatial complexity masking | |
258 0.0 disabled (default) | |
259 0.0-0.5 should be a sane range | |
260 larger values help against blockiness, if no deblocking filter is used | |
261 for decoding | |
262 Tip: crop any black borders completly away as they will reduce the quality | |
263 of the MBs there, this is true if scplx_mask isnt used at all too | |
264 | |
8702 | 265 naq normalize adaptive quantization (experimental) |
266 when using adaptive quantization (*_mask), the average per-MB quantizer | |
267 may no longer match the requested frame-level quantizer. using naq will | |
268 attempt to adjust the per-MB quantizers to maintain the proper average. | |
7619 | 269 |
270 ildct use interlaced dct | |
7496 | 271 |
8191 | 272 format |
273 YV12 (default) | |
274 422P (for huffyuv) | |
275 | |
276 pred (for huffyuv) | |
277 0 left prediction | |
278 1 plane/gradient prediction | |
279 2 median prediction | |
8492 | 280 |
8588 | 281 qpel use quarter pel motion compensation |
282 Tip: this seems only usefull for high bitrate encodings | |
283 | |
8803 | 284 precmp comparission function for motion estimation pre pass |
8588 | 285 cmp comparission function for full pel motion estimation |
286 subcmp comparission function for sub pel motion estimation | |
9030 | 287 mbcmp comparission function for macroblock decission |
8588 | 288 0 SAD (sum of absolute differences) (default) |
289 1 SSE (sum of squared errors) | |
290 2 SATD (sum of absolute hadamard transformed differences) | |
291 3 DCT (sum of absolute dct transformed differences) | |
9030 | 292 4 PSNR (sum of the squared quantization errors) (dont use, low quality) |
8959 | 293 5 BIT (number of bits needed for the block) |
294 6 RD (rate distoration optimal, slow) | |
8588 | 295 7 ZERO (0) |
9030 | 296 +256 (use chroma too, doesnt work (correctly) with b frames currently) |
297 Tip: SAD is fast, SATD is good, SSE is something in between | |
298 Tip2: when using SATD/DCT/BIT/RD for full pel search then a | |
299 larger diamond something like dia=2 or dia=4 might improve | |
300 quality, but only for some videos | |
301 Note: mbcmp is only used if hq mode is disabled | |
8696 | 302 |
8803 | 303 predia (-99 - 6) diamond type & size for motion estimation pre pass |
8696 | 304 dia (-99 - 6) diamond type & size for motion estimation |
305 ... | |
306 -3 shape adaptive diamond with size 3 | |
307 -2 shape adaptive diamond with size 2 | |
308 -1 experimental | |
309 1 normal size=1 diamond (default) =EPZS type diamond | |
310 0 | |
311 000 | |
312 0 | |
313 2 normal size=2 diamond | |
314 0 | |
315 000 | |
316 00000 | |
317 000 | |
318 0 | |
319 ... | |
320 Tip: the shape adaptive stuff seems to be faster at the same quality | |
321 Note: the sizes of the normal diamonds and shape adaptive ones dont | |
322 have the same meaning | |
323 | |
324 trell trellis quantization | |
325 this will find the optimal encoding for each 8x8 block | |
326 trellis quantization is quite simple a optimal quantization in the | |
327 PSNR vs bitrate sense (assuming that there would be no rounding errors introduced | |
328 by the IDCT, which is obviously not the case) it simply finds a block for the minimum of | |
329 error + lambda*bits | |
330 lambda is a qp dependant constant | |
331 bits is the amount of bits needed to encode the block | |
332 error is simple the sum of squared errors of the quantization | |
333 | |
334 last_pred (0-99) amount of motion predictors from the previous frame | |
335 0 (default) | |
336 a -> will use 2a+1 x 2a+1 MB square of MV predictors from the previous frame | |
8588 | 337 |
8710 | 338 preme (0-2) Motion estimation pre-pass |
339 0 disabled | |
340 1 only after I frames (default) | |
341 2 allways | |
8803 | 342 |
343 subq (1-8) subpel refinement quality (for qpel) | |
344 8 (default) | |
345 Note: this has a significant effect on the speed | |
8877 | 346 |
347 psnr will print the psnr for the whole video after encoding and store the per frame psnr | |
348 in a file with name like "psnr_012345.log" | |
349 | |
8710 | 350 |
6256 | 351 lavdopts: (decoder options) |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
352 --------------------------- |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
353 |
7722 | 354 ec error concealment |
355 1 use strong deblock filter for damaged MBs | |
356 2 iterative MV search (slow) | |
357 3 all (default) | |
358 Note: just add the ones u want to enable | |
6256 | 359 |
7722 | 360 er error resilience |
361 0 disabled | |
362 1 carefull (should work with broken encoders) | |
363 2 normal (default) (works with compliant encoders) | |
364 3 agressive (more checks but might cause problems even for valid bitstreams) | |
365 4 very agressive | |
366 | |
367 bug manual workaround encoder bugs (autodetection isnt foolproof for these) | |
368 0 nothing | |
369 1 autodetect bugs (default) | |
370 2 for msmpeg4v3 some old lavc generated msmpeg4v3 files (no autodetect) | |
371 4 for mpeg4 xvid interlacing bug (autodetected if fourcc==XVIX) | |
372 8 for mpeg4 UMP4 (autodetected if fourcc==UMP4) | |
373 16for mpeg4 padding bug | |
374 32for mpeg4 illegal vlc bug (autodetected per fourcc) | |
8191 | 375 64for mpeg4 XVID&DIVX qpel bug (autodetected) |
7722 | 376 Note: just add the ones u want to enable |
6256 | 377 |
6549 | 378 gray grayscale only decoding (a bit faster than with color ...) |
379 | |
7619 | 380 idct see lavcopts |
381 note: the decoding quality is highest if the same idct algorithm is used | |
382 for decoding as for encoding, this is often not the most accurate though | |
383 | |
6256 | 384 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
385 Notes: 1. lavc will strictly follow the quantizer limits vqmin, vqmax, vqdiff |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
386 even if it violates the bitrate / bitrate tolerance |
6108 | 387 2. changing some options between pass1 & 2 can reduce the quality |
388 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
389 FAQ: Q: Why is the filesize much too small? |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
390 A: Try to increase vqmin=2 or 1 (be carefull with 1, it could cause |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
391 strange things to happen). |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
392 Q: What provides better error recovery while keeping the filesize low? |
7088 | 393 Should I use data partitioning or increase the number of video packets? |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
394 A: Data partitioning is better in this case. |
6108 | 395 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
396 Glossary: |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
397 MB Macroblock (16x16 luminance and 8x8 chrominance samples) |
6108 | 398 MV Motion vector |
399 ME Motion estimation | |
400 MC Motion compensation | |
7088 | 401 RC Rate control |
402 DCT Discrete Cosine Transform | |
403 IDCT Inverse Discrete Cosine Transform | |
8702 | 404 DC The coefficient of the constant term in the DCT (avg value of block) |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
405 JVT Joint Video Team Standard -- http://www.itu.int/ITU-T/news/jvtpro.html |
8877 | 406 PSNR peak signal to noise ratio |
6108 | 407 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
408 Examples: |
6256 | 409 mencoder foobar.avi -lavcopts vcodec=mpeg4:vhq:keyint=300:vqscale=2 -o new-foobar.avi |
6547 | 410 mplayer foobar.avi -lavdopts bug=1 |
6322 | 411 |
7282 | 412 Links: |
413 short intro to mpeg coding: | |
414 http://www.eecs.umich.edu/~amarathe/mpeg.html | |
415 longer intro to jpeg/mpeg coding: | |
416 http://www.cs.sfu.ca/undergrad/CourseMaterials/CMPT479/material/notes/Chap4/Chap4.2/Chap4.2.html | |
8877 | 417 ftp://ftp.tek.com/mbd/manuals/video_audio/25W_11418_4.pdf |
7282 | 418 |
6322 | 419 -- |
420 Written 2002 by Michael Niedermayer and reviewed by Felix Buenemann. | |
421 Check the MPlayer documentation for contact-addresses. | |
422 |