Mercurial > mplayer.hg
annotate DOCS/tech/libavc-options.txt @ 6672:535b63237c14
Added a link, xlib6g-dev is now called xlibs-dev plus typo and wording.
author | diego |
---|---|
date | Mon, 08 Jul 2002 08:55:07 +0000 |
parents | 3237a39563a1 |
children | 3b1be2b0fa55 |
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 |
9 vqmin 1-31 (minimum quantizer) for pass1/2 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
10 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
|
11 possibly other weird things) |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
12 2 is recommended for normal mpeg4/mpeg1video encoding |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
13 3 is recommended for h263(p)/msmpeg4 (default) |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
14 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
|
15 (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
|
16 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
|
17 that) |
6108 | 18 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
19 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
|
20 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
|
21 possible other weird things) |
6108 | 22 lower means better quality but larger files |
23 see vqmin | |
24 | |
25 vqmax 1-31 (maximum quantizer) for pass1/2 | |
26 15 default | |
27 10-31 should be a sane range | |
28 | |
29 vqdiff 1-31 (maximum quantizer difference between I or P frames) for pass1/2 | |
30 3 default | |
31 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
32 vmax_b_frames 0-4 (maximum number of B frames between non B frames) |
6108 | 33 0 no b frames (default) |
34 | |
35 vme 0-5 (motion estimation) | |
36 0 none (not recommanded, very lq) | |
37 1 full (not recommanded, too slow) | |
38 2 log (not recommanded, lq) | |
39 3 phods (not recommanded, lq) | |
40 4 EPZS (default) | |
41 5 X1 | |
42 | |
43 vhq (high quality mode) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
44 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
|
45 better filesize/quality) |
6108 | 46 disabled by default |
47 | |
48 v4mv | |
49 allow 4 MV per MB (little difference in filesize/quality) | |
50 disabled by default | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
51 cannot be used with B frames (should now work in lq mode) |
6108 | 52 |
53 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
|
54 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
|
55 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
|
56 mean slightly smaller files, but less precise seeking |
6108 | 57 0 no keyframes |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
58 >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
|
59 decoder, encoder and luck) |
6108 | 60 |
61 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
|
62 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
|
63 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
|
64 misprediction) |
6108 | 65 |
66 vpass | |
67 1 first pass | |
68 2 second pass | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
69 (only need to specify if two-pass encoding is used) |
6108 | 70 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
71 vbitrate (kbits per second) for pass1/2 |
6108 | 72 800 is default |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
73 (if value is bigger then 16000 it is interpreted as bit not kbit!) |
6108 | 74 |
75 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
|
76 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
|
77 or larger |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
78 1000-100000 is a sane range |
6108 | 79 8000 is default |
80 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
81 vb_qfactor (1.0-31.0) for pass1/2 |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
82 (B-Frame quantizer = IP-Frame quantizer * vb_qfactor) |
6108 | 83 2.0 is default |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
84 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
|
85 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
|
86 vqmin=<ip_quant>:vqmax=<ip_quant>:vb_qfactor=<b_quant/ip_quant> |
6108 | 87 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
88 vqblur (0.0-1.0) quantizer blur (only for pass1) |
6108 | 89 0.0 qblur disabled |
90 0.5 is the default | |
91 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
|
92 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
|
93 be changed slower |
6108 | 94 |
95 vqcomp (0.0-1.0) quantizer compression (for pass1/2) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
96 0.0 constant bitrate encoding, so fast motion frames will get as many |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
97 bits as low motion (high motion scenes look bad) |
6108 | 98 0.5 (default) |
99 1.0 constant quantizer encoding (low motion scenes look bad) | |
100 | |
101 vrc_strategy (0,1,2) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
102 FIXME (different rate control strategies) |
6108 | 103 |
6256 | 104 vlelim (0-1000) single coefficient elimination threshold for luminance |
105 0 disabled (default) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
106 4 (JVT recommendation) |
6256 | 107 |
108 vcelim (0-1000) single coefficient elimination threshold for chrominance | |
109 0 disabled (default) | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
110 7 (JVT recommendation) |
6256 | 111 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
112 vstrict strict standard compliance |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
113 only recommended if you want to feed the output into the mpeg4 reference |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
114 decoder |
6256 | 115 |
116 vdpart data partitioning | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
117 adds 2 byte per video packet |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
118 improves error-resistance when transfering over unreliable channels (eg. |
6322 | 119 streaming over the internet) |
6256 | 120 |
6257 | 121 vpsize (0-10000) video packet size |
122 0 disabled (default) | |
123 500-1000 good choice | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
124 improves error-resistance (see vdpart for more info) |
6257 | 125 |
6552 | 126 gray grayscale only encoding (a bit faster than with color ...) |
127 | |
6256 | 128 lavdopts: (decoder options) |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
129 --------------------------- |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
130 |
6256 | 131 ver error resilience |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
132 -1 needed for some very broken, encoders which completly ignore the |
6322 | 133 standards (one M4S2 asf sample know to need this) |
6256 | 134 0 (default) |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
135 1 more aggressive error detection, lavc might think that some correct |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
136 streams contain errors |
6256 | 137 |
6547 | 138 bug manual workaround encoder bugs |
6256 | 139 0 (default) |
140 1 (workaround for some old lavc generated msmpeg4v3 files) | |
141 | |
6549 | 142 gray grayscale only decoding (a bit faster than with color ...) |
143 | |
6256 | 144 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
145 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
|
146 even if it violates the bitrate / bitrate tolerance |
6108 | 147 2. changing some options between pass1 & 2 can reduce the quality |
148 | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
149 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
|
150 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
|
151 strange things to happen). |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
152 Q: Can I use -pass 1 & -pass 2 with vmax_b_frames>0 ? |
6322 | 153 A: -pass x uses the divx4 twopass-encoding codem which is incompatible |
154 with the libavcodec encode. | |
155 If you want to fix it read DOCS/tech/patches.txt and send a patch. | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
156 Q: What provides better error recovery while keeping the filesize low? |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
157 Should I increase data partitioning or the number of video packets? |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
158 A: Data partitioning is better in this case. |
6108 | 159 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
160 Glossary: |
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
161 MB Macroblock (16x16 luminance and 8x8 chrominance samples) |
6108 | 162 MV Motion vector |
163 ME Motion estimation | |
164 MC Motion compensation | |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
165 JVT Joint Video Team Standard -- http://www.itu.int/ITU-T/news/jvtpro.html |
6108 | 166 |
6270
8dfe9b162624
Spell checking, line wrapping for better readability, some additions/better explanations.
atmos4
parents:
6266
diff
changeset
|
167 Examples: |
6256 | 168 mencoder foobar.avi -lavcopts vcodec=mpeg4:vhq:keyint=300:vqscale=2 -o new-foobar.avi |
6547 | 169 mplayer foobar.avi -lavdopts bug=1 |
6322 | 170 |
171 -- | |
172 Written 2002 by Michael Niedermayer and reviewed by Felix Buenemann. | |
173 Check the MPlayer documentation for contact-addresses. | |
174 |