]> git.sesse.net Git - casparcg/blob - dependencies64/ffmpeg/doc/ffmpeg-codecs.html
Updated to ffmpeg version 2.2.3
[casparcg] / dependencies64 / ffmpeg / doc / ffmpeg-codecs.html
1 <!DOCTYPE html>
2 <html>
3 <!-- Created on June 19, 2014 by texi2html 1.82 -->
4 <!--
5 texi2html was written by: 
6             Lionel Cons <Lionel.Cons@cern.ch> (original author)
7             Karl Berry  <karl@freefriends.org>
8             Olaf Bachmann <obachman@mathematik.uni-kl.de>
9             and many others.
10 Maintained by: Many creative people.
11 Send bugs and suggestions to <texi2html-bug@nongnu.org>
12
13 -->
14 <head>
15 <title>FFmpeg documentation : FFmpeg Codecs </title>
16
17 <meta name="description" content="FFmpeg Codecs Documentation: ">
18 <meta name="keywords" content="FFmpeg documentation : FFmpeg Codecs ">
19 <meta name="Generator" content="texi2html 1.82">
20 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
21 <link rel="stylesheet" type="text/css" href="default.css" />
22
23 <link rel="icon" href="favicon.png" type="image/png" />
24 </head>
25 <body>
26 <div id="container">
27 <div id="body">
28
29 <a name="SEC_Top"></a>
30 <h1 class="settitle">FFmpeg Codecs Documentation</h1>
31
32 <a name="SEC_Contents"></a>
33 <h1>Table of Contents</h1>
34 <div class="contents">
35
36 <ul class="toc">
37   <li><a name="toc-Description" href="#Description">1. Description</a></li>
38   <li><a name="toc-Codec-Options" href="#Codec-Options">2. Codec Options</a></li>
39   <li><a name="toc-Decoders" href="#Decoders">3. Decoders</a></li>
40   <li><a name="toc-Video-Decoders" href="#Video-Decoders">4. Video Decoders</a>
41   <ul class="toc">
42     <li><a name="toc-rawvideo" href="#rawvideo">4.1 rawvideo</a>
43     <ul class="toc">
44       <li><a name="toc-Options-2" href="#Options-2">4.1.1 Options</a></li>
45     </ul>
46 </li>
47   </ul></li>
48   <li><a name="toc-Audio-Decoders" href="#Audio-Decoders">5. Audio Decoders</a>
49   <ul class="toc">
50     <li><a name="toc-ac3" href="#ac3">5.1 ac3</a>
51     <ul class="toc">
52       <li><a name="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
53     </ul></li>
54     <li><a name="toc-ffwavesynth" href="#ffwavesynth">5.2 ffwavesynth</a></li>
55     <li><a name="toc-libcelt" href="#libcelt">5.3 libcelt</a></li>
56     <li><a name="toc-libgsm" href="#libgsm">5.4 libgsm</a></li>
57     <li><a name="toc-libilbc" href="#libilbc">5.5 libilbc</a>
58     <ul class="toc">
59       <li><a name="toc-Options-16" href="#Options-16">5.5.1 Options</a></li>
60     </ul></li>
61     <li><a name="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.6 libopencore-amrnb</a></li>
62     <li><a name="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.7 libopencore-amrwb</a></li>
63     <li><a name="toc-libopus-1" href="#libopus-1">5.8 libopus</a></li>
64   </ul></li>
65   <li><a name="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6. Subtitles Decoders</a>
66   <ul class="toc">
67     <li><a name="toc-dvdsub" href="#dvdsub">6.1 dvdsub</a>
68     <ul class="toc">
69       <li><a name="toc-Options-14" href="#Options-14">6.1.1 Options</a></li>
70     </ul></li>
71     <li><a name="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.2 libzvbi-teletext</a>
72     <ul class="toc">
73       <li><a name="toc-Options-18" href="#Options-18">6.2.1 Options</a></li>
74     </ul>
75 </li>
76   </ul></li>
77   <li><a name="toc-Encoders" href="#Encoders">7. Encoders</a></li>
78   <li><a name="toc-Audio-Encoders" href="#Audio-Encoders">8. Audio Encoders</a>
79   <ul class="toc">
80     <li><a name="toc-aac" href="#aac">8.1 aac</a>
81     <ul class="toc">
82       <li><a name="toc-Options-8" href="#Options-8">8.1.1 Options</a></li>
83     </ul></li>
84     <li><a name="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
85     <ul class="toc">
86       <li><a name="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
87       <ul class="toc">
88         <li><a name="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
89         <li><a name="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
90         <li><a name="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
91         <li><a name="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
92       </ul></li>
93       <li><a name="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
94       <ul class="toc">
95         <li><a name="toc-Extended-Bitstream-Information-_002d-Part-1" href="#Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></li>
96         <li><a name="toc-Extended-Bitstream-Information-_002d-Part-2" href="#Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></li>
97       </ul></li>
98       <li><a name="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
99       <li><a name="toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></li>
100     </ul></li>
101     <li><a name="toc-libfaac-1" href="#libfaac-1">8.3 libfaac</a>
102     <ul class="toc">
103       <li><a name="toc-Options-12" href="#Options-12">8.3.1 Options</a></li>
104       <li><a name="toc-Examples-2" href="#Examples-2">8.3.2 Examples</a></li>
105     </ul></li>
106     <li><a name="toc-libfdk_005faac" href="#libfdk_005faac">8.4 libfdk_aac</a>
107     <ul class="toc">
108       <li><a name="toc-Options-13" href="#Options-13">8.4.1 Options</a></li>
109       <li><a name="toc-Examples-1" href="#Examples-1">8.4.2 Examples</a></li>
110     </ul></li>
111     <li><a name="toc-libmp3lame-1" href="#libmp3lame-1">8.5 libmp3lame</a>
112     <ul class="toc">
113       <li><a name="toc-Options-5" href="#Options-5">8.5.1 Options</a></li>
114     </ul></li>
115     <li><a name="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.6 libopencore-amrnb</a>
116     <ul class="toc">
117       <li><a name="toc-Options" href="#Options">8.6.1 Options</a></li>
118     </ul></li>
119     <li><a name="toc-libshine-1" href="#libshine-1">8.7 libshine</a>
120     <ul class="toc">
121       <li><a name="toc-Options-4" href="#Options-4">8.7.1 Options</a></li>
122     </ul></li>
123     <li><a name="toc-libtwolame" href="#libtwolame">8.8 libtwolame</a>
124     <ul class="toc">
125       <li><a name="toc-Options-6" href="#Options-6">8.8.1 Options</a></li>
126     </ul></li>
127     <li><a name="toc-libvo_002daacenc-1" href="#libvo_002daacenc-1">8.9 libvo-aacenc</a>
128     <ul class="toc">
129       <li><a name="toc-Options-17" href="#Options-17">8.9.1 Options</a></li>
130     </ul></li>
131     <li><a name="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.10 libvo-amrwbenc</a>
132     <ul class="toc">
133       <li><a name="toc-Options-3" href="#Options-3">8.10.1 Options</a></li>
134     </ul></li>
135     <li><a name="toc-libopus" href="#libopus">8.11 libopus</a>
136     <ul class="toc">
137       <li><a name="toc-Option-Mapping" href="#Option-Mapping">8.11.1 Option Mapping</a></li>
138     </ul></li>
139     <li><a name="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
140     <ul class="toc">
141       <li><a name="toc-Options-10" href="#Options-10">8.12.1 Options</a></li>
142     </ul></li>
143     <li><a name="toc-libwavpack-1" href="#libwavpack-1">8.13 libwavpack</a>
144     <ul class="toc">
145       <li><a name="toc-Options-15" href="#Options-15">8.13.1 Options</a></li>
146     </ul></li>
147     <li><a name="toc-wavpack" href="#wavpack">8.14 wavpack</a>
148     <ul class="toc">
149       <li><a name="toc-Options-11" href="#Options-11">8.14.1 Options</a>
150       <ul class="toc">
151         <li><a name="toc-Shared-options" href="#Shared-options">8.14.1.1 Shared options</a></li>
152         <li><a name="toc-Private-options" href="#Private-options">8.14.1.2 Private options</a></li>
153       </ul>
154 </li>
155     </ul>
156 </li>
157   </ul></li>
158   <li><a name="toc-Video-Encoders" href="#Video-Encoders">9. Video Encoders</a>
159   <ul class="toc">
160     <li><a name="toc-libtheora" href="#libtheora">9.1 libtheora</a>
161     <ul class="toc">
162       <li><a name="toc-Options-1" href="#Options-1">9.1.1 Options</a></li>
163       <li><a name="toc-Examples" href="#Examples">9.1.2 Examples</a></li>
164     </ul></li>
165     <li><a name="toc-libvpx" href="#libvpx">9.2 libvpx</a>
166     <ul class="toc">
167       <li><a name="toc-Options-20" href="#Options-20">9.2.1 Options</a></li>
168     </ul></li>
169     <li><a name="toc-libwebp" href="#libwebp">9.3 libwebp</a>
170     <ul class="toc">
171       <li><a name="toc-Pixel-Format" href="#Pixel-Format">9.3.1 Pixel Format</a></li>
172       <li><a name="toc-Options-7" href="#Options-7">9.3.2 Options</a></li>
173     </ul></li>
174     <li><a name="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.4 libx264, libx264rgb</a>
175     <ul class="toc">
176       <li><a name="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.4.1 Supported Pixel Formats</a></li>
177       <li><a name="toc-Options-19" href="#Options-19">9.4.2 Options</a></li>
178     </ul></li>
179     <li><a name="toc-libxvid" href="#libxvid">9.5 libxvid</a>
180     <ul class="toc">
181       <li><a name="toc-Options-9" href="#Options-9">9.5.1 Options</a></li>
182     </ul></li>
183     <li><a name="toc-png" href="#png">9.6 png</a>
184     <ul class="toc">
185       <li><a name="toc-Private-options-1" href="#Private-options-1">9.6.1 Private options</a></li>
186     </ul></li>
187     <li><a name="toc-ProRes" href="#ProRes">9.7 ProRes</a>
188     <ul class="toc">
189       <li><a name="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.7.1 Private Options for prores-ks</a></li>
190       <li><a name="toc-Speed-considerations" href="#Speed-considerations">9.7.2 Speed considerations</a></li>
191     </ul>
192 </li>
193   </ul></li>
194   <li><a name="toc-See-Also" href="#See-Also">10. See Also</a></li>
195   <li><a name="toc-Authors" href="#Authors">11. Authors</a></li>
196 </ul>
197 </div>
198
199 <a name="Description"></a>
200 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Description">1. Description</a></h1>
201
202 <p>This document describes the codecs (decoders and encoders) provided by
203 the libavcodec library.
204 </p>
205
206 <p><a name="codec_002doptions"></a>
207 </p><a name="Codec-Options"></a>
208 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Codec-Options">2. Codec Options</a></h1>
209
210 <p>libavcodec provides some generic global options, which can be set on
211 all the encoders and decoders. In addition each codec may support
212 so-called private options, which are specific for a given codec.
213 </p>
214 <p>Sometimes, a global option may only affect a specific kind of codec,
215 and may be unsensical or ignored by another, so you need to be aware
216 of the meaning of the specified options. Also some options are
217 meant only for decoding or encoding.
218 </p>
219 <p>Options may be set by specifying -<var>option</var> <var>value</var> in the
220 FFmpeg tools, or by setting the value explicitly in the
221 <code>AVCodecContext</code> options or using the &lsquo;<tt>libavutil/opt.h</tt>&rsquo; API
222 for programmatic use.
223 </p>
224 <p>The list of supported options follow:
225 </p>
226 <dl compact="compact">
227 <dt> &lsquo;<samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
228 <dd><p>Set bitrate in bits/s. Default value is 200K.
229 </p>
230 </dd>
231 <dt> &lsquo;<samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
232 <dd><p>Set audio bitrate (in bits/s). Default value is 128K.
233 </p>
234 </dd>
235 <dt> &lsquo;<samp>bt <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
236 <dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
237 tolerance specifies how far ratecontrol is willing to deviate from the
238 target average bitrate value. This is not related to min/max
239 bitrate. Lowering tolerance too much has an adverse effect on quality.
240 </p>
241 </dd>
242 <dt> &lsquo;<samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
243 <dd><p>Set generic flags.
244 </p>
245 <p>Possible values:
246 </p><dl compact="compact">
247 <dt> &lsquo;<samp>mv4</samp>&rsquo;</dt>
248 <dd><p>Use four motion vector by macroblock (mpeg4).
249 </p></dd>
250 <dt> &lsquo;<samp>qpel</samp>&rsquo;</dt>
251 <dd><p>Use 1/4 pel motion compensation.
252 </p></dd>
253 <dt> &lsquo;<samp>loop</samp>&rsquo;</dt>
254 <dd><p>Use loop filter.
255 </p></dd>
256 <dt> &lsquo;<samp>qscale</samp>&rsquo;</dt>
257 <dd><p>Use fixed qscale.
258 </p></dd>
259 <dt> &lsquo;<samp>gmc</samp>&rsquo;</dt>
260 <dd><p>Use gmc.
261 </p></dd>
262 <dt> &lsquo;<samp>mv0</samp>&rsquo;</dt>
263 <dd><p>Always try a mb with mv=&lt;0,0&gt;.
264 </p></dd>
265 <dt> &lsquo;<samp>input_preserved</samp>&rsquo;</dt>
266 <dt> &lsquo;<samp>pass1</samp>&rsquo;</dt>
267 <dd><p>Use internal 2pass ratecontrol in first pass mode.
268 </p></dd>
269 <dt> &lsquo;<samp>pass2</samp>&rsquo;</dt>
270 <dd><p>Use internal 2pass ratecontrol in second pass mode.
271 </p></dd>
272 <dt> &lsquo;<samp>gray</samp>&rsquo;</dt>
273 <dd><p>Only decode/encode grayscale.
274 </p></dd>
275 <dt> &lsquo;<samp>emu_edge</samp>&rsquo;</dt>
276 <dd><p>Do not draw edges.
277 </p></dd>
278 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
279 <dd><p>Set error[?] variables during encoding.
280 </p></dd>
281 <dt> &lsquo;<samp>truncated</samp>&rsquo;</dt>
282 <dt> &lsquo;<samp>naq</samp>&rsquo;</dt>
283 <dd><p>Normalize adaptive quantization.
284 </p></dd>
285 <dt> &lsquo;<samp>ildct</samp>&rsquo;</dt>
286 <dd><p>Use interlaced DCT.
287 </p></dd>
288 <dt> &lsquo;<samp>low_delay</samp>&rsquo;</dt>
289 <dd><p>Force low delay.
290 </p></dd>
291 <dt> &lsquo;<samp>global_header</samp>&rsquo;</dt>
292 <dd><p>Place global headers in extradata instead of every keyframe.
293 </p></dd>
294 <dt> &lsquo;<samp>bitexact</samp>&rsquo;</dt>
295 <dd><p>Use only bitexact stuff (except (I)DCT).
296 </p></dd>
297 <dt> &lsquo;<samp>aic</samp>&rsquo;</dt>
298 <dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
299 </p></dd>
300 <dt> &lsquo;<samp>cbp</samp>&rsquo;</dt>
301 <dd><p>Deprecated, use mpegvideo private options instead.
302 </p></dd>
303 <dt> &lsquo;<samp>qprd</samp>&rsquo;</dt>
304 <dd><p>Deprecated, use mpegvideo private options instead.
305 </p></dd>
306 <dt> &lsquo;<samp>ilme</samp>&rsquo;</dt>
307 <dd><p>Apply interlaced motion estimation.
308 </p></dd>
309 <dt> &lsquo;<samp>cgop</samp>&rsquo;</dt>
310 <dd><p>Use closed gop.
311 </p></dd>
312 </dl>
313
314 </dd>
315 <dt> &lsquo;<samp>me_method <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
316 <dd><p>Set motion estimation method.
317 </p>
318 <p>Possible values:
319 </p><dl compact="compact">
320 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
321 <dd><p>zero motion estimation (fastest)
322 </p></dd>
323 <dt> &lsquo;<samp>full</samp>&rsquo;</dt>
324 <dd><p>full motion estimation (slowest)
325 </p></dd>
326 <dt> &lsquo;<samp>epzs</samp>&rsquo;</dt>
327 <dd><p>EPZS motion estimation (default)
328 </p></dd>
329 <dt> &lsquo;<samp>esa</samp>&rsquo;</dt>
330 <dd><p>esa motion estimation (alias for full)
331 </p></dd>
332 <dt> &lsquo;<samp>tesa</samp>&rsquo;</dt>
333 <dd><p>tesa motion estimation
334 </p></dd>
335 <dt> &lsquo;<samp>dia</samp>&rsquo;</dt>
336 <dd><p>dia motion estimation (alias for epzs)
337 </p></dd>
338 <dt> &lsquo;<samp>log</samp>&rsquo;</dt>
339 <dd><p>log motion estimation
340 </p></dd>
341 <dt> &lsquo;<samp>phods</samp>&rsquo;</dt>
342 <dd><p>phods motion estimation
343 </p></dd>
344 <dt> &lsquo;<samp>x1</samp>&rsquo;</dt>
345 <dd><p>X1 motion estimation
346 </p></dd>
347 <dt> &lsquo;<samp>hex</samp>&rsquo;</dt>
348 <dd><p>hex motion estimation
349 </p></dd>
350 <dt> &lsquo;<samp>umh</samp>&rsquo;</dt>
351 <dd><p>umh motion estimation
352 </p></dd>
353 <dt> &lsquo;<samp>iter</samp>&rsquo;</dt>
354 <dd><p>iter motion estimation
355 </p></dd>
356 </dl>
357
358 </dd>
359 <dt> &lsquo;<samp>extradata_size <var>integer</var></samp>&rsquo;</dt>
360 <dd><p>Set extradata size.
361 </p>
362 </dd>
363 <dt> &lsquo;<samp>time_base <var>rational number</var></samp>&rsquo;</dt>
364 <dd><p>Set codec time base.
365 </p>
366 <p>It is the fundamental unit of time (in seconds) in terms of which
367 frame timestamps are represented. For fixed-fps content, timebase
368 should be <code>1 / frame_rate</code> and timestamp increments should be
369 identically 1.
370 </p>
371 </dd>
372 <dt> &lsquo;<samp>g <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
373 <dd><p>Set the group of picture size. Default value is 12.
374 </p>
375 </dd>
376 <dt> &lsquo;<samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
377 <dd><p>Set audio sampling rate (in Hz).
378 </p>
379 </dd>
380 <dt> &lsquo;<samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
381 <dd><p>Set number of audio channels.
382 </p>
383 </dd>
384 <dt> &lsquo;<samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
385 <dd><p>Set cutoff bandwidth.
386 </p>
387 </dd>
388 <dt> &lsquo;<samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
389 <dd><p>Set audio frame size.
390 </p>
391 <p>Each submitted frame except the last must contain exactly frame_size
392 samples per channel. May be 0 when the codec has
393 CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
394 restricted. It is set by some decoders to indicate constant frame
395 size.
396 </p>
397 </dd>
398 <dt> &lsquo;<samp>frame_number <var>integer</var></samp>&rsquo;</dt>
399 <dd><p>Set the frame number.
400 </p>
401 </dd>
402 <dt> &lsquo;<samp>delay <var>integer</var></samp>&rsquo;</dt>
403 <dt> &lsquo;<samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
404 <dd><p>Set video quantizer scale compression (VBR). It is used as a constant
405 in the ratecontrol equation. Recommended range for default rc_eq:
406 0.0-1.0.
407 </p>
408 </dd>
409 <dt> &lsquo;<samp>qblur <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
410 <dd><p>Set video quantizer scale blur (VBR).
411 </p>
412 </dd>
413 <dt> &lsquo;<samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
414 <dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
415 69, default value is 2.
416 </p>
417 </dd>
418 <dt> &lsquo;<samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
419 <dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
420 1024, default value is 31.
421 </p>
422 </dd>
423 <dt> &lsquo;<samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
424 <dd><p>Set max difference between the quantizer scale (VBR).
425 </p>
426 </dd>
427 <dt> &lsquo;<samp>bf <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
428 <dd><p>Set max number of B frames between non-B-frames.
429 </p>
430 <p>Must be an integer between -1 and 16. 0 means that B-frames are
431 disabled. If a value of -1 is used, it will choose an automatic value
432 depending on the encoder.
433 </p>
434 <p>Default value is 0.
435 </p>
436 </dd>
437 <dt> &lsquo;<samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
438 <dd><p>Set qp factor between P and B frames.
439 </p>
440 </dd>
441 <dt> &lsquo;<samp>rc_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
442 <dd><p>Set ratecontrol method.
443 </p>
444 </dd>
445 <dt> &lsquo;<samp>b_strategy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
446 <dd><p>Set strategy to choose between I/P/B-frames.
447 </p>
448 </dd>
449 <dt> &lsquo;<samp>ps <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
450 <dd><p>Set RTP payload size in bytes.
451 </p>
452 </dd>
453 <dt> &lsquo;<samp>mv_bits <var>integer</var></samp>&rsquo;</dt>
454 <dt> &lsquo;<samp>header_bits <var>integer</var></samp>&rsquo;</dt>
455 <dt> &lsquo;<samp>i_tex_bits <var>integer</var></samp>&rsquo;</dt>
456 <dt> &lsquo;<samp>p_tex_bits <var>integer</var></samp>&rsquo;</dt>
457 <dt> &lsquo;<samp>i_count <var>integer</var></samp>&rsquo;</dt>
458 <dt> &lsquo;<samp>p_count <var>integer</var></samp>&rsquo;</dt>
459 <dt> &lsquo;<samp>skip_count <var>integer</var></samp>&rsquo;</dt>
460 <dt> &lsquo;<samp>misc_bits <var>integer</var></samp>&rsquo;</dt>
461 <dt> &lsquo;<samp>frame_bits <var>integer</var></samp>&rsquo;</dt>
462 <dt> &lsquo;<samp>codec_tag <var>integer</var></samp>&rsquo;</dt>
463 <dt> &lsquo;<samp>bug <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
464 <dd><p>Workaround not auto detected encoder bugs.
465 </p>
466 <p>Possible values:
467 </p><dl compact="compact">
468 <dt> &lsquo;<samp>autodetect</samp>&rsquo;</dt>
469 <dt> &lsquo;<samp>old_msmpeg4</samp>&rsquo;</dt>
470 <dd><p>some old lavc generated msmpeg4v3 files (no autodetection)
471 </p></dd>
472 <dt> &lsquo;<samp>xvid_ilace</samp>&rsquo;</dt>
473 <dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
474 </p></dd>
475 <dt> &lsquo;<samp>ump4</samp>&rsquo;</dt>
476 <dd><p>(autodetected if fourcc==UMP4)
477 </p></dd>
478 <dt> &lsquo;<samp>no_padding</samp>&rsquo;</dt>
479 <dd><p>padding bug (autodetected)
480 </p></dd>
481 <dt> &lsquo;<samp>amv</samp>&rsquo;</dt>
482 <dt> &lsquo;<samp>ac_vlc</samp>&rsquo;</dt>
483 <dd><p>illegal vlc bug (autodetected per fourcc)
484 </p></dd>
485 <dt> &lsquo;<samp>qpel_chroma</samp>&rsquo;</dt>
486 <dt> &lsquo;<samp>std_qpel</samp>&rsquo;</dt>
487 <dd><p>old standard qpel (autodetected per fourcc/version)
488 </p></dd>
489 <dt> &lsquo;<samp>qpel_chroma2</samp>&rsquo;</dt>
490 <dt> &lsquo;<samp>direct_blocksize</samp>&rsquo;</dt>
491 <dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
492 </p></dd>
493 <dt> &lsquo;<samp>edge</samp>&rsquo;</dt>
494 <dd><p>edge padding bug (autodetected per fourcc/version)
495 </p></dd>
496 <dt> &lsquo;<samp>hpel_chroma</samp>&rsquo;</dt>
497 <dt> &lsquo;<samp>dc_clip</samp>&rsquo;</dt>
498 <dt> &lsquo;<samp>ms</samp>&rsquo;</dt>
499 <dd><p>Workaround various bugs in microsoft broken decoders.
500 </p></dd>
501 <dt> &lsquo;<samp>trunc</samp>&rsquo;</dt>
502 <dd><p>trancated frames
503 </p></dd>
504 </dl>
505
506 </dd>
507 <dt> &lsquo;<samp>lelim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
508 <dd><p>Set single coefficient elimination threshold for luminance (negative
509 values also consider DC coefficient).
510 </p>
511 </dd>
512 <dt> &lsquo;<samp>celim <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
513 <dd><p>Set single coefficient elimination threshold for chrominance (negative
514 values also consider dc coefficient)
515 </p>
516 </dd>
517 <dt> &lsquo;<samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
518 <dd><p>Specify how strictly to follow the standards.
519 </p>
520 <p>Possible values:
521 </p><dl compact="compact">
522 <dt> &lsquo;<samp>very</samp>&rsquo;</dt>
523 <dd><p>strictly conform to a older more strict version of the spec or reference software
524 </p></dd>
525 <dt> &lsquo;<samp>strict</samp>&rsquo;</dt>
526 <dd><p>strictly conform to all the things in the spec no matter what consequences
527 </p></dd>
528 <dt> &lsquo;<samp>normal</samp>&rsquo;</dt>
529 <dt> &lsquo;<samp>unofficial</samp>&rsquo;</dt>
530 <dd><p>allow unofficial extensions
531 </p></dd>
532 <dt> &lsquo;<samp>experimental</samp>&rsquo;</dt>
533 <dd><p>allow non standardized experimental things, experimental
534 (unfinished/work in progress/not well tested) decoders and encoders.
535 Note: experimental decoders can pose a security risk, do not use this for
536 decoding untrusted input.
537 </p></dd>
538 </dl>
539
540 </dd>
541 <dt> &lsquo;<samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
542 <dd><p>Set QP offset between P and B frames.
543 </p>
544 </dd>
545 <dt> &lsquo;<samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
546 <dd><p>Set error detection flags.
547 </p>
548 <p>Possible values:
549 </p><dl compact="compact">
550 <dt> &lsquo;<samp>crccheck</samp>&rsquo;</dt>
551 <dd><p>verify embedded CRCs
552 </p></dd>
553 <dt> &lsquo;<samp>bitstream</samp>&rsquo;</dt>
554 <dd><p>detect bitstream specification deviations
555 </p></dd>
556 <dt> &lsquo;<samp>buffer</samp>&rsquo;</dt>
557 <dd><p>detect improper bitstream length
558 </p></dd>
559 <dt> &lsquo;<samp>explode</samp>&rsquo;</dt>
560 <dd><p>abort decoding on minor error detection
561 </p></dd>
562 <dt> &lsquo;<samp>careful</samp>&rsquo;</dt>
563 <dd><p>consider things that violate the spec and have not been seen in the wild as errors
564 </p></dd>
565 <dt> &lsquo;<samp>compliant</samp>&rsquo;</dt>
566 <dd><p>consider all spec non compliancies as errors
567 </p></dd>
568 <dt> &lsquo;<samp>aggressive</samp>&rsquo;</dt>
569 <dd><p>consider things that a sane encoder should not do as an error
570 </p></dd>
571 </dl>
572
573 </dd>
574 <dt> &lsquo;<samp>has_b_frames <var>integer</var></samp>&rsquo;</dt>
575 <dt> &lsquo;<samp>block_align <var>integer</var></samp>&rsquo;</dt>
576 <dt> &lsquo;<samp>mpeg_quant <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
577 <dd><p>Use MPEG quantizers instead of H.263.
578 </p>
579 </dd>
580 <dt> &lsquo;<samp>qsquish <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
581 <dd><p>How to keep quantizer between qmin and qmax (0 = clip, 1 = use
582 differentiable function).
583 </p>
584 </dd>
585 <dt> &lsquo;<samp>rc_qmod_amp <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
586 <dd><p>Set experimental quantizer modulation.
587 </p>
588 </dd>
589 <dt> &lsquo;<samp>rc_qmod_freq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
590 <dd><p>Set experimental quantizer modulation.
591 </p>
592 </dd>
593 <dt> &lsquo;<samp>rc_override_count <var>integer</var></samp>&rsquo;</dt>
594 <dt> &lsquo;<samp>rc_eq <var>string</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
595 <dd><p>Set rate control equation. When computing the expression, besides the
596 standard functions defined in the section &rsquo;Expression Evaluation&rsquo;, the
597 following functions are available: bits2qp(bits), qp2bits(qp). Also
598 the following constants are available: iTex pTex tex mv fCode iCount
599 mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex
600 avgTex.
601 </p>
602 </dd>
603 <dt> &lsquo;<samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
604 <dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
605 </p>
606 </dd>
607 <dt> &lsquo;<samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
608 <dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
609 encode. It is of little use elsewise.
610 </p>
611 </dd>
612 <dt> &lsquo;<samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
613 <dd><p>Set ratecontrol buffer size (in bits).
614 </p>
615 </dd>
616 <dt> &lsquo;<samp>rc_buf_aggressivity <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
617 <dd><p>Currently useless.
618 </p>
619 </dd>
620 <dt> &lsquo;<samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
621 <dd><p>Set QP factor between P and I frames.
622 </p>
623 </dd>
624 <dt> &lsquo;<samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
625 <dd><p>Set QP offset between P and I frames.
626 </p>
627 </dd>
628 <dt> &lsquo;<samp>rc_init_cplx <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
629 <dd><p>Set initial complexity for 1-pass encoding.
630 </p>
631 </dd>
632 <dt> &lsquo;<samp>dct <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
633 <dd><p>Set DCT algorithm.
634 </p>
635 <p>Possible values:
636 </p><dl compact="compact">
637 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
638 <dd><p>autoselect a good one (default)
639 </p></dd>
640 <dt> &lsquo;<samp>fastint</samp>&rsquo;</dt>
641 <dd><p>fast integer
642 </p></dd>
643 <dt> &lsquo;<samp>int</samp>&rsquo;</dt>
644 <dd><p>accurate integer
645 </p></dd>
646 <dt> &lsquo;<samp>mmx</samp>&rsquo;</dt>
647 <dt> &lsquo;<samp>altivec</samp>&rsquo;</dt>
648 <dt> &lsquo;<samp>faan</samp>&rsquo;</dt>
649 <dd><p>floating point AAN DCT
650 </p></dd>
651 </dl>
652
653 </dd>
654 <dt> &lsquo;<samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
655 <dd><p>Compress bright areas stronger than medium ones.
656 </p>
657 </dd>
658 <dt> &lsquo;<samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
659 <dd><p>Set temporal complexity masking.
660 </p>
661 </dd>
662 <dt> &lsquo;<samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
663 <dd><p>Set spatial complexity masking.
664 </p>
665 </dd>
666 <dt> &lsquo;<samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
667 <dd><p>Set inter masking.
668 </p>
669 </dd>
670 <dt> &lsquo;<samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
671 <dd><p>Compress dark areas stronger than medium ones.
672 </p>
673 </dd>
674 <dt> &lsquo;<samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
675 <dd><p>Select IDCT implementation.
676 </p>
677 <p>Possible values:
678 </p><dl compact="compact">
679 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
680 <dt> &lsquo;<samp>int</samp>&rsquo;</dt>
681 <dt> &lsquo;<samp>simple</samp>&rsquo;</dt>
682 <dt> &lsquo;<samp>simplemmx</samp>&rsquo;</dt>
683 <dt> &lsquo;<samp>arm</samp>&rsquo;</dt>
684 <dt> &lsquo;<samp>altivec</samp>&rsquo;</dt>
685 <dt> &lsquo;<samp>sh4</samp>&rsquo;</dt>
686 <dt> &lsquo;<samp>simplearm</samp>&rsquo;</dt>
687 <dt> &lsquo;<samp>simplearmv5te</samp>&rsquo;</dt>
688 <dt> &lsquo;<samp>simplearmv6</samp>&rsquo;</dt>
689 <dt> &lsquo;<samp>simpleneon</samp>&rsquo;</dt>
690 <dt> &lsquo;<samp>simplealpha</samp>&rsquo;</dt>
691 <dt> &lsquo;<samp>ipp</samp>&rsquo;</dt>
692 <dt> &lsquo;<samp>xvidmmx</samp>&rsquo;</dt>
693 <dt> &lsquo;<samp>faani</samp>&rsquo;</dt>
694 <dd><p>floating point AAN IDCT
695 </p></dd>
696 </dl>
697
698 </dd>
699 <dt> &lsquo;<samp>slice_count <var>integer</var></samp>&rsquo;</dt>
700 <dt> &lsquo;<samp>ec <var>flags</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
701 <dd><p>Set error concealment strategy.
702 </p>
703 <p>Possible values:
704 </p><dl compact="compact">
705 <dt> &lsquo;<samp>guess_mvs</samp>&rsquo;</dt>
706 <dd><p>iterative motion vector (MV) search (slow)
707 </p></dd>
708 <dt> &lsquo;<samp>deblock</samp>&rsquo;</dt>
709 <dd><p>use strong deblock filter for damaged MBs
710 </p></dd>
711 </dl>
712
713 </dd>
714 <dt> &lsquo;<samp>bits_per_coded_sample <var>integer</var></samp>&rsquo;</dt>
715 <dt> &lsquo;<samp>pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
716 <dd><p>Set prediction method.
717 </p>
718 <p>Possible values:
719 </p><dl compact="compact">
720 <dt> &lsquo;<samp>left</samp>&rsquo;</dt>
721 <dt> &lsquo;<samp>plane</samp>&rsquo;</dt>
722 <dt> &lsquo;<samp>median</samp>&rsquo;</dt>
723 </dl>
724
725 </dd>
726 <dt> &lsquo;<samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
727 <dd><p>Set sample aspect ratio.
728 </p>
729 </dd>
730 <dt> &lsquo;<samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp>&rsquo;</dt>
731 <dd><p>Print specific debug info.
732 </p>
733 <p>Possible values:
734 </p><dl compact="compact">
735 <dt> &lsquo;<samp>pict</samp>&rsquo;</dt>
736 <dd><p>picture info
737 </p></dd>
738 <dt> &lsquo;<samp>rc</samp>&rsquo;</dt>
739 <dd><p>rate control
740 </p></dd>
741 <dt> &lsquo;<samp>bitstream</samp>&rsquo;</dt>
742 <dt> &lsquo;<samp>mb_type</samp>&rsquo;</dt>
743 <dd><p>macroblock (MB) type
744 </p></dd>
745 <dt> &lsquo;<samp>qp</samp>&rsquo;</dt>
746 <dd><p>per-block quantization parameter (QP)
747 </p></dd>
748 <dt> &lsquo;<samp>mv</samp>&rsquo;</dt>
749 <dd><p>motion vector
750 </p></dd>
751 <dt> &lsquo;<samp>dct_coeff</samp>&rsquo;</dt>
752 <dt> &lsquo;<samp>skip</samp>&rsquo;</dt>
753 <dt> &lsquo;<samp>startcode</samp>&rsquo;</dt>
754 <dt> &lsquo;<samp>pts</samp>&rsquo;</dt>
755 <dt> &lsquo;<samp>er</samp>&rsquo;</dt>
756 <dd><p>error recognition
757 </p></dd>
758 <dt> &lsquo;<samp>mmco</samp>&rsquo;</dt>
759 <dd><p>memory management control operations (H.264)
760 </p></dd>
761 <dt> &lsquo;<samp>bugs</samp>&rsquo;</dt>
762 <dt> &lsquo;<samp>vis_qp</samp>&rsquo;</dt>
763 <dd><p>visualize quantization parameter (QP), lower QP are tinted greener
764 </p></dd>
765 <dt> &lsquo;<samp>vis_mb_type</samp>&rsquo;</dt>
766 <dd><p>visualize block types
767 </p></dd>
768 <dt> &lsquo;<samp>buffers</samp>&rsquo;</dt>
769 <dd><p>picture buffer allocations
770 </p></dd>
771 <dt> &lsquo;<samp>thread_ops</samp>&rsquo;</dt>
772 <dd><p>threading operations
773 </p></dd>
774 </dl>
775
776 </dd>
777 <dt> &lsquo;<samp>vismv <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
778 <dd><p>Visualize motion vectors (MVs).
779 </p>
780 <p>Possible values:
781 </p><dl compact="compact">
782 <dt> &lsquo;<samp>pf</samp>&rsquo;</dt>
783 <dd><p>forward predicted MVs of P-frames
784 </p></dd>
785 <dt> &lsquo;<samp>bf</samp>&rsquo;</dt>
786 <dd><p>forward predicted MVs of B-frames
787 </p></dd>
788 <dt> &lsquo;<samp>bb</samp>&rsquo;</dt>
789 <dd><p>backward predicted MVs of B-frames
790 </p></dd>
791 </dl>
792
793 </dd>
794 <dt> &lsquo;<samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
795 <dd><p>Set full pel me compare function.
796 </p>
797 <p>Possible values:
798 </p><dl compact="compact">
799 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
800 <dd><p>sum of absolute differences, fast (default)
801 </p></dd>
802 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
803 <dd><p>sum of squared errors
804 </p></dd>
805 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
806 <dd><p>sum of absolute Hadamard transformed differences
807 </p></dd>
808 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
809 <dd><p>sum of absolute DCT transformed differences
810 </p></dd>
811 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
812 <dd><p>sum of squared quantization errors (avoid, low quality)
813 </p></dd>
814 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
815 <dd><p>number of bits needed for the block
816 </p></dd>
817 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
818 <dd><p>rate distortion optimal, slow
819 </p></dd>
820 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
821 <dd><p>0
822 </p></dd>
823 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
824 <dd><p>sum of absolute vertical differences
825 </p></dd>
826 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
827 <dd><p>sum of squared vertical differences
828 </p></dd>
829 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
830 <dd><p>noise preserving sum of squared differences
831 </p></dd>
832 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
833 <dd><p>5/3 wavelet, only used in snow
834 </p></dd>
835 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
836 <dd><p>9/7 wavelet, only used in snow
837 </p></dd>
838 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
839 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
840 </dl>
841
842 </dd>
843 <dt> &lsquo;<samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
844 <dd><p>Set sub pel me compare function.
845 </p>
846 <p>Possible values:
847 </p><dl compact="compact">
848 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
849 <dd><p>sum of absolute differences, fast (default)
850 </p></dd>
851 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
852 <dd><p>sum of squared errors
853 </p></dd>
854 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
855 <dd><p>sum of absolute Hadamard transformed differences
856 </p></dd>
857 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
858 <dd><p>sum of absolute DCT transformed differences
859 </p></dd>
860 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
861 <dd><p>sum of squared quantization errors (avoid, low quality)
862 </p></dd>
863 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
864 <dd><p>number of bits needed for the block
865 </p></dd>
866 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
867 <dd><p>rate distortion optimal, slow
868 </p></dd>
869 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
870 <dd><p>0
871 </p></dd>
872 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
873 <dd><p>sum of absolute vertical differences
874 </p></dd>
875 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
876 <dd><p>sum of squared vertical differences
877 </p></dd>
878 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
879 <dd><p>noise preserving sum of squared differences
880 </p></dd>
881 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
882 <dd><p>5/3 wavelet, only used in snow
883 </p></dd>
884 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
885 <dd><p>9/7 wavelet, only used in snow
886 </p></dd>
887 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
888 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
889 </dl>
890
891 </dd>
892 <dt> &lsquo;<samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
893 <dd><p>Set macroblock compare function.
894 </p>
895 <p>Possible values:
896 </p><dl compact="compact">
897 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
898 <dd><p>sum of absolute differences, fast (default)
899 </p></dd>
900 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
901 <dd><p>sum of squared errors
902 </p></dd>
903 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
904 <dd><p>sum of absolute Hadamard transformed differences
905 </p></dd>
906 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
907 <dd><p>sum of absolute DCT transformed differences
908 </p></dd>
909 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
910 <dd><p>sum of squared quantization errors (avoid, low quality)
911 </p></dd>
912 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
913 <dd><p>number of bits needed for the block
914 </p></dd>
915 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
916 <dd><p>rate distortion optimal, slow
917 </p></dd>
918 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
919 <dd><p>0
920 </p></dd>
921 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
922 <dd><p>sum of absolute vertical differences
923 </p></dd>
924 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
925 <dd><p>sum of squared vertical differences
926 </p></dd>
927 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
928 <dd><p>noise preserving sum of squared differences
929 </p></dd>
930 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
931 <dd><p>5/3 wavelet, only used in snow
932 </p></dd>
933 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
934 <dd><p>9/7 wavelet, only used in snow
935 </p></dd>
936 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
937 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
938 </dl>
939
940 </dd>
941 <dt> &lsquo;<samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
942 <dd><p>Set interlaced dct compare function.
943 </p>
944 <p>Possible values:
945 </p><dl compact="compact">
946 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
947 <dd><p>sum of absolute differences, fast (default)
948 </p></dd>
949 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
950 <dd><p>sum of squared errors
951 </p></dd>
952 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
953 <dd><p>sum of absolute Hadamard transformed differences
954 </p></dd>
955 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
956 <dd><p>sum of absolute DCT transformed differences
957 </p></dd>
958 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
959 <dd><p>sum of squared quantization errors (avoid, low quality)
960 </p></dd>
961 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
962 <dd><p>number of bits needed for the block
963 </p></dd>
964 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
965 <dd><p>rate distortion optimal, slow
966 </p></dd>
967 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
968 <dd><p>0
969 </p></dd>
970 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
971 <dd><p>sum of absolute vertical differences
972 </p></dd>
973 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
974 <dd><p>sum of squared vertical differences
975 </p></dd>
976 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
977 <dd><p>noise preserving sum of squared differences
978 </p></dd>
979 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
980 <dd><p>5/3 wavelet, only used in snow
981 </p></dd>
982 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
983 <dd><p>9/7 wavelet, only used in snow
984 </p></dd>
985 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
986 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
987 </dl>
988
989 </dd>
990 <dt> &lsquo;<samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
991 <dd><p>Set diamond type &amp; size for motion estimation.
992 </p>
993 </dd>
994 <dt> &lsquo;<samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
995 <dd><p>Set amount of motion predictors from the previous frame.
996 </p>
997 </dd>
998 <dt> &lsquo;<samp>preme <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
999 <dd><p>Set pre motion estimation.
1000 </p>
1001 </dd>
1002 <dt> &lsquo;<samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1003 <dd><p>Set pre motion estimation compare function.
1004 </p>
1005 <p>Possible values:
1006 </p><dl compact="compact">
1007 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
1008 <dd><p>sum of absolute differences, fast (default)
1009 </p></dd>
1010 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
1011 <dd><p>sum of squared errors
1012 </p></dd>
1013 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
1014 <dd><p>sum of absolute Hadamard transformed differences
1015 </p></dd>
1016 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
1017 <dd><p>sum of absolute DCT transformed differences
1018 </p></dd>
1019 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
1020 <dd><p>sum of squared quantization errors (avoid, low quality)
1021 </p></dd>
1022 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
1023 <dd><p>number of bits needed for the block
1024 </p></dd>
1025 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
1026 <dd><p>rate distortion optimal, slow
1027 </p></dd>
1028 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
1029 <dd><p>0
1030 </p></dd>
1031 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
1032 <dd><p>sum of absolute vertical differences
1033 </p></dd>
1034 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
1035 <dd><p>sum of squared vertical differences
1036 </p></dd>
1037 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
1038 <dd><p>noise preserving sum of squared differences
1039 </p></dd>
1040 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
1041 <dd><p>5/3 wavelet, only used in snow
1042 </p></dd>
1043 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
1044 <dd><p>9/7 wavelet, only used in snow
1045 </p></dd>
1046 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
1047 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
1048 </dl>
1049
1050 </dd>
1051 <dt> &lsquo;<samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1052 <dd><p>Set diamond type &amp; size for motion estimation pre-pass.
1053 </p>
1054 </dd>
1055 <dt> &lsquo;<samp>subq <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1056 <dd><p>Set sub pel motion estimation quality.
1057 </p>
1058 </dd>
1059 <dt> &lsquo;<samp>dtg_active_format <var>integer</var></samp>&rsquo;</dt>
1060 <dt> &lsquo;<samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1061 <dd><p>Set limit motion vectors range (1023 for DivX player).
1062 </p>
1063 </dd>
1064 <dt> &lsquo;<samp>ibias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1065 <dd><p>Set intra quant bias.
1066 </p>
1067 </dd>
1068 <dt> &lsquo;<samp>pbias <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1069 <dd><p>Set inter quant bias.
1070 </p>
1071 </dd>
1072 <dt> &lsquo;<samp>color_table_id <var>integer</var></samp>&rsquo;</dt>
1073 <dt> &lsquo;<samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
1074 <dt> &lsquo;<samp>coder <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1075 <dd>
1076 <p>Possible values:
1077 </p><dl compact="compact">
1078 <dt> &lsquo;<samp>vlc</samp>&rsquo;</dt>
1079 <dd><p>variable length coder / huffman coder
1080 </p></dd>
1081 <dt> &lsquo;<samp>ac</samp>&rsquo;</dt>
1082 <dd><p>arithmetic coder
1083 </p></dd>
1084 <dt> &lsquo;<samp>raw</samp>&rsquo;</dt>
1085 <dd><p>raw (no encoding)
1086 </p></dd>
1087 <dt> &lsquo;<samp>rle</samp>&rsquo;</dt>
1088 <dd><p>run-length coder
1089 </p></dd>
1090 <dt> &lsquo;<samp>deflate</samp>&rsquo;</dt>
1091 <dd><p>deflate-based coder
1092 </p></dd>
1093 </dl>
1094
1095 </dd>
1096 <dt> &lsquo;<samp>context <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1097 <dd><p>Set context model.
1098 </p>
1099 </dd>
1100 <dt> &lsquo;<samp>slice_flags <var>integer</var></samp>&rsquo;</dt>
1101 <dt> &lsquo;<samp>xvmc_acceleration <var>integer</var></samp>&rsquo;</dt>
1102 <dt> &lsquo;<samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1103 <dd><p>Set macroblock decision algorithm (high quality mode).
1104 </p>
1105 <p>Possible values:
1106 </p><dl compact="compact">
1107 <dt> &lsquo;<samp>simple</samp>&rsquo;</dt>
1108 <dd><p>use mbcmp (default)
1109 </p></dd>
1110 <dt> &lsquo;<samp>bits</samp>&rsquo;</dt>
1111 <dd><p>use fewest bits
1112 </p></dd>
1113 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
1114 <dd><p>use best rate distortion
1115 </p></dd>
1116 </dl>
1117
1118 </dd>
1119 <dt> &lsquo;<samp>stream_codec_tag <var>integer</var></samp>&rsquo;</dt>
1120 <dt> &lsquo;<samp>sc_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1121 <dd><p>Set scene change threshold.
1122 </p>
1123 </dd>
1124 <dt> &lsquo;<samp>lmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1125 <dd><p>Set min lagrange factor (VBR).
1126 </p>
1127 </dd>
1128 <dt> &lsquo;<samp>lmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1129 <dd><p>Set max lagrange factor (VBR).
1130 </p>
1131 </dd>
1132 <dt> &lsquo;<samp>nr <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1133 <dd><p>Set noise reduction.
1134 </p>
1135 </dd>
1136 <dt> &lsquo;<samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1137 <dd><p>Set number of bits which should be loaded into the rc buffer before
1138 decoding starts.
1139 </p>
1140 </dd>
1141 <dt> &lsquo;<samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
1142 <dd>
1143 <p>Possible values:
1144 </p><dl compact="compact">
1145 <dt> &lsquo;<samp>fast</samp>&rsquo;</dt>
1146 <dd><p>Allow non spec compliant speedup tricks.
1147 </p></dd>
1148 <dt> &lsquo;<samp>sgop</samp>&rsquo;</dt>
1149 <dd><p>Deprecated, use mpegvideo private options instead.
1150 </p></dd>
1151 <dt> &lsquo;<samp>noout</samp>&rsquo;</dt>
1152 <dd><p>Skip bitstream encoding.
1153 </p></dd>
1154 <dt> &lsquo;<samp>ignorecrop</samp>&rsquo;</dt>
1155 <dd><p>Ignore cropping information from sps.
1156 </p></dd>
1157 <dt> &lsquo;<samp>local_header</samp>&rsquo;</dt>
1158 <dd><p>Place global headers at every keyframe instead of in extradata.
1159 </p></dd>
1160 <dt> &lsquo;<samp>chunks</samp>&rsquo;</dt>
1161 <dd><p>Frame data might be split into multiple chunks.
1162 </p></dd>
1163 <dt> &lsquo;<samp>showall</samp>&rsquo;</dt>
1164 <dd><p>Show all frames before the first keyframe.
1165 </p></dd>
1166 <dt> &lsquo;<samp>skiprd</samp>&rsquo;</dt>
1167 <dd><p>Deprecated, use mpegvideo private options instead.
1168 </p></dd>
1169 </dl>
1170
1171 </dd>
1172 <dt> &lsquo;<samp>error <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1173 <dt> &lsquo;<samp>qns <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1174 <dd><p>Deprecated, use mpegvideo private options instead.
1175 </p>
1176 </dd>
1177 <dt> &lsquo;<samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1178 <dd>
1179 <p>Possible values:
1180 </p><dl compact="compact">
1181 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
1182 <dd><p>detect a good number of threads
1183 </p></dd>
1184 </dl>
1185
1186 </dd>
1187 <dt> &lsquo;<samp>me_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1188 <dd><p>Set motion estimation threshold.
1189 </p>
1190 </dd>
1191 <dt> &lsquo;<samp>mb_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1192 <dd><p>Set macroblock threshold.
1193 </p>
1194 </dd>
1195 <dt> &lsquo;<samp>dc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1196 <dd><p>Set intra_dc_precision.
1197 </p>
1198 </dd>
1199 <dt> &lsquo;<samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1200 <dd><p>Set nsse weight.
1201 </p>
1202 </dd>
1203 <dt> &lsquo;<samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1204 <dd><p>Set number of macroblock rows at the top which are skipped.
1205 </p>
1206 </dd>
1207 <dt> &lsquo;<samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1208 <dd><p>Set number of macroblock rows at the bottom which are skipped.
1209 </p>
1210 </dd>
1211 <dt> &lsquo;<samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
1212 <dd>
1213 <p>Possible values:
1214 </p><dl compact="compact">
1215 <dt> &lsquo;<samp>unknown</samp>&rsquo;</dt>
1216 <dt> &lsquo;<samp>aac_main</samp>&rsquo;</dt>
1217 <dt> &lsquo;<samp>aac_low</samp>&rsquo;</dt>
1218 <dt> &lsquo;<samp>aac_ssr</samp>&rsquo;</dt>
1219 <dt> &lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
1220 <dt> &lsquo;<samp>aac_he</samp>&rsquo;</dt>
1221 <dt> &lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
1222 <dt> &lsquo;<samp>aac_ld</samp>&rsquo;</dt>
1223 <dt> &lsquo;<samp>aac_eld</samp>&rsquo;</dt>
1224 <dt> &lsquo;<samp>mpeg2_aac_low</samp>&rsquo;</dt>
1225 <dt> &lsquo;<samp>mpeg2_aac_he</samp>&rsquo;</dt>
1226 <dt> &lsquo;<samp>dts</samp>&rsquo;</dt>
1227 <dt> &lsquo;<samp>dts_es</samp>&rsquo;</dt>
1228 <dt> &lsquo;<samp>dts_96_24</samp>&rsquo;</dt>
1229 <dt> &lsquo;<samp>dts_hd_hra</samp>&rsquo;</dt>
1230 <dt> &lsquo;<samp>dts_hd_ma</samp>&rsquo;</dt>
1231 </dl>
1232
1233 </dd>
1234 <dt> &lsquo;<samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
1235 <dd>
1236 <p>Possible values:
1237 </p><dl compact="compact">
1238 <dt> &lsquo;<samp>unknown</samp>&rsquo;</dt>
1239 </dl>
1240
1241 </dd>
1242 <dt> &lsquo;<samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp>&rsquo;</dt>
1243 <dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
1244 </p>
1245 </dd>
1246 <dt> &lsquo;<samp>skip_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1247 <dd><p>Set frame skip threshold.
1248 </p>
1249 </dd>
1250 <dt> &lsquo;<samp>skip_factor <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1251 <dd><p>Set frame skip factor.
1252 </p>
1253 </dd>
1254 <dt> &lsquo;<samp>skip_exp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1255 <dd><p>Set frame skip exponent.
1256 Negative values behave identical to the corresponding positive ones, except
1257 that the score is normalized.
1258 Positive values exist primarly for compatibility reasons and are not so useful.
1259 </p>
1260 </dd>
1261 <dt> &lsquo;<samp>skipcmp <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1262 <dd><p>Set frame skip compare function.
1263 </p>
1264 <p>Possible values:
1265 </p><dl compact="compact">
1266 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
1267 <dd><p>sum of absolute differences, fast (default)
1268 </p></dd>
1269 <dt> &lsquo;<samp>sse</samp>&rsquo;</dt>
1270 <dd><p>sum of squared errors
1271 </p></dd>
1272 <dt> &lsquo;<samp>satd</samp>&rsquo;</dt>
1273 <dd><p>sum of absolute Hadamard transformed differences
1274 </p></dd>
1275 <dt> &lsquo;<samp>dct</samp>&rsquo;</dt>
1276 <dd><p>sum of absolute DCT transformed differences
1277 </p></dd>
1278 <dt> &lsquo;<samp>psnr</samp>&rsquo;</dt>
1279 <dd><p>sum of squared quantization errors (avoid, low quality)
1280 </p></dd>
1281 <dt> &lsquo;<samp>bit</samp>&rsquo;</dt>
1282 <dd><p>number of bits needed for the block
1283 </p></dd>
1284 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
1285 <dd><p>rate distortion optimal, slow
1286 </p></dd>
1287 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
1288 <dd><p>0
1289 </p></dd>
1290 <dt> &lsquo;<samp>vsad</samp>&rsquo;</dt>
1291 <dd><p>sum of absolute vertical differences
1292 </p></dd>
1293 <dt> &lsquo;<samp>vsse</samp>&rsquo;</dt>
1294 <dd><p>sum of squared vertical differences
1295 </p></dd>
1296 <dt> &lsquo;<samp>nsse</samp>&rsquo;</dt>
1297 <dd><p>noise preserving sum of squared differences
1298 </p></dd>
1299 <dt> &lsquo;<samp>w53</samp>&rsquo;</dt>
1300 <dd><p>5/3 wavelet, only used in snow
1301 </p></dd>
1302 <dt> &lsquo;<samp>w97</samp>&rsquo;</dt>
1303 <dd><p>9/7 wavelet, only used in snow
1304 </p></dd>
1305 <dt> &lsquo;<samp>dctmax</samp>&rsquo;</dt>
1306 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
1307 </dl>
1308
1309 </dd>
1310 <dt> &lsquo;<samp>border_mask <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1311 <dd><p>Increase the quantizer for macroblocks close to borders.
1312 </p>
1313 </dd>
1314 <dt> &lsquo;<samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1315 <dd><p>Set min macroblock lagrange factor (VBR).
1316 </p>
1317 </dd>
1318 <dt> &lsquo;<samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1319 <dd><p>Set max macroblock lagrange factor (VBR).
1320 </p>
1321 </dd>
1322 <dt> &lsquo;<samp>mepc <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1323 <dd><p>Set motion estimation bitrate penalty compensation (1.0 = 256).
1324 </p>
1325 </dd>
1326 <dt> &lsquo;<samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1327 <dt> &lsquo;<samp>skip_idct        <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1328 <dt> &lsquo;<samp>skip_frame       <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1329 <dd>
1330 <p>Make decoder discard processing depending on the frame type selected
1331 by the option value.
1332 </p>
1333 <p>&lsquo;<samp>skip_loop_filter</samp>&rsquo; skips frame loop filtering, &lsquo;<samp>skip_idct</samp>&rsquo;
1334 skips frame IDCT/dequantization, &lsquo;<samp>skip_frame</samp>&rsquo; skips decoding.
1335 </p>
1336 <p>Possible values:
1337 </p><dl compact="compact">
1338 <dt> &lsquo;<samp>none</samp>&rsquo;</dt>
1339 <dd><p>Discard no frame.
1340 </p>
1341 </dd>
1342 <dt> &lsquo;<samp>default</samp>&rsquo;</dt>
1343 <dd><p>Discard useless frames like 0-sized frames.
1344 </p>
1345 </dd>
1346 <dt> &lsquo;<samp>noref</samp>&rsquo;</dt>
1347 <dd><p>Discard all non-reference frames.
1348 </p>
1349 </dd>
1350 <dt> &lsquo;<samp>bidir</samp>&rsquo;</dt>
1351 <dd><p>Discard all bidirectional frames.
1352 </p>
1353 </dd>
1354 <dt> &lsquo;<samp>nokey</samp>&rsquo;</dt>
1355 <dd><p>Discard all frames excepts keyframes.
1356 </p>
1357 </dd>
1358 <dt> &lsquo;<samp>all</samp>&rsquo;</dt>
1359 <dd><p>Discard all frames.
1360 </p></dd>
1361 </dl>
1362
1363 <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
1364 </p>
1365 </dd>
1366 <dt> &lsquo;<samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1367 <dd><p>Refine the two motion vectors used in bidirectional macroblocks.
1368 </p>
1369 </dd>
1370 <dt> &lsquo;<samp>brd_scale <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1371 <dd><p>Downscale frames for dynamic B-frame decision.
1372 </p>
1373 </dd>
1374 <dt> &lsquo;<samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1375 <dd><p>Set minimum interval between IDR-frames.
1376 </p>
1377 </dd>
1378 <dt> &lsquo;<samp>refs <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1379 <dd><p>Set reference frames to consider for motion compensation.
1380 </p>
1381 </dd>
1382 <dt> &lsquo;<samp>chromaoffset <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1383 <dd><p>Set chroma qp offset from luma.
1384 </p>
1385 </dd>
1386 <dt> &lsquo;<samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
1387 <dd><p>Set rate-distortion optimal quantization.
1388 </p>
1389 </dd>
1390 <dt> &lsquo;<samp>sc_factor <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1391 <dd><p>Set value multiplied by qscale for each frame and added to
1392 scene_change_score.
1393 </p>
1394 </dd>
1395 <dt> &lsquo;<samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1396 <dt> &lsquo;<samp>b_sensitivity <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1397 <dd><p>Adjust sensitivity of b_frame_strategy 1.
1398 </p>
1399 </dd>
1400 <dt> &lsquo;<samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp>&rsquo;</dt>
1401 <dt> &lsquo;<samp>min_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
1402 <dt> &lsquo;<samp>max_prediction_order <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
1403 <dt> &lsquo;<samp>timecode_frame_start <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1404 <dd><p>Set GOP timecode frame start number, in non drop frame format.
1405 </p>
1406 </dd>
1407 <dt> &lsquo;<samp>request_channels <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
1408 <dd><p>Set desired number of audio channels.
1409 </p>
1410 </dd>
1411 <dt> &lsquo;<samp>bits_per_raw_sample <var>integer</var></samp>&rsquo;</dt>
1412 <dt> &lsquo;<samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp>&rsquo;</dt>
1413 <dd>
1414 <p>Possible values:
1415 </p></dd>
1416 <dt> &lsquo;<samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
1417 <dd>
1418 <p>Possible values:
1419 </p></dd>
1420 <dt> &lsquo;<samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1421 <dt> &lsquo;<samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1422 <dt> &lsquo;<samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp>&rsquo;</dt>
1423 <dt> &lsquo;<samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1424 <dt> &lsquo;<samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1425 <dt> &lsquo;<samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1426 <dt> &lsquo;<samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1427 <dt> &lsquo;<samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1428 <dt> &lsquo;<samp>log_level_offset <var>integer</var></samp>&rsquo;</dt>
1429 <dd><p>Set the log level offset.
1430 </p>
1431 </dd>
1432 <dt> &lsquo;<samp>slices <var>integer</var> (<em>encoding,video</em>)</samp>&rsquo;</dt>
1433 <dd><p>Number of slices, used in parallelized encoding.
1434 </p>
1435 </dd>
1436 <dt> &lsquo;<samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp>&rsquo;</dt>
1437 <dd><p>Select multithreading type.
1438 </p>
1439 <p>Possible values:
1440 </p><dl compact="compact">
1441 <dt> &lsquo;<samp>slice</samp>&rsquo;</dt>
1442 <dt> &lsquo;<samp>frame</samp>&rsquo;</dt>
1443 </dl>
1444 </dd>
1445 <dt> &lsquo;<samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp>&rsquo;</dt>
1446 <dd><p>Set audio service type.
1447 </p>
1448 <p>Possible values:
1449 </p><dl compact="compact">
1450 <dt> &lsquo;<samp>ma</samp>&rsquo;</dt>
1451 <dd><p>Main Audio Service
1452 </p></dd>
1453 <dt> &lsquo;<samp>ef</samp>&rsquo;</dt>
1454 <dd><p>Effects
1455 </p></dd>
1456 <dt> &lsquo;<samp>vi</samp>&rsquo;</dt>
1457 <dd><p>Visually Impaired
1458 </p></dd>
1459 <dt> &lsquo;<samp>hi</samp>&rsquo;</dt>
1460 <dd><p>Hearing Impaired
1461 </p></dd>
1462 <dt> &lsquo;<samp>di</samp>&rsquo;</dt>
1463 <dd><p>Dialogue
1464 </p></dd>
1465 <dt> &lsquo;<samp>co</samp>&rsquo;</dt>
1466 <dd><p>Commentary
1467 </p></dd>
1468 <dt> &lsquo;<samp>em</samp>&rsquo;</dt>
1469 <dd><p>Emergency
1470 </p></dd>
1471 <dt> &lsquo;<samp>vo</samp>&rsquo;</dt>
1472 <dd><p>Voice Over
1473 </p></dd>
1474 <dt> &lsquo;<samp>ka</samp>&rsquo;</dt>
1475 <dd><p>Karaoke
1476 </p></dd>
1477 </dl>
1478
1479 </dd>
1480 <dt> &lsquo;<samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp>&rsquo;</dt>
1481 <dd><p>Set sample format audio decoders should prefer. Default value is
1482 <code>none</code>.
1483 </p>
1484 </dd>
1485 <dt> &lsquo;<samp>pkt_timebase <var>rational number</var></samp>&rsquo;</dt>
1486 <dt> &lsquo;<samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp>&rsquo;</dt>
1487 <dd><p>Set the input subtitles character encoding.
1488 </p>
1489 </dd>
1490 <dt> &lsquo;<samp>field_order  <var>field_order</var> (<em>video</em>)</samp>&rsquo;</dt>
1491 <dd><p>Set/override the field order of the video.
1492 Possible values:
1493 </p><dl compact="compact">
1494 <dt> &lsquo;<samp>progressive</samp>&rsquo;</dt>
1495 <dd><p>Progressive video
1496 </p></dd>
1497 <dt> &lsquo;<samp>tt</samp>&rsquo;</dt>
1498 <dd><p>Interlaced video, top field coded and displayed first
1499 </p></dd>
1500 <dt> &lsquo;<samp>bb</samp>&rsquo;</dt>
1501 <dd><p>Interlaced video, bottom field coded and displayed first
1502 </p></dd>
1503 <dt> &lsquo;<samp>tb</samp>&rsquo;</dt>
1504 <dd><p>Interlaced video, top coded first, bottom displayed first
1505 </p></dd>
1506 <dt> &lsquo;<samp>bt</samp>&rsquo;</dt>
1507 <dd><p>Interlaced video, bottom coded first, top displayed first
1508 </p></dd>
1509 </dl>
1510
1511 </dd>
1512 <dt> &lsquo;<samp>skip_alpha <var>integer</var> (<em>decoding,video</em>)</samp>&rsquo;</dt>
1513 <dd><p>Set to 1 to disable processing alpha (transparency). This works like the
1514 &lsquo;<samp>gray</samp>&rsquo; flag in the &lsquo;<samp>flags</samp>&rsquo; option which skips chroma information
1515 instead of alpha. Default is 0.
1516 </p></dd>
1517 </dl>
1518
1519
1520 <a name="Decoders"></a>
1521 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Decoders">3. Decoders</a></h1>
1522
1523 <p>Decoders are configured elements in FFmpeg which allow the decoding of
1524 multimedia streams.
1525 </p>
1526 <p>When you configure your FFmpeg build, all the supported native decoders
1527 are enabled by default. Decoders requiring an external library must be enabled
1528 manually via the corresponding <code>--enable-lib</code> option. You can list all
1529 available decoders using the configure option <code>--list-decoders</code>.
1530 </p>
1531 <p>You can disable all the decoders with the configure option
1532 <code>--disable-decoders</code> and selectively enable / disable single decoders
1533 with the options <code>--enable-decoder=<var>DECODER</var></code> /
1534 <code>--disable-decoder=<var>DECODER</var></code>.
1535 </p>
1536 <p>The option <code>-decoders</code> of the ff* tools will display the list of
1537 enabled decoders.
1538 </p>
1539
1540 <a name="Video-Decoders"></a>
1541 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Video-Decoders">4. Video Decoders</a></h1>
1542
1543 <p>A description of some of the currently available video decoders
1544 follows.
1545 </p>
1546 <a name="rawvideo"></a>
1547 <h2 class="section"><a href="ffmpeg-codecs.html#toc-rawvideo">4.1 rawvideo</a></h2>
1548
1549 <p>Raw video decoder.
1550 </p>
1551 <p>This decoder decodes rawvideo streams.
1552 </p>
1553 <a name="Options-2"></a>
1554 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-2">4.1.1 Options</a></h3>
1555
1556 <dl compact="compact">
1557 <dt> &lsquo;<samp>top <var>top_field_first</var></samp>&rsquo;</dt>
1558 <dd><p>Specify the assumed field type of the input video.
1559 </p><dl compact="compact">
1560 <dt> &lsquo;<samp>-1</samp>&rsquo;</dt>
1561 <dd><p>the video is assumed to be progressive (default)
1562 </p></dd>
1563 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
1564 <dd><p>bottom-field-first is assumed
1565 </p></dd>
1566 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
1567 <dd><p>top-field-first is assumed
1568 </p></dd>
1569 </dl>
1570
1571 </dd>
1572 </dl>
1573
1574
1575 <a name="Audio-Decoders"></a>
1576 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Audio-Decoders">5. Audio Decoders</a></h1>
1577
1578 <p>A description of some of the currently available audio decoders
1579 follows.
1580 </p>
1581 <a name="ac3"></a>
1582 <h2 class="section"><a href="ffmpeg-codecs.html#toc-ac3">5.1 ac3</a></h2>
1583
1584 <p>AC-3 audio decoder.
1585 </p>
1586 <p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
1587 the undocumented RealAudio 3 (a.k.a. dnet).
1588 </p>
1589 <a name="AC_002d3-Decoder-Options"></a>
1590 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></h3>
1591
1592 <dl compact="compact">
1593 <dt> &lsquo;<samp>-drc_scale <var>value</var></samp>&rsquo;</dt>
1594 <dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
1595 from the AC-3 stream. This factor is applied exponentially.
1596 There are 3 notable scale factor ranges:
1597 </p><dl compact="compact">
1598 <dt> &lsquo;<samp>drc_scale == 0</samp>&rsquo;</dt>
1599 <dd><p>DRC disabled. Produces full range audio.
1600 </p></dd>
1601 <dt> &lsquo;<samp>0 &lt; drc_scale &lt;= 1</samp>&rsquo;</dt>
1602 <dd><p>DRC enabled.  Applies a fraction of the stream DRC value.
1603 Audio reproduction is between full range and full compression.
1604 </p></dd>
1605 <dt> &lsquo;<samp>drc_scale &gt; 1</samp>&rsquo;</dt>
1606 <dd><p>DRC enabled. Applies drc_scale asymmetrically.
1607 Loud sounds are fully compressed.  Soft sounds are enhanced.
1608 </p></dd>
1609 </dl>
1610
1611 </dd>
1612 </dl>
1613
1614 <a name="ffwavesynth"></a>
1615 <h2 class="section"><a href="ffmpeg-codecs.html#toc-ffwavesynth">5.2 ffwavesynth</a></h2>
1616
1617 <p>Internal wave synthetizer.
1618 </p>
1619 <p>This decoder generates wave patterns according to predefined sequences. Its
1620 use is purely internal and the format of the data it accepts is not publicly
1621 documented.
1622 </p>
1623 <a name="libcelt"></a>
1624 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libcelt">5.3 libcelt</a></h2>
1625
1626 <p>libcelt decoder wrapper.
1627 </p>
1628 <p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
1629 Requires the presence of the libcelt headers and library during configuration.
1630 You need to explicitly configure the build with <code>--enable-libcelt</code>.
1631 </p>
1632 <a name="libgsm"></a>
1633 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libgsm">5.4 libgsm</a></h2>
1634
1635 <p>libgsm decoder wrapper.
1636 </p>
1637 <p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
1638 the presence of the libgsm headers and library during configuration. You need
1639 to explicitly configure the build with <code>--enable-libgsm</code>.
1640 </p>
1641 <p>This decoder supports both the ordinary GSM and the Microsoft variant.
1642 </p>
1643 <a name="libilbc"></a>
1644 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libilbc">5.5 libilbc</a></h2>
1645
1646 <p>libilbc decoder wrapper.
1647 </p>
1648 <p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
1649 audio codec. Requires the presence of the libilbc headers and library during
1650 configuration. You need to explicitly configure the build with
1651 <code>--enable-libilbc</code>.
1652 </p>
1653 <a name="Options-16"></a>
1654 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-16">5.5.1 Options</a></h3>
1655
1656 <p>The following option is supported by the libilbc wrapper.
1657 </p>
1658 <dl compact="compact">
1659 <dt> &lsquo;<samp>enhance</samp>&rsquo;</dt>
1660 <dd>
1661 <p>Enable the enhancement of the decoded audio when set to 1. The default
1662 value is 0 (disabled).
1663 </p>
1664 </dd>
1665 </dl>
1666
1667 <a name="libopencore_002damrnb"></a>
1668 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrnb">5.6 libopencore-amrnb</a></h2>
1669
1670 <p>libopencore-amrnb decoder wrapper.
1671 </p>
1672 <p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
1673 Narrowband audio codec. Using it requires the presence of the
1674 libopencore-amrnb headers and library during configuration. You need to
1675 explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
1676 </p>
1677 <p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
1678 without this library.
1679 </p>
1680 <a name="libopencore_002damrwb"></a>
1681 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrwb">5.7 libopencore-amrwb</a></h2>
1682
1683 <p>libopencore-amrwb decoder wrapper.
1684 </p>
1685 <p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
1686 Wideband audio codec. Using it requires the presence of the
1687 libopencore-amrwb headers and library during configuration. You need to
1688 explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
1689 </p>
1690 <p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
1691 without this library.
1692 </p>
1693 <a name="libopus-1"></a>
1694 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopus-1">5.8 libopus</a></h2>
1695
1696 <p>libopus decoder wrapper.
1697 </p>
1698 <p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
1699 Requires the presence of the libopus headers and library during
1700 configuration. You need to explicitly configure the build with
1701 <code>--enable-libopus</code>.
1702 </p>
1703
1704 <a name="Subtitles-Decoders"></a>
1705 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Subtitles-Decoders">6. Subtitles Decoders</a></h1>
1706
1707 <a name="dvdsub"></a>
1708 <h2 class="section"><a href="ffmpeg-codecs.html#toc-dvdsub">6.1 dvdsub</a></h2>
1709
1710 <p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
1711 also be found in VobSub file pairs and in some Matroska files.
1712 </p>
1713 <a name="Options-14"></a>
1714 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-14">6.1.1 Options</a></h3>
1715
1716 <dl compact="compact">
1717 <dt> &lsquo;<samp>palette</samp>&rsquo;</dt>
1718 <dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
1719 palette is normally specified in the index file; in Matroska, the palette is
1720 stored in the codec extra-data in the same format as in VobSub. In DVDs, the
1721 palette is stored in the IFO file, and therefore not available when reading
1722 from dumped VOB files.
1723 </p>
1724 <p>The format for this option is a string containing 16 24-bits hexadecimal
1725 numbers (without 0x prefix) separated by comas, for example <code>0d00ee,
1726 ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
1727 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
1728 </p></dd>
1729 </dl>
1730
1731 <a name="libzvbi_002dteletext"></a>
1732 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libzvbi_002dteletext">6.2 libzvbi-teletext</a></h2>
1733
1734 <p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
1735 subtitles. Requires the presence of the libzvbi headers and library during
1736 configuration. You need to explicitly configure the build with
1737 <code>--enable-libzvbi</code>.
1738 </p>
1739 <a name="Options-18"></a>
1740 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-18">6.2.1 Options</a></h3>
1741
1742 <dl compact="compact">
1743 <dt> &lsquo;<samp>txt_page</samp>&rsquo;</dt>
1744 <dd><p>List of teletext page numbers to decode. You may use the special * string to
1745 match all pages. Pages that do not match the specified list are dropped.
1746 Default value is *.
1747 </p></dd>
1748 <dt> &lsquo;<samp>txt_chop_top</samp>&rsquo;</dt>
1749 <dd><p>Discards the top teletext line. Default value is 1.
1750 </p></dd>
1751 <dt> &lsquo;<samp>txt_format</samp>&rsquo;</dt>
1752 <dd><p>Specifies the format of the decoded subtitles. The teletext decoder is capable
1753 of decoding the teletext pages to bitmaps or to simple text, you should use
1754 &quot;bitmap&quot; for teletext pages, because certain graphics and colors cannot be
1755 expressed in simple text. You might use &quot;text&quot; for teletext based subtitles if
1756 your application can handle simple text based subtitles. Default value is
1757 bitmap.
1758 </p></dd>
1759 <dt> &lsquo;<samp>txt_left</samp>&rsquo;</dt>
1760 <dd><p>X offset of generated bitmaps, default is 0.
1761 </p></dd>
1762 <dt> &lsquo;<samp>txt_top</samp>&rsquo;</dt>
1763 <dd><p>Y offset of generated bitmaps, default is 0.
1764 </p></dd>
1765 <dt> &lsquo;<samp>txt_chop_spaces</samp>&rsquo;</dt>
1766 <dd><p>Chops leading and trailing spaces and removes empty lines from the generated
1767 text. This option is useful for teletext based subtitles where empty spaces may
1768 be present at the start or at the end of the lines or empty lines may be
1769 present between the subtitle lines because of double-sized teletext charactes.
1770 Default value is 1.
1771 </p></dd>
1772 <dt> &lsquo;<samp>txt_duration</samp>&rsquo;</dt>
1773 <dd><p>Sets the display duration of the decoded teletext pages or subtitles in
1774 miliseconds. Default value is 30000 which is 30 seconds.
1775 </p></dd>
1776 <dt> &lsquo;<samp>txt_transparent</samp>&rsquo;</dt>
1777 <dd><p>Force transparent background of the generated teletext bitmaps. Default value
1778 is 0 which means an opaque (black) background.
1779 </p></dd>
1780 </dl>
1781
1782 <a name="Encoders"></a>
1783 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Encoders">7. Encoders</a></h1>
1784
1785 <p>Encoders are configured elements in FFmpeg which allow the encoding of
1786 multimedia streams.
1787 </p>
1788 <p>When you configure your FFmpeg build, all the supported native encoders
1789 are enabled by default. Encoders requiring an external library must be enabled
1790 manually via the corresponding <code>--enable-lib</code> option. You can list all
1791 available encoders using the configure option <code>--list-encoders</code>.
1792 </p>
1793 <p>You can disable all the encoders with the configure option
1794 <code>--disable-encoders</code> and selectively enable / disable single encoders
1795 with the options <code>--enable-encoder=<var>ENCODER</var></code> /
1796 <code>--disable-encoder=<var>ENCODER</var></code>.
1797 </p>
1798 <p>The option <code>-encoders</code> of the ff* tools will display the list of
1799 enabled encoders.
1800 </p>
1801
1802 <a name="Audio-Encoders"></a>
1803 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Audio-Encoders">8. Audio Encoders</a></h1>
1804
1805 <p>A description of some of the currently available audio encoders
1806 follows.
1807 </p>
1808 <p><a name="aacenc"></a>
1809 </p><a name="aac"></a>
1810 <h2 class="section"><a href="ffmpeg-codecs.html#toc-aac">8.1 aac</a></h2>
1811
1812 <p>Advanced Audio Coding (AAC) encoder.
1813 </p>
1814 <p>This encoder is an experimental FFmpeg-native AAC encoder. Currently only the
1815 low complexity (AAC-LC) profile is supported. To use this encoder, you must set
1816 &lsquo;<samp>strict</samp>&rsquo; option to &lsquo;<samp>experimental</samp>&rsquo; or lower.
1817 </p>
1818 <p>As this encoder is experimental, unexpected behavior may exist from time to
1819 time. For a more stable AAC encoder, see <a href="#libvo_002daacenc">libvo-aacenc</a>. However, be warned
1820 that it has a worse quality reported by some users.
1821 </p>
1822 <p>See also <a href="#libfdk_002daac_002denc">libfdk_aac</a> and <a href="#libfaac">libfaac</a>.
1823 </p>
1824 <a name="Options-8"></a>
1825 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-8">8.1.1 Options</a></h3>
1826
1827 <dl compact="compact">
1828 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
1829 <dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
1830 (CBR) mode.
1831 </p>
1832 </dd>
1833 <dt> &lsquo;<samp>q</samp>&rsquo;</dt>
1834 <dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
1835 the <code>ffmpeg</code> command-line tool. For library interface users, use
1836 &lsquo;<samp>global_quality</samp>&rsquo;.
1837 </p>
1838 </dd>
1839 <dt> &lsquo;<samp>stereo_mode</samp>&rsquo;</dt>
1840 <dd><p>Set stereo encoding mode. Possible values:
1841 </p>
1842 <dl compact="compact">
1843 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
1844 <dd><p>Automatically selected by the encoder.
1845 </p>
1846 </dd>
1847 <dt> &lsquo;<samp>ms_off</samp>&rsquo;</dt>
1848 <dd><p>Disable middle/side encoding. This is the default.
1849 </p>
1850 </dd>
1851 <dt> &lsquo;<samp>ms_force</samp>&rsquo;</dt>
1852 <dd><p>Force middle/side encoding.
1853 </p></dd>
1854 </dl>
1855
1856 </dd>
1857 <dt> &lsquo;<samp>aac_coder</samp>&rsquo;</dt>
1858 <dd><p>Set AAC encoder coding method. Possible values:
1859 </p>
1860 <dl compact="compact">
1861 <dt> &lsquo;<samp>faac</samp>&rsquo;</dt>
1862 <dd><p>FAAC-inspired method.
1863 </p>
1864 <p>This method is a simplified reimplementation of the method used in FAAC, which
1865 sets thresholds proportional to the band energies, and then decreases all the
1866 thresholds with quantizer steps to find the appropriate quantization with
1867 distortion below threshold band by band.
1868 </p>
1869 <p>The quality of this method is comparable to the two loop searching method
1870 descibed below, but somewhat a little better and slower.
1871 </p>
1872 </dd>
1873 <dt> &lsquo;<samp>anmr</samp>&rsquo;</dt>
1874 <dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
1875 </p>
1876 <p>This has a theoretic best quality out of all the coding methods, but at the
1877 cost of the slowest speed.
1878 </p>
1879 </dd>
1880 <dt> &lsquo;<samp>twoloop</samp>&rsquo;</dt>
1881 <dd><p>Two loop searching (TLS) method.
1882 </p>
1883 <p>This method first sets quantizers depending on band thresholds and then tries
1884 to find an optimal combination by adding or subtracting a specific value from
1885 all quantizers and adjusting some individual quantizer a little.
1886 </p>
1887 <p>This method produces similar quality with the FAAC method and is the default.
1888 </p>
1889 </dd>
1890 <dt> &lsquo;<samp>fast</samp>&rsquo;</dt>
1891 <dd><p>Constant quantizer method.
1892 </p>
1893 <p>This method sets a constant quantizer for all bands. This is the fastest of all
1894 the methods, yet produces the worst quality.
1895 </p>
1896 </dd>
1897 </dl>
1898
1899 </dd>
1900 </dl>
1901
1902 <a name="ac3-and-ac3_005ffixed"></a>
1903 <h2 class="section"><a href="ffmpeg-codecs.html#toc-ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a></h2>
1904
1905 <p>AC-3 audio encoders.
1906 </p>
1907 <p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
1908 the undocumented RealAudio 3 (a.k.a. dnet).
1909 </p>
1910 <p>The <var>ac3</var> encoder uses floating-point math, while the <var>ac3_fixed</var>
1911 encoder only uses fixed-point integer math. This does not mean that one is
1912 always faster, just that one or the other may be better suited to a
1913 particular system. The floating-point encoder will generally produce better
1914 quality audio for a given bitrate. The <var>ac3_fixed</var> encoder is not the
1915 default codec for any of the output formats, so it must be specified explicitly
1916 using the option <code>-acodec ac3_fixed</code> in order to use it.
1917 </p>
1918 <a name="AC_002d3-Metadata"></a>
1919 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-AC_002d3-Metadata">8.2.1 AC-3 Metadata</a></h3>
1920
1921 <p>The AC-3 metadata options are used to set parameters that describe the audio,
1922 but in most cases do not affect the audio encoding itself. Some of the options
1923 do directly affect or influence the decoding and playback of the resulting
1924 bitstream, while others are just for informational purposes. A few of the
1925 options will add bits to the output stream that could otherwise be used for
1926 audio data, and will thus affect the quality of the output. Those will be
1927 indicated accordingly with a note in the option list below.
1928 </p>
1929 <p>These parameters are described in detail in several publicly-available
1930 documents.
1931 </p><ul>
1932 <li> <a href="http://www.atsc.org/cms/standards/a_52-2010.pdf">A/52:2010 - Digital Audio Compression (AC-3) (E-AC-3) Standard</a>
1933 </li><li> <a href="http://www.atsc.org/cms/standards/a_54a_with_corr_1.pdf">A/54 - Guide to the Use of the ATSC Digital Television Standard</a>
1934 </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
1935 </li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
1936 </li></ul>
1937
1938 <a name="Metadata-Control-Options"></a>
1939 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></h4>
1940
1941 <dl compact="compact">
1942 <dt> &lsquo;<samp>-per_frame_metadata <var>boolean</var></samp>&rsquo;</dt>
1943 <dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
1944 metadata for each frame.
1945 </p><dl compact="compact">
1946 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
1947 <dd><p>The metadata values set at initialization will be used for every frame in the
1948 stream. (default)
1949 </p></dd>
1950 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
1951 <dd><p>Metadata values can be changed before encoding each frame.
1952 </p></dd>
1953 </dl>
1954
1955 </dd>
1956 </dl>
1957
1958 <a name="Downmix-Levels"></a>
1959 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Downmix-Levels">8.2.1.2 Downmix Levels</a></h4>
1960
1961 <dl compact="compact">
1962 <dt> &lsquo;<samp>-center_mixlev <var>level</var></samp>&rsquo;</dt>
1963 <dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
1964 channel when downmixing to stereo. This field will only be written to the
1965 bitstream if a center channel is present. The value is specified as a scale
1966 factor. There are 3 valid values:
1967 </p><dl compact="compact">
1968 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
1969 <dd><p>Apply -3dB gain
1970 </p></dd>
1971 <dt> &lsquo;<samp>0.595</samp>&rsquo;</dt>
1972 <dd><p>Apply -4.5dB gain (default)
1973 </p></dd>
1974 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
1975 <dd><p>Apply -6dB gain
1976 </p></dd>
1977 </dl>
1978
1979 </dd>
1980 <dt> &lsquo;<samp>-surround_mixlev <var>level</var></samp>&rsquo;</dt>
1981 <dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
1982 channel(s) when downmixing to stereo. This field will only be written to the
1983 bitstream if one or more surround channels are present. The value is specified
1984 as a scale factor.  There are 3 valid values:
1985 </p><dl compact="compact">
1986 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
1987 <dd><p>Apply -3dB gain
1988 </p></dd>
1989 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
1990 <dd><p>Apply -6dB gain (default)
1991 </p></dd>
1992 <dt> &lsquo;<samp>0.000</samp>&rsquo;</dt>
1993 <dd><p>Silence Surround Channel(s)
1994 </p></dd>
1995 </dl>
1996
1997 </dd>
1998 </dl>
1999
2000 <a name="Audio-Production-Information"></a>
2001 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Audio-Production-Information">8.2.1.3 Audio Production Information</a></h4>
2002 <p>Audio Production Information is optional information describing the mixing
2003 environment.  Either none or both of the fields are written to the bitstream.
2004 </p>
2005 <dl compact="compact">
2006 <dt> &lsquo;<samp>-mixing_level <var>number</var></samp>&rsquo;</dt>
2007 <dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
2008 environment when the mix was mastered. Valid values are 80 to 111, or -1 for
2009 unknown or not indicated. The default value is -1, but that value cannot be
2010 used if the Audio Production Information is written to the bitstream. Therefore,
2011 if the <code>room_type</code> option is not the default value, the <code>mixing_level</code>
2012 option must not be -1.
2013 </p>
2014 </dd>
2015 <dt> &lsquo;<samp>-room_type <var>type</var></samp>&rsquo;</dt>
2016 <dd><p>Room Type. Describes the equalization used during the final mixing session at
2017 the studio or on the dubbing stage. A large room is a dubbing stage with the
2018 industry standard X-curve equalization; a small room has flat equalization.
2019 This field will not be written to the bitstream if both the <code>mixing_level</code>
2020 option and the <code>room_type</code> option have the default values.
2021 </p><dl compact="compact">
2022 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2023 <dt> &lsquo;<samp>notindicated</samp>&rsquo;</dt>
2024 <dd><p>Not Indicated (default)
2025 </p></dd>
2026 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2027 <dt> &lsquo;<samp>large</samp>&rsquo;</dt>
2028 <dd><p>Large Room
2029 </p></dd>
2030 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2031 <dt> &lsquo;<samp>small</samp>&rsquo;</dt>
2032 <dd><p>Small Room
2033 </p></dd>
2034 </dl>
2035
2036 </dd>
2037 </dl>
2038
2039 <a name="Other-Metadata-Options"></a>
2040 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></h4>
2041
2042 <dl compact="compact">
2043 <dt> &lsquo;<samp>-copyright <var>boolean</var></samp>&rsquo;</dt>
2044 <dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
2045 </p><dl compact="compact">
2046 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2047 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2048 <dd><p>No Copyright Exists (default)
2049 </p></dd>
2050 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2051 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2052 <dd><p>Copyright Exists
2053 </p></dd>
2054 </dl>
2055
2056 </dd>
2057 <dt> &lsquo;<samp>-dialnorm <var>value</var></samp>&rsquo;</dt>
2058 <dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
2059 program is below digital 100% full scale (0 dBFS). This parameter determines a
2060 level shift during audio reproduction that sets the average volume of the
2061 dialogue to a preset level. The goal is to match volume level between program
2062 sources. A value of -31dB will result in no volume level change, relative to
2063 the source volume, during audio reproduction. Valid values are whole numbers in
2064 the range -31 to -1, with -31 being the default.
2065 </p>
2066 </dd>
2067 <dt> &lsquo;<samp>-dsur_mode <var>mode</var></samp>&rsquo;</dt>
2068 <dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
2069 (Pro Logic). This field will only be written to the bitstream if the audio
2070 stream is stereo. Using this option does <b>NOT</b> mean the encoder will actually
2071 apply Dolby Surround processing.
2072 </p><dl compact="compact">
2073 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2074 <dt> &lsquo;<samp>notindicated</samp>&rsquo;</dt>
2075 <dd><p>Not Indicated (default)
2076 </p></dd>
2077 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2078 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2079 <dd><p>Not Dolby Surround Encoded
2080 </p></dd>
2081 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2082 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2083 <dd><p>Dolby Surround Encoded
2084 </p></dd>
2085 </dl>
2086
2087 </dd>
2088 <dt> &lsquo;<samp>-original <var>boolean</var></samp>&rsquo;</dt>
2089 <dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
2090 original source and not a copy.
2091 </p><dl compact="compact">
2092 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2093 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2094 <dd><p>Not Original Source
2095 </p></dd>
2096 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2097 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2098 <dd><p>Original Source (default)
2099 </p></dd>
2100 </dl>
2101
2102 </dd>
2103 </dl>
2104
2105 <a name="Extended-Bitstream-Information"></a>
2106 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a></h3>
2107 <p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
2108 specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
2109 If any one parameter in a group is specified, all values in that group will be
2110 written to the bitstream.  Default values are used for those that are written
2111 but have not been specified.  If the mixing levels are written, the decoder
2112 will use these values instead of the ones specified in the <code>center_mixlev</code>
2113 and <code>surround_mixlev</code> options if it supports the Alternate Bit Stream
2114 Syntax.
2115 </p>
2116 <a name="Extended-Bitstream-Information-_002d-Part-1"></a>
2117 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information-_002d-Part-1">8.2.2.1 Extended Bitstream Information - Part 1</a></h4>
2118
2119 <dl compact="compact">
2120 <dt> &lsquo;<samp>-dmix_mode <var>mode</var></samp>&rsquo;</dt>
2121 <dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
2122 (Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
2123 </p><dl compact="compact">
2124 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2125 <dt> &lsquo;<samp>notindicated</samp>&rsquo;</dt>
2126 <dd><p>Not Indicated (default)
2127 </p></dd>
2128 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2129 <dt> &lsquo;<samp>ltrt</samp>&rsquo;</dt>
2130 <dd><p>Lt/Rt Downmix Preferred
2131 </p></dd>
2132 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2133 <dt> &lsquo;<samp>loro</samp>&rsquo;</dt>
2134 <dd><p>Lo/Ro Downmix Preferred
2135 </p></dd>
2136 </dl>
2137
2138 </dd>
2139 <dt> &lsquo;<samp>-ltrt_cmixlev <var>level</var></samp>&rsquo;</dt>
2140 <dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
2141 center channel when downmixing to stereo in Lt/Rt mode.
2142 </p><dl compact="compact">
2143 <dt> &lsquo;<samp>1.414</samp>&rsquo;</dt>
2144 <dd><p>Apply +3dB gain
2145 </p></dd>
2146 <dt> &lsquo;<samp>1.189</samp>&rsquo;</dt>
2147 <dd><p>Apply +1.5dB gain
2148 </p></dd>
2149 <dt> &lsquo;<samp>1.000</samp>&rsquo;</dt>
2150 <dd><p>Apply 0dB gain
2151 </p></dd>
2152 <dt> &lsquo;<samp>0.841</samp>&rsquo;</dt>
2153 <dd><p>Apply -1.5dB gain
2154 </p></dd>
2155 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
2156 <dd><p>Apply -3.0dB gain
2157 </p></dd>
2158 <dt> &lsquo;<samp>0.595</samp>&rsquo;</dt>
2159 <dd><p>Apply -4.5dB gain (default)
2160 </p></dd>
2161 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
2162 <dd><p>Apply -6.0dB gain
2163 </p></dd>
2164 <dt> &lsquo;<samp>0.000</samp>&rsquo;</dt>
2165 <dd><p>Silence Center Channel
2166 </p></dd>
2167 </dl>
2168
2169 </dd>
2170 <dt> &lsquo;<samp>-ltrt_surmixlev <var>level</var></samp>&rsquo;</dt>
2171 <dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
2172 surround channel(s) when downmixing to stereo in Lt/Rt mode.
2173 </p><dl compact="compact">
2174 <dt> &lsquo;<samp>0.841</samp>&rsquo;</dt>
2175 <dd><p>Apply -1.5dB gain
2176 </p></dd>
2177 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
2178 <dd><p>Apply -3.0dB gain
2179 </p></dd>
2180 <dt> &lsquo;<samp>0.595</samp>&rsquo;</dt>
2181 <dd><p>Apply -4.5dB gain
2182 </p></dd>
2183 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
2184 <dd><p>Apply -6.0dB gain (default)
2185 </p></dd>
2186 <dt> &lsquo;<samp>0.000</samp>&rsquo;</dt>
2187 <dd><p>Silence Surround Channel(s)
2188 </p></dd>
2189 </dl>
2190
2191 </dd>
2192 <dt> &lsquo;<samp>-loro_cmixlev <var>level</var></samp>&rsquo;</dt>
2193 <dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
2194 center channel when downmixing to stereo in Lo/Ro mode.
2195 </p><dl compact="compact">
2196 <dt> &lsquo;<samp>1.414</samp>&rsquo;</dt>
2197 <dd><p>Apply +3dB gain
2198 </p></dd>
2199 <dt> &lsquo;<samp>1.189</samp>&rsquo;</dt>
2200 <dd><p>Apply +1.5dB gain
2201 </p></dd>
2202 <dt> &lsquo;<samp>1.000</samp>&rsquo;</dt>
2203 <dd><p>Apply 0dB gain
2204 </p></dd>
2205 <dt> &lsquo;<samp>0.841</samp>&rsquo;</dt>
2206 <dd><p>Apply -1.5dB gain
2207 </p></dd>
2208 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
2209 <dd><p>Apply -3.0dB gain
2210 </p></dd>
2211 <dt> &lsquo;<samp>0.595</samp>&rsquo;</dt>
2212 <dd><p>Apply -4.5dB gain (default)
2213 </p></dd>
2214 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
2215 <dd><p>Apply -6.0dB gain
2216 </p></dd>
2217 <dt> &lsquo;<samp>0.000</samp>&rsquo;</dt>
2218 <dd><p>Silence Center Channel
2219 </p></dd>
2220 </dl>
2221
2222 </dd>
2223 <dt> &lsquo;<samp>-loro_surmixlev <var>level</var></samp>&rsquo;</dt>
2224 <dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
2225 surround channel(s) when downmixing to stereo in Lo/Ro mode.
2226 </p><dl compact="compact">
2227 <dt> &lsquo;<samp>0.841</samp>&rsquo;</dt>
2228 <dd><p>Apply -1.5dB gain
2229 </p></dd>
2230 <dt> &lsquo;<samp>0.707</samp>&rsquo;</dt>
2231 <dd><p>Apply -3.0dB gain
2232 </p></dd>
2233 <dt> &lsquo;<samp>0.595</samp>&rsquo;</dt>
2234 <dd><p>Apply -4.5dB gain
2235 </p></dd>
2236 <dt> &lsquo;<samp>0.500</samp>&rsquo;</dt>
2237 <dd><p>Apply -6.0dB gain (default)
2238 </p></dd>
2239 <dt> &lsquo;<samp>0.000</samp>&rsquo;</dt>
2240 <dd><p>Silence Surround Channel(s)
2241 </p></dd>
2242 </dl>
2243
2244 </dd>
2245 </dl>
2246
2247 <a name="Extended-Bitstream-Information-_002d-Part-2"></a>
2248 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Extended-Bitstream-Information-_002d-Part-2">8.2.2.2 Extended Bitstream Information - Part 2</a></h4>
2249
2250 <dl compact="compact">
2251 <dt> &lsquo;<samp>-dsurex_mode <var>mode</var></samp>&rsquo;</dt>
2252 <dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
2253 (7.1 matrixed to 5.1). Using this option does <b>NOT</b> mean the encoder will actually
2254 apply Dolby Surround EX processing.
2255 </p><dl compact="compact">
2256 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2257 <dt> &lsquo;<samp>notindicated</samp>&rsquo;</dt>
2258 <dd><p>Not Indicated (default)
2259 </p></dd>
2260 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2261 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2262 <dd><p>Dolby Surround EX Off
2263 </p></dd>
2264 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2265 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2266 <dd><p>Dolby Surround EX On
2267 </p></dd>
2268 </dl>
2269
2270 </dd>
2271 <dt> &lsquo;<samp>-dheadphone_mode <var>mode</var></samp>&rsquo;</dt>
2272 <dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
2273 encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
2274 option does <b>NOT</b> mean the encoder will actually apply Dolby Headphone
2275 processing.
2276 </p><dl compact="compact">
2277 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2278 <dt> &lsquo;<samp>notindicated</samp>&rsquo;</dt>
2279 <dd><p>Not Indicated (default)
2280 </p></dd>
2281 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2282 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2283 <dd><p>Dolby Headphone Off
2284 </p></dd>
2285 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2286 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2287 <dd><p>Dolby Headphone On
2288 </p></dd>
2289 </dl>
2290
2291 </dd>
2292 <dt> &lsquo;<samp>-ad_conv_type <var>type</var></samp>&rsquo;</dt>
2293 <dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
2294 conversion.
2295 </p><dl compact="compact">
2296 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2297 <dt> &lsquo;<samp>standard</samp>&rsquo;</dt>
2298 <dd><p>Standard A/D Converter (default)
2299 </p></dd>
2300 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2301 <dt> &lsquo;<samp>hdcd</samp>&rsquo;</dt>
2302 <dd><p>HDCD A/D Converter
2303 </p></dd>
2304 </dl>
2305
2306 </dd>
2307 </dl>
2308
2309 <a name="Other-AC_002d3-Encoding-Options"></a>
2310 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></h3>
2311
2312 <dl compact="compact">
2313 <dt> &lsquo;<samp>-stereo_rematrixing <var>boolean</var></samp>&rsquo;</dt>
2314 <dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
2315 is an optional AC-3 feature that increases quality by selectively encoding
2316 the left/right channels as mid/side. This option is enabled by default, and it
2317 is highly recommended that it be left as enabled except for testing purposes.
2318 </p>
2319 </dd>
2320 </dl>
2321
2322 <a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
2323 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options">8.2.4 Floating-Point-Only AC-3 Encoding Options</a></h3>
2324
2325 <p>These options are only valid for the floating-point encoder and do not exist
2326 for the fixed-point encoder due to the corresponding features not being
2327 implemented in fixed-point.
2328 </p>
2329 <dl compact="compact">
2330 <dt> &lsquo;<samp>-channel_coupling <var>boolean</var></samp>&rsquo;</dt>
2331 <dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
2332 that increases quality by combining high frequency information from multiple
2333 channels into a single channel. The per-channel high frequency information is
2334 sent with less accuracy in both the frequency and time domains. This allows
2335 more bits to be used for lower frequencies while preserving enough information
2336 to reconstruct the high frequencies. This option is enabled by default for the
2337 floating-point encoder and should generally be left as enabled except for
2338 testing purposes or to increase encoding speed.
2339 </p><dl compact="compact">
2340 <dt> &lsquo;<samp>-1</samp>&rsquo;</dt>
2341 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
2342 <dd><p>Selected by Encoder (default)
2343 </p></dd>
2344 <dt> &lsquo;<samp>0</samp>&rsquo;</dt>
2345 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
2346 <dd><p>Disable Channel Coupling
2347 </p></dd>
2348 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2349 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
2350 <dd><p>Enable Channel Coupling
2351 </p></dd>
2352 </dl>
2353
2354 </dd>
2355 <dt> &lsquo;<samp>-cpl_start_band <var>number</var></samp>&rsquo;</dt>
2356 <dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
2357 value higher than the bandwidth is used, it will be reduced to 1 less than the
2358 coupling end band. If <var>auto</var> is used, the start band will be determined by
2359 the encoder based on the bit rate, sample rate, and channel layout. This option
2360 has no effect if channel coupling is disabled.
2361 </p><dl compact="compact">
2362 <dt> &lsquo;<samp>-1</samp>&rsquo;</dt>
2363 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
2364 <dd><p>Selected by Encoder (default)
2365 </p></dd>
2366 </dl>
2367
2368 </dd>
2369 </dl>
2370
2371 <p><a name="libfaac"></a>
2372 </p><a name="libfaac-1"></a>
2373 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libfaac-1">8.3 libfaac</a></h2>
2374
2375 <p>libfaac AAC (Advanced Audio Coding) encoder wrapper.
2376 </p>
2377 <p>Requires the presence of the libfaac headers and library during
2378 configuration. You need to explicitly configure the build with
2379 <code>--enable-libfaac --enable-nonfree</code>.
2380 </p>
2381 <p>This encoder is considered to be of higher quality with respect to the
2382 <a href="#aacenc">the native experimental FFmpeg AAC encoder</a>.
2383 </p>
2384 <p>For more information see the libfaac project at
2385 <a href="http://www.audiocoding.com/faac.html/">http://www.audiocoding.com/faac.html/</a>.
2386 </p>
2387 <a name="Options-12"></a>
2388 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-12">8.3.1 Options</a></h3>
2389
2390 <p>The following shared FFmpeg codec options are recognized.
2391 </p>
2392 <p>The following options are supported by the libfaac wrapper. The
2393 <code>faac</code>-equivalent of the options are listed in parentheses.
2394 </p>
2395 <dl compact="compact">
2396 <dt> &lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
2397 <dd><p>Set bit rate in bits/s for ABR (Average Bit Rate) mode. If the bit rate
2398 is not explicitly specified, it is automatically set to a suitable
2399 value depending on the selected profile. <code>faac</code> bitrate is
2400 expressed in kilobits/s.
2401 </p>
2402 <p>Note that libfaac does not support CBR (Constant Bit Rate) but only
2403 ABR (Average Bit Rate).
2404 </p>
2405 <p>If VBR mode is enabled this option is ignored.
2406 </p>
2407 </dd>
2408 <dt> &lsquo;<samp>ar (<em>-R</em>)</samp>&rsquo;</dt>
2409 <dd><p>Set audio sampling rate (in Hz).
2410 </p>
2411 </dd>
2412 <dt> &lsquo;<samp>ac (<em>-c</em>)</samp>&rsquo;</dt>
2413 <dd><p>Set the number of audio channels.
2414 </p>
2415 </dd>
2416 <dt> &lsquo;<samp>cutoff (<em>-C</em>)</samp>&rsquo;</dt>
2417 <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
2418 will use a value automatically computed by the library. Default value
2419 is 0.
2420 </p>
2421 </dd>
2422 <dt> &lsquo;<samp>profile</samp>&rsquo;</dt>
2423 <dd><p>Set audio profile.
2424 </p>
2425 <p>The following profiles are recognized:
2426 </p><dl compact="compact">
2427 <dt> &lsquo;<samp>aac_main</samp>&rsquo;</dt>
2428 <dd><p>Main AAC (Main)
2429 </p>
2430 </dd>
2431 <dt> &lsquo;<samp>aac_low</samp>&rsquo;</dt>
2432 <dd><p>Low Complexity AAC (LC)
2433 </p>
2434 </dd>
2435 <dt> &lsquo;<samp>aac_ssr</samp>&rsquo;</dt>
2436 <dd><p>Scalable Sample Rate (SSR)
2437 </p>
2438 </dd>
2439 <dt> &lsquo;<samp>aac_ltp</samp>&rsquo;</dt>
2440 <dd><p>Long Term Prediction (LTP)
2441 </p></dd>
2442 </dl>
2443
2444 <p>If not specified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
2445 </p>
2446 </dd>
2447 <dt> &lsquo;<samp>flags +qscale</samp>&rsquo;</dt>
2448 <dd><p>Set constant quality VBR (Variable Bit Rate) mode.
2449 </p>
2450 </dd>
2451 <dt> &lsquo;<samp>global_quality</samp>&rsquo;</dt>
2452 <dd><p>Set quality in VBR mode as an integer number of lambda units.
2453 </p>
2454 <p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>.  The
2455 value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
2456 and used to set the quality value used by libfaac. A reasonable range
2457 for the option value in QP units is [10-500], the higher the value the
2458 higher the quality.
2459 </p>
2460 </dd>
2461 <dt> &lsquo;<samp>q (<em>-q</em>)</samp>&rsquo;</dt>
2462 <dd><p>Enable VBR mode when set to a non-negative value, and set constant
2463 quality value as a double floating point value in QP units.
2464 </p>
2465 <p>The value sets the quality value used by libfaac. A reasonable range
2466 for the option value is [10-500], the higher the value the higher the
2467 quality.
2468 </p>
2469 <p>This option is valid only using the <code>ffmpeg</code> command-line
2470 tool. For library interface users, use &lsquo;<samp>global_quality</samp>&rsquo;.
2471 </p></dd>
2472 </dl>
2473
2474 <a name="Examples-2"></a>
2475 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Examples-2">8.3.2 Examples</a></h3>
2476
2477 <ul>
2478 <li>
2479 Use <code>ffmpeg</code> to convert an audio file to ABR 128 kbps AAC in an M4A (MP4)
2480 container:
2481 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i input.wav -codec:a libfaac -b:a 128k -output.m4a
2482 </pre></td></tr></table>
2483
2484 </li><li>
2485 Use <code>ffmpeg</code> to convert an audio file to VBR AAC, using the
2486 LTP AAC profile:
2487 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i input.wav -c:a libfaac -profile:a aac_ltp -q:a 100 output.m4a
2488 </pre></td></tr></table>
2489 </li></ul>
2490
2491 <p><a name="libfdk_002daac_002denc"></a>
2492 </p><a name="libfdk_005faac"></a>
2493 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libfdk_005faac">8.4 libfdk_aac</a></h2>
2494
2495 <p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
2496 </p>
2497 <p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
2498 the Android project.
2499 </p>
2500 <p>Requires the presence of the libfdk-aac headers and library during
2501 configuration. You need to explicitly configure the build with
2502 <code>--enable-libfdk-aac</code>. The library is also incompatible with GPL,
2503 so if you allow the use of GPL, you should configure with
2504 <code>--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
2505 </p>
2506 <p>This encoder is considered to be of higher quality with respect to
2507 both <a href="#aacenc">the native experimental FFmpeg AAC encoder</a> and
2508 <a href="#libfaac">libfaac</a>.
2509 </p>
2510 <p>VBR encoding, enabled through the &lsquo;<samp>vbr</samp>&rsquo; or &lsquo;<samp>flags
2511 +qscale</samp>&rsquo; options, is experimental and only works with some
2512 combinations of parameters.
2513 </p>
2514 <p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
2515 higher.
2516 </p>
2517 <p>For more information see the fdk-aac project at
2518 <a href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
2519 </p>
2520 <a name="Options-13"></a>
2521 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-13">8.4.1 Options</a></h3>
2522
2523 <p>The following options are mapped on the shared FFmpeg codec options.
2524 </p>
2525 <dl compact="compact">
2526 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
2527 <dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
2528 is automatically set to a suitable value depending on the selected
2529 profile.
2530 </p>
2531 <p>In case VBR mode is enabled the option is ignored.
2532 </p>
2533 </dd>
2534 <dt> &lsquo;<samp>ar</samp>&rsquo;</dt>
2535 <dd><p>Set audio sampling rate (in Hz).
2536 </p>
2537 </dd>
2538 <dt> &lsquo;<samp>channels</samp>&rsquo;</dt>
2539 <dd><p>Set the number of audio channels.
2540 </p>
2541 </dd>
2542 <dt> &lsquo;<samp>flags +qscale</samp>&rsquo;</dt>
2543 <dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
2544 Note that VBR is implicitly enabled when the &lsquo;<samp>vbr</samp>&rsquo; value is
2545 positive.
2546 </p>
2547 </dd>
2548 <dt> &lsquo;<samp>cutoff</samp>&rsquo;</dt>
2549 <dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
2550 will use a value automatically computed by the library. Default value
2551 is 0.
2552 </p>
2553 </dd>
2554 <dt> &lsquo;<samp>profile</samp>&rsquo;</dt>
2555 <dd><p>Set audio profile.
2556 </p>
2557 <p>The following profiles are recognized:
2558 </p><dl compact="compact">
2559 <dt> &lsquo;<samp>aac_low</samp>&rsquo;</dt>
2560 <dd><p>Low Complexity AAC (LC)
2561 </p>
2562 </dd>
2563 <dt> &lsquo;<samp>aac_he</samp>&rsquo;</dt>
2564 <dd><p>High Efficiency AAC (HE-AAC)
2565 </p>
2566 </dd>
2567 <dt> &lsquo;<samp>aac_he_v2</samp>&rsquo;</dt>
2568 <dd><p>High Efficiency AAC version 2 (HE-AACv2)
2569 </p>
2570 </dd>
2571 <dt> &lsquo;<samp>aac_ld</samp>&rsquo;</dt>
2572 <dd><p>Low Delay AAC (LD)
2573 </p>
2574 </dd>
2575 <dt> &lsquo;<samp>aac_eld</samp>&rsquo;</dt>
2576 <dd><p>Enhanced Low Delay AAC (ELD)
2577 </p></dd>
2578 </dl>
2579
2580 <p>If not specified it is set to &lsquo;<samp>aac_low</samp>&rsquo;.
2581 </p></dd>
2582 </dl>
2583
2584 <p>The following are private options of the libfdk_aac encoder.
2585 </p>
2586 <dl compact="compact">
2587 <dt> &lsquo;<samp>afterburner</samp>&rsquo;</dt>
2588 <dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
2589 improves the quality but also the required processing power.
2590 </p>
2591 <p>Default value is 1.
2592 </p>
2593 </dd>
2594 <dt> &lsquo;<samp>eld_sbr</samp>&rsquo;</dt>
2595 <dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
2596 if set to 0.
2597 </p>
2598 <p>Default value is 0.
2599 </p>
2600 </dd>
2601 <dt> &lsquo;<samp>signaling</samp>&rsquo;</dt>
2602 <dd><p>Set SBR/PS signaling style.
2603 </p>
2604 <p>It can assume one of the following values:
2605 </p><dl compact="compact">
2606 <dt> &lsquo;<samp>default</samp>&rsquo;</dt>
2607 <dd><p>choose signaling implicitly (explicit hierarchical by default,
2608 implicit if global header is disabled)
2609 </p>
2610 </dd>
2611 <dt> &lsquo;<samp>implicit</samp>&rsquo;</dt>
2612 <dd><p>implicit backwards compatible signaling
2613 </p>
2614 </dd>
2615 <dt> &lsquo;<samp>explicit_sbr</samp>&rsquo;</dt>
2616 <dd><p>explicit SBR, implicit PS signaling
2617 </p>
2618 </dd>
2619 <dt> &lsquo;<samp>explicit_hierarchical</samp>&rsquo;</dt>
2620 <dd><p>explicit hierarchical signaling
2621 </p></dd>
2622 </dl>
2623
2624 <p>Default value is &lsquo;<samp>default</samp>&rsquo;.
2625 </p>
2626 </dd>
2627 <dt> &lsquo;<samp>latm</samp>&rsquo;</dt>
2628 <dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
2629 </p>
2630 <p>Default value is 0.
2631 </p>
2632 </dd>
2633 <dt> &lsquo;<samp>header_period</samp>&rsquo;</dt>
2634 <dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
2635 in-band configuration buffers within LATM/LOAS transport layer.
2636 </p>
2637 <p>Must be a 16-bits non-negative integer.
2638 </p>
2639 <p>Default value is 0.
2640 </p>
2641 </dd>
2642 <dt> &lsquo;<samp>vbr</samp>&rsquo;</dt>
2643 <dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
2644 good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
2645 (Constant Bit Rate) is enabled.
2646 </p>
2647 <p>Currently only the &lsquo;<samp>aac_low</samp>&rsquo; profile supports VBR encoding.
2648 </p>
2649 <p>VBR modes 1-5 correspond to roughly the following average bit rates:
2650 </p>
2651 <dl compact="compact">
2652 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
2653 <dd><p>32 kbps/channel
2654 </p></dd>
2655 <dt> &lsquo;<samp>2</samp>&rsquo;</dt>
2656 <dd><p>40 kbps/channel
2657 </p></dd>
2658 <dt> &lsquo;<samp>3</samp>&rsquo;</dt>
2659 <dd><p>48-56 kbps/channel
2660 </p></dd>
2661 <dt> &lsquo;<samp>4</samp>&rsquo;</dt>
2662 <dd><p>64 kbps/channel
2663 </p></dd>
2664 <dt> &lsquo;<samp>5</samp>&rsquo;</dt>
2665 <dd><p>about 80-96 kbps/channel
2666 </p></dd>
2667 </dl>
2668
2669 <p>Default value is 0.
2670 </p></dd>
2671 </dl>
2672
2673 <a name="Examples-1"></a>
2674 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Examples-1">8.4.2 Examples</a></h3>
2675
2676 <ul>
2677 <li>
2678 Use <code>ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
2679 container:
2680 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
2681 </pre></td></tr></table>
2682
2683 </li><li>
2684 Use <code>ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
2685 High-Efficiency AAC profile:
2686 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
2687 </pre></td></tr></table>
2688 </li></ul>
2689
2690 <p><a name="libmp3lame"></a>
2691 </p><a name="libmp3lame-1"></a>
2692 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libmp3lame-1">8.5 libmp3lame</a></h2>
2693
2694 <p>LAME (Lame Ain&rsquo;t an MP3 Encoder) MP3 encoder wrapper.
2695 </p>
2696 <p>Requires the presence of the libmp3lame headers and library during
2697 configuration. You need to explicitly configure the build with
2698 <code>--enable-libmp3lame</code>.
2699 </p>
2700 <p>See <a href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
2701 lower quality.
2702 </p>
2703 <a name="Options-5"></a>
2704 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-5">8.5.1 Options</a></h3>
2705
2706 <p>The following options are supported by the libmp3lame wrapper. The
2707 <code>lame</code>-equivalent of the options are listed in parentheses.
2708 </p>
2709 <dl compact="compact">
2710 <dt> &lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
2711 <dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code>bitrate</code> is
2712 expressed in kilobits/s.
2713 </p>
2714 </dd>
2715 <dt> &lsquo;<samp>q (<em>-V</em>)</samp>&rsquo;</dt>
2716 <dd><p>Set constant quality setting for VBR. This option is valid only
2717 using the <code>ffmpeg</code> command-line tool. For library interface
2718 users, use &lsquo;<samp>global_quality</samp>&rsquo;.
2719 </p>
2720 </dd>
2721 <dt> &lsquo;<samp>compression_level (<em>-q</em>)</samp>&rsquo;</dt>
2722 <dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
2723 with 0 meaning highest quality but slowest, and 9 meaning fastest
2724 while producing the worst quality.
2725 </p>
2726 </dd>
2727 <dt> &lsquo;<samp>reservoir</samp>&rsquo;</dt>
2728 <dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
2729 has this enabled by default, but can be overridden by use
2730 &lsquo;<samp>--nores</samp>&rsquo; option.
2731 </p>
2732 </dd>
2733 <dt> &lsquo;<samp>joint_stereo (<em>-m j</em>)</samp>&rsquo;</dt>
2734 <dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
2735 stereo or mid/side stereo. Default value is 1.
2736 </p>
2737 </dd>
2738 <dt> &lsquo;<samp>abr (<em>--abr</em>)</samp>&rsquo;</dt>
2739 <dd><p>Enable the encoder to use ABR when set to 1. The <code>lame</code>
2740 &lsquo;<samp>--abr</samp>&rsquo; sets the target bitrate, while this options only
2741 tells FFmpeg to use ABR still relies on &lsquo;<samp>b</samp>&rsquo; to set bitrate.
2742 </p>
2743 </dd>
2744 </dl>
2745
2746 <a name="libopencore_002damrnb-1"></a>
2747 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopencore_002damrnb-1">8.6 libopencore-amrnb</a></h2>
2748
2749 <p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
2750 </p>
2751 <p>Requires the presence of the libopencore-amrnb headers and library during
2752 configuration. You need to explicitly configure the build with
2753 <code>--enable-libopencore-amrnb --enable-version3</code>.
2754 </p>
2755 <p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
2756 but you can override it by setting &lsquo;<samp>strict</samp>&rsquo; to &lsquo;<samp>unofficial</samp>&rsquo; or
2757 lower.
2758 </p>
2759 <a name="Options"></a>
2760 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options">8.6.1 Options</a></h3>
2761
2762 <dl compact="compact">
2763 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
2764 <dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
2765 otherwise libavcodec will round to the nearest valid bitrate.
2766 </p>
2767 <dl compact="compact">
2768 <dt> &lsquo;<samp>4750</samp>&rsquo;</dt>
2769 <dt> &lsquo;<samp>5150</samp>&rsquo;</dt>
2770 <dt> &lsquo;<samp>5900</samp>&rsquo;</dt>
2771 <dt> &lsquo;<samp>6700</samp>&rsquo;</dt>
2772 <dt> &lsquo;<samp>7400</samp>&rsquo;</dt>
2773 <dt> &lsquo;<samp>7950</samp>&rsquo;</dt>
2774 <dt> &lsquo;<samp>10200</samp>&rsquo;</dt>
2775 <dt> &lsquo;<samp>12200</samp>&rsquo;</dt>
2776 </dl>
2777
2778 </dd>
2779 <dt> &lsquo;<samp>dtx</samp>&rsquo;</dt>
2780 <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
2781 default value is 0 (disabled).
2782 </p>
2783 </dd>
2784 </dl>
2785
2786 <p><a name="libshine"></a>
2787 </p><a name="libshine-1"></a>
2788 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libshine-1">8.7 libshine</a></h2>
2789
2790 <p>Shine Fixed-Point MP3 encoder wrapper.
2791 </p>
2792 <p>Shine is a fixed-point MP3 encoder. It has a far better performance on
2793 platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
2794 However, as it is more targeted on performance than quality, it is not on par
2795 with LAME and other production-grade encoders quality-wise. Also, according to
2796 the project&rsquo;s homepage, this encoder may not be free of bugs as the code was
2797 written a long time ago and the project was dead for at least 5 years.
2798 </p>
2799 <p>This encoder only supports stereo and mono input. This is also CBR-only.
2800 </p>
2801 <p>The original project (last updated in early 2007) is at
2802 <a href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
2803 updated fork by the Savonet/Liquidsoap project at <a href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
2804 </p>
2805 <p>Requires the presence of the libshine headers and library during
2806 configuration. You need to explicitly configure the build with
2807 <code>--enable-libshine</code>.
2808 </p>
2809 <p>See also <a href="#libmp3lame">libmp3lame</a>.
2810 </p>
2811 <a name="Options-4"></a>
2812 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-4">8.7.1 Options</a></h3>
2813
2814 <p>The following options are supported by the libshine wrapper. The
2815 <code>shineenc</code>-equivalent of the options are listed in parentheses.
2816 </p>
2817 <dl compact="compact">
2818 <dt> &lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
2819 <dd><p>Set bitrate expressed in bits/s for CBR. <code>shineenc</code> &lsquo;<samp>-b</samp>&rsquo; option
2820 is expressed in kilobits/s.
2821 </p>
2822 </dd>
2823 </dl>
2824
2825 <a name="libtwolame"></a>
2826 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libtwolame">8.8 libtwolame</a></h2>
2827
2828 <p>TwoLAME MP2 encoder wrapper.
2829 </p>
2830 <p>Requires the presence of the libtwolame headers and library during
2831 configuration. You need to explicitly configure the build with
2832 <code>--enable-libtwolame</code>.
2833 </p>
2834 <a name="Options-6"></a>
2835 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-6">8.8.1 Options</a></h3>
2836
2837 <p>The following options are supported by the libtwolame wrapper. The
2838 <code>twolame</code>-equivalent options follow the FFmpeg ones and are in
2839 parentheses.
2840 </p>
2841 <dl compact="compact">
2842 <dt> &lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
2843 <dd><p>Set bitrate expressed in bits/s for CBR. <code>twolame</code> &lsquo;<samp>b</samp>&rsquo;
2844 option is expressed in kilobits/s. Default value is 128k.
2845 </p>
2846 </dd>
2847 <dt> &lsquo;<samp>q (<em>-V</em>)</samp>&rsquo;</dt>
2848 <dd><p>Set quality for experimental VBR support. Maximum value range is
2849 from -50 to 50, useful range is from -10 to 10. The higher the
2850 value, the better the quality. This option is valid only using the
2851 <code>ffmpeg</code> command-line tool. For library interface users,
2852 use &lsquo;<samp>global_quality</samp>&rsquo;.
2853 </p>
2854 </dd>
2855 <dt> &lsquo;<samp>mode (<em>--mode</em>)</samp>&rsquo;</dt>
2856 <dd><p>Set the mode of the resulting audio. Possible values:
2857 </p>
2858 <dl compact="compact">
2859 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
2860 <dd><p>Choose mode automatically based on the input. This is the default.
2861 </p></dd>
2862 <dt> &lsquo;<samp>stereo</samp>&rsquo;</dt>
2863 <dd><p>Stereo
2864 </p></dd>
2865 <dt> &lsquo;<samp>joint_stereo</samp>&rsquo;</dt>
2866 <dd><p>Joint stereo
2867 </p></dd>
2868 <dt> &lsquo;<samp>dual_channel</samp>&rsquo;</dt>
2869 <dd><p>Dual channel
2870 </p></dd>
2871 <dt> &lsquo;<samp>mono</samp>&rsquo;</dt>
2872 <dd><p>Mono
2873 </p></dd>
2874 </dl>
2875
2876 </dd>
2877 <dt> &lsquo;<samp>psymodel (<em>--psyc-mode</em>)</samp>&rsquo;</dt>
2878 <dd><p>Set psychoacoustic model to use in encoding. The argument must be
2879 an integer between -1 and 4, inclusive. The higher the value, the
2880 better the quality. The default value is 3.
2881 </p>
2882 </dd>
2883 <dt> &lsquo;<samp>energy_levels (<em>--energy</em>)</samp>&rsquo;</dt>
2884 <dd><p>Enable energy levels extensions when set to 1. The default value is
2885 0 (disabled).
2886 </p>
2887 </dd>
2888 <dt> &lsquo;<samp>error_protection (<em>--protect</em>)</samp>&rsquo;</dt>
2889 <dd><p>Enable CRC error protection when set to 1. The default value is 0
2890 (disabled).
2891 </p>
2892 </dd>
2893 <dt> &lsquo;<samp>copyright (<em>--copyright</em>)</samp>&rsquo;</dt>
2894 <dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
2895 (disabled).
2896 </p>
2897 </dd>
2898 <dt> &lsquo;<samp>original (<em>--original</em>)</samp>&rsquo;</dt>
2899 <dd><p>Set MPEG audio original flag when set to 1. The default value is 0
2900 (disabled).
2901 </p>
2902 </dd>
2903 </dl>
2904
2905 <p><a name="libvo_002daacenc"></a>
2906 </p><a name="libvo_002daacenc-1"></a>
2907 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvo_002daacenc-1">8.9 libvo-aacenc</a></h2>
2908
2909 <p>VisualOn AAC encoder.
2910 </p>
2911 <p>Requires the presence of the libvo-aacenc headers and library during
2912 configuration. You need to explicitly configure the build with
2913 <code>--enable-libvo-aacenc --enable-version3</code>.
2914 </p>
2915 <p>This encoder is considered to be worse than the
2916 <a href="#aacenc">native experimental FFmpeg AAC encoder</a>, according to
2917 multiple sources.
2918 </p>
2919 <a name="Options-17"></a>
2920 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-17">8.9.1 Options</a></h3>
2921
2922 <p>The VisualOn AAC encoder only support encoding AAC-LC and up to 2
2923 channels. It is also CBR-only.
2924 </p>
2925 <dl compact="compact">
2926 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
2927 <dd><p>Set bit rate in bits/s.
2928 </p>
2929 </dd>
2930 </dl>
2931
2932 <a name="libvo_002damrwbenc"></a>
2933 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvo_002damrwbenc">8.10 libvo-amrwbenc</a></h2>
2934
2935 <p>VisualOn Adaptive Multi-Rate Wideband encoder.
2936 </p>
2937 <p>Requires the presence of the libvo-amrwbenc headers and library during
2938 configuration. You need to explicitly configure the build with
2939 <code>--enable-libvo-amrwbenc --enable-version3</code>.
2940 </p>
2941 <p>This is a mono-only encoder. Officially it only supports 16000Hz sample
2942 rate, but you can override it by setting &lsquo;<samp>strict</samp>&rsquo; to
2943 &lsquo;<samp>unofficial</samp>&rsquo; or lower.
2944 </p>
2945 <a name="Options-3"></a>
2946 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-3">8.10.1 Options</a></h3>
2947
2948 <dl compact="compact">
2949 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
2950 <dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
2951 libavcodec will round to the nearest valid bitrate.
2952 </p>
2953 <dl compact="compact">
2954 <dt> &lsquo;<samp>6600</samp>&rsquo;</dt>
2955 <dt> &lsquo;<samp>8850</samp>&rsquo;</dt>
2956 <dt> &lsquo;<samp>12650</samp>&rsquo;</dt>
2957 <dt> &lsquo;<samp>14250</samp>&rsquo;</dt>
2958 <dt> &lsquo;<samp>15850</samp>&rsquo;</dt>
2959 <dt> &lsquo;<samp>18250</samp>&rsquo;</dt>
2960 <dt> &lsquo;<samp>19850</samp>&rsquo;</dt>
2961 <dt> &lsquo;<samp>23050</samp>&rsquo;</dt>
2962 <dt> &lsquo;<samp>23850</samp>&rsquo;</dt>
2963 </dl>
2964
2965 </dd>
2966 <dt> &lsquo;<samp>dtx</samp>&rsquo;</dt>
2967 <dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
2968 default value is 0 (disabled).
2969 </p>
2970 </dd>
2971 </dl>
2972
2973 <a name="libopus"></a>
2974 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libopus">8.11 libopus</a></h2>
2975
2976 <p>libopus Opus Interactive Audio Codec encoder wrapper.
2977 </p>
2978 <p>Requires the presence of the libopus headers and library during
2979 configuration. You need to explicitly configure the build with
2980 <code>--enable-libopus</code>.
2981 </p>
2982 <a name="Option-Mapping"></a>
2983 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Option-Mapping">8.11.1 Option Mapping</a></h3>
2984
2985 <p>Most libopus options are modeled after the <code>opusenc</code> utility from
2986 opus-tools. The following is an option mapping chart describing options
2987 supported by the libopus wrapper, and their <code>opusenc</code>-equivalent
2988 in parentheses.
2989 </p>
2990 <dl compact="compact">
2991 <dt> &lsquo;<samp>b (<em>bitrate</em>)</samp>&rsquo;</dt>
2992 <dd><p>Set the bit rate in bits/s.  FFmpeg&rsquo;s &lsquo;<samp>b</samp>&rsquo; option is
2993 expressed in bits/s, while <code>opusenc</code>&rsquo;s &lsquo;<samp>bitrate</samp>&rsquo; in
2994 kilobits/s.
2995 </p>
2996 </dd>
2997 <dt> &lsquo;<samp>vbr (<em>vbr</em>, <em>hard-cbr</em>, and <em>cvbr</em>)</samp>&rsquo;</dt>
2998 <dd><p>Set VBR mode. The FFmpeg &lsquo;<samp>vbr</samp>&rsquo; option has the following
2999 valid arguments, with the their <code>opusenc</code> equivalent options
3000 in parentheses:
3001 </p>
3002 <dl compact="compact">
3003 <dt> &lsquo;<samp>off (<em>hard-cbr</em>)</samp>&rsquo;</dt>
3004 <dd><p>Use constant bit rate encoding.
3005 </p>
3006 </dd>
3007 <dt> &lsquo;<samp>on (<em>vbr</em>)</samp>&rsquo;</dt>
3008 <dd><p>Use variable bit rate encoding (the default).
3009 </p>
3010 </dd>
3011 <dt> &lsquo;<samp>constrained (<em>cvbr</em>)</samp>&rsquo;</dt>
3012 <dd><p>Use constrained variable bit rate encoding.
3013 </p></dd>
3014 </dl>
3015
3016 </dd>
3017 <dt> &lsquo;<samp>compression_level (<em>comp</em>)</samp>&rsquo;</dt>
3018 <dd><p>Set encoding algorithm complexity. Valid options are integers in
3019 the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
3020 gives the highest quality but slowest encoding. The default is 10.
3021 </p>
3022 </dd>
3023 <dt> &lsquo;<samp>frame_duration (<em>framesize</em>)</samp>&rsquo;</dt>
3024 <dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
3025 argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
3026 frame sizes achieve lower latency but less quality at a given bitrate.
3027 Sizes greater than 20ms are only interesting at fairly low bitrates.
3028 The default is 20ms.
3029 </p>
3030 </dd>
3031 <dt> &lsquo;<samp>packet_loss (<em>expect-loss</em>)</samp>&rsquo;</dt>
3032 <dd><p>Set expected packet loss percentage. The default is 0.
3033 </p>
3034 </dd>
3035 <dt> &lsquo;<samp>application (N.A.)</samp>&rsquo;</dt>
3036 <dd><p>Set intended application type. Valid options are listed below:
3037 </p>
3038 <dl compact="compact">
3039 <dt> &lsquo;<samp>voip</samp>&rsquo;</dt>
3040 <dd><p>Favor improved speech intelligibility.
3041 </p></dd>
3042 <dt> &lsquo;<samp>audio</samp>&rsquo;</dt>
3043 <dd><p>Favor faithfulness to the input (the default).
3044 </p></dd>
3045 <dt> &lsquo;<samp>lowdelay</samp>&rsquo;</dt>
3046 <dd><p>Restrict to only the lowest delay modes.
3047 </p></dd>
3048 </dl>
3049
3050 </dd>
3051 <dt> &lsquo;<samp>cutoff (N.A.)</samp>&rsquo;</dt>
3052 <dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
3053 following: 4000, 6000, 8000, 12000, or 20000, corresponding to
3054 narrowband, mediumband, wideband, super wideband, and fullband
3055 respectively. The default is 0 (cutoff disabled).
3056 </p>
3057 </dd>
3058 </dl>
3059
3060 <a name="libvorbis"></a>
3061 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvorbis">8.12 libvorbis</a></h2>
3062
3063 <p>libvorbis encoder wrapper.
3064 </p>
3065 <p>Requires the presence of the libvorbisenc headers and library during
3066 configuration. You need to explicitly configure the build with
3067 <code>--enable-libvorbis</code>.
3068 </p>
3069 <a name="Options-10"></a>
3070 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-10">8.12.1 Options</a></h3>
3071
3072 <p>The following options are supported by the libvorbis wrapper. The
3073 <code>oggenc</code>-equivalent of the options are listed in parentheses.
3074 </p>
3075 <p>To get a more accurate and extensive documentation of the libvorbis
3076 options, consult the libvorbisenc&rsquo;s and <code>oggenc</code>&rsquo;s documentations.
3077 See <a href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
3078 <a href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
3079 </p>
3080 <dl compact="compact">
3081 <dt> &lsquo;<samp>b (<em>-b</em>)</samp>&rsquo;</dt>
3082 <dd><p>Set bitrate expressed in bits/s for ABR. <code>oggenc</code> &lsquo;<samp>-b</samp>&rsquo; is
3083 expressed in kilobits/s.
3084 </p>
3085 </dd>
3086 <dt> &lsquo;<samp>q (<em>-q</em>)</samp>&rsquo;</dt>
3087 <dd><p>Set constant quality setting for VBR. The value should be a float
3088 number in the range of -1.0 to 10.0. The higher the value, the better
3089 the quality. The default value is &lsquo;<samp>3.0</samp>&rsquo;.
3090 </p>
3091 <p>This option is valid only using the <code>ffmpeg</code> command-line tool.
3092 For library interface users, use &lsquo;<samp>global_quality</samp>&rsquo;.
3093 </p>
3094 </dd>
3095 <dt> &lsquo;<samp>cutoff (<em>--advanced-encode-option lowpass_frequency=N</em>)</samp>&rsquo;</dt>
3096 <dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code>oggenc</code>&rsquo;s
3097 related option is expressed in kHz. The default value is &lsquo;<samp>0</samp>&rsquo; (cutoff
3098 disabled).
3099 </p>
3100 </dd>
3101 <dt> &lsquo;<samp>minrate (<em>-m</em>)</samp>&rsquo;</dt>
3102 <dd><p>Set minimum bitrate expressed in bits/s. <code>oggenc</code> &lsquo;<samp>-m</samp>&rsquo; is
3103 expressed in kilobits/s.
3104 </p>
3105 </dd>
3106 <dt> &lsquo;<samp>maxrate (<em>-M</em>)</samp>&rsquo;</dt>
3107 <dd><p>Set maximum bitrate expressed in bits/s. <code>oggenc</code> &lsquo;<samp>-M</samp>&rsquo; is
3108 expressed in kilobits/s. This only has effect on ABR mode.
3109 </p>
3110 </dd>
3111 <dt> &lsquo;<samp>iblock (<em>--advanced-encode-option impulse_noisetune=N</em>)</samp>&rsquo;</dt>
3112 <dd><p>Set noise floor bias for impulse blocks. The value is a float number from
3113 -15.0 to 0.0. A negative bias instructs the encoder to pay special attention
3114 to the crispness of transients in the encoded audio. The tradeoff for better
3115 transient response is a higher bitrate.
3116 </p>
3117 </dd>
3118 </dl>
3119
3120 <p><a name="libwavpack"></a>
3121 </p><a name="libwavpack-1"></a>
3122 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libwavpack-1">8.13 libwavpack</a></h2>
3123
3124 <p>A wrapper providing WavPack encoding through libwavpack.
3125 </p>
3126 <p>Only lossless mode using 32-bit integer samples is supported currently.
3127 </p>
3128 <p>Requires the presence of the libwavpack headers and library during
3129 configuration. You need to explicitly configure the build with
3130 <code>--enable-libwavpack</code>.
3131 </p>
3132 <p>Note that a libavcodec-native encoder for the WavPack codec exists so users can
3133 encode audios with this codec without using this encoder. See <a href="#wavpackenc">wavpackenc</a>.
3134 </p>
3135 <a name="Options-15"></a>
3136 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-15">8.13.1 Options</a></h3>
3137
3138 <p><code>wavpack</code> command line utility&rsquo;s corresponding options are listed in
3139 parentheses, if any.
3140 </p>
3141 <dl compact="compact">
3142 <dt> &lsquo;<samp>frame_size (<em>--blocksize</em>)</samp>&rsquo;</dt>
3143 <dd><p>Default is 32768.
3144 </p>
3145 </dd>
3146 <dt> &lsquo;<samp>compression_level</samp>&rsquo;</dt>
3147 <dd><p>Set speed vs. compression tradeoff. Acceptable arguments are listed below:
3148 </p>
3149 <dl compact="compact">
3150 <dt> &lsquo;<samp>0 (<em>-f</em>)</samp>&rsquo;</dt>
3151 <dd><p>Fast mode.
3152 </p>
3153 </dd>
3154 <dt> &lsquo;<samp>1</samp>&rsquo;</dt>
3155 <dd><p>Normal (default) settings.
3156 </p>
3157 </dd>
3158 <dt> &lsquo;<samp>2 (<em>-h</em>)</samp>&rsquo;</dt>
3159 <dd><p>High quality.
3160 </p>
3161 </dd>
3162 <dt> &lsquo;<samp>3 (<em>-hh</em>)</samp>&rsquo;</dt>
3163 <dd><p>Very high quality.
3164 </p>
3165 </dd>
3166 <dt> &lsquo;<samp>4-8 (<em>-hh -x</em><var>EXTRAPROC</var>)</samp>&rsquo;</dt>
3167 <dd><p>Same as &lsquo;<samp>3</samp>&rsquo;, but with extra processing enabled.
3168 </p>
3169 <p>&lsquo;<samp>4</samp>&rsquo; is the same as &lsquo;<samp>-x2</samp>&rsquo; and &lsquo;<samp>8</samp>&rsquo; is the same as &lsquo;<samp>-x6</samp>&rsquo;.
3170 </p>
3171 </dd>
3172 </dl>
3173 </dd>
3174 </dl>
3175
3176 <p><a name="wavpackenc"></a>
3177 </p><a name="wavpack"></a>
3178 <h2 class="section"><a href="ffmpeg-codecs.html#toc-wavpack">8.14 wavpack</a></h2>
3179
3180 <p>WavPack lossless audio encoder.
3181 </p>
3182 <p>This is a libavcodec-native WavPack encoder. There is also an encoder based on
3183 libwavpack, but there is virtually no reason to use that encoder.
3184 </p>
3185 <p>See also <a href="#libwavpack">libwavpack</a>.
3186 </p>
3187 <a name="Options-11"></a>
3188 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-11">8.14.1 Options</a></h3>
3189
3190 <p>The equivalent options for <code>wavpack</code> command line utility are listed in
3191 parentheses.
3192 </p>
3193 <a name="Shared-options"></a>
3194 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Shared-options">8.14.1.1 Shared options</a></h4>
3195
3196 <p>The following shared options are effective for this encoder. Only special notes
3197 about this particular encoder will be documented here. For the general meaning
3198 of the options, see <a href="#codec_002doptions">the Codec Options chapter</a>.
3199 </p>
3200 <dl compact="compact">
3201 <dt> &lsquo;<samp>frame_size (<em>--blocksize</em>)</samp>&rsquo;</dt>
3202 <dd><p>For this encoder, the range for this option is between 128 and 131072. Default
3203 is automatically decided based on sample rate and number of channel.
3204 </p>
3205 <p>For the complete formula of calculating default, see
3206 &lsquo;<tt>libavcodec/wavpackenc.c</tt>&rsquo;.
3207 </p>
3208 </dd>
3209 <dt> &lsquo;<samp>compression_level (<em>-f</em>, <em>-h</em>, <em>-hh</em>, and <em>-x</em>)</samp>&rsquo;</dt>
3210 <dd><p>This option&rsquo;s syntax is consistent with <a href="#libwavpack">libwavpack</a>&rsquo;s.
3211 </p></dd>
3212 </dl>
3213
3214 <a name="Private-options"></a>
3215 <h4 class="subsubsection"><a href="ffmpeg-codecs.html#toc-Private-options">8.14.1.2 Private options</a></h4>
3216
3217 <dl compact="compact">
3218 <dt> &lsquo;<samp>joint_stereo (<em>-j</em>)</samp>&rsquo;</dt>
3219 <dd><p>Set whether to enable joint stereo. Valid values are:
3220 </p>
3221 <dl compact="compact">
3222 <dt> &lsquo;<samp>on (<em>1</em>)</samp>&rsquo;</dt>
3223 <dd><p>Force mid/side audio encoding.
3224 </p></dd>
3225 <dt> &lsquo;<samp>off (<em>0</em>)</samp>&rsquo;</dt>
3226 <dd><p>Force left/right audio encoding.
3227 </p></dd>
3228 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
3229 <dd><p>Let the encoder decide automatically.
3230 </p></dd>
3231 </dl>
3232
3233 </dd>
3234 <dt> &lsquo;<samp>optimize_mono</samp>&rsquo;</dt>
3235 <dd><p>Set whether to enable optimization for mono. This option is only effective for
3236 non-mono streams. Available values:
3237 </p>
3238 <dl compact="compact">
3239 <dt> &lsquo;<samp>on</samp>&rsquo;</dt>
3240 <dd><p>enabled
3241 </p></dd>
3242 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
3243 <dd><p>disabled
3244 </p></dd>
3245 </dl>
3246
3247 </dd>
3248 </dl>
3249
3250
3251 <a name="Video-Encoders"></a>
3252 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Video-Encoders">9. Video Encoders</a></h1>
3253
3254 <p>A description of some of the currently available video encoders
3255 follows.
3256 </p>
3257 <a name="libtheora"></a>
3258 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libtheora">9.1 libtheora</a></h2>
3259
3260 <p>libtheora Theora encoder wrapper.
3261 </p>
3262 <p>Requires the presence of the libtheora headers and library during
3263 configuration. You need to explicitly configure the build with
3264 <code>--enable-libtheora</code>.
3265 </p>
3266 <p>For more information about the libtheora project see
3267 <a href="http://www.theora.org/">http://www.theora.org/</a>.
3268 </p>
3269 <a name="Options-1"></a>
3270 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-1">9.1.1 Options</a></h3>
3271
3272 <p>The following global options are mapped to internal libtheora options
3273 which affect the quality and the bitrate of the encoded stream.
3274 </p>
3275 <dl compact="compact">
3276 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
3277 <dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode.  In
3278 case VBR (Variable Bit Rate) mode is enabled this option is ignored.
3279 </p>
3280 </dd>
3281 <dt> &lsquo;<samp>flags</samp>&rsquo;</dt>
3282 <dd><p>Used to enable constant quality mode (VBR) encoding through the
3283 &lsquo;<samp>qscale</samp>&rsquo; flag, and to enable the <code>pass1</code> and <code>pass2</code>
3284 modes.
3285 </p>
3286 </dd>
3287 <dt> &lsquo;<samp>g</samp>&rsquo;</dt>
3288 <dd><p>Set the GOP size.
3289 </p>
3290 </dd>
3291 <dt> &lsquo;<samp>global_quality</samp>&rsquo;</dt>
3292 <dd><p>Set the global quality as an integer in lambda units.
3293 </p>
3294 <p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>. The
3295 value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
3296 clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
3297 value in the native libtheora range [0-63]. A higher value corresponds
3298 to a higher quality.
3299 </p>
3300 </dd>
3301 <dt> &lsquo;<samp>q</samp>&rsquo;</dt>
3302 <dd><p>Enable VBR mode when set to a non-negative value, and set constant
3303 quality value as a double floating point value in QP units.
3304 </p>
3305 <p>The value is clipped in the [0-10] range, and then multiplied by 6.3
3306 to get a value in the native libtheora range [0-63].
3307 </p>
3308 <p>This option is valid only using the <code>ffmpeg</code> command-line
3309 tool. For library interface users, use &lsquo;<samp>global_quality</samp>&rsquo;.
3310 </p></dd>
3311 </dl>
3312
3313 <a name="Examples"></a>
3314 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Examples">9.1.2 Examples</a></h3>
3315
3316 <ul>
3317 <li>
3318 Set maximum constant quality (VBR) encoding with <code>ffmpeg</code>:
3319 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
3320 </pre></td></tr></table>
3321
3322 </li><li>
3323 Use <code>ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
3324 <table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
3325 </pre></td></tr></table>
3326 </li></ul>
3327
3328 <a name="libvpx"></a>
3329 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libvpx">9.2 libvpx</a></h2>
3330
3331 <p>VP8 format supported through libvpx.
3332 </p>
3333 <p>Requires the presence of the libvpx headers and library during configuration.
3334 You need to explicitly configure the build with <code>--enable-libvpx</code>.
3335 </p>
3336 <a name="Options-20"></a>
3337 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-20">9.2.1 Options</a></h3>
3338
3339 <p>Mapping from FFmpeg to libvpx options with conversion notes in parentheses.
3340 </p>
3341 <dl compact="compact">
3342 <dt> &lsquo;<samp>threads</samp>&rsquo;</dt>
3343 <dd><p>g_threads
3344 </p>
3345 </dd>
3346 <dt> &lsquo;<samp>profile</samp>&rsquo;</dt>
3347 <dd><p>g_profile
3348 </p>
3349 </dd>
3350 <dt> &lsquo;<samp>vb</samp>&rsquo;</dt>
3351 <dd><p>rc_target_bitrate
3352 </p>
3353 </dd>
3354 <dt> &lsquo;<samp>g</samp>&rsquo;</dt>
3355 <dd><p>kf_max_dist
3356 </p>
3357 </dd>
3358 <dt> &lsquo;<samp>keyint_min</samp>&rsquo;</dt>
3359 <dd><p>kf_min_dist
3360 </p>
3361 </dd>
3362 <dt> &lsquo;<samp>qmin</samp>&rsquo;</dt>
3363 <dd><p>rc_min_quantizer
3364 </p>
3365 </dd>
3366 <dt> &lsquo;<samp>qmax</samp>&rsquo;</dt>
3367 <dd><p>rc_max_quantizer
3368 </p>
3369 </dd>
3370 <dt> &lsquo;<samp>bufsize, vb</samp>&rsquo;</dt>
3371 <dd><p>rc_buf_sz
3372 <code>(bufsize * 1000 / vb)</code>
3373 </p>
3374 <p>rc_buf_optimal_sz
3375 <code>(bufsize * 1000 / vb * 5 / 6)</code>
3376 </p>
3377 </dd>
3378 <dt> &lsquo;<samp>rc_init_occupancy, vb</samp>&rsquo;</dt>
3379 <dd><p>rc_buf_initial_sz
3380 <code>(rc_init_occupancy * 1000 / vb)</code>
3381 </p>
3382 </dd>
3383 <dt> &lsquo;<samp>rc_buffer_aggressivity</samp>&rsquo;</dt>
3384 <dd><p>rc_undershoot_pct
3385 </p>
3386 </dd>
3387 <dt> &lsquo;<samp>skip_threshold</samp>&rsquo;</dt>
3388 <dd><p>rc_dropframe_thresh
3389 </p>
3390 </dd>
3391 <dt> &lsquo;<samp>qcomp</samp>&rsquo;</dt>
3392 <dd><p>rc_2pass_vbr_bias_pct
3393 </p>
3394 </dd>
3395 <dt> &lsquo;<samp>maxrate, vb</samp>&rsquo;</dt>
3396 <dd><p>rc_2pass_vbr_maxsection_pct
3397 <code>(maxrate * 100 / vb)</code>
3398 </p>
3399 </dd>
3400 <dt> &lsquo;<samp>minrate, vb</samp>&rsquo;</dt>
3401 <dd><p>rc_2pass_vbr_minsection_pct
3402 <code>(minrate * 100 / vb)</code>
3403 </p>
3404 </dd>
3405 <dt> &lsquo;<samp>minrate, maxrate, vb</samp>&rsquo;</dt>
3406 <dd><p><code>VPX_CBR</code>
3407 <code>(minrate == maxrate == vb)</code>
3408 </p>
3409 </dd>
3410 <dt> &lsquo;<samp>crf</samp>&rsquo;</dt>
3411 <dd><p><code>VPX_CQ</code>, <code>VP8E_SET_CQ_LEVEL</code>
3412 </p>
3413 </dd>
3414 <dt> &lsquo;<samp>quality</samp>&rsquo;</dt>
3415 <dd><dl compact="compact">
3416 <dt> &lsquo;<samp><var>best</var></samp>&rsquo;</dt>
3417 <dd><p><code>VPX_DL_BEST_QUALITY</code>
3418 </p></dd>
3419 <dt> &lsquo;<samp><var>good</var></samp>&rsquo;</dt>
3420 <dd><p><code>VPX_DL_GOOD_QUALITY</code>
3421 </p></dd>
3422 <dt> &lsquo;<samp><var>realtime</var></samp>&rsquo;</dt>
3423 <dd><p><code>VPX_DL_REALTIME</code>
3424 </p></dd>
3425 </dl>
3426
3427 </dd>
3428 <dt> &lsquo;<samp>speed</samp>&rsquo;</dt>
3429 <dd><p><code>VP8E_SET_CPUUSED</code>
3430 </p>
3431 </dd>
3432 <dt> &lsquo;<samp>nr</samp>&rsquo;</dt>
3433 <dd><p><code>VP8E_SET_NOISE_SENSITIVITY</code>
3434 </p>
3435 </dd>
3436 <dt> &lsquo;<samp>mb_threshold</samp>&rsquo;</dt>
3437 <dd><p><code>VP8E_SET_STATIC_THRESHOLD</code>
3438 </p>
3439 </dd>
3440 <dt> &lsquo;<samp>slices</samp>&rsquo;</dt>
3441 <dd><p><code>VP8E_SET_TOKEN_PARTITIONS</code>
3442 </p>
3443 </dd>
3444 <dt> &lsquo;<samp>max-intra-rate</samp>&rsquo;</dt>
3445 <dd><p><code>VP8E_SET_MAX_INTRA_BITRATE_PCT</code>
3446 </p>
3447 </dd>
3448 <dt> &lsquo;<samp>force_key_frames</samp>&rsquo;</dt>
3449 <dd><p><code>VPX_EFLAG_FORCE_KF</code>
3450 </p>
3451 </dd>
3452 <dt> &lsquo;<samp>Alternate reference frame related</samp>&rsquo;</dt>
3453 <dd><dl compact="compact">
3454 <dt> &lsquo;<samp>vp8flags altref</samp>&rsquo;</dt>
3455 <dd><p><code>VP8E_SET_ENABLEAUTOALTREF</code>
3456 </p></dd>
3457 <dt> &lsquo;<samp><var>arnr_max_frames</var></samp>&rsquo;</dt>
3458 <dd><p><code>VP8E_SET_ARNR_MAXFRAMES</code>
3459 </p></dd>
3460 <dt> &lsquo;<samp><var>arnr_type</var></samp>&rsquo;</dt>
3461 <dd><p><code>VP8E_SET_ARNR_TYPE</code>
3462 </p></dd>
3463 <dt> &lsquo;<samp><var>arnr_strength</var></samp>&rsquo;</dt>
3464 <dd><p><code>VP8E_SET_ARNR_STRENGTH</code>
3465 </p></dd>
3466 <dt> &lsquo;<samp><var>rc_lookahead</var></samp>&rsquo;</dt>
3467 <dd><p>g_lag_in_frames
3468 </p></dd>
3469 </dl>
3470
3471 </dd>
3472 <dt> &lsquo;<samp>vp8flags error_resilient</samp>&rsquo;</dt>
3473 <dd><p>g_error_resilient
3474 </p>
3475 </dd>
3476 </dl>
3477
3478 <p>For more information about libvpx see:
3479 <a href="http://www.webmproject.org/">http://www.webmproject.org/</a>
3480 </p>
3481
3482 <a name="libwebp"></a>
3483 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libwebp">9.3 libwebp</a></h2>
3484
3485 <p>libwebp WebP Image encoder wrapper
3486 </p>
3487 <p>libwebp is Google&rsquo;s official encoder for WebP images. It can encode in either
3488 lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
3489 frame. Lossless images are a separate codec developed by Google.
3490 </p>
3491 <a name="Pixel-Format"></a>
3492 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Pixel-Format">9.3.1 Pixel Format</a></h3>
3493
3494 <p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
3495 to limitations of the format and libwebp. Alpha is supported for either mode.
3496 Because of API limitations, if RGB is passed in when encoding lossy or YUV is
3497 passed in for encoding lossless, the pixel format will automatically be
3498 converted using functions from libwebp. This is not ideal and is done only for
3499 convenience.
3500 </p>
3501 <a name="Options-7"></a>
3502 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-7">9.3.2 Options</a></h3>
3503
3504 <dl compact="compact">
3505 <dt> &lsquo;<samp>-lossless <var>boolean</var></samp>&rsquo;</dt>
3506 <dd><p>Enables/Disables use of lossless mode. Default is 0.
3507 </p>
3508 </dd>
3509 <dt> &lsquo;<samp>-compression_level <var>integer</var></samp>&rsquo;</dt>
3510 <dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
3511 for a given size at the cost of increased encoding time. For lossless, this is
3512 a size/speed tradeoff. Higher values give smaller size at the cost of increased
3513 encoding time. More specifically, it controls the number of extra algorithms
3514 and compression tools used, and varies the combination of these tools. This
3515 maps to the <var>method</var> option in libwebp. The valid range is 0 to 6.
3516 Default is 4.
3517 </p>
3518 </dd>
3519 <dt> &lsquo;<samp>-qscale <var>float</var></samp>&rsquo;</dt>
3520 <dd><p>For lossy encoding, this controls image quality, 0 to 100. For lossless
3521 encoding, this controls the effort and time spent at compressing more. The
3522 default value is 75. Note that for usage via libavcodec, this option is called
3523 <var>global_quality</var> and must be multiplied by <var>FF_QP2LAMBDA</var>.
3524 </p>
3525 </dd>
3526 <dt> &lsquo;<samp>-preset <var>type</var></samp>&rsquo;</dt>
3527 <dd><p>Configuration preset. This does some automatic settings based on the general
3528 type of the image.
3529 </p><dl compact="compact">
3530 <dt> &lsquo;<samp>none</samp>&rsquo;</dt>
3531 <dd><p>Do not use a preset.
3532 </p></dd>
3533 <dt> &lsquo;<samp>default</samp>&rsquo;</dt>
3534 <dd><p>Use the encoder default.
3535 </p></dd>
3536 <dt> &lsquo;<samp>picture</samp>&rsquo;</dt>
3537 <dd><p>Digital picture, like portrait, inner shot
3538 </p></dd>
3539 <dt> &lsquo;<samp>photo</samp>&rsquo;</dt>
3540 <dd><p>Outdoor photograph, with natural lighting
3541 </p></dd>
3542 <dt> &lsquo;<samp>drawing</samp>&rsquo;</dt>
3543 <dd><p>Hand or line drawing, with high-contrast details
3544 </p></dd>
3545 <dt> &lsquo;<samp>icon</samp>&rsquo;</dt>
3546 <dd><p>Small-sized colorful images
3547 </p></dd>
3548 <dt> &lsquo;<samp>text</samp>&rsquo;</dt>
3549 <dd><p>Text-like
3550 </p></dd>
3551 </dl>
3552
3553 </dd>
3554 </dl>
3555
3556 <a name="libx264_002c-libx264rgb"></a>
3557 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libx264_002c-libx264rgb">9.4 libx264, libx264rgb</a></h2>
3558
3559 <p>x264 H.264/MPEG-4 AVC encoder wrapper.
3560 </p>
3561 <p>This encoder requires the presence of the libx264 headers and library
3562 during configuration. You need to explicitly configure the build with
3563 <code>--enable-libx264</code>.
3564 </p>
3565 <p>libx264 supports an impressive number of features, including 8x8 and
3566 4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
3567 entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
3568 for detail retention (adaptive quantization, psy-RD, psy-trellis).
3569 </p>
3570 <p>Many libx264 encoder options are mapped to FFmpeg global codec
3571 options, while unique encoder options are provided through private
3572 options. Additionally the &lsquo;<samp>x264opts</samp>&rsquo; and &lsquo;<samp>x264-params</samp>&rsquo;
3573 private options allows one to pass a list of key=value tuples as accepted
3574 by the libx264 <code>x264_param_parse</code> function.
3575 </p>
3576 <p>The x264 project website is at
3577 <a href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
3578 </p>
3579 <p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
3580 pixel formats as input instead of YUV.
3581 </p>
3582 <a name="Supported-Pixel-Formats"></a>
3583 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Supported-Pixel-Formats">9.4.1 Supported Pixel Formats</a></h3>
3584
3585 <p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
3586 x264&rsquo;s configure time. FFmpeg only supports one bit depth in one particular
3587 build. In other words, it is not possible to build one FFmpeg with multiple
3588 versions of x264 with different bit depths.
3589 </p>
3590 <a name="Options-19"></a>
3591 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-19">9.4.2 Options</a></h3>
3592
3593 <p>The following options are supported by the libx264 wrapper. The
3594 <code>x264</code>-equivalent options or values are listed in parentheses
3595 for easy migration.
3596 </p>
3597 <p>To reduce the duplication of documentation, only the private options
3598 and some others requiring special attention are documented here. For
3599 the documentation of the undocumented generic options, see
3600 <a href="#codec_002doptions">the Codec Options chapter</a>.
3601 </p>
3602 <p>To get a more accurate and extensive documentation of the libx264
3603 options, invoke the command <code>x264 --full-help</code> or consult
3604 the libx264 documentation.
3605 </p>
3606 <dl compact="compact">
3607 <dt> &lsquo;<samp>b (<em>bitrate</em>)</samp>&rsquo;</dt>
3608 <dd><p>Set bitrate in bits/s. Note that FFmpeg&rsquo;s &lsquo;<samp>b</samp>&rsquo; option is
3609 expressed in bits/s, while <code>x264</code>&rsquo;s &lsquo;<samp>bitrate</samp>&rsquo; is in
3610 kilobits/s.
3611 </p>
3612 </dd>
3613 <dt> &lsquo;<samp>bf (<em>bframes</em>)</samp>&rsquo;</dt>
3614 <dt> &lsquo;<samp>g (<em>keyint</em>)</samp>&rsquo;</dt>
3615 <dt> &lsquo;<samp>qmax (<em>qpmax</em>)</samp>&rsquo;</dt>
3616 <dt> &lsquo;<samp>qmin (<em>qpmin</em>)</samp>&rsquo;</dt>
3617 <dt> &lsquo;<samp>qdiff (<em>qpstep</em>)</samp>&rsquo;</dt>
3618 <dt> &lsquo;<samp>qblur (<em>qblur</em>)</samp>&rsquo;</dt>
3619 <dt> &lsquo;<samp>qcomp (<em>qcomp</em>)</samp>&rsquo;</dt>
3620 <dt> &lsquo;<samp>refs (<em>ref</em>)</samp>&rsquo;</dt>
3621 <dt> &lsquo;<samp>sc_threshold (<em>scenecut</em>)</samp>&rsquo;</dt>
3622 <dt> &lsquo;<samp>trellis (<em>trellis</em>)</samp>&rsquo;</dt>
3623 <dt> &lsquo;<samp>nr  (<em>nr</em>)</samp>&rsquo;</dt>
3624 <dt> &lsquo;<samp>me_range (<em>merange</em>)</samp>&rsquo;</dt>
3625 <dt> &lsquo;<samp>me_method (<em>me</em>)</samp>&rsquo;</dt>
3626 <dd><p>Set motion estimation method. Possible values in the decreasing order
3627 of speed:
3628 </p>
3629 <dl compact="compact">
3630 <dt> &lsquo;<samp>dia (<em>dia</em>)</samp>&rsquo;</dt>
3631 <dt> &lsquo;<samp>epzs (<em>dia</em>)</samp>&rsquo;</dt>
3632 <dd><p>Diamond search with radius 1 (fastest). &lsquo;<samp>epzs</samp>&rsquo; is an alias for
3633 &lsquo;<samp>dia</samp>&rsquo;.
3634 </p></dd>
3635 <dt> &lsquo;<samp>hex (<em>hex</em>)</samp>&rsquo;</dt>
3636 <dd><p>Hexagonal search with radius 2.
3637 </p></dd>
3638 <dt> &lsquo;<samp>umh (<em>umh</em>)</samp>&rsquo;</dt>
3639 <dd><p>Uneven multi-hexagon search.
3640 </p></dd>
3641 <dt> &lsquo;<samp>esa (<em>esa</em>)</samp>&rsquo;</dt>
3642 <dd><p>Exhaustive search.
3643 </p></dd>
3644 <dt> &lsquo;<samp>tesa (<em>tesa</em>)</samp>&rsquo;</dt>
3645 <dd><p>Hadamard exhaustive search (slowest).
3646 </p></dd>
3647 </dl>
3648
3649 </dd>
3650 <dt> &lsquo;<samp>subq (<em>subme</em>)</samp>&rsquo;</dt>
3651 <dt> &lsquo;<samp>b_strategy (<em>b-adapt</em>)</samp>&rsquo;</dt>
3652 <dt> &lsquo;<samp>keyint_min (<em>min-keyint</em>)</samp>&rsquo;</dt>
3653 <dt> &lsquo;<samp>coder</samp>&rsquo;</dt>
3654 <dd><p>Set entropy encoder. Possible values:
3655 </p>
3656 <dl compact="compact">
3657 <dt> &lsquo;<samp>ac</samp>&rsquo;</dt>
3658 <dd><p>Enable CABAC.
3659 </p>
3660 </dd>
3661 <dt> &lsquo;<samp>vlc</samp>&rsquo;</dt>
3662 <dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
3663 <code>x264</code>&rsquo;s &lsquo;<samp>--no-cabac</samp>&rsquo; option.
3664 </p></dd>
3665 </dl>
3666
3667 </dd>
3668 <dt> &lsquo;<samp>cmp</samp>&rsquo;</dt>
3669 <dd><p>Set full pixel motion estimation comparation algorithm. Possible values:
3670 </p>
3671 <dl compact="compact">
3672 <dt> &lsquo;<samp>chroma</samp>&rsquo;</dt>
3673 <dd><p>Enable chroma in motion estimation.
3674 </p>
3675 </dd>
3676 <dt> &lsquo;<samp>sad</samp>&rsquo;</dt>
3677 <dd><p>Ignore chroma in motion estimation. It generates the same effect as
3678 <code>x264</code>&rsquo;s &lsquo;<samp>--no-chroma-me</samp>&rsquo; option.
3679 </p></dd>
3680 </dl>
3681
3682 </dd>
3683 <dt> &lsquo;<samp>threads (<em>threads</em>)</samp>&rsquo;</dt>
3684 <dt> &lsquo;<samp>thread_type</samp>&rsquo;</dt>
3685 <dd><p>Set multithreading technique. Possible values:
3686 </p>
3687 <dl compact="compact">
3688 <dt> &lsquo;<samp>slice</samp>&rsquo;</dt>
3689 <dd><p>Slice-based multithreading. It generates the same effect as
3690 <code>x264</code>&rsquo;s &lsquo;<samp>--sliced-threads</samp>&rsquo; option.
3691 </p></dd>
3692 <dt> &lsquo;<samp>frame</samp>&rsquo;</dt>
3693 <dd><p>Frame-based multithreading.
3694 </p></dd>
3695 </dl>
3696
3697 </dd>
3698 <dt> &lsquo;<samp>flags</samp>&rsquo;</dt>
3699 <dd><p>Set encoding flags. It can be used to disable closed GOP and enable
3700 open GOP by setting it to <code>-cgop</code>. The result is similar to
3701 the behavior of <code>x264</code>&rsquo;s &lsquo;<samp>--open-gop</samp>&rsquo; option.
3702 </p>
3703 </dd>
3704 <dt> &lsquo;<samp>rc_init_occupancy (<em>vbv-init</em>)</samp>&rsquo;</dt>
3705 <dt> &lsquo;<samp>preset (<em>preset</em>)</samp>&rsquo;</dt>
3706 <dd><p>Set the encoding preset.
3707 </p>
3708 </dd>
3709 <dt> &lsquo;<samp>tune (<em>tune</em>)</samp>&rsquo;</dt>
3710 <dd><p>Set tuning of the encoding params.
3711 </p>
3712 </dd>
3713 <dt> &lsquo;<samp>profile (<em>profile</em>)</samp>&rsquo;</dt>
3714 <dd><p>Set profile restrictions.
3715 </p>
3716 </dd>
3717 <dt> &lsquo;<samp>fastfirstpass</samp>&rsquo;</dt>
3718 <dd><p>Enable fast settings when encoding first pass, when set to 1. When set
3719 to 0, it has the same effect of <code>x264</code>&rsquo;s
3720 &lsquo;<samp>--slow-firstpass</samp>&rsquo; option.
3721 </p>
3722 </dd>
3723 <dt> &lsquo;<samp>crf (<em>crf</em>)</samp>&rsquo;</dt>
3724 <dd><p>Set the quality for constant quality mode.
3725 </p>
3726 </dd>
3727 <dt> &lsquo;<samp>crf_max (<em>crf-max</em>)</samp>&rsquo;</dt>
3728 <dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
3729 </p>
3730 </dd>
3731 <dt> &lsquo;<samp>qp (<em>qp</em>)</samp>&rsquo;</dt>
3732 <dd><p>Set constant quantization rate control method parameter.
3733 </p>
3734 </dd>
3735 <dt> &lsquo;<samp>aq-mode (<em>aq-mode</em>)</samp>&rsquo;</dt>
3736 <dd><p>Set AQ method. Possible values:
3737 </p>
3738 <dl compact="compact">
3739 <dt> &lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
3740 <dd><p>Disabled.
3741 </p>
3742 </dd>
3743 <dt> &lsquo;<samp>variance (<em>1</em>)</samp>&rsquo;</dt>
3744 <dd><p>Variance AQ (complexity mask).
3745 </p>
3746 </dd>
3747 <dt> &lsquo;<samp>autovariance (<em>2</em>)</samp>&rsquo;</dt>
3748 <dd><p>Auto-variance AQ (experimental).
3749 </p></dd>
3750 </dl>
3751
3752 </dd>
3753 <dt> &lsquo;<samp>aq-strength (<em>aq-strength</em>)</samp>&rsquo;</dt>
3754 <dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
3755 </p>
3756 </dd>
3757 <dt> &lsquo;<samp>psy</samp>&rsquo;</dt>
3758 <dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
3759 same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-psy</samp>&rsquo; option.
3760 </p>
3761 </dd>
3762 <dt> &lsquo;<samp>psy-rd  (<em>psy-rd</em>)</samp>&rsquo;</dt>
3763 <dd><p>Set strength of psychovisual optimization, in
3764 <var>psy-rd</var>:<var>psy-trellis</var> format.
3765 </p>
3766 </dd>
3767 <dt> &lsquo;<samp>rc-lookahead (<em>rc-lookahead</em>)</samp>&rsquo;</dt>
3768 <dd><p>Set number of frames to look ahead for frametype and ratecontrol.
3769 </p>
3770 </dd>
3771 <dt> &lsquo;<samp>weightb</samp>&rsquo;</dt>
3772 <dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
3773 it has the same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-weightb</samp>&rsquo; option.
3774 </p>
3775 </dd>
3776 <dt> &lsquo;<samp>weightp (<em>weightp</em>)</samp>&rsquo;</dt>
3777 <dd><p>Set weighted prediction method for P-frames. Possible values:
3778 </p>
3779 <dl compact="compact">
3780 <dt> &lsquo;<samp>none (<em>0</em>)</samp>&rsquo;</dt>
3781 <dd><p>Disabled
3782 </p></dd>
3783 <dt> &lsquo;<samp>simple (<em>1</em>)</samp>&rsquo;</dt>
3784 <dd><p>Enable only weighted refs
3785 </p></dd>
3786 <dt> &lsquo;<samp>smart (<em>2</em>)</samp>&rsquo;</dt>
3787 <dd><p>Enable both weighted refs and duplicates
3788 </p></dd>
3789 </dl>
3790
3791 </dd>
3792 <dt> &lsquo;<samp>ssim (<em>ssim</em>)</samp>&rsquo;</dt>
3793 <dd><p>Enable calculation and printing SSIM stats after the encoding.
3794 </p>
3795 </dd>
3796 <dt> &lsquo;<samp>intra-refresh (<em>intra-refresh</em>)</samp>&rsquo;</dt>
3797 <dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
3798 to 1.
3799 </p>
3800 </dd>
3801 <dt> &lsquo;<samp>bluray-compat (<em>bluray-compat</em>)</samp>&rsquo;</dt>
3802 <dd><p>Configure the encoder to be compatible with the bluray standard.
3803 It is a shorthand for setting &quot;bluray-compat=1 force-cfr=1&quot;.
3804 </p>
3805 </dd>
3806 <dt> &lsquo;<samp>b-bias (<em>b-bias</em>)</samp>&rsquo;</dt>
3807 <dd><p>Set the influence on how often B-frames are used.
3808 </p>
3809 </dd>
3810 <dt> &lsquo;<samp>b-pyramid (<em>b-pyramid</em>)</samp>&rsquo;</dt>
3811 <dd><p>Set method for keeping of some B-frames as references. Possible values:
3812 </p>
3813 <dl compact="compact">
3814 <dt> &lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
3815 <dd><p>Disabled.
3816 </p></dd>
3817 <dt> &lsquo;<samp>strict (<em>strict</em>)</samp>&rsquo;</dt>
3818 <dd><p>Strictly hierarchical pyramid.
3819 </p></dd>
3820 <dt> &lsquo;<samp>normal (<em>normal</em>)</samp>&rsquo;</dt>
3821 <dd><p>Non-strict (not Blu-ray compatible).
3822 </p></dd>
3823 </dl>
3824
3825 </dd>
3826 <dt> &lsquo;<samp>mixed-refs</samp>&rsquo;</dt>
3827 <dd><p>Enable the use of one reference per partition, as opposed to one
3828 reference per macroblock when set to 1. When set to 0, it has the
3829 same effect as <code>x264</code>&rsquo;s &lsquo;<samp>--no-mixed-refs</samp>&rsquo; option.
3830 </p>
3831 </dd>
3832 <dt> &lsquo;<samp>8x8dct</samp>&rsquo;</dt>
3833 <dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
3834 when set to 1. When set to 0, it has the same effect as
3835 <code>x264</code>&rsquo;s &lsquo;<samp>--no-8x8dct</samp>&rsquo; option.
3836 </p>
3837 </dd>
3838 <dt> &lsquo;<samp>fast-pskip</samp>&rsquo;</dt>
3839 <dd><p>Enable early SKIP detection on P-frames when set to 1. When set
3840 to 0, it has the same effect as <code>x264</code>&rsquo;s
3841 &lsquo;<samp>--no-fast-pskip</samp>&rsquo; option.
3842 </p>
3843 </dd>
3844 <dt> &lsquo;<samp>aud (<em>aud</em>)</samp>&rsquo;</dt>
3845 <dd><p>Enable use of access unit delimiters when set to 1.
3846 </p>
3847 </dd>
3848 <dt> &lsquo;<samp>mbtree</samp>&rsquo;</dt>
3849 <dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
3850 to 0, it has the same effect as <code>x264</code>&rsquo;s
3851 &lsquo;<samp>--no-mbtree</samp>&rsquo; option.
3852 </p>
3853 </dd>
3854 <dt> &lsquo;<samp>deblock (<em>deblock</em>)</samp>&rsquo;</dt>
3855 <dd><p>Set loop filter parameters, in <var>alpha</var>:<var>beta</var> form.
3856 </p>
3857 </dd>
3858 <dt> &lsquo;<samp>cplxblur (<em>cplxblur</em>)</samp>&rsquo;</dt>
3859 <dd><p>Set fluctuations reduction in QP (before curve compression).
3860 </p>
3861 </dd>
3862 <dt> &lsquo;<samp>partitions (<em>partitions</em>)</samp>&rsquo;</dt>
3863 <dd><p>Set partitions to consider as a comma-separated list of. Possible
3864 values in the list:
3865 </p>
3866 <dl compact="compact">
3867 <dt> &lsquo;<samp>p8x8</samp>&rsquo;</dt>
3868 <dd><p>8x8 P-frame partition.
3869 </p></dd>
3870 <dt> &lsquo;<samp>p4x4</samp>&rsquo;</dt>
3871 <dd><p>4x4 P-frame partition.
3872 </p></dd>
3873 <dt> &lsquo;<samp>b8x8</samp>&rsquo;</dt>
3874 <dd><p>4x4 B-frame partition.
3875 </p></dd>
3876 <dt> &lsquo;<samp>i8x8</samp>&rsquo;</dt>
3877 <dd><p>8x8 I-frame partition.
3878 </p></dd>
3879 <dt> &lsquo;<samp>i4x4</samp>&rsquo;</dt>
3880 <dd><p>4x4 I-frame partition.
3881 (Enabling &lsquo;<samp>p4x4</samp>&rsquo; requires &lsquo;<samp>p8x8</samp>&rsquo; to be enabled. Enabling
3882 &lsquo;<samp>i8x8</samp>&rsquo; requires adaptive spatial transform (&lsquo;<samp>8x8dct</samp>&rsquo;
3883 option) to be enabled.)
3884 </p></dd>
3885 <dt> &lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
3886 <dd><p>Do not consider any partitions.
3887 </p></dd>
3888 <dt> &lsquo;<samp>all (<em>all</em>)</samp>&rsquo;</dt>
3889 <dd><p>Consider every partition.
3890 </p></dd>
3891 </dl>
3892
3893 </dd>
3894 <dt> &lsquo;<samp>direct-pred (<em>direct</em>)</samp>&rsquo;</dt>
3895 <dd><p>Set direct MV prediction mode. Possible values:
3896 </p>
3897 <dl compact="compact">
3898 <dt> &lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
3899 <dd><p>Disable MV prediction.
3900 </p></dd>
3901 <dt> &lsquo;<samp>spatial (<em>spatial</em>)</samp>&rsquo;</dt>
3902 <dd><p>Enable spatial predicting.
3903 </p></dd>
3904 <dt> &lsquo;<samp>temporal (<em>temporal</em>)</samp>&rsquo;</dt>
3905 <dd><p>Enable temporal predicting.
3906 </p></dd>
3907 <dt> &lsquo;<samp>auto (<em>auto</em>)</samp>&rsquo;</dt>
3908 <dd><p>Automatically decided.
3909 </p></dd>
3910 </dl>
3911
3912 </dd>
3913 <dt> &lsquo;<samp>slice-max-size (<em>slice-max-size</em>)</samp>&rsquo;</dt>
3914 <dd><p>Set the limit of the size of each slice in bytes. If not specified
3915 but RTP payload size (&lsquo;<samp>ps</samp>&rsquo;) is specified, that is used.
3916 </p>
3917 </dd>
3918 <dt> &lsquo;<samp>stats (<em>stats</em>)</samp>&rsquo;</dt>
3919 <dd><p>Set the file name for multi-pass stats.
3920 </p>
3921 </dd>
3922 <dt> &lsquo;<samp>nal-hrd (<em>nal-hrd</em>)</samp>&rsquo;</dt>
3923 <dd><p>Set signal HRD information (requires &lsquo;<samp>vbv-bufsize</samp>&rsquo; to be set).
3924 Possible values:
3925 </p>
3926 <dl compact="compact">
3927 <dt> &lsquo;<samp>none (<em>none</em>)</samp>&rsquo;</dt>
3928 <dd><p>Disable HRD information signaling.
3929 </p></dd>
3930 <dt> &lsquo;<samp>vbr (<em>vbr</em>)</samp>&rsquo;</dt>
3931 <dd><p>Variable bit rate.
3932 </p></dd>
3933 <dt> &lsquo;<samp>cbr (<em>cbr</em>)</samp>&rsquo;</dt>
3934 <dd><p>Constant bit rate (not allowed in MP4 container).
3935 </p></dd>
3936 </dl>
3937
3938 </dd>
3939 <dt> &lsquo;<samp>x264opts (N.A.)</samp>&rsquo;</dt>
3940 <dd><p>Set any x264 option, see <code>x264 --fullhelp</code> for a list.
3941 </p>
3942 <p>Argument is a list of <var>key</var>=<var>value</var> couples separated by
3943 &quot;:&quot;. In <var>filter</var> and <var>psy-rd</var> options that use &quot;:&quot; as a separator
3944 themselves, use &quot;,&quot; instead. They accept it as well since long ago but this
3945 is kept undocumented for some reason.
3946 </p>
3947 <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
3948 </p><table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i foo.mpg -vcodec libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
3949 </pre></td></tr></table>
3950
3951 </dd>
3952 <dt> &lsquo;<samp>x264-params (N.A.)</samp>&rsquo;</dt>
3953 <dd><p>Override the x264 configuration using a :-separated list of key=value
3954 parameters.
3955 </p>
3956 <p>This option is functionally the same as the &lsquo;<samp>x264opts</samp>&rsquo;, but is
3957 duplicated for compatibility with the Libav fork.
3958 </p>
3959 <p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
3960 </p><table><tr><td>&nbsp;</td><td><pre class="example">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
3961 cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
3962 no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
3963 </pre></td></tr></table>
3964 </dd>
3965 </dl>
3966
3967 <p>Encoding ffpresets for common usages are provided so they can be used with the
3968 general presets system (e.g. passing the &lsquo;<samp>pre</samp>&rsquo; option).
3969 </p>
3970 <a name="libxvid"></a>
3971 <h2 class="section"><a href="ffmpeg-codecs.html#toc-libxvid">9.5 libxvid</a></h2>
3972
3973 <p>Xvid MPEG-4 Part 2 encoder wrapper.
3974 </p>
3975 <p>This encoder requires the presence of the libxvidcore headers and library
3976 during configuration. You need to explicitly configure the build with
3977 <code>--enable-libxvid --enable-gpl</code>.
3978 </p>
3979 <p>The native <code>mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
3980 users can encode to this format without this library.
3981 </p>
3982 <a name="Options-9"></a>
3983 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Options-9">9.5.1 Options</a></h3>
3984
3985 <p>The following options are supported by the libxvid wrapper. Some of
3986 the following options are listed but are not documented, and
3987 correspond to shared codec options. See <a href="#codec_002doptions">the Codec Options chapter</a> for their documentation. The other shared options
3988 which are not listed have no effect for the libxvid encoder.
3989 </p>
3990 <dl compact="compact">
3991 <dt> &lsquo;<samp>b</samp>&rsquo;</dt>
3992 <dt> &lsquo;<samp>g</samp>&rsquo;</dt>
3993 <dt> &lsquo;<samp>qmin</samp>&rsquo;</dt>
3994 <dt> &lsquo;<samp>qmax</samp>&rsquo;</dt>
3995 <dt> &lsquo;<samp>mpeg_quant</samp>&rsquo;</dt>
3996 <dt> &lsquo;<samp>threads</samp>&rsquo;</dt>
3997 <dt> &lsquo;<samp>bf</samp>&rsquo;</dt>
3998 <dt> &lsquo;<samp>b_qfactor</samp>&rsquo;</dt>
3999 <dt> &lsquo;<samp>b_qoffset</samp>&rsquo;</dt>
4000 <dt> &lsquo;<samp>flags</samp>&rsquo;</dt>
4001 <dd><p>Set specific encoding flags. Possible values:
4002 </p>
4003 <dl compact="compact">
4004 <dt> &lsquo;<samp>mv4</samp>&rsquo;</dt>
4005 <dd><p>Use four motion vector by macroblock.
4006 </p>
4007 </dd>
4008 <dt> &lsquo;<samp>aic</samp>&rsquo;</dt>
4009 <dd><p>Enable high quality AC prediction.
4010 </p>
4011 </dd>
4012 <dt> &lsquo;<samp>gray</samp>&rsquo;</dt>
4013 <dd><p>Only encode grayscale.
4014 </p>
4015 </dd>
4016 <dt> &lsquo;<samp>gmc</samp>&rsquo;</dt>
4017 <dd><p>Enable the use of global motion compensation (GMC).
4018 </p>
4019 </dd>
4020 <dt> &lsquo;<samp>qpel</samp>&rsquo;</dt>
4021 <dd><p>Enable quarter-pixel motion compensation.
4022 </p>
4023 </dd>
4024 <dt> &lsquo;<samp>cgop</samp>&rsquo;</dt>
4025 <dd><p>Enable closed GOP.
4026 </p>
4027 </dd>
4028 <dt> &lsquo;<samp>global_header</samp>&rsquo;</dt>
4029 <dd><p>Place global headers in extradata instead of every keyframe.
4030 </p>
4031 </dd>
4032 </dl>
4033
4034 </dd>
4035 <dt> &lsquo;<samp>trellis</samp>&rsquo;</dt>
4036 <dt> &lsquo;<samp>me_method</samp>&rsquo;</dt>
4037 <dd><p>Set motion estimation method. Possible values in decreasing order of
4038 speed and increasing order of quality:
4039 </p>
4040 <dl compact="compact">
4041 <dt> &lsquo;<samp>zero</samp>&rsquo;</dt>
4042 <dd><p>Use no motion estimation (default).
4043 </p>
4044 </dd>
4045 <dt> &lsquo;<samp>phods</samp>&rsquo;</dt>
4046 <dt> &lsquo;<samp>x1</samp>&rsquo;</dt>
4047 <dt> &lsquo;<samp>log</samp>&rsquo;</dt>
4048 <dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
4049 refinement for 16x16 blocks. &lsquo;<samp>x1</samp>&rsquo; and &lsquo;<samp>log</samp>&rsquo; are aliases for
4050 &lsquo;<samp>phods</samp>&rsquo;.
4051 </p>
4052 </dd>
4053 <dt> &lsquo;<samp>epzs</samp>&rsquo;</dt>
4054 <dd><p>Enable all of the things described above, plus advanced diamond zonal
4055 search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
4056 estimation on chroma planes.
4057 </p>
4058 </dd>
4059 <dt> &lsquo;<samp>full</samp>&rsquo;</dt>
4060 <dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
4061 blocks search.
4062 </p></dd>
4063 </dl>
4064
4065 </dd>
4066 <dt> &lsquo;<samp>mbd</samp>&rsquo;</dt>
4067 <dd><p>Set macroblock decision algorithm. Possible values in the increasing
4068 order of quality:
4069 </p>
4070 <dl compact="compact">
4071 <dt> &lsquo;<samp>simple</samp>&rsquo;</dt>
4072 <dd><p>Use macroblock comparing function algorithm (default).
4073 </p>
4074 </dd>
4075 <dt> &lsquo;<samp>bits</samp>&rsquo;</dt>
4076 <dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
4077 16x16 blocks.
4078 </p>
4079 </dd>
4080 <dt> &lsquo;<samp>rd</samp>&rsquo;</dt>
4081 <dd><p>Enable all of the things described above, plus rate distortion-based
4082 half pixel and quarter pixel refinement for 8x8 blocks, and rate
4083 distortion-based search using square pattern.
4084 </p></dd>
4085 </dl>
4086
4087 </dd>
4088 <dt> &lsquo;<samp>lumi_aq</samp>&rsquo;</dt>
4089 <dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
4090 (disabled).
4091 </p>
4092 </dd>
4093 <dt> &lsquo;<samp>variance_aq</samp>&rsquo;</dt>
4094 <dd><p>Enable variance adaptive quantization when set to 1. Default is 0
4095 (disabled).
4096 </p>
4097 <p>When combined with &lsquo;<samp>lumi_aq</samp>&rsquo;, the resulting quality will not
4098 be better than any of the two specified individually. In other
4099 words, the resulting quality will be the worse one of the two
4100 effects.
4101 </p>
4102 </dd>
4103 <dt> &lsquo;<samp>ssim</samp>&rsquo;</dt>
4104 <dd><p>Set structural similarity (SSIM) displaying method. Possible values:
4105 </p>
4106 <dl compact="compact">
4107 <dt> &lsquo;<samp>off</samp>&rsquo;</dt>
4108 <dd><p>Disable displaying of SSIM information.
4109 </p>
4110 </dd>
4111 <dt> &lsquo;<samp>avg</samp>&rsquo;</dt>
4112 <dd><p>Output average SSIM at the end of encoding to stdout. The format of
4113 showing the average SSIM is:
4114 </p>
4115 <table><tr><td>&nbsp;</td><td><pre class="example">Average SSIM: %f
4116 </pre></td></tr></table>
4117
4118 <p>For users who are not familiar with C, %f means a float number, or
4119 a decimal (e.g. 0.939232).
4120 </p>
4121 </dd>
4122 <dt> &lsquo;<samp>frame</samp>&rsquo;</dt>
4123 <dd><p>Output both per-frame SSIM data during encoding and average SSIM at
4124 the end of encoding to stdout. The format of per-frame information
4125 is:
4126 </p>
4127 <table><tr><td>&nbsp;</td><td><pre class="example">       SSIM: avg: %1.3f min: %1.3f max: %1.3f
4128 </pre></td></tr></table>
4129
4130 <p>For users who are not familiar with C, %1.3f means a float number
4131 rounded to 3 digits after the dot (e.g. 0.932).
4132 </p>
4133 </dd>
4134 </dl>
4135
4136 </dd>
4137 <dt> &lsquo;<samp>ssim_acc</samp>&rsquo;</dt>
4138 <dd><p>Set SSIM accuracy. Valid options are integers within the range of
4139 0-4, while 0 gives the most accurate result and 4 computes the
4140 fastest.
4141 </p>
4142 </dd>
4143 </dl>
4144
4145 <a name="png"></a>
4146 <h2 class="section"><a href="ffmpeg-codecs.html#toc-png">9.6 png</a></h2>
4147
4148 <p>PNG image encoder.
4149 </p>
4150 <a name="Private-options-1"></a>
4151 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Private-options-1">9.6.1 Private options</a></h3>
4152
4153 <dl compact="compact">
4154 <dt> &lsquo;<samp>dpi <var>integer</var></samp>&rsquo;</dt>
4155 <dd><p>Set physical density of pixels, in dots per inch, unset by default
4156 </p></dd>
4157 <dt> &lsquo;<samp>dpm <var>integer</var></samp>&rsquo;</dt>
4158 <dd><p>Set physical density of pixels, in dots per meter, unset by default
4159 </p></dd>
4160 </dl>
4161
4162 <a name="ProRes"></a>
4163 <h2 class="section"><a href="ffmpeg-codecs.html#toc-ProRes">9.7 ProRes</a></h2>
4164
4165 <p>Apple ProRes encoder.
4166 </p>
4167 <p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
4168 The used encoder can be chosen with the <code>-vcodec</code> option.
4169 </p>
4170 <a name="Private-Options-for-prores_002dks"></a>
4171 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Private-Options-for-prores_002dks">9.7.1 Private Options for prores-ks</a></h3>
4172
4173 <dl compact="compact">
4174 <dt> &lsquo;<samp>profile <var>integer</var></samp>&rsquo;</dt>
4175 <dd><p>Select the ProRes profile to encode
4176 </p><dl compact="compact">
4177 <dt> &lsquo;<samp>proxy</samp>&rsquo;</dt>
4178 <dt> &lsquo;<samp>lt</samp>&rsquo;</dt>
4179 <dt> &lsquo;<samp>standard</samp>&rsquo;</dt>
4180 <dt> &lsquo;<samp>hq</samp>&rsquo;</dt>
4181 <dt> &lsquo;<samp>4444</samp>&rsquo;</dt>
4182 </dl>
4183
4184 </dd>
4185 <dt> &lsquo;<samp>quant_mat <var>integer</var></samp>&rsquo;</dt>
4186 <dd><p>Select quantization matrix.
4187 </p><dl compact="compact">
4188 <dt> &lsquo;<samp>auto</samp>&rsquo;</dt>
4189 <dt> &lsquo;<samp>default</samp>&rsquo;</dt>
4190 <dt> &lsquo;<samp>proxy</samp>&rsquo;</dt>
4191 <dt> &lsquo;<samp>lt</samp>&rsquo;</dt>
4192 <dt> &lsquo;<samp>standard</samp>&rsquo;</dt>
4193 <dt> &lsquo;<samp>hq</samp>&rsquo;</dt>
4194 </dl>
4195 <p>If set to <var>auto</var>, the matrix matching the profile will be picked.
4196 If not set, the matrix providing the highest quality, <var>default</var>, will be
4197 picked.
4198 </p>
4199 </dd>
4200 <dt> &lsquo;<samp>bits_per_mb <var>integer</var></samp>&rsquo;</dt>
4201 <dd><p>How many bits to allot for coding one macroblock. Different profiles use
4202 between 200 and 2400 bits per macroblock, the maximum is 8000.
4203 </p>
4204 </dd>
4205 <dt> &lsquo;<samp>mbs_per_slice <var>integer</var></samp>&rsquo;</dt>
4206 <dd><p>Number of macroblocks in each slice (1-8); the default value (8)
4207 should be good in almost all situations.
4208 </p>
4209 </dd>
4210 <dt> &lsquo;<samp>vendor <var>string</var></samp>&rsquo;</dt>
4211 <dd><p>Override the 4-byte vendor ID.
4212 A custom vendor ID like <var>apl0</var> would claim the stream was produced by
4213 the Apple encoder.
4214 </p>
4215 </dd>
4216 <dt> &lsquo;<samp>alpha_bits <var>integer</var></samp>&rsquo;</dt>
4217 <dd><p>Specify number of bits for alpha component.
4218 Possible values are <var>0</var>, <var>8</var> and <var>16</var>.
4219 Use <var>0</var> to disable alpha plane coding.
4220 </p>
4221 </dd>
4222 </dl>
4223
4224 <a name="Speed-considerations"></a>
4225 <h3 class="subsection"><a href="ffmpeg-codecs.html#toc-Speed-considerations">9.7.2 Speed considerations</a></h3>
4226
4227 <p>In the default mode of operation the encoder has to honor frame constraints
4228 (i.e. not produc frames with size bigger than requested) while still making
4229 output picture as good as possible.
4230 A frame containing a lot of small details is harder to compress and the encoder
4231 would spend more time searching for appropriate quantizers for each slice.
4232 </p>
4233 <p>Setting a higher &lsquo;<samp>bits_per_mb</samp>&rsquo; limit will improve the speed.
4234 </p>
4235 <p>For the fastest encoding speed set the &lsquo;<samp>qscale</samp>&rsquo; parameter (4 is the
4236 recommended value) and do not set a size constraint.
4237 </p>
4238
4239 <a name="See-Also"></a>
4240 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-See-Also">10. See Also</a></h1>
4241
4242 <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>, <a href="ffserver.html">ffserver</a>,
4243 <a href="libavcodec.html">libavcodec</a>
4244 </p>
4245
4246 <a name="Authors"></a>
4247 <h1 class="chapter"><a href="ffmpeg-codecs.html#toc-Authors">11. Authors</a></h1>
4248
4249 <p>The FFmpeg developers.
4250 </p>
4251 <p>For details about the authorship, see the Git history of the project
4252 (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
4253 <code>git log</code> in the FFmpeg source directory, or browsing the
4254 online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
4255 </p>
4256 <p>Maintainers for the specific components are listed in the file
4257 &lsquo;<tt>MAINTAINERS</tt>&rsquo; in the source code tree.
4258 </p>
4259
4260 <footer class="footer pagination-right">
4261 <span class="label label-info">This document was generated by <em>Kyle Schwarz</em> on <em>June 19, 2014</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.</span></footer></div></div></body>