For stereoscopic videos define frame arrangement
178 - 0: checkerboard - pixels are alternatively from L and R
179 - 1: column alternation - L and R are interlaced by column
180 - 2: row alternation - L and R are interlaced by row
181 - 3: side by side - L is on the left, R on the right
182 - 4: top bottom - L is on top, R on bottom
183 - 5: frame alternation - one view per frame
184
185 Ratecontrol:
186
187 -q, --qp Force constant QP (0-69, 0=lossless)
188 -B, --bitrate Set bitrate (kbit/s)
189 --crf Quality-based VBR (0-51) [23.0]
190 --rc-lookahead Number of frames for frametype lookahead [40]
191 --vbv-maxrate Max local bitrate (kbit/s) [0]
192 --vbv-bufsize Set size of the VBV buffer (kbit) [0]
193 --vbv-init Initial VBV buffer occupancy [0.9]
194 --crf-max With CRF+VBV, limit RF to this value
195 May cause VBV underflows!
196 --qpmin Set min QP [0]
197 --qpmax Set max QP [69]
198 --qpstep Set max QP step [4]
199 --ratetol Tolerance of ABR ratecontrol and VBV [1.0]
200 --ipratio QP factor between I and P [1.40]
201 --pbratio QP factor between P and B [1.30]
202 --chroma-qp-offset QP difference between chroma and luma [0]
203 --aq-mode AQ method [1]
204 - 0: Disabled
205 - 1: Variance AQ (complexity mask)
206 - 2: Auto-variance AQ (experimental)
207 --aq-strength Reduces blocking and blurring in flat and
208 textured areas. [1.0]
209
210 -p, --pass Enable multipass ratecontrol
211 - 1: First pass, creates stats file
212 - 2: Last pass, does not overwrite stats file
213 - 3: Nth pass, overwrites stats file
214 --stats Filename for 2 pass stats ["x264_2pass.log"]
215 --no-mbtree Disable mb-tree ratecontrol.
216 --qcomp QP curve compression [0.60]
217 --cplxblur Reduce fluctuations in QP (before curve compression) [20.0]
218 --qblur Reduce fluctuations in QP (after curve compression) [0.5]
219 --zones //... Tweak the bitrate of regions of the video
220 Each zone is of the form
221 ,,
222 where is either
223 q= (force QP)
224 or b= (bitrate multiplier)
225 --qpfile Force frametypes and QPs for some or all frames
226 Format of each line: framenumber frametype QP
227 QP is optional (none lets x264 choose). Frametypes: I,i,K,P,B,b.
228 K= depending on open-gop setting
229 QPs are restricted by qpmin/qpmax.
230
231 Analysis:
232
233 -A, --partitions Partitions to consider ["p8x8,b8x8,i8x8,i4x4"]
234 - p8x8, p4x4, b8x8, i8x8, i4x4
235 - none, all
236 (p4x4 requires p8x8. i8x8 requires --8x8dct.)
237 --direct Direct MV prediction mode ["spatial"]
238 - none, spatial, temporal, auto
239 --no-weightb Disable weighted prediction for B-frames
240 --weightp Weighted prediction for P-frames [2]
241 - 0: Disabled
242 - 1: Weighted refs
243 - 2: Weighted refs + Duplicates
244 --me Integer pixel motion estimation method ["hex"]
245 - dia: diamond search, radius 1 (fast)
246 - hex: hexagonal search, radius 2
247 - umh: uneven multi-hexagon search
248 - esa: exhaustive search
249 - tesa: hadamard exhaustive search (slow)
250 --merange Maximum motion vector search range [16]
251 --mvrange Maximum motion vector length [-1 (auto)]
252 --mvrange-thread Minimum buffer between threads [-1 (auto)]
253 -m, --subme Subpixel motion estimation and mode decision [7]
254 - 0: fullpel only (not recommended)
255 - 1: SAD mode decision, one qpel iteration
256 - 2: SATD mode decision
257 - 3-5: Progressively more qpel
258 - 6: RD mode decision for I/P-frames
259 - 7: RD mode decision for all frames
260 - 8: RD refinement for I/P-frames
261 - 9: RD refinement for all frames
262 - 10: QP-RD - requires trellis=2, aq-mode>0
263 - 11: Full RD: disable all early terminations
264 --psy-rd Strength of psychovisual optimization ["1.0:0.0"]
265 #1: RD (requires subme>=6)
266 #2: Trellis (requires trellis, experimental)
267 --no-psy Disable all visual optimizations that worsen
268 both PSNR and SSIM.
269 --no-mixed-refs Don't decide references on a per partition basis
270 --no-chroma-me Ignore chroma in motion estimation
271 --no-8x8dct Disable adaptive spatial transform size
272 -t, --trellis Trellis RD quantization. [1]
273 - 0: disabled
274 - 1: enabled only on the final encode of a MB
275 - 2: enabled on all mode decisions
276 --no-fast-pskip Disables early SKIP detection on P-frames
277 --no-dct-decimate Disables coefficient thresholding on P-frames
278 --nr Noise reduction [0]
279
280 --deadzone-inter Set the size of the inter luma quantization deadzone [21]
281 --deadzone-intra Set the size of the intra luma quantization deadzone [11]
282 Deadzones should be in the range 0 - 32.
283 --cqm Preset quant matrices ["flat"]
284 - jvt, flat
285 --cqmfile Read custom quant matrices from a JM-compatible file
286 Overrides any other --cqm* options.
287 --cqm4 Set all 4x4 quant matrices
288 Takes a comma-separated list of 16 integers.
289 --cqm8 Set all 8x8 quant matrices
290 Takes a comma-separated list of 64 integers.
291 --cqm4i, --cqm4p, --cqm8i, --cqm8p
292 Set both luma and chroma quant matrices
293 --cqm4iy, --cqm4ic, --cqm4py, --cqm4pc
294 Set individual quant matrices
295
296 Video Usability Info (Annex E):
297 The VUI settings are not used by the encoder but are merely suggestions to
298 the playback equipment. See doc/vui.txt for details. Use at your own risk.
299
300 --overscan Specify crop overscan setting ["undef"]
301 - undef, show, crop
302 --videoformat Specify video format ["undef"]
303 - component, pal, ntsc, secam, mac, undef
304 --range Specify color range ["auto"]
305 - auto, tv, pc
306 --colorprim Specify color primaries ["undef"]
307 - undef, bt709, bt470m, bt470bg
308 smpte170m, smpte240m, film
309 --transfer Specify transfer characteristics ["undef"]
310 - undef, bt709, bt470m, bt470bg, linear,
311 log100, log316, smpte170m, smpte240m
312 --colormatrix Specify color matrix setting ["???"]
313 - undef, bt709, fcc, bt470bg
314 smpte170m, smpte240m, GBR, YCgCo
315 --chromaloc Specify chroma sample location (0 to 5) [0]
316 --nal-hrd Signal HRD information (requires vbv-bufsize)
317 - none, vbr, cbr (cbr not allowed in .mp4)
318 --pic-struct Force pic_struct in Picture Timing SEI
319 --crop-rect Add 'left,top,right,bottom' to the bitstream-level
320 cropping rectangle
321
322 Input/Output:
323
324 -o, --output Specify output file
325 --muxer Specify output container format ["auto"]
326 - auto, raw, mkv, flv, mp4
327 --demuxer Specify input container format ["auto"]
328 - auto, raw, y4m
329 --input-fmt Specify input file format (requires lavf support)
330 --input-csp Specify input colorspace format for raw input
331 - valid csps for `raw' demuxer:
332 i420, yv12, nv12, i422, yv16, nv16, i444, yv24, bgr, bgra, rgb
333 --output-csp Specify output colorspace ["i420"]
334 - i420, i422, i444, rgb
335 --input-depth Specify input bit depth for raw input
336 --input-range Specify input color range ["auto"]
337 - auto, tv, pc
338 --input-res Specify input resolution (width x height)
339 --index Filename for input index file
340 --sar width:height Specify Sample Aspect Ratio
341 --fps Specify framerate
342 --seek First frame to encode
343 --frames Maximum number of frames to encode
344 --level Specify level (as defined by Annex A)
345 --bluray-compat Enable compatibility hacks for Blu-ray support
346
347 -v, --verbose Print stats for each frame
348 --no-progress Don't show the progress indicator while encoding
349 --quiet Quiet Mode
350 --log-level Specify the maximum level of logging ["info"]
351 - none, error, warning, info, debug
352 --psnr Enable PSNR computation
353 --ssim Enable SSIM computation
354 --threads Force a specific number of threads
355 --lookahead-threads Force a specific number of lookahead threads
356 --sliced-threads Low-latency but lower-efficiency threading
357 --thread-input Run Avisynth in its own thread
358 --sync-lookahead Number of buffer frames for threaded lookahead
359 --non-deterministic Slightly improve quality of SMP, at the cost of repeatability
360 --cpu-independent Ensure exact reproducibility across different cpus,
361 as opposed to letting them select different algorithms
362 --asm Override CPU detection
363 --no-asm Disable all CPU optimizations
364 --visualize Show MB types overlayed on the encoded video
365 --dump-yuv Save reconstructed frames
366 --sps-id Set SPS and PPS id numbers [0]
367 --aud Use access unit delimiters
368 --force-cfr Force constant framerate timestamp generation
369 --tcfile-in Force timestamp generation with timecode file
370 --tcfile-out Output timecode v2 file from input timestamps
371 --timebase Specify timebase numerator and denominator
372 Specify timebase numerator for input timecode file
373 or specify timebase denominator for other input
374 --dts-compress Eliminate initial delay with container DTS hack
375
376 Filtering:
377
378 --vf, --video-filter //... Apply video filtering to the input file
379
380 Filter options may be specified in := format.
381
382 Available filters:
383 crop:left,top,right,bottom
384 removes pixels from the edges of the frame
385 resize:[width,height][,sar][,fittobox][,csp][,method]
386 resizes frames based on the given criteria:
387 - resolution only: resizes and adapts sar to avoid stretching
388 - sar only: sets the sar and resizes to avoid stretching
389 - resolution and sar: resizes to given resolution and sets the sar
390 - fittobox: resizes the video based on the desired constraints
391 - width, height, both
392 - fittobox and sar: same as above except with specified sar
393 - csp: convert to the given csp. syntax: [name][:depth]
394 - valid csp names [keep current]: i420, yv12, nv12, i422, yv16, nv16, i444, yv24, bgr, bgra, rgb
395 - depth: 8 or 16 bits per pixel [keep current]
396 note: not all depths are supported by all csps.
397 - method: use resizer method ["bicubic"]
398 - fastbilinear, bilinear, bicubic, experimental, point,
399 - area, bicublin, gauss, sinc, lanczos, spline
400 select_every:step,offset1[,...]
401 apply a selection pattern to input frames
402 step: the number of frames in the pattern
403 offsets: the offset into the step to select a frame