File: x264.1

package info (click to toggle)
x264 2:0.155.2917+git0a84d98-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,732 kB
  • sloc: ansic: 67,842; asm: 37,367; sh: 4,416; lisp: 1,795; python: 1,046; perl: 905; makefile: 385
file content (796 lines) | stat: -rw-r--r-- 22,697 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.6.
.TH X264 "1" "August 2018" "Videolan project" "User Commands"
.SH NAME
x264 \- fast h264 encoder
.SH DESCRIPTION
x264 core:155 r2917 0a84d98
Syntax: x264 [options] \fB\-o\fR outfile infile
.PP
Infile can be raw (in which case resolution is required),
.IP
or YUV4MPEG (*.y4m),
or Avisynth if compiled with support (yes).
or libav* formats if compiled with lavf support (yes) or ffms support (yes).
.SS "Outfile type is selected by filename:"
.IP
\&.264 \-> Raw bytestream
\&.mkv \-> Matroska
\&.flv \-> Flash Video
\&.mp4 \-> MP4 if compiled with GPAC or L\-SMASH support (gpac)
.PP
Output bit depth: 8/10
\&.
Options:
.TP
\fB\-h\fR, \fB\-\-help\fR
List basic options
.TP
\fB\-\-longhelp\fR
List more options
.TP
\fB\-\-fullhelp\fR
List all options
.PP
Example usage:
.IP
Constant quality mode:
.IP
x264 \fB\-\-crf\fR 24 \fB\-o\fR <output> <input>
.IP
Two\-pass with a bitrate of 1000kbps:
.IP
x264 \fB\-\-pass\fR 1 \fB\-\-bitrate\fR 1000 \fB\-o\fR <output> <input>
x264 \fB\-\-pass\fR 2 \fB\-\-bitrate\fR 1000 \fB\-o\fR <output> <input>
.IP
Lossless:
.IP
x264 \fB\-\-qp\fR 0 \fB\-o\fR <output> <input>
.IP
Maximum PSNR at the cost of speed and visual quality:
.IP
x264 \fB\-\-preset\fR placebo \fB\-\-tune\fR psnr \fB\-o\fR <output> <input>
.IP
Constant bitrate at 1000kbps with a 2 second\-buffer:
.IP
x264 \fB\-\-vbv\-bufsize\fR 2000 \fB\-\-bitrate\fR 1000 \fB\-o\fR <output> <input>
.PP
Presets:
.TP
\fB\-\-profile\fR <string>
Force the limits of an H.264 profile
Overrides all settings.
\- baseline:
.TP
\fB\-\-no\-8x8dct\fR \fB\-\-bframes\fR 0 \fB\-\-no\-cabac\fR
\fB\-\-cqm\fR flat \fB\-\-weightp\fR 0
No interlaced.
No lossless.
.TP
\- main:
\fB\-\-no\-8x8dct\fR \fB\-\-cqm\fR flat
No lossless.
.TP
\- high:
No lossless.
.TP
\- high10:
No lossless.
Support for bit depth 8\-10.
.TP
\- high422:
No lossless.
Support for bit depth 8\-10.
Support for 4:2:0/4:2:2 chroma subsampling.
.TP
\- high444:
Support for bit depth 8\-10.
Support for 4:2:0/4:2:2/4:4:4 chroma subsampling.
.TP
\fB\-\-preset\fR <string>
Use a preset to select encoding settings [medium]
Overridden by user settings.
\- ultrafast:
.TP
\fB\-\-no\-8x8dct\fR \fB\-\-aq\-mode\fR 0 \fB\-\-b\-adapt\fR 0
\fB\-\-bframes\fR 0 \fB\-\-no\-cabac\fR \fB\-\-no\-deblock\fR
\fB\-\-no\-mbtree\fR \fB\-\-me\fR dia \fB\-\-no\-mixed\-refs\fR
\fB\-\-partitions\fR none \fB\-\-rc\-lookahead\fR 0 \fB\-\-ref\fR 1
\fB\-\-scenecut\fR 0 \fB\-\-subme\fR 0 \fB\-\-trellis\fR 0
\fB\-\-no\-weightb\fR \fB\-\-weightp\fR 0
.TP
\- superfast:
\fB\-\-no\-mbtree\fR \fB\-\-me\fR dia \fB\-\-no\-mixed\-refs\fR
\fB\-\-partitions\fR i8x8,i4x4 \fB\-\-rc\-lookahead\fR 0
\fB\-\-ref\fR 1 \fB\-\-subme\fR 1 \fB\-\-trellis\fR 0 \fB\-\-weightp\fR 1
.TP
\- veryfast:
\fB\-\-no\-mixed\-refs\fR \fB\-\-rc\-lookahead\fR 10
\fB\-\-ref\fR 1 \fB\-\-subme\fR 2 \fB\-\-trellis\fR 0 \fB\-\-weightp\fR 1
.TP
\- faster:
\fB\-\-no\-mixed\-refs\fR \fB\-\-rc\-lookahead\fR 20
\fB\-\-ref\fR 2 \fB\-\-subme\fR 4 \fB\-\-weightp\fR 1
.TP
\- fast:
\fB\-\-rc\-lookahead\fR 30 \fB\-\-ref\fR 2 \fB\-\-subme\fR 6
\fB\-\-weightp\fR 1
.TP
\- medium:
Default settings apply.
.TP
\- slow:
\fB\-\-direct\fR auto \fB\-\-rc\-lookahead\fR 50 \fB\-\-ref\fR 5
\fB\-\-subme\fR 8 \fB\-\-trellis\fR 2
.TP
\- slower:
\fB\-\-b\-adapt\fR 2 \fB\-\-direct\fR auto \fB\-\-me\fR umh
\fB\-\-partitions\fR all \fB\-\-rc\-lookahead\fR 60
\fB\-\-ref\fR 8 \fB\-\-subme\fR 9 \fB\-\-trellis\fR 2
.TP
\- veryslow:
\fB\-\-b\-adapt\fR 2 \fB\-\-bframes\fR 8 \fB\-\-direct\fR auto
\fB\-\-me\fR umh \fB\-\-merange\fR 24 \fB\-\-partitions\fR all
\fB\-\-ref\fR 16 \fB\-\-subme\fR 10 \fB\-\-trellis\fR 2
\fB\-\-rc\-lookahead\fR 60
.TP
\- placebo:
\fB\-\-bframes\fR 16 \fB\-\-b\-adapt\fR 2 \fB\-\-direct\fR auto
\fB\-\-slow\-firstpass\fR \fB\-\-no\-fast\-pskip\fR
\fB\-\-me\fR tesa \fB\-\-merange\fR 24 \fB\-\-partitions\fR all
\fB\-\-rc\-lookahead\fR 60 \fB\-\-ref\fR 16 \fB\-\-subme\fR 11
\fB\-\-trellis\fR 2
.TP
\fB\-\-tune\fR <string>
Tune the settings for a particular type of source
or situation
.TP
Overridden by user settings.
Multiple tunings are separated by commas.
Only one psy tuning can be used at a time.
\- film (psy tuning):
.TP
\fB\-\-deblock\fR \fB\-1\fR:\-1 \fB\-\-psy\-rd\fR <unset>:0.15
\- animation (psy tuning):
.TP
\fB\-\-bframes\fR {+2} \fB\-\-deblock\fR 1:1
\fB\-\-psy\-rd\fR 0.4:<unset> \fB\-\-aq\-strength\fR 0.6
\fB\-\-ref\fR {Double if >1 else 1}
.TP
\- grain (psy tuning):
\fB\-\-aq\-strength\fR 0.5 \fB\-\-no\-dct\-decimate\fR
\fB\-\-deadzone\-inter\fR 6 \fB\-\-deadzone\-intra\fR 6
\fB\-\-deblock\fR \fB\-2\fR:\-2 \fB\-\-ipratio\fR 1.1
\fB\-\-pbratio\fR 1.1 \fB\-\-psy\-rd\fR <unset>:0.25
\fB\-\-qcomp\fR 0.8
.TP
\- stillimage (psy tuning):
\fB\-\-aq\-strength\fR 1.2 \fB\-\-deblock\fR \fB\-3\fR:\-3
\fB\-\-psy\-rd\fR 2.0:0.7
.TP
\- psnr (psy tuning):
\fB\-\-aq\-mode\fR 0 \fB\-\-no\-psy\fR
.TP
\- ssim (psy tuning):
\fB\-\-aq\-mode\fR 2 \fB\-\-no\-psy\fR
.TP
\- fastdecode:
\fB\-\-no\-cabac\fR \fB\-\-no\-deblock\fR \fB\-\-no\-weightb\fR
\fB\-\-weightp\fR 0
.TP
\- zerolatency:
\fB\-\-bframes\fR 0 \fB\-\-force\-cfr\fR \fB\-\-no\-mbtree\fR
\fB\-\-sync\-lookahead\fR 0 \fB\-\-sliced\-threads\fR
\fB\-\-rc\-lookahead\fR 0
.TP
\fB\-\-slow\-firstpass\fR
Don't force these faster settings with \fB\-\-pass\fR 1:
\fB\-\-no\-8x8dct\fR \fB\-\-me\fR dia \fB\-\-partitions\fR none
\fB\-\-ref\fR 1 \fB\-\-subme\fR {2 if >2 else unchanged}
\fB\-\-trellis\fR 0 \fB\-\-fast\-pskip\fR
.PP
Frame\-type options:
.HP
\fB\-I\fR, \fB\-\-keyint\fR <integer or "infinite"> Maximum GOP size [250]
.TP
\fB\-i\fR, \fB\-\-min\-keyint\fR <integer>
Minimum GOP size [auto]
.TP
\fB\-\-no\-scenecut\fR
Disable adaptive I\-frame decision
.TP
\fB\-\-scenecut\fR <integer>
How aggressively to insert extra I\-frames [40]
.TP
\fB\-\-intra\-refresh\fR
Use Periodic Intra Refresh instead of IDR frames
.TP
\fB\-b\fR, \fB\-\-bframes\fR <integer>
Number of B\-frames between I and P [3]
.TP
\fB\-\-b\-adapt\fR <integer>
Adaptive B\-frame decision method [1]
Higher values may lower threading efficiency.
\- 0: Disabled
\- 1: Fast
\- 2: Optimal (slow with high \fB\-\-bframes\fR)
.TP
\fB\-\-b\-bias\fR <integer>
Influences how often B\-frames are used [0]
.TP
\fB\-\-b\-pyramid\fR <string>
Keep some B\-frames as references [normal]
\- none: Disabled
\- strict: Strictly hierarchical pyramid
\- normal: Non\-strict (not Blu\-ray compatible)
.TP
\fB\-\-open\-gop\fR
Use recovery points to close GOPs
Only available with b\-frames
.TP
\fB\-\-no\-cabac\fR
Disable CABAC
.TP
\fB\-r\fR, \fB\-\-ref\fR <integer>
Number of reference frames [3]
.TP
\fB\-\-no\-deblock\fR
Disable loop filter
.TP
\fB\-f\fR, \fB\-\-deblock\fR <alpha:beta>
Loop filter parameters [0:0]
.TP
\fB\-\-slices\fR <integer>
Number of slices per frame; forces rectangular
slices and is overridden by other slicing options
.TP
\fB\-\-slices\-max\fR <integer>
Absolute maximum slices per frame; overrides
slice\-max\-size/slice\-max\-mbs when necessary
.HP
\fB\-\-slice\-max\-size\fR <integer> Limit the size of each slice in bytes
.HP
\fB\-\-slice\-max\-mbs\fR <integer> Limit the size of each slice in macroblocks (max)
.HP
\fB\-\-slice\-min\-mbs\fR <integer> Limit the size of each slice in macroblocks (min)
.TP
\fB\-\-tff\fR
Enable interlaced mode (top field first)
.TP
\fB\-\-bff\fR
Enable interlaced mode (bottom field first)
.TP
\fB\-\-constrained\-intra\fR
Enable constrained intra prediction.
.TP
\fB\-\-pulldown\fR <string>
Use soft pulldown to change frame rate
\- none, 22, 32, 64, double, triple, euro (requires cfr input)
.TP
\fB\-\-fake\-interlaced\fR
Flag stream as interlaced but encode progressive.
Makes it possible to encode 25p and 30p Blu\-Ray
streams. Ignored in interlaced mode.
.TP
\fB\-\-frame\-packing\fR <integer> For stereoscopic videos define frame arrangement
\- 0: checkerboard \- pixels are alternatively from L and R
\- 1: column alternation \- L and R are interlaced by column
\- 2: row alternation \- L and R are interlaced by row
\- 3: side by side \- L is on the left, R on the right
\- 4: top bottom \- L is on top, R on bottom
\- 5: frame alternation \- one view per frame
\- 6: mono \- 2D frame without any frame packing
\- 7: tile format \- L is on top\-left, R split across
.PP
Ratecontrol:
.TP
\fB\-q\fR, \fB\-\-qp\fR <integer>
Force constant QP (0\-81, 0=lossless)
.TP
\fB\-B\fR, \fB\-\-bitrate\fR <integer>
Set bitrate (kbit/s)
.TP
\fB\-\-crf\fR <float>
Quality\-based VBR (\fB\-12\-51\fR) [23.0]
.HP
\fB\-\-rc\-lookahead\fR <integer> Number of frames for frametype lookahead [40]
.HP
\fB\-\-vbv\-maxrate\fR <integer> Max local bitrate (kbit/s) [0]
.HP
\fB\-\-vbv\-bufsize\fR <integer> Set size of the VBV buffer (kbit) [0]
.TP
\fB\-\-vbv\-init\fR <float>
Initial VBV buffer occupancy [0.9]
.TP
\fB\-\-crf\-max\fR <float>
With CRF+VBV, limit RF to this value
May cause VBV underflows!
.TP
\fB\-\-qpmin\fR <integer>
Set min QP [0]
.TP
\fB\-\-qpmax\fR <integer>
Set max QP [81]
.TP
\fB\-\-qpstep\fR <integer>
Set max QP step [4]
.TP
\fB\-\-ratetol\fR <float>
Tolerance of ABR ratecontrol and VBV [1.0]
.TP
\fB\-\-ipratio\fR <float>
QP factor between I and P [1.40]
.TP
\fB\-\-pbratio\fR <float>
QP factor between P and B [1.30]
.TP
\fB\-\-chroma\-qp\-offset\fR <integer>
QP difference between chroma and luma [0]
.TP
\fB\-\-aq\-mode\fR <integer>
AQ method [1]
\- 0: Disabled
\- 1: Variance AQ (complexity mask)
\- 2: Auto\-variance AQ
\- 3: Auto\-variance AQ with bias to dark scenes
.TP
\fB\-\-aq\-strength\fR <float>
Reduces blocking and blurring in flat and
textured areas. [1.0]
.TP
\fB\-p\fR, \fB\-\-pass\fR <integer>
Enable multipass ratecontrol
\- 1: First pass, creates stats file
\- 2: Last pass, does not overwrite stats file
\- 3: Nth pass, overwrites stats file
.TP
\fB\-\-stats\fR <string>
Filename for 2 pass stats ["x264_2pass.log"]
.TP
\fB\-\-no\-mbtree\fR
Disable mb\-tree ratecontrol.
.TP
\fB\-\-qcomp\fR <float>
QP curve compression [0.60]
.TP
\fB\-\-cplxblur\fR <float>
Reduce fluctuations in QP (before curve compression) [20.0]
.TP
\fB\-\-qblur\fR <float>
Reduce fluctuations in QP (after curve compression) [0.5]
.TP
\fB\-\-zones\fR <zone0>/<zone1>/...
Tweak the bitrate of regions of the video
Each zone is of the form
.TP
<start frame>,<end frame>,<option>
where <option> is either
.TP
q=<integer> (force QP)
or  b=<float> (bitrate multiplier)
.TP
\fB\-\-qpfile\fR <string>
Force frametypes and QPs for some or all frames
Format of each line: framenumber frametype QP
QP is optional (none lets x264 choose). Frametypes: I,i,K,P,B,b.
.TP
K=<I or i> depending on open\-gop setting
QPs are restricted by qpmin/qpmax.
.PP
Analysis:
.TP
\fB\-A\fR, \fB\-\-partitions\fR <string>
Partitions to consider ["p8x8,b8x8,i8x8,i4x4"]
\- p8x8, p4x4, b8x8, i8x8, i4x4
\- none, all
(p4x4 requires p8x8. i8x8 requires \fB\-\-8x8dct\fR.)
.TP
\fB\-\-direct\fR <string>
Direct MV prediction mode ["spatial"]
\- none, spatial, temporal, auto
.TP
\fB\-\-no\-weightb\fR
Disable weighted prediction for B\-frames
.TP
\fB\-\-weightp\fR <integer>
Weighted prediction for P\-frames [2]
\- 0: Disabled
\- 1: Weighted refs
\- 2: Weighted refs + Duplicates
.TP
\fB\-\-me\fR <string>
Integer pixel motion estimation method ["hex"]
\- dia: diamond search, radius 1 (fast)
\- hex: hexagonal search, radius 2
\- umh: uneven multi\-hexagon search
\- esa: exhaustive search
\- tesa: hadamard exhaustive search (slow)
.TP
\fB\-\-merange\fR <integer>
Maximum motion vector search range [16]
.TP
\fB\-\-mvrange\fR <integer>
Maximum motion vector length [\-1 (auto)]
.TP
\fB\-\-mvrange\-thread\fR <int>
Minimum buffer between threads [\-1 (auto)]
.TP
\fB\-m\fR, \fB\-\-subme\fR <integer>
Subpixel motion estimation and mode decision [7]
\- 0: fullpel only (not recommended)
\- 1: SAD mode decision, one qpel iteration
\- 2: SATD mode decision
\- 3\-5: Progressively more qpel
\- 6: RD mode decision for I/P\-frames
\- 7: RD mode decision for all frames
\- 8: RD refinement for I/P\-frames
\- 9: RD refinement for all frames
\- 10: QP\-RD \- requires trellis=2, aq\-mode>0
\- 11: Full RD: disable all early terminations
.TP
\fB\-\-psy\-rd\fR <float:float>
Strength of psychovisual optimization ["1.0:0.0"]
#1: RD (requires subme>=6)
#2: Trellis (requires trellis, experimental)
.TP
\fB\-\-no\-psy\fR
Disable all visual optimizations that worsen
both PSNR and SSIM.
.TP
\fB\-\-no\-mixed\-refs\fR
Don't decide references on a per partition basis
.TP
\fB\-\-no\-chroma\-me\fR
Ignore chroma in motion estimation
.TP
\fB\-\-no\-8x8dct\fR
Disable adaptive spatial transform size
.TP
\fB\-t\fR, \fB\-\-trellis\fR <integer>
Trellis RD quantization. [1]
\- 0: disabled
\- 1: enabled only on the final encode of a MB
\- 2: enabled on all mode decisions
.TP
\fB\-\-no\-fast\-pskip\fR
Disables early SKIP detection on P\-frames
.TP
\fB\-\-no\-dct\-decimate\fR
Disables coefficient thresholding on P\-frames
.TP
\fB\-\-nr\fR <integer>
Noise reduction [0]
.TP
\fB\-\-deadzone\-inter\fR <int>
Set the size of the inter luma quantization deadzone [21]
.TP
\fB\-\-deadzone\-intra\fR <int>
Set the size of the intra luma quantization deadzone [11]
Deadzones should be in the range 0 \- 32.
.TP
\fB\-\-cqm\fR <string>
Preset quant matrices ["flat"]
\- jvt, flat
.TP
\fB\-\-cqmfile\fR <string>
Read custom quant matrices from a JM\-compatible file
Overrides any other \fB\-\-cqm\fR* options.
.TP
\fB\-\-cqm4\fR <list>
Set all 4x4 quant matrices
Takes a comma\-separated list of 16 integers.
.TP
\fB\-\-cqm8\fR <list>
Set all 8x8 quant matrices
Takes a comma\-separated list of 64 integers.
.TP
\fB\-\-cqm4i\fR, \fB\-\-cqm4p\fR, \fB\-\-cqm8i\fR, \fB\-\-cqm8p\fR <list>
Set both luma and chroma quant matrices
.TP
\fB\-\-cqm4iy\fR, \fB\-\-cqm4ic\fR, \fB\-\-cqm4py\fR, \fB\-\-cqm4pc\fR <list>
Set individual quant matrices
.PP
Video Usability Info (Annex E):
The VUI settings are not used by the encoder but are merely suggestions to
the playback equipment. See doc/vui.txt for details. Use at your own risk.
.TP
\fB\-\-overscan\fR <string>
Specify crop overscan setting ["undef"]
\- undef, show, crop
.TP
\fB\-\-videoformat\fR <string>
Specify video format ["undef"]
\- component, pal, ntsc, secam, mac, undef
.TP
\fB\-\-range\fR <string>
Specify color range ["auto"]
\- auto, tv, pc
.TP
\fB\-\-colorprim\fR <string>
Specify color primaries ["undef"]
\- undef, bt709, bt470m, bt470bg, smpte170m,
.TP
smpte240m, film, bt2020, smpte428,
smpte431, smpte432
.TP
\fB\-\-transfer\fR <string>
Specify transfer characteristics ["undef"]
\- undef, bt709, bt470m, bt470bg, smpte170m,
.TP
smpte240m, linear, log100, log316,
iec61966\-2\-4, bt1361e, iec61966\-2\-1,
bt2020\-10, bt2020\-12, smpte2084, smpte428,
arib\-std\-b67
.TP
\fB\-\-colormatrix\fR <string>
Specify color matrix setting ["???"]
\- undef, bt709, fcc, bt470bg, smpte170m,
.TP
smpte240m, GBR, YCgCo, bt2020nc, bt2020c,
smpte2085, chroma\-derived\-nc,
chroma\-derived\-c, ICtCp
.TP
\fB\-\-chromaloc\fR <integer>
Specify chroma sample location (0 to 5) [0]
.TP
\fB\-\-alternative\-transfer\fR <string> Specify an alternative transfer
characteristics ["undef"]
.IP
\- same values as \fB\-\-transfer\fR
.TP
\fB\-\-nal\-hrd\fR <string>
Signal HRD information (requires vbv\-bufsize)
\- none, vbr, cbr (cbr not allowed in .mp4)
.TP
\fB\-\-filler\fR
Force hard\-CBR and generate filler (implied by
\fB\-\-nal\-hrd\fR cbr)
.TP
\fB\-\-pic\-struct\fR
Force pic_struct in Picture Timing SEI
.TP
\fB\-\-crop\-rect\fR <string>
Add 'left,top,right,bottom' to the bitstream\-level
cropping rectangle
.PP
Input/Output:
.TP
\fB\-o\fR, \fB\-\-output\fR <string>
Specify output file
.TP
\fB\-\-muxer\fR <string>
Specify output container format ["auto"]
\- auto, raw, mkv, flv, mp4
.TP
\fB\-\-demuxer\fR <string>
Specify input container format ["auto"]
\- auto, raw, y4m, avs, lavf, ffms
.TP
\fB\-\-input\-fmt\fR <string>
Specify input file format (requires lavf support)
.TP
\fB\-\-input\-csp\fR <string>
Specify input colorspace format for raw input
\- valid csps for `raw' demuxer:
.TP
i420, yv12, nv12, nv21, i422, yv16, nv16, yuyv,
uyvy, i444, yv24, bgr, bgra, rgb
.TP
\- valid csps for `lavf' demuxer:
yuv420p, yuyv422, rgb24, bgr24, yuv422p,
yuv444p, yuv410p, yuv411p, gray, monow, monob,
pal8, yuvj420p, yuvj422p, yuvj444p, uyvy422,
uyyvyy411, bgr8, bgr4, bgr4_byte, rgb8, rgb4,
rgb4_byte, nv12, nv21, argb, rgba, abgr, bgra,
gray16be, gray16le, yuv440p, yuvj440p,
yuva420p, rgb48be, rgb48le, rgb565be, rgb565le,
rgb555be, rgb555le, bgr565be, bgr565le,
bgr555be, bgr555le, vaapi_moco, vaapi_idct,
vaapi_vld, yuv420p16le, yuv420p16be,
yuv422p16le, yuv422p16be, yuv444p16le,
yuv444p16be, dxva2_vld, rgb444le, rgb444be,
bgr444le, bgr444be, ya8, bgr48be, bgr48le,
yuv420p9be, yuv420p9le, yuv420p10be,
yuv420p10le, yuv422p10be, yuv422p10le,
yuv444p9be, yuv444p9le, yuv444p10be,
yuv444p10le, yuv422p9be, yuv422p9le, gbrp,
gbrp9be, gbrp9le, gbrp10be, gbrp10le, gbrp16be,
gbrp16le, yuva422p, yuva444p, yuva420p9be,
yuva420p9le, yuva422p9be, yuva422p9le,
yuva444p9be, yuva444p9le, yuva420p10be,
yuva420p10le, yuva422p10be, yuva422p10le,
yuva444p10be, yuva444p10le, yuva420p16be,
yuva420p16le, yuva422p16be, yuva422p16le,
yuva444p16be, yuva444p16le, vdpau, xyz12le,
xyz12be, nv16, nv20le, nv20be, rgba64be,
rgba64le, bgra64be, bgra64le, yvyu422, ya16be,
ya16le, gbrap, gbrap16be, gbrap16le, qsv, mmal,
d3d11va_vld, cuda, 0rgb, rgb0, 0bgr, bgr0,
yuv420p12be, yuv420p12le, yuv420p14be,
yuv420p14le, yuv422p12be, yuv422p12le,
yuv422p14be, yuv422p14le, yuv444p12be,
yuv444p12le, yuv444p14be, yuv444p14le,
gbrp12be, gbrp12le, gbrp14be, gbrp14le,
yuvj411p, bayer_bggr8, bayer_rggb8,
bayer_gbrg8, bayer_grbg8, bayer_bggr16le,
bayer_bggr16be, bayer_rggb16le, bayer_rggb16be,
bayer_gbrg16le, bayer_gbrg16be, bayer_grbg16le,
bayer_grbg16be, xvmc, yuv440p10le, yuv440p10be,
yuv440p12le, yuv440p12be, ayuv64le, ayuv64be,
videotoolbox_vld, p010le, p010be, gbrap12be,
gbrap12le, gbrap10be, gbrap10le, mediacodec,
gray12be, gray12le, gray10be, gray10le, p016le,
p016be, d3d11, gray9be, gray9le, gbrpf32be,
gbrpf32le, gbrapf32be, gbrapf32le, drm_prime,
opencl
.TP
\fB\-\-output\-csp\fR <string>
Specify output colorspace ["i420"]
\- i420, i422, i444, rgb
.HP
\fB\-\-input\-depth\fR <integer> Specify input bit depth for raw input
.HP
\fB\-\-output\-depth\fR <integer> Specify output bit depth
.TP
\fB\-\-input\-range\fR <string>
Specify input color range ["auto"]
\- auto, tv, pc
.TP
\fB\-\-input\-res\fR <intxint>
Specify input resolution (width x height)
.TP
\fB\-\-index\fR <string>
Filename for input index file
.TP
\fB\-\-sar\fR width:height
Specify Sample Aspect Ratio
.TP
\fB\-\-fps\fR <float|rational>
Specify framerate
.TP
\fB\-\-seek\fR <integer>
First frame to encode
.TP
\fB\-\-frames\fR <integer>
Maximum number of frames to encode
.TP
\fB\-\-level\fR <string>
Specify level (as defined by Annex A)
.TP
\fB\-\-bluray\-compat\fR
Enable compatibility hacks for Blu\-ray support
.TP
\fB\-\-avcintra\-class\fR <integer> Use compatibility hacks for AVC\-Intra class
\- 50, 100, 200
.TP
\fB\-\-stitchable\fR
Don't optimize headers based on video content
Ensures ability to recombine a segmented encode
.TP
\fB\-v\fR, \fB\-\-verbose\fR
Print stats for each frame
.TP
\fB\-\-no\-progress\fR
Don't show the progress indicator while encoding
.TP
\fB\-\-quiet\fR
Quiet Mode
.TP
\fB\-\-log\-level\fR <string>
Specify the maximum level of logging ["info"]
\- none, error, warning, info, debug
.TP
\fB\-\-psnr\fR
Enable PSNR computation
.TP
\fB\-\-ssim\fR
Enable SSIM computation
.TP
\fB\-\-threads\fR <integer>
Force a specific number of threads
.HP
\fB\-\-lookahead\-threads\fR <integer> Force a specific number of lookahead threads
.TP
\fB\-\-sliced\-threads\fR
Low\-latency but lower\-efficiency threading
.TP
\fB\-\-thread\-input\fR
Run Avisynth in its own thread
.HP
\fB\-\-sync\-lookahead\fR <integer> Number of buffer frames for threaded lookahead
.TP
\fB\-\-non\-deterministic\fR
Slightly improve quality of SMP, at the cost of repeatability
.TP
\fB\-\-cpu\-independent\fR
Ensure exact reproducibility across different cpus,
as opposed to letting them select different algorithms
.TP
\fB\-\-asm\fR <integer>
Override CPU detection
.TP
\fB\-\-no\-asm\fR
Disable all CPU optimizations
.TP
\fB\-\-opencl\fR
Enable use of OpenCL
.HP
\fB\-\-opencl\-clbin\fR <string> Specify path of compiled OpenCL kernel cache
.HP
\fB\-\-opencl\-device\fR <integer> Specify OpenCL device ordinal
.TP
\fB\-\-dump\-yuv\fR <string>
Save reconstructed frames
.TP
\fB\-\-sps\-id\fR <integer>
Set SPS and PPS id numbers [0]
.TP
\fB\-\-aud\fR
Use access unit delimiters
.TP
\fB\-\-force\-cfr\fR
Force constant framerate timestamp generation
.TP
\fB\-\-tcfile\-in\fR <string>
Force timestamp generation with timecode file
.TP
\fB\-\-tcfile\-out\fR <string>
Output timecode v2 file from input timestamps
.TP
\fB\-\-timebase\fR <int/int>
Specify timebase numerator and denominator
.TP
<integer>
Specify timebase numerator for input timecode file
or specify timebase denominator for other input
.TP
\fB\-\-dts\-compress\fR
Eliminate initial delay with container DTS hack
.PP
Filtering:
.HP
\fB\-\-vf\fR, \fB\-\-video\-filter\fR <filter0>/<filter1>/... Apply video filtering to the input file
.IP
Filter options may be specified in <filter>:<option>=<value> format.
.IP
Available filters:
crop:left,top,right,bottom
.IP
removes pixels from the edges of the frame
.IP
resize:[width,height][,sar][,fittobox][,csp][,method]
.IP
resizes frames based on the given criteria:
\- resolution only: resizes and adapts sar to avoid stretching
\- sar only: sets the sar and resizes to avoid stretching
\- resolution and sar: resizes to given resolution and sets the sar
\- fittobox: resizes the video based on the desired constraints
.IP
\- width, height, both
.IP
\- fittobox and sar: same as above except with specified sar
\- csp: convert to the given csp. syntax: [name][:depth]
.IP
\- valid csp names [keep current]: i420, yv12, nv12, nv21, i422, yv16, nv16, yuyv, uyvy, i444, yv24, bgr, bgra, rgb
\- depth: 8 or 16 bits per pixel [keep current]
.IP
note: not all depths are supported by all csps.
\- method: use resizer method ["bicubic"]
.IP
\- fastbilinear, bilinear, bicubic, experimental, point,
\- area, bicublin, gauss, sinc, lanczos, spline
.IP
select_every:step,offset1[,...]
.IP
apply a selection pattern to input frames
step: the number of frames in the pattern
offsets: the offset into the step to select a frame
see: http://avisynth.nl/index.php/Select#SelectEvery
.PP
(libswscale 5.1.100)
(libavformat 58.12.100)
(ffmpegsource 2.23.0.0)
built on Aug 24 2018, gcc: 8.2.0
x264 configuration: \fB\-\-chroma\-format\fR=\fI\,all\/\fR
libx264 configuration: \fB\-\-chroma\-format\fR=\fI\,all\/\fR
x264 license: GPL version 2 or later
libswscale/libavformat/ffmpegsource license: GPL version 2 or later