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
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
<head>
<meta charset="utf-8">
<title>
FFmpeg Codecs Documentation
</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="style.min.css">
</head>
<body>
<div class="container">
<h1>
FFmpeg Codecs Documentation
</h1>
<div align="center">
</div>
<a name="SEC_Top"></a>
<div class="Contents_element" id="SEC_Contents">
<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
<ul class="no-bullet">
<li><a id="toc-Description" href="#Description">1 Description</a></li>
<li><a id="toc-Codec-Options" href="#Codec-Options">2 Codec Options</a></li>
<li><a id="toc-Decoders" href="#Decoders">3 Decoders</a></li>
<li><a id="toc-Video-Decoders" href="#Video-Decoders">4 Video Decoders</a>
<ul class="no-bullet">
<li><a id="toc-av1" href="#av1">4.1 av1</a>
<ul class="no-bullet">
<li><a id="toc-Options" href="#Options">4.1.1 Options</a></li>
</ul></li>
<li><a id="toc-rawvideo" href="#rawvideo">4.2 rawvideo</a>
<ul class="no-bullet">
<li><a id="toc-Options-1" href="#Options-1">4.2.1 Options</a></li>
</ul></li>
<li><a id="toc-libdav1d" href="#libdav1d">4.3 libdav1d</a>
<ul class="no-bullet">
<li><a id="toc-Options-2" href="#Options-2">4.3.1 Options</a></li>
</ul></li>
<li><a id="toc-libdavs2" href="#libdavs2">4.4 libdavs2</a></li>
<li><a id="toc-libuavs3d" href="#libuavs3d">4.5 libuavs3d</a>
<ul class="no-bullet">
<li><a id="toc-Options-3" href="#Options-3">4.5.1 Options</a></li>
</ul></li>
<li><a id="toc-QSV-Decoders" href="#QSV-Decoders">4.6 QSV Decoders</a>
<ul class="no-bullet">
<li><a id="toc-Common-Options" href="#Common-Options">4.6.1 Common Options</a></li>
<li><a id="toc-HEVC-Options" href="#HEVC-Options">4.6.2 HEVC Options</a></li>
</ul></li>
<li><a id="toc-v210" href="#v210">4.7 v210</a>
<ul class="no-bullet">
<li><a id="toc-Options-4" href="#Options-4">4.7.1 Options</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Audio-Decoders" href="#Audio-Decoders">5 Audio Decoders</a>
<ul class="no-bullet">
<li><a id="toc-ac3" href="#ac3">5.1 ac3</a>
<ul class="no-bullet">
<li><a id="toc-AC_002d3-Decoder-Options" href="#AC_002d3-Decoder-Options">5.1.1 AC-3 Decoder Options</a></li>
</ul></li>
<li><a id="toc-flac-1" href="#flac-1">5.2 flac</a>
<ul class="no-bullet">
<li><a id="toc-FLAC-Decoder-options" href="#FLAC-Decoder-options">5.2.1 FLAC Decoder options</a></li>
</ul></li>
<li><a id="toc-ffwavesynth" href="#ffwavesynth">5.3 ffwavesynth</a></li>
<li><a id="toc-libcelt" href="#libcelt">5.4 libcelt</a></li>
<li><a id="toc-libgsm" href="#libgsm">5.5 libgsm</a></li>
<li><a id="toc-libilbc" href="#libilbc">5.6 libilbc</a>
<ul class="no-bullet">
<li><a id="toc-Options-5" href="#Options-5">5.6.1 Options</a></li>
</ul></li>
<li><a id="toc-libopencore_002damrnb" href="#libopencore_002damrnb">5.7 libopencore-amrnb</a></li>
<li><a id="toc-libopencore_002damrwb" href="#libopencore_002damrwb">5.8 libopencore-amrwb</a></li>
<li><a id="toc-libopus" href="#libopus">5.9 libopus</a></li>
</ul></li>
<li><a id="toc-Subtitles-Decoders" href="#Subtitles-Decoders">6 Subtitles Decoders</a>
<ul class="no-bullet">
<li><a id="toc-libaribb24" href="#libaribb24">6.1 libaribb24</a>
<ul class="no-bullet">
<li><a id="toc-libaribb24-Decoder-Options" href="#libaribb24-Decoder-Options">6.1.1 libaribb24 Decoder Options</a></li>
</ul></li>
<li><a id="toc-dvbsub" href="#dvbsub">6.2 dvbsub</a>
<ul class="no-bullet">
<li><a id="toc-Options-6" href="#Options-6">6.2.1 Options</a></li>
</ul></li>
<li><a id="toc-dvdsub" href="#dvdsub">6.3 dvdsub</a>
<ul class="no-bullet">
<li><a id="toc-Options-7" href="#Options-7">6.3.1 Options</a></li>
</ul></li>
<li><a id="toc-libzvbi_002dteletext" href="#libzvbi_002dteletext">6.4 libzvbi-teletext</a>
<ul class="no-bullet">
<li><a id="toc-Options-8" href="#Options-8">6.4.1 Options</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Encoders" href="#Encoders">7 Encoders</a></li>
<li><a id="toc-Audio-Encoders" href="#Audio-Encoders">8 Audio Encoders</a>
<ul class="no-bullet">
<li><a id="toc-aac" href="#aac">8.1 aac</a>
<ul class="no-bullet">
<li><a id="toc-Options-9" href="#Options-9">8.1.1 Options</a></li>
</ul></li>
<li><a id="toc-ac3-and-ac3_005ffixed" href="#ac3-and-ac3_005ffixed">8.2 ac3 and ac3_fixed</a>
<ul class="no-bullet">
<li><a id="toc-AC_002d3-Metadata" href="#AC_002d3-Metadata">8.2.1 AC-3 Metadata</a>
<ul class="no-bullet">
<li><a id="toc-Metadata-Control-Options" href="#Metadata-Control-Options">8.2.1.1 Metadata Control Options</a></li>
<li><a id="toc-Downmix-Levels" href="#Downmix-Levels">8.2.1.2 Downmix Levels</a></li>
<li><a id="toc-Audio-Production-Information" href="#Audio-Production-Information">8.2.1.3 Audio Production Information</a></li>
<li><a id="toc-Other-Metadata-Options" href="#Other-Metadata-Options">8.2.1.4 Other Metadata Options</a></li>
</ul></li>
<li><a id="toc-Extended-Bitstream-Information" href="#Extended-Bitstream-Information">8.2.2 Extended Bitstream Information</a>
<ul class="no-bullet">
<li><a id="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>
<li><a id="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>
</ul></li>
<li><a id="toc-Other-AC_002d3-Encoding-Options" href="#Other-AC_002d3-Encoding-Options">8.2.3 Other AC-3 Encoding Options</a></li>
<li><a id="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>
</ul></li>
<li><a id="toc-flac-2" href="#flac-2">8.3 flac</a>
<ul class="no-bullet">
<li><a id="toc-Options-10" href="#Options-10">8.3.1 Options</a></li>
</ul></li>
<li><a id="toc-opus" href="#opus">8.4 opus</a>
<ul class="no-bullet">
<li><a id="toc-Options-11" href="#Options-11">8.4.1 Options</a></li>
</ul></li>
<li><a id="toc-libfdk_005faac" href="#libfdk_005faac">8.5 libfdk_aac</a>
<ul class="no-bullet">
<li><a id="toc-Options-12" href="#Options-12">8.5.1 Options</a></li>
<li><a id="toc-Examples" href="#Examples">8.5.2 Examples</a></li>
</ul></li>
<li><a id="toc-libmp3lame-1" href="#libmp3lame-1">8.6 libmp3lame</a>
<ul class="no-bullet">
<li><a id="toc-Options-13" href="#Options-13">8.6.1 Options</a></li>
</ul></li>
<li><a id="toc-libopencore_002damrnb-1" href="#libopencore_002damrnb-1">8.7 libopencore-amrnb</a>
<ul class="no-bullet">
<li><a id="toc-Options-14" href="#Options-14">8.7.1 Options</a></li>
</ul></li>
<li><a id="toc-libopus-1" href="#libopus-1">8.8 libopus</a>
<ul class="no-bullet">
<li><a id="toc-Option-Mapping" href="#Option-Mapping">8.8.1 Option Mapping</a></li>
</ul></li>
<li><a id="toc-libshine-1" href="#libshine-1">8.9 libshine</a>
<ul class="no-bullet">
<li><a id="toc-Options-15" href="#Options-15">8.9.1 Options</a></li>
</ul></li>
<li><a id="toc-libtwolame" href="#libtwolame">8.10 libtwolame</a>
<ul class="no-bullet">
<li><a id="toc-Options-16" href="#Options-16">8.10.1 Options</a></li>
</ul></li>
<li><a id="toc-libvo_002damrwbenc" href="#libvo_002damrwbenc">8.11 libvo-amrwbenc</a>
<ul class="no-bullet">
<li><a id="toc-Options-17" href="#Options-17">8.11.1 Options</a></li>
</ul></li>
<li><a id="toc-libvorbis" href="#libvorbis">8.12 libvorbis</a>
<ul class="no-bullet">
<li><a id="toc-Options-18" href="#Options-18">8.12.1 Options</a></li>
</ul></li>
<li><a id="toc-mjpeg" href="#mjpeg">8.13 mjpeg</a>
<ul class="no-bullet">
<li><a id="toc-Options-19" href="#Options-19">8.13.1 Options</a></li>
</ul></li>
<li><a id="toc-wavpack" href="#wavpack">8.14 wavpack</a>
<ul class="no-bullet">
<li><a id="toc-Options-20" href="#Options-20">8.14.1 Options</a>
<ul class="no-bullet">
<li><a id="toc-Shared-options" href="#Shared-options">8.14.1.1 Shared options</a></li>
<li><a id="toc-Private-options" href="#Private-options">8.14.1.2 Private options</a></li>
</ul></li>
</ul></li>
</ul></li>
<li><a id="toc-Video-Encoders" href="#Video-Encoders">9 Video Encoders</a>
<ul class="no-bullet">
<li><a id="toc-a64_005fmulti_002c-a64_005fmulti5" href="#a64_005fmulti_002c-a64_005fmulti5">9.1 a64_multi, a64_multi5</a></li>
<li><a id="toc-Cinepak" href="#Cinepak">9.2 Cinepak</a>
<ul class="no-bullet">
<li><a id="toc-Options-21" href="#Options-21">9.2.1 Options</a></li>
</ul></li>
<li><a id="toc-GIF" href="#GIF">9.3 GIF</a>
<ul class="no-bullet">
<li><a id="toc-Options-22" href="#Options-22">9.3.1 Options</a></li>
</ul></li>
<li><a id="toc-Hap" href="#Hap">9.4 Hap</a>
<ul class="no-bullet">
<li><a id="toc-Options-23" href="#Options-23">9.4.1 Options</a></li>
</ul></li>
<li><a id="toc-jpeg2000" href="#jpeg2000">9.5 jpeg2000</a>
<ul class="no-bullet">
<li><a id="toc-Options-24" href="#Options-24">9.5.1 Options</a></li>
</ul></li>
<li><a id="toc-librav1e" href="#librav1e">9.6 librav1e</a>
<ul class="no-bullet">
<li><a id="toc-Options-25" href="#Options-25">9.6.1 Options</a></li>
</ul></li>
<li><a id="toc-libaom_002dav1" href="#libaom_002dav1">9.7 libaom-av1</a>
<ul class="no-bullet">
<li><a id="toc-Options-26" href="#Options-26">9.7.1 Options</a></li>
</ul></li>
<li><a id="toc-libsvtav1" href="#libsvtav1">9.8 libsvtav1</a>
<ul class="no-bullet">
<li><a id="toc-Options-27" href="#Options-27">9.8.1 Options</a></li>
</ul></li>
<li><a id="toc-libjxl" href="#libjxl">9.9 libjxl</a>
<ul class="no-bullet">
<li><a id="toc-Options-28" href="#Options-28">9.9.1 Options</a></li>
</ul></li>
<li><a id="toc-libkvazaar" href="#libkvazaar">9.10 libkvazaar</a>
<ul class="no-bullet">
<li><a id="toc-Options-29" href="#Options-29">9.10.1 Options</a></li>
</ul></li>
<li><a id="toc-libopenh264" href="#libopenh264">9.11 libopenh264</a>
<ul class="no-bullet">
<li><a id="toc-Options-30" href="#Options-30">9.11.1 Options</a></li>
</ul></li>
<li><a id="toc-libtheora" href="#libtheora">9.12 libtheora</a>
<ul class="no-bullet">
<li><a id="toc-Options-31" href="#Options-31">9.12.1 Options</a></li>
<li><a id="toc-Examples-1" href="#Examples-1">9.12.2 Examples</a></li>
</ul></li>
<li><a id="toc-libvpx" href="#libvpx">9.13 libvpx</a>
<ul class="no-bullet">
<li><a id="toc-Options-32" href="#Options-32">9.13.1 Options</a></li>
</ul></li>
<li><a id="toc-libwebp" href="#libwebp">9.14 libwebp</a>
<ul class="no-bullet">
<li><a id="toc-Pixel-Format" href="#Pixel-Format">9.14.1 Pixel Format</a></li>
<li><a id="toc-Options-33" href="#Options-33">9.14.2 Options</a></li>
</ul></li>
<li><a id="toc-libx264_002c-libx264rgb" href="#libx264_002c-libx264rgb">9.15 libx264, libx264rgb</a>
<ul class="no-bullet">
<li><a id="toc-Supported-Pixel-Formats" href="#Supported-Pixel-Formats">9.15.1 Supported Pixel Formats</a></li>
<li><a id="toc-Options-34" href="#Options-34">9.15.2 Options</a></li>
</ul></li>
<li><a id="toc-libx265" href="#libx265">9.16 libx265</a>
<ul class="no-bullet">
<li><a id="toc-Options-35" href="#Options-35">9.16.1 Options</a></li>
</ul></li>
<li><a id="toc-libxavs2" href="#libxavs2">9.17 libxavs2</a>
<ul class="no-bullet">
<li><a id="toc-Options-36" href="#Options-36">9.17.1 Options</a></li>
</ul></li>
<li><a id="toc-libxvid" href="#libxvid">9.18 libxvid</a>
<ul class="no-bullet">
<li><a id="toc-Options-37" href="#Options-37">9.18.1 Options</a></li>
</ul></li>
<li><a id="toc-MediaFoundation" href="#MediaFoundation">9.19 MediaFoundation</a></li>
<li><a id="toc-mpeg2" href="#mpeg2">9.20 mpeg2</a>
<ul class="no-bullet">
<li><a id="toc-Options-38" href="#Options-38">9.20.1 Options</a></li>
</ul></li>
<li><a id="toc-png" href="#png">9.21 png</a>
<ul class="no-bullet">
<li><a id="toc-Private-options-1" href="#Private-options-1">9.21.1 Private options</a></li>
</ul></li>
<li><a id="toc-ProRes" href="#ProRes">9.22 ProRes</a>
<ul class="no-bullet">
<li><a id="toc-Private-Options-for-prores_002dks" href="#Private-Options-for-prores_002dks">9.22.1 Private Options for prores-ks</a></li>
<li><a id="toc-Speed-considerations" href="#Speed-considerations">9.22.2 Speed considerations</a></li>
</ul></li>
<li><a id="toc-QSV-Encoders" href="#QSV-Encoders">9.23 QSV Encoders</a>
<ul class="no-bullet">
<li><a id="toc-Ratecontrol-Method" href="#Ratecontrol-Method">9.23.1 Ratecontrol Method</a></li>
<li><a id="toc-Global-Options-_002d_003e-MSDK-Options" href="#Global-Options-_002d_003e-MSDK-Options">9.23.2 Global Options -> MSDK Options</a></li>
<li><a id="toc-Common-Options-1" href="#Common-Options-1">9.23.3 Common Options</a></li>
<li><a id="toc-Runtime-Options" href="#Runtime-Options">9.23.4 Runtime Options</a></li>
<li><a id="toc-H264-options" href="#H264-options">9.23.5 H264 options</a></li>
<li><a id="toc-HEVC-Options-1" href="#HEVC-Options-1">9.23.6 HEVC Options</a></li>
<li><a id="toc-MPEG2-Options" href="#MPEG2-Options">9.23.7 MPEG2 Options</a></li>
<li><a id="toc-VP9-Options" href="#VP9-Options">9.23.8 VP9 Options</a></li>
<li><a id="toc-AV1-Options" href="#AV1-Options">9.23.9 AV1 Options</a></li>
</ul></li>
<li><a id="toc-snow" href="#snow">9.24 snow</a>
<ul class="no-bullet">
<li><a id="toc-Options-39" href="#Options-39">9.24.1 Options</a></li>
</ul></li>
<li><a id="toc-VAAPI-encoders" href="#VAAPI-encoders">9.25 VAAPI encoders</a></li>
<li><a id="toc-vbn" href="#vbn">9.26 vbn</a>
<ul class="no-bullet">
<li><a id="toc-Options-40" href="#Options-40">9.26.1 Options</a></li>
</ul></li>
<li><a id="toc-vc2" href="#vc2">9.27 vc2</a>
<ul class="no-bullet">
<li><a id="toc-Options-41" href="#Options-41">9.27.1 Options</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Subtitles-Encoders" href="#Subtitles-Encoders">10 Subtitles Encoders</a>
<ul class="no-bullet">
<li><a id="toc-dvdsub-1" href="#dvdsub-1">10.1 dvdsub</a>
<ul class="no-bullet">
<li><a id="toc-Options-42" href="#Options-42">10.1.1 Options</a></li>
</ul></li>
</ul></li>
<li><a id="toc-See-Also" href="#See-Also">11 See Also</a></li>
<li><a id="toc-Authors" href="#Authors">12 Authors</a></li>
</ul>
</div>
</div>
<a name="Description"></a>
<h2 class="chapter">1 Description<span class="pull-right"><a class="anchor hidden-xs" href="#Description" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Description" aria-hidden="true">TOC</a></span></h2>
<p>This document describes the codecs (decoders and encoders) provided by
the libavcodec library.
</p>
<span id="codec_002doptions"></span><a name="Codec-Options"></a>
<h2 class="chapter">2 Codec Options<span class="pull-right"><a class="anchor hidden-xs" href="#Codec-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Codec-Options" aria-hidden="true">TOC</a></span></h2>
<p>libavcodec provides some generic global options, which can be set on
all the encoders and decoders. In addition each codec may support
so-called private options, which are specific for a given codec.
</p>
<p>Sometimes, a global option may only affect a specific kind of codec,
and may be nonsensical or ignored by another, so you need to be aware
of the meaning of the specified options. Also some options are
meant only for decoding or encoding.
</p>
<p>Options may be set by specifying -<var>option</var> <var>value</var> in the
FFmpeg tools, or by setting the value explicitly in the
<code>AVCodecContext</code> options or using the <samp>libavutil/opt.h</samp> API
for programmatic use.
</p>
<p>The list of supported options follow:
</p>
<dl compact="compact">
<dt><span><samp>b <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd><p>Set bitrate in bits/s. Default value is 200K.
</p>
</dd>
<dt><span><samp>ab <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
<dd><p>Set audio bitrate (in bits/s). Default value is 128K.
</p>
</dd>
<dt><span><samp>bt <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate
tolerance specifies how far ratecontrol is willing to deviate from the
target average bitrate value. This is not related to min/max
bitrate. Lowering tolerance too much has an adverse effect on quality.
</p>
</dd>
<dt><span><samp>flags <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
<dd><p>Set generic flags.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>mv4</samp>’</span></dt>
<dd><p>Use four motion vector by macroblock (mpeg4).
</p></dd>
<dt><span>‘<samp>qpel</samp>’</span></dt>
<dd><p>Use 1/4 pel motion compensation.
</p></dd>
<dt><span>‘<samp>loop</samp>’</span></dt>
<dd><p>Use loop filter.
</p></dd>
<dt><span>‘<samp>qscale</samp>’</span></dt>
<dd><p>Use fixed qscale.
</p></dd>
<dt><span>‘<samp>pass1</samp>’</span></dt>
<dd><p>Use internal 2pass ratecontrol in first pass mode.
</p></dd>
<dt><span>‘<samp>pass2</samp>’</span></dt>
<dd><p>Use internal 2pass ratecontrol in second pass mode.
</p></dd>
<dt><span>‘<samp>gray</samp>’</span></dt>
<dd><p>Only decode/encode grayscale.
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>Set error[?] variables during encoding.
</p></dd>
<dt><span>‘<samp>truncated</samp>’</span></dt>
<dd><p>Input bitstream might be randomly truncated.
</p></dd>
<dt><span>‘<samp>drop_changed</samp>’</span></dt>
<dd><p>Don’t output frames whose parameters differ from first decoded frame in stream.
Error AVERROR_INPUT_CHANGED is returned when a frame is dropped.
</p>
</dd>
<dt><span>‘<samp>ildct</samp>’</span></dt>
<dd><p>Use interlaced DCT.
</p></dd>
<dt><span>‘<samp>low_delay</samp>’</span></dt>
<dd><p>Force low delay.
</p></dd>
<dt><span>‘<samp>global_header</samp>’</span></dt>
<dd><p>Place global headers in extradata instead of every keyframe.
</p></dd>
<dt><span>‘<samp>bitexact</samp>’</span></dt>
<dd><p>Only write platform-, build- and time-independent data. (except (I)DCT).
This ensures that file and data checksums are reproducible and match between
platforms. Its primary use is for regression testing.
</p></dd>
<dt><span>‘<samp>aic</samp>’</span></dt>
<dd><p>Apply H263 advanced intra coding / mpeg4 ac prediction.
</p></dd>
<dt><span>‘<samp>ilme</samp>’</span></dt>
<dd><p>Apply interlaced motion estimation.
</p></dd>
<dt><span>‘<samp>cgop</samp>’</span></dt>
<dd><p>Use closed gop.
</p></dd>
<dt><span>‘<samp>output_corrupt</samp>’</span></dt>
<dd><p>Output even potentially corrupted frames.
</p></dd>
</dl>
</dd>
<dt><span><samp>time_base <var>rational number</var></samp></span></dt>
<dd><p>Set codec time base.
</p>
<p>It is the fundamental unit of time (in seconds) in terms of which
frame timestamps are represented. For fixed-fps content, timebase
should be <code>1 / frame_rate</code> and timestamp increments should be
identically 1.
</p>
</dd>
<dt><span><samp>g <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set the group of picture (GOP) size. Default value is 12.
</p>
</dd>
<dt><span><samp>ar <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
<dd><p>Set audio sampling rate (in Hz).
</p>
</dd>
<dt><span><samp>ac <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
<dd><p>Set number of audio channels.
</p>
</dd>
<dt><span><samp>cutoff <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
<dd><p>Set cutoff bandwidth. (Supported only by selected encoders, see
their respective documentation sections.)
</p>
</dd>
<dt><span><samp>frame_size <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
<dd><p>Set audio frame size.
</p>
<p>Each submitted frame except the last must contain exactly frame_size
samples per channel. May be 0 when the codec has
CODEC_CAP_VARIABLE_FRAME_SIZE set, in that case the frame size is not
restricted. It is set by some decoders to indicate constant frame
size.
</p>
</dd>
<dt><span><samp>frame_number <var>integer</var></samp></span></dt>
<dd><p>Set the frame number.
</p>
</dd>
<dt><span><samp>delay <var>integer</var></samp></span></dt>
<dt><span><samp>qcomp <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set video quantizer scale compression (VBR). It is used as a constant
in the ratecontrol equation. Recommended range for default rc_eq:
0.0-1.0.
</p>
</dd>
<dt><span><samp>qblur <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set video quantizer scale blur (VBR).
</p>
</dd>
<dt><span><samp>qmin <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set min video quantizer scale (VBR). Must be included between -1 and
69, default value is 2.
</p>
</dd>
<dt><span><samp>qmax <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set max video quantizer scale (VBR). Must be included between -1 and
1024, default value is 31.
</p>
</dd>
<dt><span><samp>qdiff <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set max difference between the quantizer scale (VBR).
</p>
</dd>
<dt><span><samp>bf <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set max number of B frames between non-B-frames.
</p>
<p>Must be an integer between -1 and 16. 0 means that B-frames are
disabled. If a value of -1 is used, it will choose an automatic value
depending on the encoder.
</p>
<p>Default value is 0.
</p>
</dd>
<dt><span><samp>b_qfactor <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set qp factor between P and B frames.
</p>
</dd>
<dt><span><samp>codec_tag <var>integer</var></samp></span></dt>
<dt><span><samp>bug <var>flags</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Workaround not auto detected encoder bugs.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>autodetect</samp>’</span></dt>
<dt><span>‘<samp>xvid_ilace</samp>’</span></dt>
<dd><p>Xvid interlacing bug (autodetected if fourcc==XVIX)
</p></dd>
<dt><span>‘<samp>ump4</samp>’</span></dt>
<dd><p>(autodetected if fourcc==UMP4)
</p></dd>
<dt><span>‘<samp>no_padding</samp>’</span></dt>
<dd><p>padding bug (autodetected)
</p></dd>
<dt><span>‘<samp>amv</samp>’</span></dt>
<dt><span>‘<samp>qpel_chroma</samp>’</span></dt>
<dt><span>‘<samp>std_qpel</samp>’</span></dt>
<dd><p>old standard qpel (autodetected per fourcc/version)
</p></dd>
<dt><span>‘<samp>qpel_chroma2</samp>’</span></dt>
<dt><span>‘<samp>direct_blocksize</samp>’</span></dt>
<dd><p>direct-qpel-blocksize bug (autodetected per fourcc/version)
</p></dd>
<dt><span>‘<samp>edge</samp>’</span></dt>
<dd><p>edge padding bug (autodetected per fourcc/version)
</p></dd>
<dt><span>‘<samp>hpel_chroma</samp>’</span></dt>
<dt><span>‘<samp>dc_clip</samp>’</span></dt>
<dt><span>‘<samp>ms</samp>’</span></dt>
<dd><p>Workaround various bugs in microsoft broken decoders.
</p></dd>
<dt><span>‘<samp>trunc</samp>’</span></dt>
<dd><p>trancated frames
</p></dd>
</dl>
</dd>
<dt><span><samp>strict <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></span></dt>
<dd><p>Specify how strictly to follow the standards.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>very</samp>’</span></dt>
<dd><p>strictly conform to an older more strict version of the spec or reference software
</p></dd>
<dt><span>‘<samp>strict</samp>’</span></dt>
<dd><p>strictly conform to all the things in the spec no matter what consequences
</p></dd>
<dt><span>‘<samp>normal</samp>’</span></dt>
<dt><span>‘<samp>unofficial</samp>’</span></dt>
<dd><p>allow unofficial extensions
</p></dd>
<dt><span>‘<samp>experimental</samp>’</span></dt>
<dd><p>allow non standardized experimental things, experimental
(unfinished/work in progress/not well tested) decoders and encoders.
Note: experimental decoders can pose a security risk, do not use this for
decoding untrusted input.
</p></dd>
</dl>
</dd>
<dt><span><samp>b_qoffset <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set QP offset between P and B frames.
</p>
</dd>
<dt><span><samp>err_detect <var>flags</var> (<em>decoding,audio,video</em>)</samp></span></dt>
<dd><p>Set error detection flags.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>crccheck</samp>’</span></dt>
<dd><p>verify embedded CRCs
</p></dd>
<dt><span>‘<samp>bitstream</samp>’</span></dt>
<dd><p>detect bitstream specification deviations
</p></dd>
<dt><span>‘<samp>buffer</samp>’</span></dt>
<dd><p>detect improper bitstream length
</p></dd>
<dt><span>‘<samp>explode</samp>’</span></dt>
<dd><p>abort decoding on minor error detection
</p></dd>
<dt><span>‘<samp>ignore_err</samp>’</span></dt>
<dd><p>ignore decoding errors, and continue decoding.
This is useful if you want to analyze the content of a video and thus want
everything to be decoded no matter what. This option will not result in a video
that is pleasing to watch in case of errors.
</p></dd>
<dt><span>‘<samp>careful</samp>’</span></dt>
<dd><p>consider things that violate the spec and have not been seen in the wild as errors
</p></dd>
<dt><span>‘<samp>compliant</samp>’</span></dt>
<dd><p>consider all spec non compliancies as errors
</p></dd>
<dt><span>‘<samp>aggressive</samp>’</span></dt>
<dd><p>consider things that a sane encoder should not do as an error
</p></dd>
</dl>
</dd>
<dt><span><samp>has_b_frames <var>integer</var></samp></span></dt>
<dt><span><samp>block_align <var>integer</var></samp></span></dt>
<dt><span><samp>rc_override_count <var>integer</var></samp></span></dt>
<dt><span><samp>maxrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd><p>Set max bitrate tolerance (in bits/s). Requires bufsize to be set.
</p>
</dd>
<dt><span><samp>minrate <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd><p>Set min bitrate tolerance (in bits/s). Most useful in setting up a CBR
encode. It is of little use elsewise.
</p>
</dd>
<dt><span><samp>bufsize <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd><p>Set ratecontrol buffer size (in bits).
</p>
</dd>
<dt><span><samp>i_qfactor <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set QP factor between P and I frames.
</p>
</dd>
<dt><span><samp>i_qoffset <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set QP offset between P and I frames.
</p>
</dd>
<dt><span><samp>dct <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set DCT algorithm.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>auto</samp>’</span></dt>
<dd><p>autoselect a good one (default)
</p></dd>
<dt><span>‘<samp>fastint</samp>’</span></dt>
<dd><p>fast integer
</p></dd>
<dt><span>‘<samp>int</samp>’</span></dt>
<dd><p>accurate integer
</p></dd>
<dt><span>‘<samp>mmx</samp>’</span></dt>
<dt><span>‘<samp>altivec</samp>’</span></dt>
<dt><span>‘<samp>faan</samp>’</span></dt>
<dd><p>floating point AAN DCT
</p></dd>
</dl>
</dd>
<dt><span><samp>lumi_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Compress bright areas stronger than medium ones.
</p>
</dd>
<dt><span><samp>tcplx_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set temporal complexity masking.
</p>
</dd>
<dt><span><samp>scplx_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set spatial complexity masking.
</p>
</dd>
<dt><span><samp>p_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set inter masking.
</p>
</dd>
<dt><span><samp>dark_mask <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Compress dark areas stronger than medium ones.
</p>
</dd>
<dt><span><samp>idct <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Select IDCT implementation.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>auto</samp>’</span></dt>
<dt><span>‘<samp>int</samp>’</span></dt>
<dt><span>‘<samp>simple</samp>’</span></dt>
<dt><span>‘<samp>simplemmx</samp>’</span></dt>
<dt><span>‘<samp>simpleauto</samp>’</span></dt>
<dd><p>Automatically pick a IDCT compatible with the simple one
</p>
</dd>
<dt><span>‘<samp>arm</samp>’</span></dt>
<dt><span>‘<samp>altivec</samp>’</span></dt>
<dt><span>‘<samp>sh4</samp>’</span></dt>
<dt><span>‘<samp>simplearm</samp>’</span></dt>
<dt><span>‘<samp>simplearmv5te</samp>’</span></dt>
<dt><span>‘<samp>simplearmv6</samp>’</span></dt>
<dt><span>‘<samp>simpleneon</samp>’</span></dt>
<dt><span>‘<samp>xvid</samp>’</span></dt>
<dt><span>‘<samp>faani</samp>’</span></dt>
<dd><p>floating point AAN IDCT
</p></dd>
</dl>
</dd>
<dt><span><samp>slice_count <var>integer</var></samp></span></dt>
<dt><span><samp>ec <var>flags</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Set error concealment strategy.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>guess_mvs</samp>’</span></dt>
<dd><p>iterative motion vector (MV) search (slow)
</p></dd>
<dt><span>‘<samp>deblock</samp>’</span></dt>
<dd><p>use strong deblock filter for damaged MBs
</p></dd>
<dt><span>‘<samp>favor_inter</samp>’</span></dt>
<dd><p>favor predicting from the previous frame instead of the current
</p></dd>
</dl>
</dd>
<dt><span><samp>bits_per_coded_sample <var>integer</var></samp></span></dt>
<dt><span><samp>aspect <var>rational number</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set sample aspect ratio.
</p>
</dd>
<dt><span><samp>sar <var>rational number</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set sample aspect ratio. Alias to <var>aspect</var>.
</p>
</dd>
<dt><span><samp>debug <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
<dd><p>Print specific debug info.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>pict</samp>’</span></dt>
<dd><p>picture info
</p></dd>
<dt><span>‘<samp>rc</samp>’</span></dt>
<dd><p>rate control
</p></dd>
<dt><span>‘<samp>bitstream</samp>’</span></dt>
<dt><span>‘<samp>mb_type</samp>’</span></dt>
<dd><p>macroblock (MB) type
</p></dd>
<dt><span>‘<samp>qp</samp>’</span></dt>
<dd><p>per-block quantization parameter (QP)
</p></dd>
<dt><span>‘<samp>dct_coeff</samp>’</span></dt>
<dt><span>‘<samp>green_metadata</samp>’</span></dt>
<dd><p>display complexity metadata for the upcoming frame, GoP or for a given duration.
</p>
</dd>
<dt><span>‘<samp>skip</samp>’</span></dt>
<dt><span>‘<samp>startcode</samp>’</span></dt>
<dt><span>‘<samp>er</samp>’</span></dt>
<dd><p>error recognition
</p></dd>
<dt><span>‘<samp>mmco</samp>’</span></dt>
<dd><p>memory management control operations (H.264)
</p></dd>
<dt><span>‘<samp>bugs</samp>’</span></dt>
<dt><span>‘<samp>buffers</samp>’</span></dt>
<dd><p>picture buffer allocations
</p></dd>
<dt><span>‘<samp>thread_ops</samp>’</span></dt>
<dd><p>threading operations
</p></dd>
<dt><span>‘<samp>nomc</samp>’</span></dt>
<dd><p>skip motion compensation
</p></dd>
</dl>
</dd>
<dt><span><samp>cmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set full pel me compare function.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>sum of absolute differences, fast (default)
</p></dd>
<dt><span>‘<samp>sse</samp>’</span></dt>
<dd><p>sum of squared errors
</p></dd>
<dt><span>‘<samp>satd</samp>’</span></dt>
<dd><p>sum of absolute Hadamard transformed differences
</p></dd>
<dt><span>‘<samp>dct</samp>’</span></dt>
<dd><p>sum of absolute DCT transformed differences
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>sum of squared quantization errors (avoid, low quality)
</p></dd>
<dt><span>‘<samp>bit</samp>’</span></dt>
<dd><p>number of bits needed for the block
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>rate distortion optimal, slow
</p></dd>
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>0
</p></dd>
<dt><span>‘<samp>vsad</samp>’</span></dt>
<dd><p>sum of absolute vertical differences
</p></dd>
<dt><span>‘<samp>vsse</samp>’</span></dt>
<dd><p>sum of squared vertical differences
</p></dd>
<dt><span>‘<samp>nsse</samp>’</span></dt>
<dd><p>noise preserving sum of squared differences
</p></dd>
<dt><span>‘<samp>w53</samp>’</span></dt>
<dd><p>5/3 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>w97</samp>’</span></dt>
<dd><p>9/7 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>dctmax</samp>’</span></dt>
<dt><span>‘<samp>chroma</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>subcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set sub pel me compare function.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>sum of absolute differences, fast (default)
</p></dd>
<dt><span>‘<samp>sse</samp>’</span></dt>
<dd><p>sum of squared errors
</p></dd>
<dt><span>‘<samp>satd</samp>’</span></dt>
<dd><p>sum of absolute Hadamard transformed differences
</p></dd>
<dt><span>‘<samp>dct</samp>’</span></dt>
<dd><p>sum of absolute DCT transformed differences
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>sum of squared quantization errors (avoid, low quality)
</p></dd>
<dt><span>‘<samp>bit</samp>’</span></dt>
<dd><p>number of bits needed for the block
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>rate distortion optimal, slow
</p></dd>
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>0
</p></dd>
<dt><span>‘<samp>vsad</samp>’</span></dt>
<dd><p>sum of absolute vertical differences
</p></dd>
<dt><span>‘<samp>vsse</samp>’</span></dt>
<dd><p>sum of squared vertical differences
</p></dd>
<dt><span>‘<samp>nsse</samp>’</span></dt>
<dd><p>noise preserving sum of squared differences
</p></dd>
<dt><span>‘<samp>w53</samp>’</span></dt>
<dd><p>5/3 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>w97</samp>’</span></dt>
<dd><p>9/7 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>dctmax</samp>’</span></dt>
<dt><span>‘<samp>chroma</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>mbcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set macroblock compare function.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>sum of absolute differences, fast (default)
</p></dd>
<dt><span>‘<samp>sse</samp>’</span></dt>
<dd><p>sum of squared errors
</p></dd>
<dt><span>‘<samp>satd</samp>’</span></dt>
<dd><p>sum of absolute Hadamard transformed differences
</p></dd>
<dt><span>‘<samp>dct</samp>’</span></dt>
<dd><p>sum of absolute DCT transformed differences
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>sum of squared quantization errors (avoid, low quality)
</p></dd>
<dt><span>‘<samp>bit</samp>’</span></dt>
<dd><p>number of bits needed for the block
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>rate distortion optimal, slow
</p></dd>
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>0
</p></dd>
<dt><span>‘<samp>vsad</samp>’</span></dt>
<dd><p>sum of absolute vertical differences
</p></dd>
<dt><span>‘<samp>vsse</samp>’</span></dt>
<dd><p>sum of squared vertical differences
</p></dd>
<dt><span>‘<samp>nsse</samp>’</span></dt>
<dd><p>noise preserving sum of squared differences
</p></dd>
<dt><span>‘<samp>w53</samp>’</span></dt>
<dd><p>5/3 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>w97</samp>’</span></dt>
<dd><p>9/7 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>dctmax</samp>’</span></dt>
<dt><span>‘<samp>chroma</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>ildctcmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set interlaced dct compare function.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>sum of absolute differences, fast (default)
</p></dd>
<dt><span>‘<samp>sse</samp>’</span></dt>
<dd><p>sum of squared errors
</p></dd>
<dt><span>‘<samp>satd</samp>’</span></dt>
<dd><p>sum of absolute Hadamard transformed differences
</p></dd>
<dt><span>‘<samp>dct</samp>’</span></dt>
<dd><p>sum of absolute DCT transformed differences
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>sum of squared quantization errors (avoid, low quality)
</p></dd>
<dt><span>‘<samp>bit</samp>’</span></dt>
<dd><p>number of bits needed for the block
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>rate distortion optimal, slow
</p></dd>
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>0
</p></dd>
<dt><span>‘<samp>vsad</samp>’</span></dt>
<dd><p>sum of absolute vertical differences
</p></dd>
<dt><span>‘<samp>vsse</samp>’</span></dt>
<dd><p>sum of squared vertical differences
</p></dd>
<dt><span>‘<samp>nsse</samp>’</span></dt>
<dd><p>noise preserving sum of squared differences
</p></dd>
<dt><span>‘<samp>w53</samp>’</span></dt>
<dd><p>5/3 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>w97</samp>’</span></dt>
<dd><p>9/7 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>dctmax</samp>’</span></dt>
<dt><span>‘<samp>chroma</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>dia_size <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set diamond type & size for motion estimation.
</p><dl compact="compact">
<dt><span>‘<samp>(1024, INT_MAX)</samp>’</span></dt>
<dd><p>full motion estimation(slowest)
</p></dd>
<dt><span>‘<samp>(768, 1024]</samp>’</span></dt>
<dd><p>umh motion estimation
</p></dd>
<dt><span>‘<samp>(512, 768]</samp>’</span></dt>
<dd><p>hex motion estimation
</p></dd>
<dt><span>‘<samp>(256, 512]</samp>’</span></dt>
<dd><p>l2s diamond motion estimation
</p></dd>
<dt><span>‘<samp>[2,256]</samp>’</span></dt>
<dd><p>var diamond motion estimation
</p></dd>
<dt><span>‘<samp>(-1, 2)</samp>’</span></dt>
<dd><p>small diamond motion estimation
</p></dd>
<dt><span>‘<samp>-1</samp>’</span></dt>
<dd><p>funny diamond motion estimation
</p></dd>
<dt><span>‘<samp>(INT_MIN, -1)</samp>’</span></dt>
<dd><p>sab diamond motion estimation
</p></dd>
</dl>
</dd>
<dt><span><samp>last_pred <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set amount of motion predictors from the previous frame.
</p>
</dd>
<dt><span><samp>precmp <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set pre motion estimation compare function.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>sum of absolute differences, fast (default)
</p></dd>
<dt><span>‘<samp>sse</samp>’</span></dt>
<dd><p>sum of squared errors
</p></dd>
<dt><span>‘<samp>satd</samp>’</span></dt>
<dd><p>sum of absolute Hadamard transformed differences
</p></dd>
<dt><span>‘<samp>dct</samp>’</span></dt>
<dd><p>sum of absolute DCT transformed differences
</p></dd>
<dt><span>‘<samp>psnr</samp>’</span></dt>
<dd><p>sum of squared quantization errors (avoid, low quality)
</p></dd>
<dt><span>‘<samp>bit</samp>’</span></dt>
<dd><p>number of bits needed for the block
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>rate distortion optimal, slow
</p></dd>
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>0
</p></dd>
<dt><span>‘<samp>vsad</samp>’</span></dt>
<dd><p>sum of absolute vertical differences
</p></dd>
<dt><span>‘<samp>vsse</samp>’</span></dt>
<dd><p>sum of squared vertical differences
</p></dd>
<dt><span>‘<samp>nsse</samp>’</span></dt>
<dd><p>noise preserving sum of squared differences
</p></dd>
<dt><span>‘<samp>w53</samp>’</span></dt>
<dd><p>5/3 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>w97</samp>’</span></dt>
<dd><p>9/7 wavelet, only used in snow
</p></dd>
<dt><span>‘<samp>dctmax</samp>’</span></dt>
<dt><span>‘<samp>chroma</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>pre_dia_size <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set diamond type & size for motion estimation pre-pass.
</p>
</dd>
<dt><span><samp>subq <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set sub pel motion estimation quality.
</p>
</dd>
<dt><span><samp>me_range <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set limit motion vectors range (1023 for DivX player).
</p>
</dd>
<dt><span><samp>global_quality <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dt><span><samp>slice_flags <var>integer</var></samp></span></dt>
<dt><span><samp>mbd <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set macroblock decision algorithm (high quality mode).
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>simple</samp>’</span></dt>
<dd><p>use mbcmp (default)
</p></dd>
<dt><span>‘<samp>bits</samp>’</span></dt>
<dd><p>use fewest bits
</p></dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>use best rate distortion
</p></dd>
</dl>
</dd>
<dt><span><samp>rc_init_occupancy <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set number of bits which should be loaded into the rc buffer before
decoding starts.
</p>
</dd>
<dt><span><samp>flags2 <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
<dd>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>fast</samp>’</span></dt>
<dd><p>Allow non spec compliant speedup tricks.
</p></dd>
<dt><span>‘<samp>noout</samp>’</span></dt>
<dd><p>Skip bitstream encoding.
</p></dd>
<dt><span>‘<samp>ignorecrop</samp>’</span></dt>
<dd><p>Ignore cropping information from sps.
</p></dd>
<dt><span>‘<samp>local_header</samp>’</span></dt>
<dd><p>Place global headers at every keyframe instead of in extradata.
</p></dd>
<dt><span>‘<samp>chunks</samp>’</span></dt>
<dd><p>Frame data might be split into multiple chunks.
</p></dd>
<dt><span>‘<samp>showall</samp>’</span></dt>
<dd><p>Show all frames before the first keyframe.
</p></dd>
<dt><span>‘<samp>export_mvs</samp>’</span></dt>
<dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
</p></dd>
<dt><span>‘<samp>skip_manual</samp>’</span></dt>
<dd><p>Do not skip samples and export skip information as frame side data.
</p></dd>
<dt><span>‘<samp>ass_ro_flush_noop</samp>’</span></dt>
<dd><p>Do not reset ASS ReadOrder field on flush.
</p></dd>
<dt><span>‘<samp>icc_profiles</samp>’</span></dt>
<dd><p>Generate/parse embedded ICC profiles from/to colorimetry tags.
</p></dd>
</dl>
</dd>
<dt><span><samp>export_side_data <var>flags</var> (<em>decoding/encoding,audio,video,subtitles</em>)</samp></span></dt>
<dd>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>mvs</samp>’</span></dt>
<dd><p>Export motion vectors into frame side-data (see <code>AV_FRAME_DATA_MOTION_VECTORS</code>)
for codecs that support it. See also <samp>doc/examples/export_mvs.c</samp>.
</p></dd>
<dt><span>‘<samp>prft</samp>’</span></dt>
<dd><p>Export encoder Producer Reference Time into packet side-data (see <code>AV_PKT_DATA_PRFT</code>)
for codecs that support it.
</p></dd>
<dt><span>‘<samp>venc_params</samp>’</span></dt>
<dd><p>Export video encoding parameters through frame side data (see <code>AV_FRAME_DATA_VIDEO_ENC_PARAMS</code>)
for codecs that support it. At present, those are H.264 and VP9.
</p></dd>
<dt><span>‘<samp>film_grain</samp>’</span></dt>
<dd><p>Export film grain parameters through frame side data (see <code>AV_FRAME_DATA_FILM_GRAIN_PARAMS</code>).
Supported at present by AV1 decoders.
</p></dd>
</dl>
</dd>
<dt><span><samp>threads <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Set the number of threads to be used, in case the selected codec
implementation supports multi-threading.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>auto, 0</samp>’</span></dt>
<dd><p>automatically select the number of threads to set
</p></dd>
</dl>
<p>Default value is ‘<samp>auto</samp>’.
</p>
</dd>
<dt><span><samp>dc <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set intra_dc_precision.
</p>
</dd>
<dt><span><samp>nssew <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set nsse weight.
</p>
</dd>
<dt><span><samp>skip_top <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Set number of macroblock rows at the top which are skipped.
</p>
</dd>
<dt><span><samp>skip_bottom <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Set number of macroblock rows at the bottom which are skipped.
</p>
</dd>
<dt><span><samp>profile <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd>
<p>Set encoder codec profile. Default value is ‘<samp>unknown</samp>’. Encoder specific
profiles are documented in the relevant encoder documentation.
</p>
</dd>
<dt><span><samp>level <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>lowres <var>integer</var> (<em>decoding,audio,video</em>)</samp></span></dt>
<dd><p>Decode at 1= 1/2, 2=1/4, 3=1/8 resolutions.
</p>
</dd>
<dt><span><samp>mblmin <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set min macroblock lagrange factor (VBR).
</p>
</dd>
<dt><span><samp>mblmax <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set max macroblock lagrange factor (VBR).
</p>
</dd>
<dt><span><samp>skip_loop_filter <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
<dt><span><samp>skip_idct <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
<dt><span><samp>skip_frame <var>integer</var> (<em>decoding,video</em>)</samp></span></dt>
<dd>
<p>Make decoder discard processing depending on the frame type selected
by the option value.
</p>
<p><samp>skip_loop_filter</samp> skips frame loop filtering, <samp>skip_idct</samp>
skips frame IDCT/dequantization, <samp>skip_frame</samp> skips decoding.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>none</samp>’</span></dt>
<dd><p>Discard no frame.
</p>
</dd>
<dt><span>‘<samp>default</samp>’</span></dt>
<dd><p>Discard useless frames like 0-sized frames.
</p>
</dd>
<dt><span>‘<samp>noref</samp>’</span></dt>
<dd><p>Discard all non-reference frames.
</p>
</dd>
<dt><span>‘<samp>bidir</samp>’</span></dt>
<dd><p>Discard all bidirectional frames.
</p>
</dd>
<dt><span>‘<samp>nokey</samp>’</span></dt>
<dd><p>Discard all frames excepts keyframes.
</p>
</dd>
<dt><span>‘<samp>nointra</samp>’</span></dt>
<dd><p>Discard all frames except I frames.
</p>
</dd>
<dt><span>‘<samp>all</samp>’</span></dt>
<dd><p>Discard all frames.
</p></dd>
</dl>
<p>Default value is ‘<samp>default</samp>’.
</p>
</dd>
<dt><span><samp>bidir_refine <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Refine the two motion vectors used in bidirectional macroblocks.
</p>
</dd>
<dt><span><samp>keyint_min <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set minimum interval between IDR-frames.
</p>
</dd>
<dt><span><samp>refs <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Set reference frames to consider for motion compensation.
</p>
</dd>
<dt><span><samp>trellis <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dd><p>Set rate-distortion optimal quantization.
</p>
</dd>
<dt><span><samp>mv0_threshold <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dt><span><samp>compression_level <var>integer</var> (<em>encoding,audio,video</em>)</samp></span></dt>
<dt><span><samp>bits_per_raw_sample <var>integer</var></samp></span></dt>
<dt><span><samp>channel_layout <var>integer</var> (<em>decoding/encoding,audio</em>)</samp></span></dt>
<dd>
<p>Possible values:
</p></dd>
<dt><span><samp>request_channel_layout <var>integer</var> (<em>decoding,audio</em>)</samp></span></dt>
<dd>
<p>Possible values:
</p></dd>
<dt><span><samp>rc_max_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dt><span><samp>rc_min_vbv_use <var>float</var> (<em>encoding,video</em>)</samp></span></dt>
<dt><span><samp>ticks_per_frame <var>integer</var> (<em>decoding/encoding,audio,video</em>)</samp></span></dt>
<dt><span><samp>color_primaries <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>bt709</samp>’</span></dt>
<dd><p>BT.709
</p></dd>
<dt><span>‘<samp>bt470m</samp>’</span></dt>
<dd><p>BT.470 M
</p></dd>
<dt><span>‘<samp>bt470bg</samp>’</span></dt>
<dd><p>BT.470 BG
</p></dd>
<dt><span>‘<samp>smpte170m</samp>’</span></dt>
<dd><p>SMPTE 170 M
</p></dd>
<dt><span>‘<samp>smpte240m</samp>’</span></dt>
<dd><p>SMPTE 240 M
</p></dd>
<dt><span>‘<samp>film</samp>’</span></dt>
<dd><p>Film
</p></dd>
<dt><span>‘<samp>bt2020</samp>’</span></dt>
<dd><p>BT.2020
</p></dd>
<dt><span>‘<samp>smpte428</samp>’</span></dt>
<dt><span>‘<samp>smpte428_1</samp>’</span></dt>
<dd><p>SMPTE ST 428-1
</p></dd>
<dt><span>‘<samp>smpte431</samp>’</span></dt>
<dd><p>SMPTE 431-2
</p></dd>
<dt><span>‘<samp>smpte432</samp>’</span></dt>
<dd><p>SMPTE 432-1
</p></dd>
<dt><span>‘<samp>jedec-p22</samp>’</span></dt>
<dd><p>JEDEC P22
</p></dd>
</dl>
</dd>
<dt><span><samp>color_trc <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>bt709</samp>’</span></dt>
<dd><p>BT.709
</p></dd>
<dt><span>‘<samp>gamma22</samp>’</span></dt>
<dd><p>BT.470 M
</p></dd>
<dt><span>‘<samp>gamma28</samp>’</span></dt>
<dd><p>BT.470 BG
</p></dd>
<dt><span>‘<samp>smpte170m</samp>’</span></dt>
<dd><p>SMPTE 170 M
</p></dd>
<dt><span>‘<samp>smpte240m</samp>’</span></dt>
<dd><p>SMPTE 240 M
</p></dd>
<dt><span>‘<samp>linear</samp>’</span></dt>
<dd><p>Linear
</p></dd>
<dt><span>‘<samp>log</samp>’</span></dt>
<dt><span>‘<samp>log100</samp>’</span></dt>
<dd><p>Log
</p></dd>
<dt><span>‘<samp>log_sqrt</samp>’</span></dt>
<dt><span>‘<samp>log316</samp>’</span></dt>
<dd><p>Log square root
</p></dd>
<dt><span>‘<samp>iec61966_2_4</samp>’</span></dt>
<dt><span>‘<samp>iec61966-2-4</samp>’</span></dt>
<dd><p>IEC 61966-2-4
</p></dd>
<dt><span>‘<samp>bt1361</samp>’</span></dt>
<dt><span>‘<samp>bt1361e</samp>’</span></dt>
<dd><p>BT.1361
</p></dd>
<dt><span>‘<samp>iec61966_2_1</samp>’</span></dt>
<dt><span>‘<samp>iec61966-2-1</samp>’</span></dt>
<dd><p>IEC 61966-2-1
</p></dd>
<dt><span>‘<samp>bt2020_10</samp>’</span></dt>
<dt><span>‘<samp>bt2020_10bit</samp>’</span></dt>
<dd><p>BT.2020 - 10 bit
</p></dd>
<dt><span>‘<samp>bt2020_12</samp>’</span></dt>
<dt><span>‘<samp>bt2020_12bit</samp>’</span></dt>
<dd><p>BT.2020 - 12 bit
</p></dd>
<dt><span>‘<samp>smpte2084</samp>’</span></dt>
<dd><p>SMPTE ST 2084
</p></dd>
<dt><span>‘<samp>smpte428</samp>’</span></dt>
<dt><span>‘<samp>smpte428_1</samp>’</span></dt>
<dd><p>SMPTE ST 428-1
</p></dd>
<dt><span>‘<samp>arib-std-b67</samp>’</span></dt>
<dd><p>ARIB STD-B67
</p></dd>
</dl>
</dd>
<dt><span><samp>colorspace <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>rgb</samp>’</span></dt>
<dd><p>RGB
</p></dd>
<dt><span>‘<samp>bt709</samp>’</span></dt>
<dd><p>BT.709
</p></dd>
<dt><span>‘<samp>fcc</samp>’</span></dt>
<dd><p>FCC
</p></dd>
<dt><span>‘<samp>bt470bg</samp>’</span></dt>
<dd><p>BT.470 BG
</p></dd>
<dt><span>‘<samp>smpte170m</samp>’</span></dt>
<dd><p>SMPTE 170 M
</p></dd>
<dt><span>‘<samp>smpte240m</samp>’</span></dt>
<dd><p>SMPTE 240 M
</p></dd>
<dt><span>‘<samp>ycocg</samp>’</span></dt>
<dd><p>YCOCG
</p></dd>
<dt><span>‘<samp>bt2020nc</samp>’</span></dt>
<dt><span>‘<samp>bt2020_ncl</samp>’</span></dt>
<dd><p>BT.2020 NCL
</p></dd>
<dt><span>‘<samp>bt2020c</samp>’</span></dt>
<dt><span>‘<samp>bt2020_cl</samp>’</span></dt>
<dd><p>BT.2020 CL
</p></dd>
<dt><span>‘<samp>smpte2085</samp>’</span></dt>
<dd><p>SMPTE 2085
</p></dd>
<dt><span>‘<samp>chroma-derived-nc</samp>’</span></dt>
<dd><p>Chroma-derived NCL
</p></dd>
<dt><span>‘<samp>chroma-derived-c</samp>’</span></dt>
<dd><p>Chroma-derived CL
</p></dd>
<dt><span>‘<samp>ictcp</samp>’</span></dt>
<dd><p>ICtCp
</p></dd>
</dl>
</dd>
<dt><span><samp>color_range <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>If used as input parameter, it serves as a hint to the decoder, which
color_range the input has.
Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>tv</samp>’</span></dt>
<dt><span>‘<samp>mpeg</samp>’</span></dt>
<dd><p>MPEG (219*2^(n-8))
</p></dd>
<dt><span>‘<samp>pc</samp>’</span></dt>
<dt><span>‘<samp>jpeg</samp>’</span></dt>
<dd><p>JPEG (2^n-1)
</p></dd>
</dl>
</dd>
<dt><span><samp>chroma_sample_location <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>left</samp>’</span></dt>
<dt><span>‘<samp>center</samp>’</span></dt>
<dt><span>‘<samp>topleft</samp>’</span></dt>
<dt><span>‘<samp>top</samp>’</span></dt>
<dt><span>‘<samp>bottomleft</samp>’</span></dt>
<dt><span>‘<samp>bottom</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>log_level_offset <var>integer</var></samp></span></dt>
<dd><p>Set the log level offset.
</p>
</dd>
<dt><span><samp>slices <var>integer</var> (<em>encoding,video</em>)</samp></span></dt>
<dd><p>Number of slices, used in parallelized encoding.
</p>
</dd>
<dt><span><samp>thread_type <var>flags</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Select which multithreading methods to use.
</p>
<p>Use of ‘<samp>frame</samp>’ will increase decoding delay by one frame per
thread, so clients which cannot provide future frames should not use
it.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>slice</samp>’</span></dt>
<dd><p>Decode more than one part of a single frame at once.
</p>
<p>Multithreading using slices works only when the video was encoded with
slices.
</p>
</dd>
<dt><span>‘<samp>frame</samp>’</span></dt>
<dd><p>Decode more than one frame at once.
</p></dd>
</dl>
<p>Default value is ‘<samp>slice+frame</samp>’.
</p>
</dd>
<dt><span><samp>audio_service_type <var>integer</var> (<em>encoding,audio</em>)</samp></span></dt>
<dd><p>Set audio service type.
</p>
<p>Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>ma</samp>’</span></dt>
<dd><p>Main Audio Service
</p></dd>
<dt><span>‘<samp>ef</samp>’</span></dt>
<dd><p>Effects
</p></dd>
<dt><span>‘<samp>vi</samp>’</span></dt>
<dd><p>Visually Impaired
</p></dd>
<dt><span>‘<samp>hi</samp>’</span></dt>
<dd><p>Hearing Impaired
</p></dd>
<dt><span>‘<samp>di</samp>’</span></dt>
<dd><p>Dialogue
</p></dd>
<dt><span>‘<samp>co</samp>’</span></dt>
<dd><p>Commentary
</p></dd>
<dt><span>‘<samp>em</samp>’</span></dt>
<dd><p>Emergency
</p></dd>
<dt><span>‘<samp>vo</samp>’</span></dt>
<dd><p>Voice Over
</p></dd>
<dt><span>‘<samp>ka</samp>’</span></dt>
<dd><p>Karaoke
</p></dd>
</dl>
</dd>
<dt><span><samp>request_sample_fmt <var>sample_fmt</var> (<em>decoding,audio</em>)</samp></span></dt>
<dd><p>Set sample format audio decoders should prefer. Default value is
<code>none</code>.
</p>
</dd>
<dt><span><samp>pkt_timebase <var>rational number</var></samp></span></dt>
<dt><span><samp>sub_charenc <var>encoding</var> (<em>decoding,subtitles</em>)</samp></span></dt>
<dd><p>Set the input subtitles character encoding.
</p>
</dd>
<dt><span><samp>field_order <var>field_order</var> (<em>video</em>)</samp></span></dt>
<dd><p>Set/override the field order of the video.
Possible values:
</p><dl compact="compact">
<dt><span>‘<samp>progressive</samp>’</span></dt>
<dd><p>Progressive video
</p></dd>
<dt><span>‘<samp>tt</samp>’</span></dt>
<dd><p>Interlaced video, top field coded and displayed first
</p></dd>
<dt><span>‘<samp>bb</samp>’</span></dt>
<dd><p>Interlaced video, bottom field coded and displayed first
</p></dd>
<dt><span>‘<samp>tb</samp>’</span></dt>
<dd><p>Interlaced video, top coded first, bottom displayed first
</p></dd>
<dt><span>‘<samp>bt</samp>’</span></dt>
<dd><p>Interlaced video, bottom coded first, top displayed first
</p></dd>
</dl>
</dd>
<dt><span><samp>skip_alpha <var>bool</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Set to 1 to disable processing alpha (transparency). This works like the
‘<samp>gray</samp>’ flag in the <samp>flags</samp> option which skips chroma information
instead of alpha. Default is 0.
</p>
</dd>
<dt><span><samp>codec_whitelist <var>list</var> (<em>input</em>)</samp></span></dt>
<dd><p>"," separated list of allowed decoders. By default all are allowed.
</p>
</dd>
<dt><span><samp>dump_separator <var>string</var> (<em>input</em>)</samp></span></dt>
<dd><p>Separator used to separate the fields printed on the command line about the
Stream parameters.
For example, to separate the fields with newlines and indentation:
</p><div class="example">
<pre class="example">ffprobe -dump_separator "
" -i ~/videos/matrixbench_mpeg2.mpg
</pre></div>
</dd>
<dt><span><samp>max_pixels <var>integer</var> (<em>decoding/encoding,video</em>)</samp></span></dt>
<dd><p>Maximum number of pixels per image. This value can be used to avoid out of
memory failures due to large images.
</p>
</dd>
<dt><span><samp>apply_cropping <var>bool</var> (<em>decoding,video</em>)</samp></span></dt>
<dd><p>Enable cropping if cropping parameters are multiples of the required
alignment for the left and top parameters. If the alignment is not met the
cropping will be partially applied to maintain alignment.
Default is 1 (enabled).
Note: The required alignment depends on if <code>AV_CODEC_FLAG_UNALIGNED</code> is set and the
CPU. <code>AV_CODEC_FLAG_UNALIGNED</code> cannot be changed from the command line. Also hardware
decoders will not apply left/top Cropping.
</p>
</dd>
</dl>
<a name="Decoders"></a>
<h2 class="chapter">3 Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Decoders" aria-hidden="true">TOC</a></span></h2>
<p>Decoders are configured elements in FFmpeg which allow the decoding of
multimedia streams.
</p>
<p>When you configure your FFmpeg build, all the supported native decoders
are enabled by default. Decoders requiring an external library must be enabled
manually via the corresponding <code>--enable-lib</code> option. You can list all
available decoders using the configure option <code>--list-decoders</code>.
</p>
<p>You can disable all the decoders with the configure option
<code>--disable-decoders</code> and selectively enable / disable single decoders
with the options <code>--enable-decoder=<var>DECODER</var></code> /
<code>--disable-decoder=<var>DECODER</var></code>.
</p>
<p>The option <code>-decoders</code> of the ff* tools will display the list of
enabled decoders.
</p>
<a name="Video-Decoders"></a>
<h2 class="chapter">4 Video Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Decoders" aria-hidden="true">TOC</a></span></h2>
<p>A description of some of the currently available video decoders
follows.
</p>
<a name="av1"></a>
<h3 class="section">4.1 av1<span class="pull-right"><a class="anchor hidden-xs" href="#av1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-av1" aria-hidden="true">TOC</a></span></h3>
<p>AOMedia Video 1 (AV1) decoder.
</p>
<a name="Options"></a>
<h4 class="subsection">4.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>operating_point</samp></span></dt>
<dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Default is 0.
</p>
</dd>
</dl>
<a name="rawvideo"></a>
<h3 class="section">4.2 rawvideo<span class="pull-right"><a class="anchor hidden-xs" href="#rawvideo" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-rawvideo" aria-hidden="true">TOC</a></span></h3>
<p>Raw video decoder.
</p>
<p>This decoder decodes rawvideo streams.
</p>
<a name="Options-1"></a>
<h4 class="subsection">4.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-1" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>top <var>top_field_first</var></samp></span></dt>
<dd><p>Specify the assumed field type of the input video.
</p><dl compact="compact">
<dt><span><samp>-1</samp></span></dt>
<dd><p>the video is assumed to be progressive (default)
</p></dd>
<dt><span><samp>0</samp></span></dt>
<dd><p>bottom-field-first is assumed
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dd><p>top-field-first is assumed
</p></dd>
</dl>
</dd>
</dl>
<a name="libdav1d"></a>
<h3 class="section">4.3 libdav1d<span class="pull-right"><a class="anchor hidden-xs" href="#libdav1d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdav1d" aria-hidden="true">TOC</a></span></h3>
<p>dav1d AV1 decoder.
</p>
<p>libdav1d allows libavcodec to decode the AOMedia Video 1 (AV1) codec.
Requires the presence of the libdav1d headers and library during configuration.
You need to explicitly configure the build with <code>--enable-libdav1d</code>.
</p>
<a name="Options-2"></a>
<h4 class="subsection">4.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-2" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libdav1d wrapper.
</p>
<dl compact="compact">
<dt><span><samp>framethreads</samp></span></dt>
<dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use the
option <code>max_frame_delay</code> and the global option <code>threads</code> instead.
</p>
</dd>
<dt><span><samp>tilethreads</samp></span></dt>
<dd><p>Set amount of tile threads to use during decoding. The default value is 0 (autodetect).
This option is deprecated for libdav1d >= 1.0 and will be removed in the future. Use the
global option <code>threads</code> instead.
</p>
</dd>
<dt><span><samp>max_frame_delay</samp></span></dt>
<dd><p>Set max amount of frames the decoder may buffer internally. The default value is 0
(autodetect).
</p>
</dd>
<dt><span><samp>filmgrain</samp></span></dt>
<dd><p>Apply film grain to the decoded video if present in the bitstream. Defaults to the
internal default of the library.
This option is deprecated and will be removed in the future. See the global option
<code>export_side_data</code> to export Film Grain parameters instead of applying it.
</p>
</dd>
<dt><span><samp>oppoint</samp></span></dt>
<dd><p>Select an operating point of a scalable AV1 bitstream (0 - 31). Defaults to the
internal default of the library.
</p>
</dd>
<dt><span><samp>alllayers</samp></span></dt>
<dd><p>Output all spatial layers of a scalable AV1 bitstream. The default value is false.
</p>
</dd>
</dl>
<a name="libdavs2"></a>
<h3 class="section">4.4 libdavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libdavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libdavs2" aria-hidden="true">TOC</a></span></h3>
<p>AVS2-P2/IEEE1857.4 video decoder wrapper.
</p>
<p>This decoder allows libavcodec to decode AVS2 streams with davs2 library.
</p>
<a name="libuavs3d"></a>
<h3 class="section">4.5 libuavs3d<span class="pull-right"><a class="anchor hidden-xs" href="#libuavs3d" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libuavs3d" aria-hidden="true">TOC</a></span></h3>
<p>AVS3-P2/IEEE1857.10 video decoder.
</p>
<p>libuavs3d allows libavcodec to decode AVS3 streams.
Requires the presence of the libuavs3d headers and library during configuration.
You need to explicitly configure the build with <code>--enable-libuavs3d</code>.
</p>
<a name="Options-3"></a>
<h4 class="subsection">4.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-3" aria-hidden="true">TOC</a></span></h4>
<p>The following option is supported by the libuavs3d wrapper.
</p>
<dl compact="compact">
<dt><span><samp>frame_threads</samp></span></dt>
<dd><p>Set amount of frame threads to use during decoding. The default value is 0 (autodetect).
</p>
</dd>
</dl>
<a name="QSV-Decoders"></a>
<h3 class="section">4.6 QSV Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-Decoders" aria-hidden="true">TOC</a></span></h3>
<p>The family of Intel QuickSync Video decoders (VC1, MPEG-2, H.264, HEVC,
JPEG/MJPEG, VP8, VP9, AV1).
</p>
<a name="Common-Options"></a>
<h4 class="subsection">4.6.1 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by all qsv decoders.
</p>
<dl compact="compact">
<dt><span><samp><var>async_depth</var></samp></span></dt>
<dd><p>Internal parallelization depth, the higher the value the higher the latency.
</p>
</dd>
<dt><span><samp><var>gpu_copy</var></samp></span></dt>
<dd><p>A GPU-accelerated copy between video and system memory
</p><dl compact="compact">
<dt><span>‘<samp>default</samp>’</span></dt>
<dt><span>‘<samp>on</samp>’</span></dt>
<dt><span>‘<samp>off</samp>’</span></dt>
</dl>
</dd>
</dl>
<a name="HEVC-Options"></a>
<h4 class="subsection">4.6.2 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options" aria-hidden="true">TOC</a></span></h4>
<p>Extra options for hevc_qsv.
</p>
<dl compact="compact">
<dt><span><samp><var>load_plugin</var></samp></span></dt>
<dd><p>A user plugin to load in an internal session
</p><dl compact="compact">
<dt><span>‘<samp>none</samp>’</span></dt>
<dt><span>‘<samp>hevc_sw</samp>’</span></dt>
<dt><span>‘<samp>hevc_hw</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>load_plugins</var></samp></span></dt>
<dd><p>A :-separate list of hexadecimal plugin UIDs to load in an internal session
</p>
</dd>
</dl>
<a name="v210"></a>
<h3 class="section">4.7 v210<span class="pull-right"><a class="anchor hidden-xs" href="#v210" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-v210" aria-hidden="true">TOC</a></span></h3>
<p>Uncompressed 4:2:2 10-bit decoder.
</p>
<a name="Options-4"></a>
<h4 class="subsection">4.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-4" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-4" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>custom_stride</samp></span></dt>
<dd><p>Set the line size of the v210 data in bytes. The default value is 0
(autodetect). You can use the special -1 value for a strideless v210 as seen in
BOXX files.
</p>
</dd>
</dl>
<a name="Audio-Decoders"></a>
<h2 class="chapter">5 Audio Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Decoders" aria-hidden="true">TOC</a></span></h2>
<p>A description of some of the currently available audio decoders
follows.
</p>
<a name="ac3"></a>
<h3 class="section">5.1 ac3<span class="pull-right"><a class="anchor hidden-xs" href="#ac3" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3" aria-hidden="true">TOC</a></span></h3>
<p>AC-3 audio decoder.
</p>
<p>This decoder implements part of ATSC A/52:2010 and ETSI TS 102 366, as well as
the undocumented RealAudio 3 (a.k.a. dnet).
</p>
<a name="AC_002d3-Decoder-Options"></a>
<h4 class="subsection">5.1.1 AC-3 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-drc_scale <var>value</var></samp></span></dt>
<dd><p>Dynamic Range Scale Factor. The factor to apply to dynamic range values
from the AC-3 stream. This factor is applied exponentially. The default value is 1.
There are 3 notable scale factor ranges:
</p><dl compact="compact">
<dt><span><samp>drc_scale == 0</samp></span></dt>
<dd><p>DRC disabled. Produces full range audio.
</p></dd>
<dt><span><samp>0 < drc_scale <= 1</samp></span></dt>
<dd><p>DRC enabled. Applies a fraction of the stream DRC value.
Audio reproduction is between full range and full compression.
</p></dd>
<dt><span><samp>drc_scale > 1</samp></span></dt>
<dd><p>DRC enabled. Applies drc_scale asymmetrically.
Loud sounds are fully compressed. Soft sounds are enhanced.
</p></dd>
</dl>
</dd>
</dl>
<a name="flac-1"></a>
<h3 class="section">5.2 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-1" aria-hidden="true">TOC</a></span></h3>
<p>FLAC audio decoder.
</p>
<p>This decoder aims to implement the complete FLAC specification from Xiph.
</p>
<a name="FLAC-Decoder-options"></a>
<h4 class="subsection">5.2.1 FLAC Decoder options<span class="pull-right"><a class="anchor hidden-xs" href="#FLAC-Decoder-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-FLAC-Decoder-options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-use_buggy_lpc</samp></span></dt>
<dd><p>The lavc FLAC encoder used to produce buggy streams with high lpc values
(like the default value). This option makes it possible to decode such streams
correctly by using lavc’s old buggy lpc logic for decoding.
</p>
</dd>
</dl>
<a name="ffwavesynth"></a>
<h3 class="section">5.3 ffwavesynth<span class="pull-right"><a class="anchor hidden-xs" href="#ffwavesynth" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ffwavesynth" aria-hidden="true">TOC</a></span></h3>
<p>Internal wave synthesizer.
</p>
<p>This decoder generates wave patterns according to predefined sequences. Its
use is purely internal and the format of the data it accepts is not publicly
documented.
</p>
<a name="libcelt"></a>
<h3 class="section">5.4 libcelt<span class="pull-right"><a class="anchor hidden-xs" href="#libcelt" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libcelt" aria-hidden="true">TOC</a></span></h3>
<p>libcelt decoder wrapper.
</p>
<p>libcelt allows libavcodec to decode the Xiph CELT ultra-low delay audio codec.
Requires the presence of the libcelt headers and library during configuration.
You need to explicitly configure the build with <code>--enable-libcelt</code>.
</p>
<a name="libgsm"></a>
<h3 class="section">5.5 libgsm<span class="pull-right"><a class="anchor hidden-xs" href="#libgsm" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libgsm" aria-hidden="true">TOC</a></span></h3>
<p>libgsm decoder wrapper.
</p>
<p>libgsm allows libavcodec to decode the GSM full rate audio codec. Requires
the presence of the libgsm headers and library during configuration. You need
to explicitly configure the build with <code>--enable-libgsm</code>.
</p>
<p>This decoder supports both the ordinary GSM and the Microsoft variant.
</p>
<a name="libilbc"></a>
<h3 class="section">5.6 libilbc<span class="pull-right"><a class="anchor hidden-xs" href="#libilbc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libilbc" aria-hidden="true">TOC</a></span></h3>
<p>libilbc decoder wrapper.
</p>
<p>libilbc allows libavcodec to decode the Internet Low Bitrate Codec (iLBC)
audio codec. Requires the presence of the libilbc headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libilbc</code>.
</p>
<a name="Options-5"></a>
<h4 class="subsection">5.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-5" aria-hidden="true">TOC</a></span></h4>
<p>The following option is supported by the libilbc wrapper.
</p>
<dl compact="compact">
<dt><span><samp>enhance</samp></span></dt>
<dd>
<p>Enable the enhancement of the decoded audio when set to 1. The default
value is 0 (disabled).
</p>
</dd>
</dl>
<a name="libopencore_002damrnb"></a>
<h3 class="section">5.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb" aria-hidden="true">TOC</a></span></h3>
<p>libopencore-amrnb decoder wrapper.
</p>
<p>libopencore-amrnb allows libavcodec to decode the Adaptive Multi-Rate
Narrowband audio codec. Using it requires the presence of the
libopencore-amrnb headers and library during configuration. You need to
explicitly configure the build with <code>--enable-libopencore-amrnb</code>.
</p>
<p>An FFmpeg native decoder for AMR-NB exists, so users can decode AMR-NB
without this library.
</p>
<a name="libopencore_002damrwb"></a>
<h3 class="section">5.8 libopencore-amrwb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrwb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrwb" aria-hidden="true">TOC</a></span></h3>
<p>libopencore-amrwb decoder wrapper.
</p>
<p>libopencore-amrwb allows libavcodec to decode the Adaptive Multi-Rate
Wideband audio codec. Using it requires the presence of the
libopencore-amrwb headers and library during configuration. You need to
explicitly configure the build with <code>--enable-libopencore-amrwb</code>.
</p>
<p>An FFmpeg native decoder for AMR-WB exists, so users can decode AMR-WB
without this library.
</p>
<a name="libopus"></a>
<h3 class="section">5.9 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus" aria-hidden="true">TOC</a></span></h3>
<p>libopus decoder wrapper.
</p>
<p>libopus allows libavcodec to decode the Opus Interactive Audio Codec.
Requires the presence of the libopus headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libopus</code>.
</p>
<p>An FFmpeg native decoder for Opus exists, so users can decode Opus
without this library.
</p>
<a name="Subtitles-Decoders"></a>
<h2 class="chapter">6 Subtitles Decoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Decoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Decoders" aria-hidden="true">TOC</a></span></h2>
<a name="libaribb24"></a>
<h3 class="section">6.1 libaribb24<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24" aria-hidden="true">TOC</a></span></h3>
<p>ARIB STD-B24 caption decoder.
</p>
<p>Implements profiles A and C of the ARIB STD-B24 standard.
</p>
<a name="libaribb24-Decoder-Options"></a>
<h4 class="subsection">6.1.1 libaribb24 Decoder Options<span class="pull-right"><a class="anchor hidden-xs" href="#libaribb24-Decoder-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaribb24-Decoder-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-aribb24-base-path <var>path</var></samp></span></dt>
<dd><p>Sets the base path for the libaribb24 library. This is utilized for reading of
configuration files (for custom unicode conversions), and for dumping of
non-text symbols as images under that location.
</p>
<p>Unset by default.
</p>
</dd>
<dt><span><samp>-aribb24-skip-ruby-text <var>boolean</var></samp></span></dt>
<dd><p>Tells the decoder wrapper to skip text blocks that contain half-height ruby
text.
</p>
<p>Enabled by default.
</p>
</dd>
</dl>
<a name="dvbsub"></a>
<h3 class="section">6.2 dvbsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvbsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvbsub" aria-hidden="true">TOC</a></span></h3>
<a name="Options-6"></a>
<h4 class="subsection">6.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-6" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-6" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>compute_clut</samp></span></dt>
<dd><dl compact="compact">
<dt><span><samp>-2</samp></span></dt>
<dd><p>Compute clut once if no matching CLUT is in the stream.
</p></dd>
<dt><span><samp>-1</samp></span></dt>
<dd><p>Compute clut if no matching CLUT is in the stream.
</p></dd>
<dt><span><samp>0</samp></span></dt>
<dd><p>Never compute CLUT
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dd><p>Always compute CLUT and override the one provided in the stream.
</p></dd>
</dl>
</dd>
<dt><span><samp>dvb_substream</samp></span></dt>
<dd><p>Selects the dvb substream, or all substreams if -1 which is default.
</p>
</dd>
</dl>
<a name="dvdsub"></a>
<h3 class="section">6.3 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub" aria-hidden="true">TOC</a></span></h3>
<p>This codec decodes the bitmap subtitles used in DVDs; the same subtitles can
also be found in VobSub file pairs and in some Matroska files.
</p>
<a name="Options-7"></a>
<h4 class="subsection">6.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-7" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-7" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>palette</samp></span></dt>
<dd><p>Specify the global palette used by the bitmaps. When stored in VobSub, the
palette is normally specified in the index file; in Matroska, the palette is
stored in the codec extra-data in the same format as in VobSub. In DVDs, the
palette is stored in the IFO file, and therefore not available when reading
from dumped VOB files.
</p>
<p>The format for this option is a string containing 16 24-bits hexadecimal
numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
</p>
</dd>
<dt><span><samp>ifo_palette</samp></span></dt>
<dd><p>Specify the IFO file from which the global palette is obtained.
(experimental)
</p>
</dd>
<dt><span><samp>forced_subs_only</samp></span></dt>
<dd><p>Only decode subtitle entries marked as forced. Some titles have forced
and non-forced subtitles in the same track. Setting this flag to <code>1</code>
will only keep the forced subtitles. Default value is <code>0</code>.
</p></dd>
</dl>
<a name="libzvbi_002dteletext"></a>
<h3 class="section">6.4 libzvbi-teletext<span class="pull-right"><a class="anchor hidden-xs" href="#libzvbi_002dteletext" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libzvbi_002dteletext" aria-hidden="true">TOC</a></span></h3>
<p>Libzvbi allows libavcodec to decode DVB teletext pages and DVB teletext
subtitles. Requires the presence of the libzvbi headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libzvbi</code>.
</p>
<a name="Options-8"></a>
<h4 class="subsection">6.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-8" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-8" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>txt_page</samp></span></dt>
<dd><p>List of teletext page numbers to decode. Pages that do not match the specified
list are dropped. You may use the special <code>*</code> string to match all pages,
or <code>subtitle</code> to match all subtitle pages.
Default value is *.
</p></dd>
<dt><span><samp>txt_default_region</samp></span></dt>
<dd><p>Set default character set used for decoding, a value between 0 and 87 (see
ETS 300 706, Section 15, Table 32). Default value is -1, which does not
override the libzvbi default. This option is needed for some legacy level 1.0
transmissions which cannot signal the proper charset.
</p></dd>
<dt><span><samp>txt_chop_top</samp></span></dt>
<dd><p>Discards the top teletext line. Default value is 1.
</p></dd>
<dt><span><samp>txt_format</samp></span></dt>
<dd><p>Specifies the format of the decoded subtitles.
</p><dl compact="compact">
<dt><span><samp>bitmap</samp></span></dt>
<dd><p>The default format, you should use this for teletext pages, because certain
graphics and colors cannot be expressed in simple text or even ASS.
</p></dd>
<dt><span><samp>text</samp></span></dt>
<dd><p>Simple text based output without formatting.
</p></dd>
<dt><span><samp>ass</samp></span></dt>
<dd><p>Formatted ASS output, subtitle pages and teletext pages are returned in
different styles, subtitle pages are stripped down to text, but an effort is
made to keep the text alignment and the formatting.
</p></dd>
</dl>
</dd>
<dt><span><samp>txt_left</samp></span></dt>
<dd><p>X offset of generated bitmaps, default is 0.
</p></dd>
<dt><span><samp>txt_top</samp></span></dt>
<dd><p>Y offset of generated bitmaps, default is 0.
</p></dd>
<dt><span><samp>txt_chop_spaces</samp></span></dt>
<dd><p>Chops leading and trailing spaces and removes empty lines from the generated
text. This option is useful for teletext based subtitles where empty spaces may
be present at the start or at the end of the lines or empty lines may be
present between the subtitle lines because of double-sized teletext characters.
Default value is 1.
</p></dd>
<dt><span><samp>txt_duration</samp></span></dt>
<dd><p>Sets the display duration of the decoded teletext pages or subtitles in
milliseconds. Default value is -1 which means infinity or until the next
subtitle event comes.
</p></dd>
<dt><span><samp>txt_transparent</samp></span></dt>
<dd><p>Force transparent background of the generated teletext bitmaps. Default value
is 0 which means an opaque background.
</p></dd>
<dt><span><samp>txt_opacity</samp></span></dt>
<dd><p>Sets the opacity (0-255) of the teletext background. If
<samp>txt_transparent</samp> is not set, it only affects characters between a start
box and an end box, typically subtitles. Default value is 0 if
<samp>txt_transparent</samp> is set, 255 otherwise.
</p>
</dd>
</dl>
<a name="Encoders"></a>
<h2 class="chapter">7 Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Encoders" aria-hidden="true">TOC</a></span></h2>
<p>Encoders are configured elements in FFmpeg which allow the encoding of
multimedia streams.
</p>
<p>When you configure your FFmpeg build, all the supported native encoders
are enabled by default. Encoders requiring an external library must be enabled
manually via the corresponding <code>--enable-lib</code> option. You can list all
available encoders using the configure option <code>--list-encoders</code>.
</p>
<p>You can disable all the encoders with the configure option
<code>--disable-encoders</code> and selectively enable / disable single encoders
with the options <code>--enable-encoder=<var>ENCODER</var></code> /
<code>--disable-encoder=<var>ENCODER</var></code>.
</p>
<p>The option <code>-encoders</code> of the ff* tools will display the list of
enabled encoders.
</p>
<a name="Audio-Encoders"></a>
<h2 class="chapter">8 Audio Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Encoders" aria-hidden="true">TOC</a></span></h2>
<p>A description of some of the currently available audio encoders
follows.
</p>
<span id="aacenc"></span><a name="aac"></a>
<h3 class="section">8.1 aac<span class="pull-right"><a class="anchor hidden-xs" href="#aac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-aac" aria-hidden="true">TOC</a></span></h3>
<p>Advanced Audio Coding (AAC) encoder.
</p>
<p>This encoder is the default AAC encoder, natively implemented into FFmpeg.
</p>
<a name="Options-9"></a>
<h4 class="subsection">8.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-9" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-9" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bit rate in bits/s. Setting this automatically activates constant bit rate
(CBR) mode. If this option is unspecified it is set to 128kbps.
</p>
</dd>
<dt><span><samp>q</samp></span></dt>
<dd><p>Set quality for variable bit rate (VBR) mode. This option is valid only using
the <code>ffmpeg</code> command-line tool. For library interface users, use
<samp>global_quality</samp>.
</p>
</dd>
<dt><span><samp>cutoff</samp></span></dt>
<dd><p>Set cutoff frequency. If unspecified will allow the encoder to dynamically
adjust the cutoff to improve clarity on low bitrates.
</p>
</dd>
<dt><span><samp>aac_coder</samp></span></dt>
<dd><p>Set AAC encoder coding method. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>twoloop</samp>’</span></dt>
<dd><p>Two loop searching (TLS) method. This is the default method.
</p>
<p>This method first sets quantizers depending on band thresholds and then tries
to find an optimal combination by adding or subtracting a specific value from
all quantizers and adjusting some individual quantizer a little. Will tune
itself based on whether <samp>aac_is</samp>, <samp>aac_ms</samp> and <samp>aac_pns</samp>
are enabled.
</p>
</dd>
<dt><span>‘<samp>anmr</samp>’</span></dt>
<dd><p>Average noise to mask ratio (ANMR) trellis-based solution.
</p>
<p>This is an experimental coder which currently produces a lower quality, is more
unstable and is slower than the default twoloop coder but has potential.
Currently has no support for the <samp>aac_is</samp> or <samp>aac_pns</samp> options.
Not currently recommended.
</p>
</dd>
<dt><span>‘<samp>fast</samp>’</span></dt>
<dd><p>Constant quantizer method.
</p>
<p>Uses a cheaper version of twoloop algorithm that doesn’t try to do as many
clever adjustments. Worse with low bitrates (less than 64kbps), but is better
and much faster at higher bitrates.
</p>
</dd>
</dl>
</dd>
<dt><span><samp>aac_ms</samp></span></dt>
<dd><p>Sets mid/side coding mode. The default value of "auto" will automatically use
M/S with bands which will benefit from such coding. Can be forced for all bands
using the value "enable", which is mainly useful for debugging or disabled using
"disable".
</p>
</dd>
<dt><span><samp>aac_is</samp></span></dt>
<dd><p>Sets intensity stereo coding tool usage. By default, it’s enabled and will
automatically toggle IS for similar pairs of stereo bands if it’s beneficial.
Can be disabled for debugging by setting the value to "disable".
</p>
</dd>
<dt><span><samp>aac_pns</samp></span></dt>
<dd><p>Uses perceptual noise substitution to replace low entropy high frequency bands
with imperceptible white noise during the decoding process. By default, it’s
enabled, but can be disabled for debugging purposes by using "disable".
</p>
</dd>
<dt><span><samp>aac_tns</samp></span></dt>
<dd><p>Enables the use of a multitap FIR filter which spans through the high frequency
bands to hide quantization noise during the encoding process and is reverted
by the decoder. As well as decreasing unpleasant artifacts in the high range
this also reduces the entropy in the high bands and allows for more bits to
be used by the mid-low bands. By default it’s enabled but can be disabled for
debugging by setting the option to "disable".
</p>
</dd>
<dt><span><samp>aac_ltp</samp></span></dt>
<dd><p>Enables the use of the long term prediction extension which increases coding
efficiency in very low bandwidth situations such as encoding of voice or
solo piano music by extending constant harmonic peaks in bands throughout
frames. This option is implied by profile:a aac_low and is incompatible with
aac_pred. Use in conjunction with <samp>-ar</samp> to decrease the samplerate.
</p>
</dd>
<dt><span><samp>aac_pred</samp></span></dt>
<dd><p>Enables the use of a more traditional style of prediction where the spectral
coefficients transmitted are replaced by the difference of the current
coefficients minus the previous "predicted" coefficients. In theory and sometimes
in practice this can improve quality for low to mid bitrate audio.
This option implies the aac_main profile and is incompatible with aac_ltp.
</p>
</dd>
<dt><span><samp>profile</samp></span></dt>
<dd><p>Sets the encoding profile, possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>aac_low</samp>’</span></dt>
<dd><p>The default, AAC "Low-complexity" profile. Is the most compatible and produces
decent quality.
</p>
</dd>
<dt><span>‘<samp>mpeg2_aac_low</samp>’</span></dt>
<dd><p>Equivalent to <code>-profile:a aac_low -aac_pns 0</code>. PNS was introduced with the
MPEG4 specifications.
</p>
</dd>
<dt><span>‘<samp>aac_ltp</samp>’</span></dt>
<dd><p>Long term prediction profile, is enabled by and will enable the <samp>aac_ltp</samp>
option. Introduced in MPEG4.
</p>
</dd>
<dt><span>‘<samp>aac_main</samp>’</span></dt>
<dd><p>Main-type prediction profile, is enabled by and will enable the <samp>aac_pred</samp>
option. Introduced in MPEG2.
</p>
</dd>
</dl>
<p>If this option is unspecified it is set to ‘<samp>aac_low</samp>’.
</p></dd>
</dl>
<a name="ac3-and-ac3_005ffixed"></a>
<h3 class="section">8.2 ac3 and ac3_fixed<span class="pull-right"><a class="anchor hidden-xs" href="#ac3-and-ac3_005ffixed" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ac3-and-ac3_005ffixed" aria-hidden="true">TOC</a></span></h3>
<p>AC-3 audio encoders.
</p>
<p>These encoders implement part of ATSC A/52:2010 and ETSI TS 102 366, as well as
the undocumented RealAudio 3 (a.k.a. dnet).
</p>
<p>The <var>ac3</var> encoder uses floating-point math, while the <var>ac3_fixed</var>
encoder only uses fixed-point integer math. This does not mean that one is
always faster, just that one or the other may be better suited to a
particular system. The <var>ac3_fixed</var> encoder is not the default codec for
any of the output formats, so it must be specified explicitly using the option
<code>-acodec ac3_fixed</code> in order to use it.
</p>
<a name="AC_002d3-Metadata"></a>
<h4 class="subsection">8.2.1 AC-3 Metadata<span class="pull-right"><a class="anchor hidden-xs" href="#AC_002d3-Metadata" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AC_002d3-Metadata" aria-hidden="true">TOC</a></span></h4>
<p>The AC-3 metadata options are used to set parameters that describe the audio,
but in most cases do not affect the audio encoding itself. Some of the options
do directly affect or influence the decoding and playback of the resulting
bitstream, while others are just for informational purposes. A few of the
options will add bits to the output stream that could otherwise be used for
audio data, and will thus affect the quality of the output. Those will be
indicated accordingly with a note in the option list below.
</p>
<p>These parameters are described in detail in several publicly-available
documents.
</p><ul>
<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>
</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>
</li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/18_Metadata.Guide.pdf">Dolby Metadata Guide</a>
</li><li> <a href="http://www.dolby.com/uploadedFiles/zz-_Shared_Assets/English_PDFs/Professional/46_DDEncodingGuidelines.pdf">Dolby Digital Professional Encoding Guidelines</a>
</li></ul>
<a name="Metadata-Control-Options"></a>
<h4 class="subsubsection">8.2.1.1 Metadata Control Options<span class="pull-right"><a class="anchor hidden-xs" href="#Metadata-Control-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Metadata-Control-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-per_frame_metadata <var>boolean</var></samp></span></dt>
<dd><p>Allow Per-Frame Metadata. Specifies if the encoder should check for changing
metadata for each frame.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dd><p>The metadata values set at initialization will be used for every frame in the
stream. (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dd><p>Metadata values can be changed before encoding each frame.
</p></dd>
</dl>
</dd>
</dl>
<a name="Downmix-Levels"></a>
<h4 class="subsubsection">8.2.1.2 Downmix Levels<span class="pull-right"><a class="anchor hidden-xs" href="#Downmix-Levels" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Downmix-Levels" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-center_mixlev <var>level</var></samp></span></dt>
<dd><p>Center Mix Level. The amount of gain the decoder should apply to the center
channel when downmixing to stereo. This field will only be written to the
bitstream if a center channel is present. The value is specified as a scale
factor. There are 3 valid values:
</p><dl compact="compact">
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3dB gain
</p></dd>
<dt><span><samp>0.595</samp></span></dt>
<dd><p>Apply -4.5dB gain (default)
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6dB gain
</p></dd>
</dl>
</dd>
<dt><span><samp>-surround_mixlev <var>level</var></samp></span></dt>
<dd><p>Surround Mix Level. The amount of gain the decoder should apply to the surround
channel(s) when downmixing to stereo. This field will only be written to the
bitstream if one or more surround channels are present. The value is specified
as a scale factor. There are 3 valid values:
</p><dl compact="compact">
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3dB gain
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6dB gain (default)
</p></dd>
<dt><span><samp>0.000</samp></span></dt>
<dd><p>Silence Surround Channel(s)
</p></dd>
</dl>
</dd>
</dl>
<a name="Audio-Production-Information"></a>
<h4 class="subsubsection">8.2.1.3 Audio Production Information<span class="pull-right"><a class="anchor hidden-xs" href="#Audio-Production-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Audio-Production-Information" aria-hidden="true">TOC</a></span></h4>
<p>Audio Production Information is optional information describing the mixing
environment. Either none or both of the fields are written to the bitstream.
</p>
<dl compact="compact">
<dt><span><samp>-mixing_level <var>number</var></samp></span></dt>
<dd><p>Mixing Level. Specifies peak sound pressure level (SPL) in the production
environment when the mix was mastered. Valid values are 80 to 111, or -1 for
unknown or not indicated. The default value is -1, but that value cannot be
used if the Audio Production Information is written to the bitstream. Therefore,
if the <code>room_type</code> option is not the default value, the <code>mixing_level</code>
option must not be -1.
</p>
</dd>
<dt><span><samp>-room_type <var>type</var></samp></span></dt>
<dd><p>Room Type. Describes the equalization used during the final mixing session at
the studio or on the dubbing stage. A large room is a dubbing stage with the
industry standard X-curve equalization; a small room has flat equalization.
This field will not be written to the bitstream if both the <code>mixing_level</code>
option and the <code>room_type</code> option have the default values.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>notindicated</samp></span></dt>
<dd><p>Not Indicated (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>large</samp></span></dt>
<dd><p>Large Room
</p></dd>
<dt><span><samp>2</samp></span></dt>
<dt><span><samp>small</samp></span></dt>
<dd><p>Small Room
</p></dd>
</dl>
</dd>
</dl>
<a name="Other-Metadata-Options"></a>
<h4 class="subsubsection">8.2.1.4 Other Metadata Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-Metadata-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-Metadata-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-copyright <var>boolean</var></samp></span></dt>
<dd><p>Copyright Indicator. Specifies whether a copyright exists for this audio.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>No Copyright Exists (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Copyright Exists
</p></dd>
</dl>
</dd>
<dt><span><samp>-dialnorm <var>value</var></samp></span></dt>
<dd><p>Dialogue Normalization. Indicates how far the average dialogue level of the
program is below digital 100% full scale (0 dBFS). This parameter determines a
level shift during audio reproduction that sets the average volume of the
dialogue to a preset level. The goal is to match volume level between program
sources. A value of -31dB will result in no volume level change, relative to
the source volume, during audio reproduction. Valid values are whole numbers in
the range -31 to -1, with -31 being the default.
</p>
</dd>
<dt><span><samp>-dsur_mode <var>mode</var></samp></span></dt>
<dd><p>Dolby Surround Mode. Specifies whether the stereo signal uses Dolby Surround
(Pro Logic). This field will only be written to the bitstream if the audio
stream is stereo. Using this option does <b>NOT</b> mean the encoder will actually
apply Dolby Surround processing.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>notindicated</samp></span></dt>
<dd><p>Not Indicated (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>Not Dolby Surround Encoded
</p></dd>
<dt><span><samp>2</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Dolby Surround Encoded
</p></dd>
</dl>
</dd>
<dt><span><samp>-original <var>boolean</var></samp></span></dt>
<dd><p>Original Bit Stream Indicator. Specifies whether this audio is from the
original source and not a copy.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>Not Original Source
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Original Source (default)
</p></dd>
</dl>
</dd>
</dl>
<a name="Extended-Bitstream-Information"></a>
<h4 class="subsection">8.2.2 Extended Bitstream Information<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information" aria-hidden="true">TOC</a></span></h4>
<p>The extended bitstream options are part of the Alternate Bit Stream Syntax as
specified in Annex D of the A/52:2010 standard. It is grouped into 2 parts.
If any one parameter in a group is specified, all values in that group will be
written to the bitstream. Default values are used for those that are written
but have not been specified. If the mixing levels are written, the decoder
will use these values instead of the ones specified in the <code>center_mixlev</code>
and <code>surround_mixlev</code> options if it supports the Alternate Bit Stream
Syntax.
</p>
<a name="Extended-Bitstream-Information-_002d-Part-1"></a>
<h4 class="subsubsection">8.2.2.1 Extended Bitstream Information - Part 1<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-1" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-dmix_mode <var>mode</var></samp></span></dt>
<dd><p>Preferred Stereo Downmix Mode. Allows the user to select either Lt/Rt
(Dolby Surround) or Lo/Ro (normal stereo) as the preferred stereo downmix mode.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>notindicated</samp></span></dt>
<dd><p>Not Indicated (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>ltrt</samp></span></dt>
<dd><p>Lt/Rt Downmix Preferred
</p></dd>
<dt><span><samp>2</samp></span></dt>
<dt><span><samp>loro</samp></span></dt>
<dd><p>Lo/Ro Downmix Preferred
</p></dd>
</dl>
</dd>
<dt><span><samp>-ltrt_cmixlev <var>level</var></samp></span></dt>
<dd><p>Lt/Rt Center Mix Level. The amount of gain the decoder should apply to the
center channel when downmixing to stereo in Lt/Rt mode.
</p><dl compact="compact">
<dt><span><samp>1.414</samp></span></dt>
<dd><p>Apply +3dB gain
</p></dd>
<dt><span><samp>1.189</samp></span></dt>
<dd><p>Apply +1.5dB gain
</p></dd>
<dt><span><samp>1.000</samp></span></dt>
<dd><p>Apply 0dB gain
</p></dd>
<dt><span><samp>0.841</samp></span></dt>
<dd><p>Apply -1.5dB gain
</p></dd>
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3.0dB gain
</p></dd>
<dt><span><samp>0.595</samp></span></dt>
<dd><p>Apply -4.5dB gain (default)
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6.0dB gain
</p></dd>
<dt><span><samp>0.000</samp></span></dt>
<dd><p>Silence Center Channel
</p></dd>
</dl>
</dd>
<dt><span><samp>-ltrt_surmixlev <var>level</var></samp></span></dt>
<dd><p>Lt/Rt Surround Mix Level. The amount of gain the decoder should apply to the
surround channel(s) when downmixing to stereo in Lt/Rt mode.
</p><dl compact="compact">
<dt><span><samp>0.841</samp></span></dt>
<dd><p>Apply -1.5dB gain
</p></dd>
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3.0dB gain
</p></dd>
<dt><span><samp>0.595</samp></span></dt>
<dd><p>Apply -4.5dB gain
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6.0dB gain (default)
</p></dd>
<dt><span><samp>0.000</samp></span></dt>
<dd><p>Silence Surround Channel(s)
</p></dd>
</dl>
</dd>
<dt><span><samp>-loro_cmixlev <var>level</var></samp></span></dt>
<dd><p>Lo/Ro Center Mix Level. The amount of gain the decoder should apply to the
center channel when downmixing to stereo in Lo/Ro mode.
</p><dl compact="compact">
<dt><span><samp>1.414</samp></span></dt>
<dd><p>Apply +3dB gain
</p></dd>
<dt><span><samp>1.189</samp></span></dt>
<dd><p>Apply +1.5dB gain
</p></dd>
<dt><span><samp>1.000</samp></span></dt>
<dd><p>Apply 0dB gain
</p></dd>
<dt><span><samp>0.841</samp></span></dt>
<dd><p>Apply -1.5dB gain
</p></dd>
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3.0dB gain
</p></dd>
<dt><span><samp>0.595</samp></span></dt>
<dd><p>Apply -4.5dB gain (default)
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6.0dB gain
</p></dd>
<dt><span><samp>0.000</samp></span></dt>
<dd><p>Silence Center Channel
</p></dd>
</dl>
</dd>
<dt><span><samp>-loro_surmixlev <var>level</var></samp></span></dt>
<dd><p>Lo/Ro Surround Mix Level. The amount of gain the decoder should apply to the
surround channel(s) when downmixing to stereo in Lo/Ro mode.
</p><dl compact="compact">
<dt><span><samp>0.841</samp></span></dt>
<dd><p>Apply -1.5dB gain
</p></dd>
<dt><span><samp>0.707</samp></span></dt>
<dd><p>Apply -3.0dB gain
</p></dd>
<dt><span><samp>0.595</samp></span></dt>
<dd><p>Apply -4.5dB gain
</p></dd>
<dt><span><samp>0.500</samp></span></dt>
<dd><p>Apply -6.0dB gain (default)
</p></dd>
<dt><span><samp>0.000</samp></span></dt>
<dd><p>Silence Surround Channel(s)
</p></dd>
</dl>
</dd>
</dl>
<a name="Extended-Bitstream-Information-_002d-Part-2"></a>
<h4 class="subsubsection">8.2.2.2 Extended Bitstream Information - Part 2<span class="pull-right"><a class="anchor hidden-xs" href="#Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Extended-Bitstream-Information-_002d-Part-2" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-dsurex_mode <var>mode</var></samp></span></dt>
<dd><p>Dolby Surround EX Mode. Indicates whether the stream uses Dolby Surround EX
(7.1 matrixed to 5.1). Using this option does <b>NOT</b> mean the encoder will actually
apply Dolby Surround EX processing.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>notindicated</samp></span></dt>
<dd><p>Not Indicated (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Dolby Surround EX Off
</p></dd>
<dt><span><samp>2</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>Dolby Surround EX On
</p></dd>
</dl>
</dd>
<dt><span><samp>-dheadphone_mode <var>mode</var></samp></span></dt>
<dd><p>Dolby Headphone Mode. Indicates whether the stream uses Dolby Headphone
encoding (multi-channel matrixed to 2.0 for use with headphones). Using this
option does <b>NOT</b> mean the encoder will actually apply Dolby Headphone
processing.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>notindicated</samp></span></dt>
<dd><p>Not Indicated (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Dolby Headphone Off
</p></dd>
<dt><span><samp>2</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>Dolby Headphone On
</p></dd>
</dl>
</dd>
<dt><span><samp>-ad_conv_type <var>type</var></samp></span></dt>
<dd><p>A/D Converter Type. Indicates whether the audio has passed through HDCD A/D
conversion.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>standard</samp></span></dt>
<dd><p>Standard A/D Converter (default)
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>hdcd</samp></span></dt>
<dd><p>HDCD A/D Converter
</p></dd>
</dl>
</dd>
</dl>
<a name="Other-AC_002d3-Encoding-Options"></a>
<h4 class="subsection">8.2.3 Other AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Other-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Other-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-stereo_rematrixing <var>boolean</var></samp></span></dt>
<dd><p>Stereo Rematrixing. Enables/Disables use of rematrixing for stereo input. This
is an optional AC-3 feature that increases quality by selectively encoding
the left/right channels as mid/side. This option is enabled by default, and it
is highly recommended that it be left as enabled except for testing purposes.
</p>
</dd>
<dt><span><samp>cutoff <var>frequency</var></samp></span></dt>
<dd><p>Set lowpass cutoff frequency. If unspecified, the encoder selects a default
determined by various other encoding parameters.
</p>
</dd>
</dl>
<a name="Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options"></a>
<h4 class="subsection">8.2.4 Floating-Point-Only AC-3 Encoding Options<span class="pull-right"><a class="anchor hidden-xs" href="#Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Floating_002dPoint_002dOnly-AC_002d3-Encoding-Options" aria-hidden="true">TOC</a></span></h4>
<p>These options are only valid for the floating-point encoder and do not exist
for the fixed-point encoder due to the corresponding features not being
implemented in fixed-point.
</p>
<dl compact="compact">
<dt><span><samp>-channel_coupling <var>boolean</var></samp></span></dt>
<dd><p>Enables/Disables use of channel coupling, which is an optional AC-3 feature
that increases quality by combining high frequency information from multiple
channels into a single channel. The per-channel high frequency information is
sent with less accuracy in both the frequency and time domains. This allows
more bits to be used for lower frequencies while preserving enough information
to reconstruct the high frequencies. This option is enabled by default for the
floating-point encoder and should generally be left as enabled except for
testing purposes or to increase encoding speed.
</p><dl compact="compact">
<dt><span><samp>-1</samp></span></dt>
<dt><span><samp>auto</samp></span></dt>
<dd><p>Selected by Encoder (default)
</p></dd>
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>off</samp></span></dt>
<dd><p>Disable Channel Coupling
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>on</samp></span></dt>
<dd><p>Enable Channel Coupling
</p></dd>
</dl>
</dd>
<dt><span><samp>-cpl_start_band <var>number</var></samp></span></dt>
<dd><p>Coupling Start Band. Sets the channel coupling start band, from 1 to 15. If a
value higher than the bandwidth is used, it will be reduced to 1 less than the
coupling end band. If <var>auto</var> is used, the start band will be determined by
the encoder based on the bit rate, sample rate, and channel layout. This option
has no effect if channel coupling is disabled.
</p><dl compact="compact">
<dt><span><samp>-1</samp></span></dt>
<dt><span><samp>auto</samp></span></dt>
<dd><p>Selected by Encoder (default)
</p></dd>
</dl>
</dd>
</dl>
<span id="flac"></span><a name="flac-2"></a>
<h3 class="section">8.3 flac<span class="pull-right"><a class="anchor hidden-xs" href="#flac-2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-flac-2" aria-hidden="true">TOC</a></span></h3>
<p>FLAC (Free Lossless Audio Codec) Encoder
</p>
<a name="Options-10"></a>
<h4 class="subsection">8.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-10" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-10" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by FFmpeg’s flac encoder.
</p>
<dl compact="compact">
<dt><span><samp>compression_level</samp></span></dt>
<dd><p>Sets the compression level, which chooses defaults for many other options
if they are not set explicitly. Valid values are from 0 to 12, 5 is the
default.
</p>
</dd>
<dt><span><samp>frame_size</samp></span></dt>
<dd><p>Sets the size of the frames in samples per channel.
</p>
</dd>
<dt><span><samp>lpc_coeff_precision</samp></span></dt>
<dd><p>Sets the LPC coefficient precision, valid values are from 1 to 15, 15 is the
default.
</p>
</dd>
<dt><span><samp>lpc_type</samp></span></dt>
<dd><p>Sets the first stage LPC algorithm
</p><dl compact="compact">
<dt><span>‘<samp>none</samp>’</span></dt>
<dd><p>LPC is not used
</p>
</dd>
<dt><span>‘<samp>fixed</samp>’</span></dt>
<dd><p>fixed LPC coefficients
</p>
</dd>
<dt><span>‘<samp>levinson</samp>’</span></dt>
<dt><span>‘<samp>cholesky</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>lpc_passes</samp></span></dt>
<dd><p>Number of passes to use for Cholesky factorization during LPC analysis
</p>
</dd>
<dt><span><samp>min_partition_order</samp></span></dt>
<dd><p>The minimum partition order
</p>
</dd>
<dt><span><samp>max_partition_order</samp></span></dt>
<dd><p>The maximum partition order
</p>
</dd>
<dt><span><samp>prediction_order_method</samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>estimation</samp>’</span></dt>
<dt><span>‘<samp>2level</samp>’</span></dt>
<dt><span>‘<samp>4level</samp>’</span></dt>
<dt><span>‘<samp>8level</samp>’</span></dt>
<dt><span>‘<samp>search</samp>’</span></dt>
<dd><p>Bruteforce search
</p></dd>
<dt><span>‘<samp>log</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>ch_mode</samp></span></dt>
<dd><p>Channel mode
</p><dl compact="compact">
<dt><span>‘<samp>auto</samp>’</span></dt>
<dd><p>The mode is chosen automatically for each frame
</p></dd>
<dt><span>‘<samp>indep</samp>’</span></dt>
<dd><p>Channels are independently coded
</p></dd>
<dt><span>‘<samp>left_side</samp>’</span></dt>
<dt><span>‘<samp>right_side</samp>’</span></dt>
<dt><span>‘<samp>mid_side</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>exact_rice_parameters</samp></span></dt>
<dd><p>Chooses if rice parameters are calculated exactly or approximately.
if set to 1 then they are chosen exactly, which slows the code down slightly and
improves compression slightly.
</p>
</dd>
<dt><span><samp>multi_dim_quant</samp></span></dt>
<dd><p>Multi Dimensional Quantization. If set to 1 then a 2nd stage LPC algorithm is
applied after the first stage to finetune the coefficients. This is quite slow
and slightly improves compression.
</p>
</dd>
</dl>
<span id="opusenc"></span><a name="opus"></a>
<h3 class="section">8.4 opus<span class="pull-right"><a class="anchor hidden-xs" href="#opus" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-opus" aria-hidden="true">TOC</a></span></h3>
<p>Opus encoder.
</p>
<p>This is a native FFmpeg encoder for the Opus format. Currently its in development and
only implements the CELT part of the codec. Its quality is usually worse and at best
is equal to the libopus encoder.
</p>
<a name="Options-11"></a>
<h4 class="subsection">8.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-11" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-11" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bit rate in bits/s. If unspecified it uses the number of channels and the layout
to make a good guess.
</p>
</dd>
<dt><span><samp>opus_delay</samp></span></dt>
<dd><p>Sets the maximum delay in milliseconds. Lower delays than 20ms will very quickly
decrease quality.
</p></dd>
</dl>
<span id="libfdk_002daac_002denc"></span><a name="libfdk_005faac"></a>
<h3 class="section">8.5 libfdk_aac<span class="pull-right"><a class="anchor hidden-xs" href="#libfdk_005faac" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libfdk_005faac" aria-hidden="true">TOC</a></span></h3>
<p>libfdk-aac AAC (Advanced Audio Coding) encoder wrapper.
</p>
<p>The libfdk-aac library is based on the Fraunhofer FDK AAC code from
the Android project.
</p>
<p>Requires the presence of the libfdk-aac headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libfdk-aac</code>. The library is also incompatible with GPL,
so if you allow the use of GPL, you should configure with
<code>--enable-gpl --enable-nonfree --enable-libfdk-aac</code>.
</p>
<p>This encoder has support for the AAC-HE profiles.
</p>
<p>VBR encoding, enabled through the <samp>vbr</samp> or <samp>flags
+qscale</samp> options, is experimental and only works with some
combinations of parameters.
</p>
<p>Support for encoding 7.1 audio is only available with libfdk-aac 0.1.3 or
higher.
</p>
<p>For more information see the fdk-aac project at
<a href="http://sourceforge.net/p/opencore-amr/fdk-aac/">http://sourceforge.net/p/opencore-amr/fdk-aac/</a>.
</p>
<a name="Options-12"></a>
<h4 class="subsection">8.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-12" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-12" aria-hidden="true">TOC</a></span></h4>
<p>The following options are mapped on the shared FFmpeg codec options.
</p>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bit rate in bits/s. If the bitrate is not explicitly specified, it
is automatically set to a suitable value depending on the selected
profile.
</p>
<p>In case VBR mode is enabled the option is ignored.
</p>
</dd>
<dt><span><samp>ar</samp></span></dt>
<dd><p>Set audio sampling rate (in Hz).
</p>
</dd>
<dt><span><samp>channels</samp></span></dt>
<dd><p>Set the number of audio channels.
</p>
</dd>
<dt><span><samp>flags +qscale</samp></span></dt>
<dd><p>Enable fixed quality, VBR (Variable Bit Rate) mode.
Note that VBR is implicitly enabled when the <samp>vbr</samp> value is
positive.
</p>
</dd>
<dt><span><samp>cutoff</samp></span></dt>
<dd><p>Set cutoff frequency. If not specified (or explicitly set to 0) it
will use a value automatically computed by the library. Default value
is 0.
</p>
</dd>
<dt><span><samp>profile</samp></span></dt>
<dd><p>Set audio profile.
</p>
<p>The following profiles are recognized:
</p><dl compact="compact">
<dt><span>‘<samp>aac_low</samp>’</span></dt>
<dd><p>Low Complexity AAC (LC)
</p>
</dd>
<dt><span>‘<samp>aac_he</samp>’</span></dt>
<dd><p>High Efficiency AAC (HE-AAC)
</p>
</dd>
<dt><span>‘<samp>aac_he_v2</samp>’</span></dt>
<dd><p>High Efficiency AAC version 2 (HE-AACv2)
</p>
</dd>
<dt><span>‘<samp>aac_ld</samp>’</span></dt>
<dd><p>Low Delay AAC (LD)
</p>
</dd>
<dt><span>‘<samp>aac_eld</samp>’</span></dt>
<dd><p>Enhanced Low Delay AAC (ELD)
</p></dd>
</dl>
<p>If not specified it is set to ‘<samp>aac_low</samp>’.
</p></dd>
</dl>
<p>The following are private options of the libfdk_aac encoder.
</p>
<dl compact="compact">
<dt><span><samp>afterburner</samp></span></dt>
<dd><p>Enable afterburner feature if set to 1, disabled if set to 0. This
improves the quality but also the required processing power.
</p>
<p>Default value is 1.
</p>
</dd>
<dt><span><samp>eld_sbr</samp></span></dt>
<dd><p>Enable SBR (Spectral Band Replication) for ELD if set to 1, disabled
if set to 0.
</p>
<p>Default value is 0.
</p>
</dd>
<dt><span><samp>eld_v2</samp></span></dt>
<dd><p>Enable ELDv2 (LD-MPS extension for ELD stereo signals) for ELDv2 if set to 1,
disabled if set to 0.
</p>
<p>Note that option is available when fdk-aac version (AACENCODER_LIB_VL0.AACENCODER_LIB_VL1.AACENCODER_LIB_VL2) > (4.0.0).
</p>
<p>Default value is 0.
</p>
</dd>
<dt><span><samp>signaling</samp></span></dt>
<dd><p>Set SBR/PS signaling style.
</p>
<p>It can assume one of the following values:
</p><dl compact="compact">
<dt><span>‘<samp>default</samp>’</span></dt>
<dd><p>choose signaling implicitly (explicit hierarchical by default,
implicit if global header is disabled)
</p>
</dd>
<dt><span>‘<samp>implicit</samp>’</span></dt>
<dd><p>implicit backwards compatible signaling
</p>
</dd>
<dt><span>‘<samp>explicit_sbr</samp>’</span></dt>
<dd><p>explicit SBR, implicit PS signaling
</p>
</dd>
<dt><span>‘<samp>explicit_hierarchical</samp>’</span></dt>
<dd><p>explicit hierarchical signaling
</p></dd>
</dl>
<p>Default value is ‘<samp>default</samp>’.
</p>
</dd>
<dt><span><samp>latm</samp></span></dt>
<dd><p>Output LATM/LOAS encapsulated data if set to 1, disabled if set to 0.
</p>
<p>Default value is 0.
</p>
</dd>
<dt><span><samp>header_period</samp></span></dt>
<dd><p>Set StreamMuxConfig and PCE repetition period (in frames) for sending
in-band configuration buffers within LATM/LOAS transport layer.
</p>
<p>Must be a 16-bits non-negative integer.
</p>
<p>Default value is 0.
</p>
</dd>
<dt><span><samp>vbr</samp></span></dt>
<dd><p>Set VBR mode, from 1 to 5. 1 is lowest quality (though still pretty
good) and 5 is highest quality. A value of 0 will disable VBR, and CBR
(Constant Bit Rate) is enabled.
</p>
<p>Currently only the ‘<samp>aac_low</samp>’ profile supports VBR encoding.
</p>
<p>VBR modes 1-5 correspond to roughly the following average bit rates:
</p>
<dl compact="compact">
<dt><span>‘<samp>1</samp>’</span></dt>
<dd><p>32 kbps/channel
</p></dd>
<dt><span>‘<samp>2</samp>’</span></dt>
<dd><p>40 kbps/channel
</p></dd>
<dt><span>‘<samp>3</samp>’</span></dt>
<dd><p>48-56 kbps/channel
</p></dd>
<dt><span>‘<samp>4</samp>’</span></dt>
<dd><p>64 kbps/channel
</p></dd>
<dt><span>‘<samp>5</samp>’</span></dt>
<dd><p>about 80-96 kbps/channel
</p></dd>
</dl>
<p>Default value is 0.
</p></dd>
</dl>
<a name="Examples"></a>
<h4 class="subsection">8.5.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples" aria-hidden="true">TOC</a></span></h4>
<ul>
<li> Use <code>ffmpeg</code> to convert an audio file to VBR AAC in an M4A (MP4)
container:
<div class="example">
<pre class="example">ffmpeg -i input.wav -codec:a libfdk_aac -vbr 3 output.m4a
</pre></div>
</li><li> Use <code>ffmpeg</code> to convert an audio file to CBR 64k kbps AAC, using the
High-Efficiency AAC profile:
<div class="example">
<pre class="example">ffmpeg -i input.wav -c:a libfdk_aac -profile:a aac_he -b:a 64k output.m4a
</pre></div>
</li></ul>
<span id="libmp3lame"></span><a name="libmp3lame-1"></a>
<h3 class="section">8.6 libmp3lame<span class="pull-right"><a class="anchor hidden-xs" href="#libmp3lame-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libmp3lame-1" aria-hidden="true">TOC</a></span></h3>
<p>LAME (Lame Ain’t an MP3 Encoder) MP3 encoder wrapper.
</p>
<p>Requires the presence of the libmp3lame headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libmp3lame</code>.
</p>
<p>See <a href="#libshine">libshine</a> for a fixed-point MP3 encoder, although with a
lower quality.
</p>
<a name="Options-13"></a>
<h4 class="subsection">8.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-13" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-13" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libmp3lame wrapper. The
<code>lame</code>-equivalent of the options are listed in parentheses.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>-b</em>)</samp></span></dt>
<dd><p>Set bitrate expressed in bits/s for CBR or ABR. LAME <code>bitrate</code> is
expressed in kilobits/s.
</p>
</dd>
<dt><span><samp>q (<em>-V</em>)</samp></span></dt>
<dd><p>Set constant quality setting for VBR. This option is valid only
using the <code>ffmpeg</code> command-line tool. For library interface
users, use <samp>global_quality</samp>.
</p>
</dd>
<dt><span><samp>compression_level (<em>-q</em>)</samp></span></dt>
<dd><p>Set algorithm quality. Valid arguments are integers in the 0-9 range,
with 0 meaning highest quality but slowest, and 9 meaning fastest
while producing the worst quality.
</p>
</dd>
<dt><span><samp>cutoff (<em>--lowpass</em>)</samp></span></dt>
<dd><p>Set lowpass cutoff frequency. If unspecified, the encoder dynamically
adjusts the cutoff.
</p>
</dd>
<dt><span><samp>reservoir</samp></span></dt>
<dd><p>Enable use of bit reservoir when set to 1. Default value is 1. LAME
has this enabled by default, but can be overridden by use
<samp>--nores</samp> option.
</p>
</dd>
<dt><span><samp>joint_stereo (<em>-m j</em>)</samp></span></dt>
<dd><p>Enable the encoder to use (on a frame by frame basis) either L/R
stereo or mid/side stereo. Default value is 1.
</p>
</dd>
<dt><span><samp>abr (<em>--abr</em>)</samp></span></dt>
<dd><p>Enable the encoder to use ABR when set to 1. The <code>lame</code>
<samp>--abr</samp> sets the target bitrate, while this options only
tells FFmpeg to use ABR still relies on <samp>b</samp> to set bitrate.
</p>
</dd>
</dl>
<a name="libopencore_002damrnb-1"></a>
<h3 class="section">8.7 libopencore-amrnb<span class="pull-right"><a class="anchor hidden-xs" href="#libopencore_002damrnb-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopencore_002damrnb-1" aria-hidden="true">TOC</a></span></h3>
<p>OpenCORE Adaptive Multi-Rate Narrowband encoder.
</p>
<p>Requires the presence of the libopencore-amrnb headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libopencore-amrnb --enable-version3</code>.
</p>
<p>This is a mono-only encoder. Officially it only supports 8000Hz sample rate,
but you can override it by setting <samp>strict</samp> to ‘<samp>unofficial</samp>’ or
lower.
</p>
<a name="Options-14"></a>
<h4 class="subsection">8.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-14" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-14" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bitrate in bits per second. Only the following bitrates are supported,
otherwise libavcodec will round to the nearest valid bitrate.
</p>
<dl compact="compact">
<dt><span><samp>4750</samp></span></dt>
<dt><span><samp>5150</samp></span></dt>
<dt><span><samp>5900</samp></span></dt>
<dt><span><samp>6700</samp></span></dt>
<dt><span><samp>7400</samp></span></dt>
<dt><span><samp>7950</samp></span></dt>
<dt><span><samp>10200</samp></span></dt>
<dt><span><samp>12200</samp></span></dt>
</dl>
</dd>
<dt><span><samp>dtx</samp></span></dt>
<dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
default value is 0 (disabled).
</p>
</dd>
</dl>
<a name="libopus-1"></a>
<h3 class="section">8.8 libopus<span class="pull-right"><a class="anchor hidden-xs" href="#libopus-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopus-1" aria-hidden="true">TOC</a></span></h3>
<p>libopus Opus Interactive Audio Codec encoder wrapper.
</p>
<p>Requires the presence of the libopus headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libopus</code>.
</p>
<a name="Option-Mapping"></a>
<h4 class="subsection">8.8.1 Option Mapping<span class="pull-right"><a class="anchor hidden-xs" href="#Option-Mapping" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Option-Mapping" aria-hidden="true">TOC</a></span></h4>
<p>Most libopus options are modelled after the <code>opusenc</code> utility from
opus-tools. The following is an option mapping chart describing options
supported by the libopus wrapper, and their <code>opusenc</code>-equivalent
in parentheses.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>bitrate</em>)</samp></span></dt>
<dd><p>Set the bit rate in bits/s. FFmpeg’s <samp>b</samp> option is
expressed in bits/s, while <code>opusenc</code>’s <samp>bitrate</samp> in
kilobits/s.
</p>
</dd>
<dt><span><samp>vbr (<em>vbr</em>, <em>hard-cbr</em>, and <em>cvbr</em>)</samp></span></dt>
<dd><p>Set VBR mode. The FFmpeg <samp>vbr</samp> option has the following
valid arguments, with the <code>opusenc</code> equivalent options
in parentheses:
</p>
<dl compact="compact">
<dt><span>‘<samp>off (<em>hard-cbr</em>)</samp>’</span></dt>
<dd><p>Use constant bit rate encoding.
</p>
</dd>
<dt><span>‘<samp>on (<em>vbr</em>)</samp>’</span></dt>
<dd><p>Use variable bit rate encoding (the default).
</p>
</dd>
<dt><span>‘<samp>constrained (<em>cvbr</em>)</samp>’</span></dt>
<dd><p>Use constrained variable bit rate encoding.
</p></dd>
</dl>
</dd>
<dt><span><samp>compression_level (<em>comp</em>)</samp></span></dt>
<dd><p>Set encoding algorithm complexity. Valid options are integers in
the 0-10 range. 0 gives the fastest encodes but lower quality, while 10
gives the highest quality but slowest encoding. The default is 10.
</p>
</dd>
<dt><span><samp>frame_duration (<em>framesize</em>)</samp></span></dt>
<dd><p>Set maximum frame size, or duration of a frame in milliseconds. The
argument must be exactly the following: 2.5, 5, 10, 20, 40, 60. Smaller
frame sizes achieve lower latency but less quality at a given bitrate.
Sizes greater than 20ms are only interesting at fairly low bitrates.
The default is 20ms.
</p>
</dd>
<dt><span><samp>packet_loss (<em>expect-loss</em>)</samp></span></dt>
<dd><p>Set expected packet loss percentage. The default is 0.
</p>
</dd>
<dt><span><samp>fec (<em>n/a</em>)</samp></span></dt>
<dd><p>Enable inband forward error correction. <samp>packet_loss</samp> must be non-zero
to take advantage - frequency of FEC ’side-data’ is proportional to expected packet loss.
Default is disabled.
</p>
</dd>
<dt><span><samp>application (N.A.)</samp></span></dt>
<dd><p>Set intended application type. Valid options are listed below:
</p>
<dl compact="compact">
<dt><span>‘<samp>voip</samp>’</span></dt>
<dd><p>Favor improved speech intelligibility.
</p></dd>
<dt><span>‘<samp>audio</samp>’</span></dt>
<dd><p>Favor faithfulness to the input (the default).
</p></dd>
<dt><span>‘<samp>lowdelay</samp>’</span></dt>
<dd><p>Restrict to only the lowest delay modes.
</p></dd>
</dl>
</dd>
<dt><span><samp>cutoff (N.A.)</samp></span></dt>
<dd><p>Set cutoff bandwidth in Hz. The argument must be exactly one of the
following: 4000, 6000, 8000, 12000, or 20000, corresponding to
narrowband, mediumband, wideband, super wideband, and fullband
respectively. The default is 0 (cutoff disabled).
</p>
</dd>
<dt><span><samp>mapping_family (<em>mapping_family</em>)</samp></span></dt>
<dd><p>Set channel mapping family to be used by the encoder. The default value of -1
uses mapping family 0 for mono and stereo inputs, and mapping family 1
otherwise. The default also disables the surround masking and LFE bandwidth
optimzations in libopus, and requires that the input contains 8 channels or
fewer.
</p>
<p>Other values include 0 for mono and stereo, 1 for surround sound with masking
and LFE bandwidth optimizations, and 255 for independent streams with an
unspecified channel layout.
</p>
</dd>
<dt><span><samp>apply_phase_inv (N.A.) (requires libopus >= 1.2)</samp></span></dt>
<dd><p>If set to 0, disables the use of phase inversion for intensity stereo,
improving the quality of mono downmixes, but slightly reducing normal stereo
quality. The default is 1 (phase inversion enabled).
</p>
</dd>
</dl>
<span id="libshine"></span><a name="libshine-1"></a>
<h3 class="section">8.9 libshine<span class="pull-right"><a class="anchor hidden-xs" href="#libshine-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libshine-1" aria-hidden="true">TOC</a></span></h3>
<p>Shine Fixed-Point MP3 encoder wrapper.
</p>
<p>Shine is a fixed-point MP3 encoder. It has a far better performance on
platforms without an FPU, e.g. armel CPUs, and some phones and tablets.
However, as it is more targeted on performance than quality, it is not on par
with LAME and other production-grade encoders quality-wise. Also, according to
the project’s homepage, this encoder may not be free of bugs as the code was
written a long time ago and the project was dead for at least 5 years.
</p>
<p>This encoder only supports stereo and mono input. This is also CBR-only.
</p>
<p>The original project (last updated in early 2007) is at
<a href="http://sourceforge.net/projects/libshine-fxp/">http://sourceforge.net/projects/libshine-fxp/</a>. We only support the
updated fork by the Savonet/Liquidsoap project at <a href="https://github.com/savonet/shine">https://github.com/savonet/shine</a>.
</p>
<p>Requires the presence of the libshine headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libshine</code>.
</p>
<p>See also <a href="#libmp3lame">libmp3lame</a>.
</p>
<a name="Options-15"></a>
<h4 class="subsection">8.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-15" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-15" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libshine wrapper. The
<code>shineenc</code>-equivalent of the options are listed in parentheses.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>-b</em>)</samp></span></dt>
<dd><p>Set bitrate expressed in bits/s for CBR. <code>shineenc</code> <samp>-b</samp> option
is expressed in kilobits/s.
</p>
</dd>
</dl>
<a name="libtwolame"></a>
<h3 class="section">8.10 libtwolame<span class="pull-right"><a class="anchor hidden-xs" href="#libtwolame" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtwolame" aria-hidden="true">TOC</a></span></h3>
<p>TwoLAME MP2 encoder wrapper.
</p>
<p>Requires the presence of the libtwolame headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libtwolame</code>.
</p>
<a name="Options-16"></a>
<h4 class="subsection">8.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-16" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-16" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libtwolame wrapper. The
<code>twolame</code>-equivalent options follow the FFmpeg ones and are in
parentheses.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>-b</em>)</samp></span></dt>
<dd><p>Set bitrate expressed in bits/s for CBR. <code>twolame</code> <samp>b</samp>
option is expressed in kilobits/s. Default value is 128k.
</p>
</dd>
<dt><span><samp>q (<em>-V</em>)</samp></span></dt>
<dd><p>Set quality for experimental VBR support. Maximum value range is
from -50 to 50, useful range is from -10 to 10. The higher the
value, the better the quality. This option is valid only using the
<code>ffmpeg</code> command-line tool. For library interface users,
use <samp>global_quality</samp>.
</p>
</dd>
<dt><span><samp>mode (<em>--mode</em>)</samp></span></dt>
<dd><p>Set the mode of the resulting audio. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>auto</samp>’</span></dt>
<dd><p>Choose mode automatically based on the input. This is the default.
</p></dd>
<dt><span>‘<samp>stereo</samp>’</span></dt>
<dd><p>Stereo
</p></dd>
<dt><span>‘<samp>joint_stereo</samp>’</span></dt>
<dd><p>Joint stereo
</p></dd>
<dt><span>‘<samp>dual_channel</samp>’</span></dt>
<dd><p>Dual channel
</p></dd>
<dt><span>‘<samp>mono</samp>’</span></dt>
<dd><p>Mono
</p></dd>
</dl>
</dd>
<dt><span><samp>psymodel (<em>--psyc-mode</em>)</samp></span></dt>
<dd><p>Set psychoacoustic model to use in encoding. The argument must be
an integer between -1 and 4, inclusive. The higher the value, the
better the quality. The default value is 3.
</p>
</dd>
<dt><span><samp>energy_levels (<em>--energy</em>)</samp></span></dt>
<dd><p>Enable energy levels extensions when set to 1. The default value is
0 (disabled).
</p>
</dd>
<dt><span><samp>error_protection (<em>--protect</em>)</samp></span></dt>
<dd><p>Enable CRC error protection when set to 1. The default value is 0
(disabled).
</p>
</dd>
<dt><span><samp>copyright (<em>--copyright</em>)</samp></span></dt>
<dd><p>Set MPEG audio copyright flag when set to 1. The default value is 0
(disabled).
</p>
</dd>
<dt><span><samp>original (<em>--original</em>)</samp></span></dt>
<dd><p>Set MPEG audio original flag when set to 1. The default value is 0
(disabled).
</p>
</dd>
</dl>
<a name="libvo_002damrwbenc"></a>
<h3 class="section">8.11 libvo-amrwbenc<span class="pull-right"><a class="anchor hidden-xs" href="#libvo_002damrwbenc" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvo_002damrwbenc" aria-hidden="true">TOC</a></span></h3>
<p>VisualOn Adaptive Multi-Rate Wideband encoder.
</p>
<p>Requires the presence of the libvo-amrwbenc headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libvo-amrwbenc --enable-version3</code>.
</p>
<p>This is a mono-only encoder. Officially it only supports 16000Hz sample
rate, but you can override it by setting <samp>strict</samp> to
‘<samp>unofficial</samp>’ or lower.
</p>
<a name="Options-17"></a>
<h4 class="subsection">8.11.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-17" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-17" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bitrate in bits/s. Only the following bitrates are supported, otherwise
libavcodec will round to the nearest valid bitrate.
</p>
<dl compact="compact">
<dt><span>‘<samp>6600</samp>’</span></dt>
<dt><span>‘<samp>8850</samp>’</span></dt>
<dt><span>‘<samp>12650</samp>’</span></dt>
<dt><span>‘<samp>14250</samp>’</span></dt>
<dt><span>‘<samp>15850</samp>’</span></dt>
<dt><span>‘<samp>18250</samp>’</span></dt>
<dt><span>‘<samp>19850</samp>’</span></dt>
<dt><span>‘<samp>23050</samp>’</span></dt>
<dt><span>‘<samp>23850</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>dtx</samp></span></dt>
<dd><p>Allow discontinuous transmission (generate comfort noise) when set to 1. The
default value is 0 (disabled).
</p>
</dd>
</dl>
<a name="libvorbis"></a>
<h3 class="section">8.12 libvorbis<span class="pull-right"><a class="anchor hidden-xs" href="#libvorbis" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvorbis" aria-hidden="true">TOC</a></span></h3>
<p>libvorbis encoder wrapper.
</p>
<p>Requires the presence of the libvorbisenc headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libvorbis</code>.
</p>
<a name="Options-18"></a>
<h4 class="subsection">8.12.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-18" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-18" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libvorbis wrapper. The
<code>oggenc</code>-equivalent of the options are listed in parentheses.
</p>
<p>To get a more accurate and extensive documentation of the libvorbis
options, consult the libvorbisenc’s and <code>oggenc</code>’s documentations.
See <a href="http://xiph.org/vorbis/">http://xiph.org/vorbis/</a>,
<a href="http://wiki.xiph.org/Vorbis-tools">http://wiki.xiph.org/Vorbis-tools</a>, and oggenc(1).
</p>
<dl compact="compact">
<dt><span><samp>b (<em>-b</em>)</samp></span></dt>
<dd><p>Set bitrate expressed in bits/s for ABR. <code>oggenc</code> <samp>-b</samp> is
expressed in kilobits/s.
</p>
</dd>
<dt><span><samp>q (<em>-q</em>)</samp></span></dt>
<dd><p>Set constant quality setting for VBR. The value should be a float
number in the range of -1.0 to 10.0. The higher the value, the better
the quality. The default value is ‘<samp>3.0</samp>’.
</p>
<p>This option is valid only using the <code>ffmpeg</code> command-line tool.
For library interface users, use <samp>global_quality</samp>.
</p>
</dd>
<dt><span><samp>cutoff (<em>--advanced-encode-option lowpass_frequency=N</em>)</samp></span></dt>
<dd><p>Set cutoff bandwidth in Hz, a value of 0 disables cutoff. <code>oggenc</code>’s
related option is expressed in kHz. The default value is ‘<samp>0</samp>’ (cutoff
disabled).
</p>
</dd>
<dt><span><samp>minrate (<em>-m</em>)</samp></span></dt>
<dd><p>Set minimum bitrate expressed in bits/s. <code>oggenc</code> <samp>-m</samp> is
expressed in kilobits/s.
</p>
</dd>
<dt><span><samp>maxrate (<em>-M</em>)</samp></span></dt>
<dd><p>Set maximum bitrate expressed in bits/s. <code>oggenc</code> <samp>-M</samp> is
expressed in kilobits/s. This only has effect on ABR mode.
</p>
</dd>
<dt><span><samp>iblock (<em>--advanced-encode-option impulse_noisetune=N</em>)</samp></span></dt>
<dd><p>Set noise floor bias for impulse blocks. The value is a float number from
-15.0 to 0.0. A negative bias instructs the encoder to pay special attention
to the crispness of transients in the encoded audio. The tradeoff for better
transient response is a higher bitrate.
</p>
</dd>
</dl>
<span id="mjpegenc"></span><a name="mjpeg"></a>
<h3 class="section">8.13 mjpeg<span class="pull-right"><a class="anchor hidden-xs" href="#mjpeg" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mjpeg" aria-hidden="true">TOC</a></span></h3>
<p>Motion JPEG encoder.
</p>
<a name="Options-19"></a>
<h4 class="subsection">8.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-19" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-19" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>huffman</samp></span></dt>
<dd><p>Set the huffman encoding strategy. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>default</samp>’</span></dt>
<dd><p>Use the default huffman tables. This is the default strategy.
</p>
</dd>
<dt><span>‘<samp>optimal</samp>’</span></dt>
<dd><p>Compute and use optimal huffman tables.
</p>
</dd>
</dl>
</dd>
</dl>
<span id="wavpackenc"></span><a name="wavpack"></a>
<h3 class="section">8.14 wavpack<span class="pull-right"><a class="anchor hidden-xs" href="#wavpack" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-wavpack" aria-hidden="true">TOC</a></span></h3>
<p>WavPack lossless audio encoder.
</p>
<a name="Options-20"></a>
<h4 class="subsection">8.14.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-20" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-20" aria-hidden="true">TOC</a></span></h4>
<p>The equivalent options for <code>wavpack</code> command line utility are listed in
parentheses.
</p>
<a name="Shared-options"></a>
<h4 class="subsubsection">8.14.1.1 Shared options<span class="pull-right"><a class="anchor hidden-xs" href="#Shared-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Shared-options" aria-hidden="true">TOC</a></span></h4>
<p>The following shared options are effective for this encoder. Only special notes
about this particular encoder will be documented here. For the general meaning
of the options, see <a href="#codec_002doptions">the Codec Options chapter</a>.
</p>
<dl compact="compact">
<dt><span><samp>frame_size (<em>--blocksize</em>)</samp></span></dt>
<dd><p>For this encoder, the range for this option is between 128 and 131072. Default
is automatically decided based on sample rate and number of channel.
</p>
<p>For the complete formula of calculating default, see
<samp>libavcodec/wavpackenc.c</samp>.
</p>
</dd>
<dt><span><samp>compression_level (<em>-f</em>, <em>-h</em>, <em>-hh</em>, and <em>-x</em>)</samp></span></dt>
</dl>
<a name="Private-options"></a>
<h4 class="subsubsection">8.14.1.2 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>joint_stereo (<em>-j</em>)</samp></span></dt>
<dd><p>Set whether to enable joint stereo. Valid values are:
</p>
<dl compact="compact">
<dt><span>‘<samp>on (<em>1</em>)</samp>’</span></dt>
<dd><p>Force mid/side audio encoding.
</p></dd>
<dt><span>‘<samp>off (<em>0</em>)</samp>’</span></dt>
<dd><p>Force left/right audio encoding.
</p></dd>
<dt><span>‘<samp>auto</samp>’</span></dt>
<dd><p>Let the encoder decide automatically.
</p></dd>
</dl>
</dd>
<dt><span><samp>optimize_mono</samp></span></dt>
<dd><p>Set whether to enable optimization for mono. This option is only effective for
non-mono streams. Available values:
</p>
<dl compact="compact">
<dt><span>‘<samp>on</samp>’</span></dt>
<dd><p>enabled
</p></dd>
<dt><span>‘<samp>off</samp>’</span></dt>
<dd><p>disabled
</p></dd>
</dl>
</dd>
</dl>
<a name="Video-Encoders"></a>
<h2 class="chapter">9 Video Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Video-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Video-Encoders" aria-hidden="true">TOC</a></span></h2>
<p>A description of some of the currently available video encoders
follows.
</p>
<a name="a64_005fmulti_002c-a64_005fmulti5"></a>
<h3 class="section">9.1 a64_multi, a64_multi5<span class="pull-right"><a class="anchor hidden-xs" href="#a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-a64_005fmulti_002c-a64_005fmulti5" aria-hidden="true">TOC</a></span></h3>
<p>A64 / Commodore 64 multicolor charset encoder. <code>a64_multi5</code> is extended with 5th color (colram).
</p>
<a name="Cinepak"></a>
<h3 class="section">9.2 Cinepak<span class="pull-right"><a class="anchor hidden-xs" href="#Cinepak" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Cinepak" aria-hidden="true">TOC</a></span></h3>
<p>Cinepak aka CVID encoder.
Compatible with Windows 3.1 and vintage MacOS.
</p>
<a name="Options-21"></a>
<h4 class="subsection">9.2.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-21" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-21" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>g <var>integer</var></samp></span></dt>
<dd><p>Keyframe interval.
A keyframe is inserted at least every <code>-g</code> frames, sometimes sooner.
</p>
</dd>
<dt><span><samp>q:v <var>integer</var></samp></span></dt>
<dd><p>Quality factor. Lower is better. Higher gives lower bitrate.
The following table lists bitrates when encoding akiyo_cif.y4m for various values of <code>-q:v</code> with <code>-g 100</code>:
</p>
<dl compact="compact">
<dt><span><samp><code>-q:v 1</code> 1918 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 2</code> 1735 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 4</code> 1500 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 10</code> 1041 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 20</code> 826 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 40</code> 553 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 100</code> 394 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 200</code> 312 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 400</code> 266 kb/s</samp></span></dt>
<dt><span><samp><code>-q:v 1000</code> 237 kb/s</samp></span></dt>
</dl>
</dd>
<dt><span><samp>max_extra_cb_iterations <var>integer</var></samp></span></dt>
<dd><p>Max extra codebook recalculation passes, more is better and slower.
</p>
</dd>
<dt><span><samp>skip_empty_cb <var>boolean</var></samp></span></dt>
<dd><p>Avoid wasting bytes, ignore vintage MacOS decoder.
</p>
</dd>
<dt><span><samp>max_strips <var>integer</var></samp></span></dt>
<dt><span><samp>min_strips <var>integer</var></samp></span></dt>
<dd><p>The minimum and maximum number of strips to use.
Wider range sometimes improves quality.
More strips is generally better quality but costs more bits.
Fewer strips tend to yield more keyframes.
Vintage compatible is 1..3.
</p>
</dd>
<dt><span><samp>strip_number_adaptivity <var>integer</var></samp></span></dt>
<dd><p>How much number of strips is allowed to change between frames.
Higher is better but slower.
</p>
</dd>
</dl>
<a name="GIF"></a>
<h3 class="section">9.3 GIF<span class="pull-right"><a class="anchor hidden-xs" href="#GIF" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-GIF" aria-hidden="true">TOC</a></span></h3>
<p>GIF image/animation encoder.
</p>
<a name="Options-22"></a>
<h4 class="subsection">9.3.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-22" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-22" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>gifflags <var>integer</var></samp></span></dt>
<dd><p>Sets the flags used for GIF encoding.
</p>
<dl compact="compact">
<dt><span><samp>offsetting</samp></span></dt>
<dd><p>Enables picture offsetting.
</p>
<p>Default is enabled.
</p>
</dd>
<dt><span><samp>transdiff</samp></span></dt>
<dd><p>Enables transparency detection between frames.
</p>
<p>Default is enabled.
</p>
</dd>
</dl>
</dd>
<dt><span><samp>gifimage <var>integer</var></samp></span></dt>
<dd><p>Enables encoding one full GIF image per frame, rather than an animated GIF.
</p>
<p>Default value is <samp>0</samp>.
</p>
</dd>
<dt><span><samp>global_palette <var>integer</var></samp></span></dt>
<dd><p>Writes a palette to the global GIF header where feasible.
</p>
<p>If disabled, every frame will always have a palette written, even if there
is a global palette supplied.
</p>
<p>Default value is <samp>1</samp>.
</p>
</dd>
</dl>
<a name="Hap"></a>
<h3 class="section">9.4 Hap<span class="pull-right"><a class="anchor hidden-xs" href="#Hap" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Hap" aria-hidden="true">TOC</a></span></h3>
<p>Vidvox Hap video encoder.
</p>
<a name="Options-23"></a>
<h4 class="subsection">9.4.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-23" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-23" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>format <var>integer</var></samp></span></dt>
<dd><p>Specifies the Hap format to encode.
</p>
<dl compact="compact">
<dt><span><samp>hap</samp></span></dt>
<dt><span><samp>hap_alpha</samp></span></dt>
<dt><span><samp>hap_q</samp></span></dt>
</dl>
<p>Default value is <samp>hap</samp>.
</p>
</dd>
<dt><span><samp>chunks <var>integer</var></samp></span></dt>
<dd><p>Specifies the number of chunks to split frames into, between 1 and 64. This
permits multithreaded decoding of large frames, potentially at the cost of
data-rate. The encoder may modify this value to divide frames evenly.
</p>
<p>Default value is <var>1</var>.
</p>
</dd>
<dt><span><samp>compressor <var>integer</var></samp></span></dt>
<dd><p>Specifies the second-stage compressor to use. If set to <samp>none</samp>,
<samp>chunks</samp> will be limited to 1, as chunked uncompressed frames offer no
benefit.
</p>
<dl compact="compact">
<dt><span><samp>none</samp></span></dt>
<dt><span><samp>snappy</samp></span></dt>
</dl>
<p>Default value is <samp>snappy</samp>.
</p>
</dd>
</dl>
<a name="jpeg2000"></a>
<h3 class="section">9.5 jpeg2000<span class="pull-right"><a class="anchor hidden-xs" href="#jpeg2000" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-jpeg2000" aria-hidden="true">TOC</a></span></h3>
<p>The native jpeg 2000 encoder is lossy by default, the <code>-q:v</code>
option can be used to set the encoding quality. Lossless encoding
can be selected with <code>-pred 1</code>.
</p>
<a name="Options-24"></a>
<h4 class="subsection">9.5.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-24" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-24" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>format <var>integer</var></samp></span></dt>
<dd><p>Can be set to either <code>j2k</code> or <code>jp2</code> (the default) that
makes it possible to store non-rgb pix_fmts.
</p>
</dd>
<dt><span><samp>tile_width <var>integer</var></samp></span></dt>
<dd><p>Sets tile width. Range is 1 to 1073741824. Default is 256.
</p>
</dd>
<dt><span><samp>tile_height <var>integer</var></samp></span></dt>
<dd><p>Sets tile height. Range is 1 to 1073741824. Default is 256.
</p>
</dd>
<dt><span><samp>pred <var>integer</var></samp></span></dt>
<dd><p>Allows setting the discrete wavelet transform (DWT) type
</p><dl compact="compact">
<dt><span><samp>dwt97int (Lossy)</samp></span></dt>
<dt><span><samp>dwt53 (Lossless)</samp></span></dt>
</dl>
<p>Default is <code>dwt97int</code>
</p>
</dd>
<dt><span><samp>sop <var>boolean</var></samp></span></dt>
<dd><p>Enable this to add SOP marker at the start of each packet. Disabled by default.
</p>
</dd>
<dt><span><samp>eph <var>boolean</var></samp></span></dt>
<dd><p>Enable this to add EPH marker at the end of each packet header. Disabled by default.
</p>
</dd>
<dt><span><samp>prog <var>integer</var></samp></span></dt>
<dd><p>Sets the progression order to be used by the encoder.
Possible values are:
</p><dl compact="compact">
<dt><span><samp>lrcp</samp></span></dt>
<dt><span><samp>rlcp</samp></span></dt>
<dt><span><samp>rpcl</samp></span></dt>
<dt><span><samp>pcrl</samp></span></dt>
<dt><span><samp>cprl</samp></span></dt>
</dl>
<p>Set to <code>lrcp</code> by default.
</p>
</dd>
<dt><span><samp>layer_rates <var>string</var></samp></span></dt>
<dd><p>By default, when this option is not used, compression is done using the quality metric.
This option allows for compression using compression ratio. The compression ratio for each
level could be specified. The compression ratio of a layer <code>l</code> species the what ratio of
total file size is contained in the first <code>l</code> layers.
</p>
<p>Example usage:
</p>
<div class="example">
<pre class="example">ffmpeg -i input.bmp -c:v jpeg2000 -layer_rates "100,10,1" output.j2k
</pre></div>
<p>This would compress the image to contain 3 layers, where the data contained in the
first layer would be compressed by 1000 times, compressed by 100 in the first two layers,
and shall contain all data while using all 3 layers.
</p>
</dd>
</dl>
<a name="librav1e"></a>
<h3 class="section">9.6 librav1e<span class="pull-right"><a class="anchor hidden-xs" href="#librav1e" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-librav1e" aria-hidden="true">TOC</a></span></h3>
<p>rav1e AV1 encoder wrapper.
</p>
<p>Requires the presence of the rav1e headers and library during configuration.
You need to explicitly configure the build with <code>--enable-librav1e</code>.
</p>
<a name="Options-25"></a>
<h4 class="subsection">9.6.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-25" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-25" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>qmax</samp></span></dt>
<dd><p>Sets the maximum quantizer to use when using bitrate mode.
</p>
</dd>
<dt><span><samp>qmin</samp></span></dt>
<dd><p>Sets the minimum quantizer to use when using bitrate mode.
</p>
</dd>
<dt><span><samp>qp</samp></span></dt>
<dd><p>Uses quantizer mode to encode at the given quantizer (0-255).
</p>
</dd>
<dt><span><samp>speed</samp></span></dt>
<dd><p>Selects the speed preset (0-10) to encode with.
</p>
</dd>
<dt><span><samp>tiles</samp></span></dt>
<dd><p>Selects how many tiles to encode with.
</p>
</dd>
<dt><span><samp>tile-rows</samp></span></dt>
<dd><p>Selects how many rows of tiles to encode with.
</p>
</dd>
<dt><span><samp>tile-columns</samp></span></dt>
<dd><p>Selects how many columns of tiles to encode with.
</p>
</dd>
<dt><span><samp>rav1e-params</samp></span></dt>
<dd><p>Set rav1e options using a list of <var>key</var>=<var>value</var> pairs separated
by ":". See <code>rav1e --help</code> for a list of options.
</p>
<p>For example to specify librav1e encoding options with <samp>-rav1e-params</samp>:
</p>
<div class="example">
<pre class="example">ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
</pre></div>
</dd>
</dl>
<a name="libaom_002dav1"></a>
<h3 class="section">9.7 libaom-av1<span class="pull-right"><a class="anchor hidden-xs" href="#libaom_002dav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libaom_002dav1" aria-hidden="true">TOC</a></span></h3>
<p>libaom AV1 encoder wrapper.
</p>
<p>Requires the presence of the libaom headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libaom</code>.
</p>
<a name="Options-26"></a>
<h4 class="subsection">9.7.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-26" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-26" aria-hidden="true">TOC</a></span></h4>
<p>The wrapper supports the following standard libavcodec options:
</p>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set bitrate target in bits/second. By default this will use
variable-bitrate mode. If <samp>maxrate</samp> and <samp>minrate</samp> are
also set to the same value then it will use constant-bitrate mode,
otherwise if <samp>crf</samp> is set as well then it will use
constrained-quality mode.
</p>
</dd>
<dt><span><samp>g keyint_min</samp></span></dt>
<dd><p>Set key frame placement. The GOP size sets the maximum distance between
key frames; if zero the output stream will be intra-only. The minimum
distance is ignored unless it is the same as the GOP size, in which case
key frames will always appear at a fixed interval. Not set by default,
so without this option the library has completely free choice about
where to place key frames.
</p>
</dd>
<dt><span><samp>qmin qmax</samp></span></dt>
<dd><p>Set minimum/maximum quantisation values. Valid range is from 0 to 63
(warning: this does not match the quantiser values actually used by AV1
- divide by four to map real quantiser values to this range). Defaults
to min/max (no constraint).
</p>
</dd>
<dt><span><samp>minrate maxrate bufsize rc_init_occupancy</samp></span></dt>
<dd><p>Set rate control buffering parameters. Not used if not set - defaults
to unconstrained variable bitrate.
</p>
</dd>
<dt><span><samp>threads</samp></span></dt>
<dd><p>Set the number of threads to use while encoding. This may require the
<samp>tiles</samp> or <samp>row-mt</samp> options to also be set to actually
use the specified number of threads fully. Defaults to the number of
hardware threads supported by the host machine.
</p>
</dd>
<dt><span><samp>profile</samp></span></dt>
<dd><p>Set the encoding profile. Defaults to using the profile which matches
the bit depth and chroma subsampling of the input.
</p>
</dd>
</dl>
<p>The wrapper also has some specific options:
</p>
<dl compact="compact">
<dt><span><samp>cpu-used</samp></span></dt>
<dd><p>Set the quality/encoding speed tradeoff. Valid range is from 0 to 8,
higher numbers indicating greater speed and lower quality. The default
value is 1, which will be slow and high quality.
</p>
</dd>
<dt><span><samp>auto-alt-ref</samp></span></dt>
<dd><p>Enable use of alternate reference frames. Defaults to the internal
default of the library.
</p>
</dd>
<dt><span><samp>arnr-max-frames (<em>frames</em>)</samp></span></dt>
<dd><p>Set altref noise reduction max frame count. Default is -1.
</p>
</dd>
<dt><span><samp>arnr-strength (<em>strength</em>)</samp></span></dt>
<dd><p>Set altref noise reduction filter strength. Range is -1 to 6. Default is -1.
</p>
</dd>
<dt><span><samp>aq-mode (<em>aq-mode</em>)</samp></span></dt>
<dd><p>Set adaptive quantization mode. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>0</em>)</samp>’</span></dt>
<dd><p>Disabled.
</p>
</dd>
<dt><span>‘<samp>variance (<em>1</em>)</samp>’</span></dt>
<dd><p>Variance-based.
</p>
</dd>
<dt><span>‘<samp>complexity (<em>2</em>)</samp>’</span></dt>
<dd><p>Complexity-based.
</p>
</dd>
<dt><span>‘<samp>cyclic (<em>3</em>)</samp>’</span></dt>
<dd><p>Cyclic refresh.
</p></dd>
</dl>
</dd>
<dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
<dd><p>Set the distortion metric the encoder is tuned with. Default is <code>psnr</code>.
</p>
<dl compact="compact">
<dt><span>‘<samp>psnr (<em>0</em>)</samp>’</span></dt>
<dt><span>‘<samp>ssim (<em>1</em>)</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>lag-in-frames</samp></span></dt>
<dd><p>Set the maximum number of frames which the encoder may keep in flight
at any one time for lookahead purposes. Defaults to the internal
default of the library.
</p>
</dd>
<dt><span><samp>error-resilience</samp></span></dt>
<dd><p>Enable error resilience features:
</p><dl compact="compact">
<dt><span><samp>default</samp></span></dt>
<dd><p>Improve resilience against losses of whole frames.
</p></dd>
</dl>
<p>Not enabled by default.
</p>
</dd>
<dt><span><samp>crf</samp></span></dt>
<dd><p>Set the quality/size tradeoff for constant-quality (no bitrate target)
and constrained-quality (with maximum bitrate target) modes. Valid
range is 0 to 63, higher numbers indicating lower quality and smaller
output size. Only used if set; by default only the bitrate target is
used.
</p>
</dd>
<dt><span><samp>static-thresh</samp></span></dt>
<dd><p>Set a change threshold on blocks below which they will be skipped by
the encoder. Defined in arbitrary units as a nonnegative integer,
defaulting to zero (no blocks are skipped).
</p>
</dd>
<dt><span><samp>drop-threshold</samp></span></dt>
<dd><p>Set a threshold for dropping frames when close to rate control bounds.
Defined as a percentage of the target buffer - when the rate control
buffer falls below this percentage, frames will be dropped until it
has refilled above the threshold. Defaults to zero (no frames are
dropped).
</p>
</dd>
<dt><span><samp>denoise-noise-level (<em>level</em>)</samp></span></dt>
<dd><p>Amount of noise to be removed for grain synthesis. Grain synthesis is disabled if
this option is not set or set to 0.
</p>
</dd>
<dt><span><samp>denoise-block-size (<em>pixels</em>)</samp></span></dt>
<dd><p>Block size used for denoising for grain synthesis. If not set, AV1 codec
uses the default value of 32.
</p>
</dd>
<dt><span><samp>undershoot-pct (<em>pct</em>)</samp></span></dt>
<dd><p>Set datarate undershoot (min) percentage of the target bitrate. Range is -1 to 100.
Default is -1.
</p>
</dd>
<dt><span><samp>overshoot-pct (<em>pct</em>)</samp></span></dt>
<dd><p>Set datarate overshoot (max) percentage of the target bitrate. Range is -1 to 1000.
Default is -1.
</p>
</dd>
<dt><span><samp>minsection-pct (<em>pct</em>)</samp></span></dt>
<dd><p>Minimum percentage variation of the GOP bitrate from the target bitrate. If minsection-pct
is not set, the libaomenc wrapper computes it as follows: <code>(minrate * 100 / bitrate)</code>.
Range is -1 to 100. Default is -1 (unset).
</p>
</dd>
<dt><span><samp>maxsection-pct (<em>pct</em>)</samp></span></dt>
<dd><p>Maximum percentage variation of the GOP bitrate from the target bitrate. If maxsection-pct
is not set, the libaomenc wrapper computes it as follows: <code>(maxrate * 100 / bitrate)</code>.
Range is -1 to 5000. Default is -1 (unset).
</p>
</dd>
<dt><span><samp>frame-parallel (<em>boolean</em>)</samp></span></dt>
<dd><p>Enable frame parallel decodability features. Default is true.
</p>
</dd>
<dt><span><samp>tiles</samp></span></dt>
<dd><p>Set the number of tiles to encode the input video with, as columns x
rows. Larger numbers allow greater parallelism in both encoding and
decoding, but may decrease coding efficiency. Defaults to the minimum
number of tiles required by the size of the input video (this is 1x1
(that is, a single tile) for sizes up to and including 4K).
</p>
</dd>
<dt><span><samp>tile-columns tile-rows</samp></span></dt>
<dd><p>Set the number of tiles as log2 of the number of tile rows and columns.
Provided for compatibility with libvpx/VP9.
</p>
</dd>
<dt><span><samp>row-mt (Requires libaom >= 1.0.0-759-g90a15f4f2)</samp></span></dt>
<dd><p>Enable row based multi-threading. Disabled by default.
</p>
</dd>
<dt><span><samp>enable-cdef (<em>boolean</em>)</samp></span></dt>
<dd><p>Enable Constrained Directional Enhancement Filter. The libaom-av1
encoder enables CDEF by default.
</p>
</dd>
<dt><span><samp>enable-restoration (<em>boolean</em>)</samp></span></dt>
<dd><p>Enable Loop Restoration Filter. Default is true for libaom-av1.
</p>
</dd>
<dt><span><samp>enable-global-motion (<em>boolean</em>)</samp></span></dt>
<dd><p>Enable the use of global motion for block prediction. Default is true.
</p>
</dd>
<dt><span><samp>enable-intrabc (<em>boolean</em>)</samp></span></dt>
<dd><p>Enable block copy mode for intra block prediction. This mode is
useful for screen content. Default is true.
</p>
</dd>
<dt><span><samp>enable-rect-partitions (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable rectangular partitions. Default is true.
</p>
</dd>
<dt><span><samp>enable-1to4-partitions (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable 1:4/4:1 partitions. Default is true.
</p>
</dd>
<dt><span><samp>enable-ab-partitions (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable AB shape partitions. Default is true.
</p>
</dd>
<dt><span><samp>enable-angle-delta (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable angle delta intra prediction. Default is true.
</p>
</dd>
<dt><span><samp>enable-cfl-intra (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable chroma predicted from luma intra prediction. Default is true.
</p>
</dd>
<dt><span><samp>enable-filter-intra (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable filter intra predictor. Default is true.
</p>
</dd>
<dt><span><samp>enable-intra-edge-filter (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable intra edge filter. Default is true.
</p>
</dd>
<dt><span><samp>enable-smooth-intra (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable smooth intra prediction mode. Default is true.
</p>
</dd>
<dt><span><samp>enable-paeth-intra (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable paeth predictor in intra prediction. Default is true.
</p>
</dd>
<dt><span><samp>enable-palette (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable palette prediction mode. Default is true.
</p>
</dd>
<dt><span><samp>enable-flip-idtx (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable extended transform type, including FLIPADST_DCT, DCT_FLIPADST,
FLIPADST_FLIPADST, ADST_FLIPADST, FLIPADST_ADST, IDTX, V_DCT, H_DCT,
V_ADST, H_ADST, V_FLIPADST, H_FLIPADST. Default is true.
</p>
</dd>
<dt><span><samp>enable-tx64 (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable 64-pt transform. Default is true.
</p>
</dd>
<dt><span><samp>reduced-tx-type-set (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Use reduced set of transform types. Default is false.
</p>
</dd>
<dt><span><samp>use-intra-dct-only (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Use DCT only for INTRA modes. Default is false.
</p>
</dd>
<dt><span><samp>use-inter-dct-only (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Use DCT only for INTER modes. Default is false.
</p>
</dd>
<dt><span><samp>use-intra-default-tx-only (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Use Default-transform only for INTRA modes. Default is false.
</p>
</dd>
<dt><span><samp>enable-ref-frame-mvs (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable temporal mv prediction. Default is true.
</p>
</dd>
<dt><span><samp>enable-reduced-reference-set (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Use reduced set of single and compound references. Default is false.
</p>
</dd>
<dt><span><samp>enable-obmc (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable obmc. Default is true.
</p>
</dd>
<dt><span><samp>enable-dual-filter (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable dual filter. Default is true.
</p>
</dd>
<dt><span><samp>enable-diff-wtd-comp (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable difference-weighted compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-dist-wtd-comp (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable distance-weighted compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-onesided-comp (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable one sided compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-interinter-wedge (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable interinter wedge compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-interintra-wedge (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable interintra wedge compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-masked-comp (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable masked compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-interintra-comp (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable interintra compound. Default is true.
</p>
</dd>
<dt><span><samp>enable-smooth-interintra (<em>boolean</em>) (Requires libaom >= v2.0.0)</samp></span></dt>
<dd><p>Enable smooth interintra mode. Default is true.
</p>
</dd>
<dt><span><samp>aom-params</samp></span></dt>
<dd><p>Set libaom options using a list of <var>key</var>=<var>value</var> pairs separated
by ":". For a list of supported options, see <code>aomenc --help</code> under the
section "AV1 Specific Options".
</p>
<p>For example to specify libaom encoding options with <samp>-aom-params</samp>:
</p>
<div class="example">
<pre class="example">ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
</pre></div>
</dd>
</dl>
<a name="libsvtav1"></a>
<h3 class="section">9.8 libsvtav1<span class="pull-right"><a class="anchor hidden-xs" href="#libsvtav1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libsvtav1" aria-hidden="true">TOC</a></span></h3>
<p>SVT-AV1 encoder wrapper.
</p>
<p>Requires the presence of the SVT-AV1 headers and library during configuration.
You need to explicitly configure the build with <code>--enable-libsvtav1</code>.
</p>
<a name="Options-27"></a>
<h4 class="subsection">9.8.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-27" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-27" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>profile</samp></span></dt>
<dd><p>Set the encoding profile.
</p><dl compact="compact">
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>high</samp>’</span></dt>
<dt><span>‘<samp>professional</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>level</samp></span></dt>
<dd><p>Set the operating point level. For example: ’4.0’
</p>
</dd>
<dt><span><samp>hielevel</samp></span></dt>
<dd><p>Set the Hierarchical prediction levels.
</p><dl compact="compact">
<dt><span>‘<samp>3level</samp>’</span></dt>
<dt><span>‘<samp>4level</samp>’</span></dt>
<dd><p>This is the default.
</p></dd>
</dl>
</dd>
<dt><span><samp>tier</samp></span></dt>
<dd><p>Set the operating point tier.
</p><dl compact="compact">
<dt><span>‘<samp>main</samp>’</span></dt>
<dd><p>This is the default.
</p></dd>
<dt><span>‘<samp>high</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>qmax</samp></span></dt>
<dd><p>Set the maximum quantizer to use when using a bitrate mode.
</p>
</dd>
<dt><span><samp>qmin</samp></span></dt>
<dd><p>Set the minimum quantizer to use when using a bitrate mode.
</p>
</dd>
<dt><span><samp>crf</samp></span></dt>
<dd><p>Constant rate factor value used in crf rate control mode (0-63).
</p>
</dd>
<dt><span><samp>qp</samp></span></dt>
<dd><p>Set the quantizer used in cqp rate control mode (0-63).
</p>
</dd>
<dt><span><samp>sc_detection</samp></span></dt>
<dd><p>Enable scene change detection.
</p>
</dd>
<dt><span><samp>la_depth</samp></span></dt>
<dd><p>Set number of frames to look ahead (0-120).
</p>
</dd>
<dt><span><samp>preset</samp></span></dt>
<dd><p>Set the quality-speed tradeoff, in the range 0 to 13. Higher values are
faster but lower quality.
</p>
</dd>
<dt><span><samp>tile_rows</samp></span></dt>
<dd><p>Set log2 of the number of rows of tiles to use (0-6).
</p>
</dd>
<dt><span><samp>tile_columns</samp></span></dt>
<dd><p>Set log2 of the number of columns of tiles to use (0-4).
</p>
</dd>
<dt><span><samp>svtav1-params</samp></span></dt>
<dd><p>Set SVT-AV1 options using a list of <var>key</var>=<var>value</var> pairs separated
by ":". See the SVT-AV1 encoder user guide for a list of accepted parameters.
</p>
</dd>
</dl>
<a name="libjxl"></a>
<h3 class="section">9.9 libjxl<span class="pull-right"><a class="anchor hidden-xs" href="#libjxl" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libjxl" aria-hidden="true">TOC</a></span></h3>
<p>libjxl JPEG XL encoder wrapper.
</p>
<p>Requires the presence of the libjxl headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libjxl</code>.
</p>
<a name="Options-28"></a>
<h4 class="subsection">9.9.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-28" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-28" aria-hidden="true">TOC</a></span></h4>
<p>The libjxl wrapper supports the following options:
</p>
<dl compact="compact">
<dt><span><samp>distance</samp></span></dt>
<dd><p>Set the target Butteraugli distance. This is a quality setting: lower
distance yields higher quality, with distance=1.0 roughly comparable to
libjpeg Quality 90 for photographic content. Setting distance=0.0 yields
true lossless encoding. Valid values range between 0.0 and 15.0, and sane
values rarely exceed 5.0. Setting distance=0.1 usually attains
transparency for most input. The default is 1.0.
</p>
</dd>
<dt><span><samp>effort</samp></span></dt>
<dd><p>Set the encoding effort used. Higher effort values produce more consistent
quality and usually produces a better quality/bpp curve, at the cost of
more CPU time required. Valid values range from 1 to 9, and the default is 7.
</p>
</dd>
<dt><span><samp>modular</samp></span></dt>
<dd><p>Force the encoder to use Modular mode instead of choosing automatically. The
default is to use VarDCT for lossy encoding and Modular for lossless. VarDCT
is generally superior to Modular for lossy encoding but does not support
lossless encoding.
</p>
</dd>
</dl>
<a name="libkvazaar"></a>
<h3 class="section">9.10 libkvazaar<span class="pull-right"><a class="anchor hidden-xs" href="#libkvazaar" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libkvazaar" aria-hidden="true">TOC</a></span></h3>
<p>Kvazaar H.265/HEVC encoder.
</p>
<p>Requires the presence of the libkvazaar headers and library during
configuration. You need to explicitly configure the build with
<samp>--enable-libkvazaar</samp>.
</p>
<a name="Options-29"></a>
<h4 class="subsection">9.10.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-29" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-29" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set target video bitrate in bit/s and enable rate control.
</p>
</dd>
<dt><span><samp>kvazaar-params</samp></span></dt>
<dd><p>Set kvazaar parameters as a list of <var>name</var>=<var>value</var> pairs separated
by commas (,). See kvazaar documentation for a list of options.
</p>
</dd>
</dl>
<a name="libopenh264"></a>
<h3 class="section">9.11 libopenh264<span class="pull-right"><a class="anchor hidden-xs" href="#libopenh264" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libopenh264" aria-hidden="true">TOC</a></span></h3>
<p>Cisco libopenh264 H.264/MPEG-4 AVC encoder wrapper.
</p>
<p>This encoder requires the presence of the libopenh264 headers and
library during configuration. You need to explicitly configure the
build with <code>--enable-libopenh264</code>. The library is detected using
<code>pkg-config</code>.
</p>
<p>For more information about the library see
<a href="http://www.openh264.org">http://www.openh264.org</a>.
</p>
<a name="Options-30"></a>
<h4 class="subsection">9.11.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-30" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-30" aria-hidden="true">TOC</a></span></h4>
<p>The following FFmpeg global options affect the configurations of the
libopenh264 encoder.
</p>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set the bitrate (as a number of bits per second).
</p>
</dd>
<dt><span><samp>g</samp></span></dt>
<dd><p>Set the GOP size.
</p>
</dd>
<dt><span><samp>maxrate</samp></span></dt>
<dd><p>Set the max bitrate (as a number of bits per second).
</p>
</dd>
<dt><span><samp>flags +global_header</samp></span></dt>
<dd><p>Set global header in the bitstream.
</p>
</dd>
<dt><span><samp>slices</samp></span></dt>
<dd><p>Set the number of slices, used in parallelized encoding. Default value
is 0. This is only used when <samp>slice_mode</samp> is set to
‘<samp>fixed</samp>’.
</p>
</dd>
<dt><span><samp>slice_mode</samp></span></dt>
<dd><p>Set slice mode. Can assume one of the following possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>fixed</samp>’</span></dt>
<dd><p>a fixed number of slices
</p></dd>
<dt><span>‘<samp>rowmb</samp>’</span></dt>
<dd><p>one slice per row of macroblocks
</p></dd>
<dt><span>‘<samp>auto</samp>’</span></dt>
<dd><p>automatic number of slices according to number of threads
</p></dd>
<dt><span>‘<samp>dyn</samp>’</span></dt>
<dd><p>dynamic slicing
</p></dd>
</dl>
<p>Default value is ‘<samp>auto</samp>’.
</p>
</dd>
<dt><span><samp>loopfilter</samp></span></dt>
<dd><p>Enable loop filter, if set to 1 (automatically enabled). To disable
set a value of 0.
</p>
</dd>
<dt><span><samp>profile</samp></span></dt>
<dd><p>Set profile restrictions. If set to the value of ‘<samp>main</samp>’ enable
CABAC (set the <code>SEncParamExt.iEntropyCodingModeFlag</code> flag to 1).
</p>
</dd>
<dt><span><samp>max_nal_size</samp></span></dt>
<dd><p>Set maximum NAL size in bytes.
</p>
</dd>
<dt><span><samp>allow_skip_frames</samp></span></dt>
<dd><p>Allow skipping frames to hit the target bitrate if set to 1.
</p></dd>
</dl>
<a name="libtheora"></a>
<h3 class="section">9.12 libtheora<span class="pull-right"><a class="anchor hidden-xs" href="#libtheora" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libtheora" aria-hidden="true">TOC</a></span></h3>
<p>libtheora Theora encoder wrapper.
</p>
<p>Requires the presence of the libtheora headers and library during
configuration. You need to explicitly configure the build with
<code>--enable-libtheora</code>.
</p>
<p>For more information about the libtheora project see
<a href="http://www.theora.org/">http://www.theora.org/</a>.
</p>
<a name="Options-31"></a>
<h4 class="subsection">9.12.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-31" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-31" aria-hidden="true">TOC</a></span></h4>
<p>The following global options are mapped to internal libtheora options
which affect the quality and the bitrate of the encoded stream.
</p>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Set the video bitrate in bit/s for CBR (Constant Bit Rate) mode. In
case VBR (Variable Bit Rate) mode is enabled this option is ignored.
</p>
</dd>
<dt><span><samp>flags</samp></span></dt>
<dd><p>Used to enable constant quality mode (VBR) encoding through the
<samp>qscale</samp> flag, and to enable the <code>pass1</code> and <code>pass2</code>
modes.
</p>
</dd>
<dt><span><samp>g</samp></span></dt>
<dd><p>Set the GOP size.
</p>
</dd>
<dt><span><samp>global_quality</samp></span></dt>
<dd><p>Set the global quality as an integer in lambda units.
</p>
<p>Only relevant when VBR mode is enabled with <code>flags +qscale</code>. The
value is converted to QP units by dividing it by <code>FF_QP2LAMBDA</code>,
clipped in the [0 - 10] range, and then multiplied by 6.3 to get a
value in the native libtheora range [0-63]. A higher value corresponds
to a higher quality.
</p>
</dd>
<dt><span><samp>q</samp></span></dt>
<dd><p>Enable VBR mode when set to a non-negative value, and set constant
quality value as a double floating point value in QP units.
</p>
<p>The value is clipped in the [0-10] range, and then multiplied by 6.3
to get a value in the native libtheora range [0-63].
</p>
<p>This option is valid only using the <code>ffmpeg</code> command-line
tool. For library interface users, use <samp>global_quality</samp>.
</p></dd>
</dl>
<a name="Examples-1"></a>
<h4 class="subsection">9.12.2 Examples<span class="pull-right"><a class="anchor hidden-xs" href="#Examples-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Examples-1" aria-hidden="true">TOC</a></span></h4>
<ul>
<li> Set maximum constant quality (VBR) encoding with <code>ffmpeg</code>:
<div class="example">
<pre class="example">ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg
</pre></div>
</li><li> Use <code>ffmpeg</code> to convert a CBR 1000 kbps Theora video stream:
<div class="example">
<pre class="example">ffmpeg -i INPUT -codec:v libtheora -b:v 1000k OUTPUT.ogg
</pre></div>
</li></ul>
<a name="libvpx"></a>
<h3 class="section">9.13 libvpx<span class="pull-right"><a class="anchor hidden-xs" href="#libvpx" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libvpx" aria-hidden="true">TOC</a></span></h3>
<p>VP8/VP9 format supported through libvpx.
</p>
<p>Requires the presence of the libvpx headers and library during configuration.
You need to explicitly configure the build with <code>--enable-libvpx</code>.
</p>
<a name="Options-32"></a>
<h4 class="subsection">9.13.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-32" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-32" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libvpx wrapper. The
<code>vpxenc</code>-equivalent options or values are listed in parentheses
for easy migration.
</p>
<p>To reduce the duplication of documentation, only the private options
and some others requiring special attention are documented here. For
the documentation of the undocumented generic options, see
<a href="#codec_002doptions">the Codec Options chapter</a>.
</p>
<p>To get more documentation of the libvpx options, invoke the command
<code>ffmpeg -h encoder=libvpx</code>, <code>ffmpeg -h encoder=libvpx-vp9</code> or
<code>vpxenc --help</code>. Further information is available in the libvpx API
documentation.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>target-bitrate</em>)</samp></span></dt>
<dd><p>Set bitrate in bits/s. Note that FFmpeg’s <samp>b</samp> option is
expressed in bits/s, while <code>vpxenc</code>’s <samp>target-bitrate</samp> is in
kilobits/s.
</p>
</dd>
<dt><span><samp>g (<em>kf-max-dist</em>)</samp></span></dt>
<dt><span><samp>keyint_min (<em>kf-min-dist</em>)</samp></span></dt>
<dt><span><samp>qmin (<em>min-q</em>)</samp></span></dt>
<dd><p>Minimum (Best Quality) Quantizer.
</p>
</dd>
<dt><span><samp>qmax (<em>max-q</em>)</samp></span></dt>
<dd><p>Maximum (Worst Quality) Quantizer.
Can be changed per-frame.
</p>
</dd>
<dt><span><samp>bufsize (<em>buf-sz</em>, <em>buf-optimal-sz</em>)</samp></span></dt>
<dd><p>Set ratecontrol buffer size (in bits). Note <code>vpxenc</code>’s options are
specified in milliseconds, the libvpx wrapper converts this value as follows:
<code>buf-sz = bufsize * 1000 / bitrate</code>,
<code>buf-optimal-sz = bufsize * 1000 / bitrate * 5 / 6</code>.
</p>
</dd>
<dt><span><samp>rc_init_occupancy (<em>buf-initial-sz</em>)</samp></span></dt>
<dd><p>Set number of bits which should be loaded into the rc buffer before decoding
starts. Note <code>vpxenc</code>’s option is specified in milliseconds, the libvpx
wrapper converts this value as follows:
<code>rc_init_occupancy * 1000 / bitrate</code>.
</p>
</dd>
<dt><span><samp>undershoot-pct</samp></span></dt>
<dd><p>Set datarate undershoot (min) percentage of the target bitrate.
</p>
</dd>
<dt><span><samp>overshoot-pct</samp></span></dt>
<dd><p>Set datarate overshoot (max) percentage of the target bitrate.
</p>
</dd>
<dt><span><samp>skip_threshold (<em>drop-frame</em>)</samp></span></dt>
<dt><span><samp>qcomp (<em>bias-pct</em>)</samp></span></dt>
<dt><span><samp>maxrate (<em>maxsection-pct</em>)</samp></span></dt>
<dd><p>Set GOP max bitrate in bits/s. Note <code>vpxenc</code>’s option is specified as a
percentage of the target bitrate, the libvpx wrapper converts this value as
follows: <code>(maxrate * 100 / bitrate)</code>.
</p>
</dd>
<dt><span><samp>minrate (<em>minsection-pct</em>)</samp></span></dt>
<dd><p>Set GOP min bitrate in bits/s. Note <code>vpxenc</code>’s option is specified as a
percentage of the target bitrate, the libvpx wrapper converts this value as
follows: <code>(minrate * 100 / bitrate)</code>.
</p>
</dd>
<dt><span><samp>minrate, maxrate, b <em>end-usage=cbr</em></samp></span></dt>
<dd><p><code>(minrate == maxrate == bitrate)</code>.
</p>
</dd>
<dt><span><samp>crf (<em>end-usage=cq</em>, <em>cq-level</em>)</samp></span></dt>
<dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>psnr (<em>psnr</em>)</samp>’</span></dt>
<dt><span>‘<samp>ssim (<em>ssim</em>)</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>quality, deadline (<em>deadline</em>)</samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>best</samp>’</span></dt>
<dd><p>Use best quality deadline. Poorly named and quite slow, this option should be
avoided as it may give worse quality output than good.
</p></dd>
<dt><span>‘<samp>good</samp>’</span></dt>
<dd><p>Use good quality deadline. This is a good trade-off between speed and quality
when used with the <samp>cpu-used</samp> option.
</p></dd>
<dt><span>‘<samp>realtime</samp>’</span></dt>
<dd><p>Use realtime quality deadline.
</p></dd>
</dl>
</dd>
<dt><span><samp>speed, cpu-used (<em>cpu-used</em>)</samp></span></dt>
<dd><p>Set quality/speed ratio modifier. Higher values speed up the encode at the cost
of quality.
</p>
</dd>
<dt><span><samp>nr (<em>noise-sensitivity</em>)</samp></span></dt>
<dt><span><samp>static-thresh</samp></span></dt>
<dd><p>Set a change threshold on blocks below which they will be skipped by the
encoder.
</p>
</dd>
<dt><span><samp>slices (<em>token-parts</em>)</samp></span></dt>
<dd><p>Note that FFmpeg’s <samp>slices</samp> option gives the total number of partitions,
while <code>vpxenc</code>’s <samp>token-parts</samp> is given as
<code>log2(partitions)</code>.
</p>
</dd>
<dt><span><samp>max-intra-rate</samp></span></dt>
<dd><p>Set maximum I-frame bitrate as a percentage of the target bitrate. A value of 0
means unlimited.
</p>
</dd>
<dt><span><samp>force_key_frames</samp></span></dt>
<dd><p><code>VPX_EFLAG_FORCE_KF</code>
</p>
</dd>
<dt><span><samp>Alternate reference frame related</samp></span></dt>
<dd><dl compact="compact">
<dt><span><samp>auto-alt-ref</samp></span></dt>
<dd><p>Enable use of alternate reference frames (2-pass only).
Values greater than 1 enable multi-layer alternate reference frames (VP9 only).
</p></dd>
<dt><span><samp>arnr-maxframes</samp></span></dt>
<dd><p>Set altref noise reduction max frame count.
</p></dd>
<dt><span><samp>arnr-type</samp></span></dt>
<dd><p>Set altref noise reduction filter type: backward, forward, centered.
</p></dd>
<dt><span><samp>arnr-strength</samp></span></dt>
<dd><p>Set altref noise reduction filter strength.
</p></dd>
<dt><span><samp>rc-lookahead, lag-in-frames (<em>lag-in-frames</em>)</samp></span></dt>
<dd><p>Set number of frames to look ahead for frametype and ratecontrol.
</p></dd>
<dt><span><samp>min-gf-interval</samp></span></dt>
<dd><p>Set minimum golden/alternate reference frame interval (VP9 only).
</p></dd>
</dl>
</dd>
<dt><span><samp>error-resilient</samp></span></dt>
<dd><p>Enable error resiliency features.
</p>
</dd>
<dt><span><samp>sharpness <var>integer</var></samp></span></dt>
<dd><p>Increase sharpness at the expense of lower PSNR.
The valid range is [0, 7].
</p>
</dd>
<dt><span><samp>ts-parameters</samp></span></dt>
<dd><p>Sets the temporal scalability configuration using a :-separated list of
key=value pairs. For example, to specify temporal scalability parameters
with <code>ffmpeg</code>:
</p><div class="example">
<pre class="example">ffmpeg -i INPUT -c:v libvpx -ts-parameters ts_number_layers=3:\
ts_target_bitrate=250,500,1000:ts_rate_decimator=4,2,1:\
ts_periodicity=4:ts_layer_id=0,2,1,2:ts_layering_mode=3 OUTPUT
</pre></div>
<p>Below is a brief explanation of each of the parameters, please
refer to <code>struct vpx_codec_enc_cfg</code> in <code>vpx/vpx_encoder.h</code> for more
details.
</p><dl compact="compact">
<dt><span><samp>ts_number_layers</samp></span></dt>
<dd><p>Number of temporal coding layers.
</p></dd>
<dt><span><samp>ts_target_bitrate</samp></span></dt>
<dd><p>Target bitrate for each temporal layer (in kbps).
(bitrate should be inclusive of the lower temporal layer).
</p></dd>
<dt><span><samp>ts_rate_decimator</samp></span></dt>
<dd><p>Frame rate decimation factor for each temporal layer.
</p></dd>
<dt><span><samp>ts_periodicity</samp></span></dt>
<dd><p>Length of the sequence defining frame temporal layer membership.
</p></dd>
<dt><span><samp>ts_layer_id</samp></span></dt>
<dd><p>Template defining the membership of frames to temporal layers.
</p></dd>
<dt><span><samp>ts_layering_mode</samp></span></dt>
<dd><p>(optional) Selecting the temporal structure from a set of pre-defined temporal layering modes.
Currently supports the following options.
</p><dl compact="compact">
<dt><span><samp>0</samp></span></dt>
<dd><p>No temporal layering flags are provided internally,
relies on flags being passed in using <code>metadata</code> field in <code>AVFrame</code>
with following keys.
</p><dl compact="compact">
<dt><span><samp>vp8-flags</samp></span></dt>
<dd><p>Sets the flags passed into the encoder to indicate the referencing scheme for
the current frame.
Refer to function <code>vpx_codec_encode</code> in <code>vpx/vpx_encoder.h</code> for more
details.
</p></dd>
<dt><span><samp>temporal_id</samp></span></dt>
<dd><p>Explicitly sets the temporal id of the current frame to encode.
</p></dd>
</dl>
</dd>
<dt><span><samp>2</samp></span></dt>
<dd><p>Two temporal layers. 0-1...
</p></dd>
<dt><span><samp>3</samp></span></dt>
<dd><p>Three temporal layers. 0-2-1-2...; with single reference frame.
</p></dd>
<dt><span><samp>4</samp></span></dt>
<dd><p>Same as option "3", except there is a dependency between
the two temporal layer 2 frames within the temporal period.
</p></dd>
</dl>
</dd>
</dl>
</dd>
<dt><span><samp>VP9-specific options</samp></span></dt>
<dd><dl compact="compact">
<dt><span><samp>lossless</samp></span></dt>
<dd><p>Enable lossless mode.
</p></dd>
<dt><span><samp>tile-columns</samp></span></dt>
<dd><p>Set number of tile columns to use. Note this is given as
<code>log2(tile_columns)</code>. For example, 8 tile columns would be requested by
setting the <samp>tile-columns</samp> option to 3.
</p></dd>
<dt><span><samp>tile-rows</samp></span></dt>
<dd><p>Set number of tile rows to use. Note this is given as <code>log2(tile_rows)</code>.
For example, 4 tile rows would be requested by setting the <samp>tile-rows</samp>
option to 2.
</p></dd>
<dt><span><samp>frame-parallel</samp></span></dt>
<dd><p>Enable frame parallel decodability features.
</p></dd>
<dt><span><samp>aq-mode</samp></span></dt>
<dd><p>Set adaptive quantization mode (0: off (default), 1: variance 2: complexity, 3:
cyclic refresh, 4: equator360).
</p></dd>
<dt><span><samp>colorspace <em>color-space</em></samp></span></dt>
<dd><p>Set input color space. The VP9 bitstream supports signaling the following
colorspaces:
</p><dl compact="compact">
<dt><span><samp>‘<samp>rgb</samp>’ <em>sRGB</em></samp></span></dt>
<dt><span><samp>‘<samp>bt709</samp>’ <em>bt709</em></samp></span></dt>
<dt><span><samp>‘<samp>unspecified</samp>’ <em>unknown</em></samp></span></dt>
<dt><span><samp>‘<samp>bt470bg</samp>’ <em>bt601</em></samp></span></dt>
<dt><span><samp>‘<samp>smpte170m</samp>’ <em>smpte170</em></samp></span></dt>
<dt><span><samp>‘<samp>smpte240m</samp>’ <em>smpte240</em></samp></span></dt>
<dt><span><samp>‘<samp>bt2020_ncl</samp>’ <em>bt2020</em></samp></span></dt>
</dl>
</dd>
<dt><span><samp>row-mt <var>boolean</var></samp></span></dt>
<dd><p>Enable row based multi-threading.
</p></dd>
<dt><span><samp>tune-content</samp></span></dt>
<dd><p>Set content type: default (0), screen (1), film (2).
</p></dd>
<dt><span><samp>corpus-complexity</samp></span></dt>
<dd><p>Corpus VBR mode is a variant of standard VBR where the complexity distribution
midpoint is passed in rather than calculated for a specific clip or chunk.
</p>
<p>The valid range is [0, 10000]. 0 (default) uses standard VBR.
</p></dd>
<dt><span><samp>enable-tpl <var>boolean</var></samp></span></dt>
<dd><p>Enable temporal dependency model.
</p></dd>
<dt><span><samp>ref-frame-config</samp></span></dt>
<dd><p>Using per-frame metadata, set members of the structure <code>vpx_svc_ref_frame_config_t</code> in <code>vpx/vp8cx.h</code> to fine-control referencing schemes and frame buffer management.
<br>Use a :-separated list of key=value pairs.
For example,
</p><div class="example">
<pre class="example">av_dict_set(&av_frame->metadata, "ref-frame-config", \
"rfc_update_buffer_slot=7:rfc_lst_fb_idx=0:rfc_gld_fb_idx=1:rfc_alt_fb_idx=2:rfc_reference_last=0:rfc_reference_golden=0:rfc_reference_alt_ref=0");
</pre></div>
<dl compact="compact">
<dt><span><samp>rfc_update_buffer_slot</samp></span></dt>
<dd><p>Indicates the buffer slot number to update
</p></dd>
<dt><span><samp>rfc_update_last</samp></span></dt>
<dd><p>Indicates whether to update the LAST frame
</p></dd>
<dt><span><samp>rfc_update_golden</samp></span></dt>
<dd><p>Indicates whether to update GOLDEN frame
</p></dd>
<dt><span><samp>rfc_update_alt_ref</samp></span></dt>
<dd><p>Indicates whether to update ALT_REF frame
</p></dd>
<dt><span><samp>rfc_lst_fb_idx</samp></span></dt>
<dd><p>LAST frame buffer index
</p></dd>
<dt><span><samp>rfc_gld_fb_idx</samp></span></dt>
<dd><p>GOLDEN frame buffer index
</p></dd>
<dt><span><samp>rfc_alt_fb_idx</samp></span></dt>
<dd><p>ALT_REF frame buffer index
</p></dd>
<dt><span><samp>rfc_reference_last</samp></span></dt>
<dd><p>Indicates whether to reference LAST frame
</p></dd>
<dt><span><samp>rfc_reference_golden</samp></span></dt>
<dd><p>Indicates whether to reference GOLDEN frame
</p></dd>
<dt><span><samp>rfc_reference_alt_ref</samp></span></dt>
<dd><p>Indicates whether to reference ALT_REF frame
</p></dd>
<dt><span><samp>rfc_reference_duration</samp></span></dt>
<dd><p>Indicates frame duration
</p></dd>
</dl>
</dd>
</dl>
</dd>
</dl>
<p>For more information about libvpx see:
<a href="http://www.webmproject.org/">http://www.webmproject.org/</a>
</p>
<a name="libwebp"></a>
<h3 class="section">9.14 libwebp<span class="pull-right"><a class="anchor hidden-xs" href="#libwebp" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libwebp" aria-hidden="true">TOC</a></span></h3>
<p>libwebp WebP Image encoder wrapper
</p>
<p>libwebp is Google’s official encoder for WebP images. It can encode in either
lossy or lossless mode. Lossy images are essentially a wrapper around a VP8
frame. Lossless images are a separate codec developed by Google.
</p>
<a name="Pixel-Format"></a>
<h4 class="subsection">9.14.1 Pixel Format<span class="pull-right"><a class="anchor hidden-xs" href="#Pixel-Format" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Pixel-Format" aria-hidden="true">TOC</a></span></h4>
<p>Currently, libwebp only supports YUV420 for lossy and RGB for lossless due
to limitations of the format and libwebp. Alpha is supported for either mode.
Because of API limitations, if RGB is passed in when encoding lossy or YUV is
passed in for encoding lossless, the pixel format will automatically be
converted using functions from libwebp. This is not ideal and is done only for
convenience.
</p>
<a name="Options-33"></a>
<h4 class="subsection">9.14.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-33" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-33" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>-lossless <var>boolean</var></samp></span></dt>
<dd><p>Enables/Disables use of lossless mode. Default is 0.
</p>
</dd>
<dt><span><samp>-compression_level <var>integer</var></samp></span></dt>
<dd><p>For lossy, this is a quality/speed tradeoff. Higher values give better quality
for a given size at the cost of increased encoding time. For lossless, this is
a size/speed tradeoff. Higher values give smaller size at the cost of increased
encoding time. More specifically, it controls the number of extra algorithms
and compression tools used, and varies the combination of these tools. This
maps to the <var>method</var> option in libwebp. The valid range is 0 to 6.
Default is 4.
</p>
</dd>
<dt><span><samp>-quality <var>float</var></samp></span></dt>
<dd><p>For lossy encoding, this controls image quality. For lossless encoding, this
controls the effort and time spent in compression.
Range is 0 to 100. Default is 75.
</p>
</dd>
<dt><span><samp>-preset <var>type</var></samp></span></dt>
<dd><p>Configuration preset. This does some automatic settings based on the general
type of the image.
</p><dl compact="compact">
<dt><span><samp>none</samp></span></dt>
<dd><p>Do not use a preset.
</p></dd>
<dt><span><samp>default</samp></span></dt>
<dd><p>Use the encoder default.
</p></dd>
<dt><span><samp>picture</samp></span></dt>
<dd><p>Digital picture, like portrait, inner shot
</p></dd>
<dt><span><samp>photo</samp></span></dt>
<dd><p>Outdoor photograph, with natural lighting
</p></dd>
<dt><span><samp>drawing</samp></span></dt>
<dd><p>Hand or line drawing, with high-contrast details
</p></dd>
<dt><span><samp>icon</samp></span></dt>
<dd><p>Small-sized colorful images
</p></dd>
<dt><span><samp>text</samp></span></dt>
<dd><p>Text-like
</p></dd>
</dl>
</dd>
</dl>
<a name="libx264_002c-libx264rgb"></a>
<h3 class="section">9.15 libx264, libx264rgb<span class="pull-right"><a class="anchor hidden-xs" href="#libx264_002c-libx264rgb" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx264_002c-libx264rgb" aria-hidden="true">TOC</a></span></h3>
<p>x264 H.264/MPEG-4 AVC encoder wrapper.
</p>
<p>This encoder requires the presence of the libx264 headers and library
during configuration. You need to explicitly configure the build with
<code>--enable-libx264</code>.
</p>
<p>libx264 supports an impressive number of features, including 8x8 and
4x4 adaptive spatial transform, adaptive B-frame placement, CAVLC/CABAC
entropy coding, interlacing (MBAFF), lossless mode, psy optimizations
for detail retention (adaptive quantization, psy-RD, psy-trellis).
</p>
<p>Many libx264 encoder options are mapped to FFmpeg global codec
options, while unique encoder options are provided through private
options. Additionally the <samp>x264opts</samp> and <samp>x264-params</samp>
private options allows one to pass a list of key=value tuples as accepted
by the libx264 <code>x264_param_parse</code> function.
</p>
<p>The x264 project website is at
<a href="http://www.videolan.org/developers/x264.html">http://www.videolan.org/developers/x264.html</a>.
</p>
<p>The libx264rgb encoder is the same as libx264, except it accepts packed RGB
pixel formats as input instead of YUV.
</p>
<a name="Supported-Pixel-Formats"></a>
<h4 class="subsection">9.15.1 Supported Pixel Formats<span class="pull-right"><a class="anchor hidden-xs" href="#Supported-Pixel-Formats" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Supported-Pixel-Formats" aria-hidden="true">TOC</a></span></h4>
<p>x264 supports 8- to 10-bit color spaces. The exact bit depth is controlled at
x264’s configure time.
</p>
<a name="Options-34"></a>
<h4 class="subsection">9.15.2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-34" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-34" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libx264 wrapper. The
<code>x264</code>-equivalent options or values are listed in parentheses
for easy migration.
</p>
<p>To reduce the duplication of documentation, only the private options
and some others requiring special attention are documented here. For
the documentation of the undocumented generic options, see
<a href="#codec_002doptions">the Codec Options chapter</a>.
</p>
<p>To get a more accurate and extensive documentation of the libx264
options, invoke the command <code>x264 --fullhelp</code> or consult
the libx264 documentation.
</p>
<dl compact="compact">
<dt><span><samp>b (<em>bitrate</em>)</samp></span></dt>
<dd><p>Set bitrate in bits/s. Note that FFmpeg’s <samp>b</samp> option is
expressed in bits/s, while <code>x264</code>’s <samp>bitrate</samp> is in
kilobits/s.
</p>
</dd>
<dt><span><samp>bf (<em>bframes</em>)</samp></span></dt>
<dt><span><samp>g (<em>keyint</em>)</samp></span></dt>
<dt><span><samp>qmin (<em>qpmin</em>)</samp></span></dt>
<dd><p>Minimum quantizer scale.
</p>
</dd>
<dt><span><samp>qmax (<em>qpmax</em>)</samp></span></dt>
<dd><p>Maximum quantizer scale.
</p>
</dd>
<dt><span><samp>qdiff (<em>qpstep</em>)</samp></span></dt>
<dd><p>Maximum difference between quantizer scales.
</p>
</dd>
<dt><span><samp>qblur (<em>qblur</em>)</samp></span></dt>
<dd><p>Quantizer curve blur
</p>
</dd>
<dt><span><samp>qcomp (<em>qcomp</em>)</samp></span></dt>
<dd><p>Quantizer curve compression factor
</p>
</dd>
<dt><span><samp>refs (<em>ref</em>)</samp></span></dt>
<dd><p>Number of reference frames each P-frame can use. The range is from <var>0-16</var>.
</p>
</dd>
<dt><span><samp>sc_threshold (<em>scenecut</em>)</samp></span></dt>
<dd><p>Sets the threshold for the scene change detection.
</p>
</dd>
<dt><span><samp>trellis (<em>trellis</em>)</samp></span></dt>
<dd><p>Performs Trellis quantization to increase efficiency. Enabled by default.
</p>
</dd>
<dt><span><samp>nr (<em>nr</em>)</samp></span></dt>
<dt><span><samp>me_range (<em>merange</em>)</samp></span></dt>
<dd><p>Maximum range of the motion search in pixels.
</p>
</dd>
<dt><span><samp>me_method (<em>me</em>)</samp></span></dt>
<dd><p>Set motion estimation method. Possible values in the decreasing order
of speed:
</p>
<dl compact="compact">
<dt><span>‘<samp>dia (<em>dia</em>)</samp>’</span></dt>
<dt><span>‘<samp>epzs (<em>dia</em>)</samp>’</span></dt>
<dd><p>Diamond search with radius 1 (fastest). ‘<samp>epzs</samp>’ is an alias for
‘<samp>dia</samp>’.
</p></dd>
<dt><span>‘<samp>hex (<em>hex</em>)</samp>’</span></dt>
<dd><p>Hexagonal search with radius 2.
</p></dd>
<dt><span>‘<samp>umh (<em>umh</em>)</samp>’</span></dt>
<dd><p>Uneven multi-hexagon search.
</p></dd>
<dt><span>‘<samp>esa (<em>esa</em>)</samp>’</span></dt>
<dd><p>Exhaustive search.
</p></dd>
<dt><span>‘<samp>tesa (<em>tesa</em>)</samp>’</span></dt>
<dd><p>Hadamard exhaustive search (slowest).
</p></dd>
</dl>
</dd>
<dt><span><samp>forced-idr</samp></span></dt>
<dd><p>Normally, when forcing a I-frame type, the encoder can select any type
of I-frame. This option forces it to choose an IDR-frame.
</p>
</dd>
<dt><span><samp>subq (<em>subme</em>)</samp></span></dt>
<dd><p>Sub-pixel motion estimation method.
</p>
</dd>
<dt><span><samp>b_strategy (<em>b-adapt</em>)</samp></span></dt>
<dd><p>Adaptive B-frame placement decision algorithm. Use only on first-pass.
</p>
</dd>
<dt><span><samp>keyint_min (<em>min-keyint</em>)</samp></span></dt>
<dd><p>Minimum GOP size.
</p>
</dd>
<dt><span><samp>coder</samp></span></dt>
<dd><p>Set entropy encoder. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>ac</samp>’</span></dt>
<dd><p>Enable CABAC.
</p>
</dd>
<dt><span>‘<samp>vlc</samp>’</span></dt>
<dd><p>Enable CAVLC and disable CABAC. It generates the same effect as
<code>x264</code>’s <samp>--no-cabac</samp> option.
</p></dd>
</dl>
</dd>
<dt><span><samp>cmp</samp></span></dt>
<dd><p>Set full pixel motion estimation comparison algorithm. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>chroma</samp>’</span></dt>
<dd><p>Enable chroma in motion estimation.
</p>
</dd>
<dt><span>‘<samp>sad</samp>’</span></dt>
<dd><p>Ignore chroma in motion estimation. It generates the same effect as
<code>x264</code>’s <samp>--no-chroma-me</samp> option.
</p></dd>
</dl>
</dd>
<dt><span><samp>threads (<em>threads</em>)</samp></span></dt>
<dd><p>Number of encoding threads.
</p>
</dd>
<dt><span><samp>thread_type</samp></span></dt>
<dd><p>Set multithreading technique. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>slice</samp>’</span></dt>
<dd><p>Slice-based multithreading. It generates the same effect as
<code>x264</code>’s <samp>--sliced-threads</samp> option.
</p></dd>
<dt><span>‘<samp>frame</samp>’</span></dt>
<dd><p>Frame-based multithreading.
</p></dd>
</dl>
</dd>
<dt><span><samp>flags</samp></span></dt>
<dd><p>Set encoding flags. It can be used to disable closed GOP and enable
open GOP by setting it to <code>-cgop</code>. The result is similar to
the behavior of <code>x264</code>’s <samp>--open-gop</samp> option.
</p>
</dd>
<dt><span><samp>rc_init_occupancy (<em>vbv-init</em>)</samp></span></dt>
<dt><span><samp>preset (<em>preset</em>)</samp></span></dt>
<dd><p>Set the encoding preset.
</p>
</dd>
<dt><span><samp>tune (<em>tune</em>)</samp></span></dt>
<dd><p>Set tuning of the encoding params.
</p>
</dd>
<dt><span><samp>profile (<em>profile</em>)</samp></span></dt>
<dd><p>Set profile restrictions.
</p>
</dd>
<dt><span><samp>fastfirstpass</samp></span></dt>
<dd><p>Enable fast settings when encoding first pass, when set to 1. When set
to 0, it has the same effect of <code>x264</code>’s
<samp>--slow-firstpass</samp> option.
</p>
</dd>
<dt><span><samp>crf (<em>crf</em>)</samp></span></dt>
<dd><p>Set the quality for constant quality mode.
</p>
</dd>
<dt><span><samp>crf_max (<em>crf-max</em>)</samp></span></dt>
<dd><p>In CRF mode, prevents VBV from lowering quality beyond this point.
</p>
</dd>
<dt><span><samp>qp (<em>qp</em>)</samp></span></dt>
<dd><p>Set constant quantization rate control method parameter.
</p>
</dd>
<dt><span><samp>aq-mode (<em>aq-mode</em>)</samp></span></dt>
<dd><p>Set AQ method. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>0</em>)</samp>’</span></dt>
<dd><p>Disabled.
</p>
</dd>
<dt><span>‘<samp>variance (<em>1</em>)</samp>’</span></dt>
<dd><p>Variance AQ (complexity mask).
</p>
</dd>
<dt><span>‘<samp>autovariance (<em>2</em>)</samp>’</span></dt>
<dd><p>Auto-variance AQ (experimental).
</p></dd>
</dl>
</dd>
<dt><span><samp>aq-strength (<em>aq-strength</em>)</samp></span></dt>
<dd><p>Set AQ strength, reduce blocking and blurring in flat and textured areas.
</p>
</dd>
<dt><span><samp>psy</samp></span></dt>
<dd><p>Use psychovisual optimizations when set to 1. When set to 0, it has the
same effect as <code>x264</code>’s <samp>--no-psy</samp> option.
</p>
</dd>
<dt><span><samp>psy-rd (<em>psy-rd</em>)</samp></span></dt>
<dd><p>Set strength of psychovisual optimization, in
<var>psy-rd</var>:<var>psy-trellis</var> format.
</p>
</dd>
<dt><span><samp>rc-lookahead (<em>rc-lookahead</em>)</samp></span></dt>
<dd><p>Set number of frames to look ahead for frametype and ratecontrol.
</p>
</dd>
<dt><span><samp>weightb</samp></span></dt>
<dd><p>Enable weighted prediction for B-frames when set to 1. When set to 0,
it has the same effect as <code>x264</code>’s <samp>--no-weightb</samp> option.
</p>
</dd>
<dt><span><samp>weightp (<em>weightp</em>)</samp></span></dt>
<dd><p>Set weighted prediction method for P-frames. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>0</em>)</samp>’</span></dt>
<dd><p>Disabled
</p></dd>
<dt><span>‘<samp>simple (<em>1</em>)</samp>’</span></dt>
<dd><p>Enable only weighted refs
</p></dd>
<dt><span>‘<samp>smart (<em>2</em>)</samp>’</span></dt>
<dd><p>Enable both weighted refs and duplicates
</p></dd>
</dl>
</dd>
<dt><span><samp>ssim (<em>ssim</em>)</samp></span></dt>
<dd><p>Enable calculation and printing SSIM stats after the encoding.
</p>
</dd>
<dt><span><samp>intra-refresh (<em>intra-refresh</em>)</samp></span></dt>
<dd><p>Enable the use of Periodic Intra Refresh instead of IDR frames when set
to 1.
</p>
</dd>
<dt><span><samp>avcintra-class (<em>class</em>)</samp></span></dt>
<dd><p>Configure the encoder to generate AVC-Intra.
Valid values are 50,100 and 200
</p>
</dd>
<dt><span><samp>bluray-compat (<em>bluray-compat</em>)</samp></span></dt>
<dd><p>Configure the encoder to be compatible with the bluray standard.
It is a shorthand for setting "bluray-compat=1 force-cfr=1".
</p>
</dd>
<dt><span><samp>b-bias (<em>b-bias</em>)</samp></span></dt>
<dd><p>Set the influence on how often B-frames are used.
</p>
</dd>
<dt><span><samp>b-pyramid (<em>b-pyramid</em>)</samp></span></dt>
<dd><p>Set method for keeping of some B-frames as references. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>none</em>)</samp>’</span></dt>
<dd><p>Disabled.
</p></dd>
<dt><span>‘<samp>strict (<em>strict</em>)</samp>’</span></dt>
<dd><p>Strictly hierarchical pyramid.
</p></dd>
<dt><span>‘<samp>normal (<em>normal</em>)</samp>’</span></dt>
<dd><p>Non-strict (not Blu-ray compatible).
</p></dd>
</dl>
</dd>
<dt><span><samp>mixed-refs</samp></span></dt>
<dd><p>Enable the use of one reference per partition, as opposed to one
reference per macroblock when set to 1. When set to 0, it has the
same effect as <code>x264</code>’s <samp>--no-mixed-refs</samp> option.
</p>
</dd>
<dt><span><samp>8x8dct</samp></span></dt>
<dd><p>Enable adaptive spatial transform (high profile 8x8 transform)
when set to 1. When set to 0, it has the same effect as
<code>x264</code>’s <samp>--no-8x8dct</samp> option.
</p>
</dd>
<dt><span><samp>fast-pskip</samp></span></dt>
<dd><p>Enable early SKIP detection on P-frames when set to 1. When set
to 0, it has the same effect as <code>x264</code>’s
<samp>--no-fast-pskip</samp> option.
</p>
</dd>
<dt><span><samp>aud (<em>aud</em>)</samp></span></dt>
<dd><p>Enable use of access unit delimiters when set to 1.
</p>
</dd>
<dt><span><samp>mbtree</samp></span></dt>
<dd><p>Enable use macroblock tree ratecontrol when set to 1. When set
to 0, it has the same effect as <code>x264</code>’s
<samp>--no-mbtree</samp> option.
</p>
</dd>
<dt><span><samp>deblock (<em>deblock</em>)</samp></span></dt>
<dd><p>Set loop filter parameters, in <var>alpha</var>:<var>beta</var> form.
</p>
</dd>
<dt><span><samp>cplxblur (<em>cplxblur</em>)</samp></span></dt>
<dd><p>Set fluctuations reduction in QP (before curve compression).
</p>
</dd>
<dt><span><samp>partitions (<em>partitions</em>)</samp></span></dt>
<dd><p>Set partitions to consider as a comma-separated list of. Possible
values in the list:
</p>
<dl compact="compact">
<dt><span>‘<samp>p8x8</samp>’</span></dt>
<dd><p>8x8 P-frame partition.
</p></dd>
<dt><span>‘<samp>p4x4</samp>’</span></dt>
<dd><p>4x4 P-frame partition.
</p></dd>
<dt><span>‘<samp>b8x8</samp>’</span></dt>
<dd><p>4x4 B-frame partition.
</p></dd>
<dt><span>‘<samp>i8x8</samp>’</span></dt>
<dd><p>8x8 I-frame partition.
</p></dd>
<dt><span>‘<samp>i4x4</samp>’</span></dt>
<dd><p>4x4 I-frame partition.
(Enabling ‘<samp>p4x4</samp>’ requires ‘<samp>p8x8</samp>’ to be enabled. Enabling
‘<samp>i8x8</samp>’ requires adaptive spatial transform (<samp>8x8dct</samp>
option) to be enabled.)
</p></dd>
<dt><span>‘<samp>none (<em>none</em>)</samp>’</span></dt>
<dd><p>Do not consider any partitions.
</p></dd>
<dt><span>‘<samp>all (<em>all</em>)</samp>’</span></dt>
<dd><p>Consider every partition.
</p></dd>
</dl>
</dd>
<dt><span><samp>direct-pred (<em>direct</em>)</samp></span></dt>
<dd><p>Set direct MV prediction mode. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>none</em>)</samp>’</span></dt>
<dd><p>Disable MV prediction.
</p></dd>
<dt><span>‘<samp>spatial (<em>spatial</em>)</samp>’</span></dt>
<dd><p>Enable spatial predicting.
</p></dd>
<dt><span>‘<samp>temporal (<em>temporal</em>)</samp>’</span></dt>
<dd><p>Enable temporal predicting.
</p></dd>
<dt><span>‘<samp>auto (<em>auto</em>)</samp>’</span></dt>
<dd><p>Automatically decided.
</p></dd>
</dl>
</dd>
<dt><span><samp>slice-max-size (<em>slice-max-size</em>)</samp></span></dt>
<dd><p>Set the limit of the size of each slice in bytes. If not specified
but RTP payload size (<samp>ps</samp>) is specified, that is used.
</p>
</dd>
<dt><span><samp>stats (<em>stats</em>)</samp></span></dt>
<dd><p>Set the file name for multi-pass stats.
</p>
</dd>
<dt><span><samp>nal-hrd (<em>nal-hrd</em>)</samp></span></dt>
<dd><p>Set signal HRD information (requires <samp>vbv-bufsize</samp> to be set).
Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>none (<em>none</em>)</samp>’</span></dt>
<dd><p>Disable HRD information signaling.
</p></dd>
<dt><span>‘<samp>vbr (<em>vbr</em>)</samp>’</span></dt>
<dd><p>Variable bit rate.
</p></dd>
<dt><span>‘<samp>cbr (<em>cbr</em>)</samp>’</span></dt>
<dd><p>Constant bit rate (not allowed in MP4 container).
</p></dd>
</dl>
</dd>
<dt><span><samp>x264opts (N.A.)</samp></span></dt>
<dd><p>Set any x264 option, see <code>x264 --fullhelp</code> for a list.
</p>
<p>Argument is a list of <var>key</var>=<var>value</var> couples separated by
":". In <var>filter</var> and <var>psy-rd</var> options that use ":" as a separator
themselves, use "," instead. They accept it as well since long ago but this
is kept undocumented for some reason.
</p>
<p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
</p><div class="example">
<pre class="example">ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
</pre></div>
</dd>
<dt><span><samp>a53cc <var>boolean</var></samp></span></dt>
<dd><p>Import closed captions (which must be ATSC compatible format) into output.
Only the mpeg2 and h264 decoders provide these. Default is 1 (on).
</p>
</dd>
<dt><span><samp>udu_sei <var>boolean</var></samp></span></dt>
<dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
</p>
</dd>
<dt><span><samp>x264-params (N.A.)</samp></span></dt>
<dd><p>Override the x264 configuration using a :-separated list of key=value
parameters.
</p>
<p>This option is functionally the same as the <samp>x264opts</samp>, but is
duplicated for compatibility with the Libav fork.
</p>
<p>For example to specify libx264 encoding options with <code>ffmpeg</code>:
</p><div class="example">
<pre class="example">ffmpeg -i INPUT -c:v libx264 -x264-params level=30:bframes=0:weightp=0:\
cabac=0:ref=1:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:\
no-fast-pskip=1:subq=6:8x8dct=0:trellis=0 OUTPUT
</pre></div>
</dd>
</dl>
<p>Encoding ffpresets for common usages are provided so they can be used with the
general presets system (e.g. passing the <samp>pre</samp> option).
</p>
<a name="libx265"></a>
<h3 class="section">9.16 libx265<span class="pull-right"><a class="anchor hidden-xs" href="#libx265" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libx265" aria-hidden="true">TOC</a></span></h3>
<p>x265 H.265/HEVC encoder wrapper.
</p>
<p>This encoder requires the presence of the libx265 headers and library
during configuration. You need to explicitly configure the build with
<samp>--enable-libx265</samp>.
</p>
<a name="Options-35"></a>
<h4 class="subsection">9.16.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-35" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-35" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Sets target video bitrate.
</p>
</dd>
<dt><span><samp>bf</samp></span></dt>
<dt><span><samp>g</samp></span></dt>
<dd><p>Set the GOP size.
</p>
</dd>
<dt><span><samp>keyint_min</samp></span></dt>
<dd><p>Minimum GOP size.
</p>
</dd>
<dt><span><samp>refs</samp></span></dt>
<dd><p>Number of reference frames each P-frame can use. The range is from <var>1-16</var>.
</p>
</dd>
<dt><span><samp>preset</samp></span></dt>
<dd><p>Set the x265 preset.
</p>
</dd>
<dt><span><samp>tune</samp></span></dt>
<dd><p>Set the x265 tune parameter.
</p>
</dd>
<dt><span><samp>profile</samp></span></dt>
<dd><p>Set profile restrictions.
</p>
</dd>
<dt><span><samp>crf</samp></span></dt>
<dd><p>Set the quality for constant quality mode.
</p>
</dd>
<dt><span><samp>qp</samp></span></dt>
<dd><p>Set constant quantization rate control method parameter.
</p>
</dd>
<dt><span><samp>qmin</samp></span></dt>
<dd><p>Minimum quantizer scale.
</p>
</dd>
<dt><span><samp>qmax</samp></span></dt>
<dd><p>Maximum quantizer scale.
</p>
</dd>
<dt><span><samp>qdiff</samp></span></dt>
<dd><p>Maximum difference between quantizer scales.
</p>
</dd>
<dt><span><samp>qblur</samp></span></dt>
<dd><p>Quantizer curve blur
</p>
</dd>
<dt><span><samp>qcomp</samp></span></dt>
<dd><p>Quantizer curve compression factor
</p>
</dd>
<dt><span><samp>i_qfactor</samp></span></dt>
<dt><span><samp>b_qfactor</samp></span></dt>
<dt><span><samp>forced-idr</samp></span></dt>
<dd><p>Normally, when forcing a I-frame type, the encoder can select any type
of I-frame. This option forces it to choose an IDR-frame.
</p>
</dd>
<dt><span><samp>udu_sei <var>boolean</var></samp></span></dt>
<dd><p>Import user data unregistered SEI if available into output. Default is 0 (off).
</p>
</dd>
<dt><span><samp>x265-params</samp></span></dt>
<dd><p>Set x265 options using a list of <var>key</var>=<var>value</var> couples separated
by ":". See <code>x265 --help</code> for a list of options.
</p>
<p>For example to specify libx265 encoding options with <samp>-x265-params</samp>:
</p>
<div class="example">
<pre class="example">ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
</pre></div>
</dd>
</dl>
<a name="libxavs2"></a>
<h3 class="section">9.17 libxavs2<span class="pull-right"><a class="anchor hidden-xs" href="#libxavs2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxavs2" aria-hidden="true">TOC</a></span></h3>
<p>xavs2 AVS2-P2/IEEE1857.4 encoder wrapper.
</p>
<p>This encoder requires the presence of the libxavs2 headers and library
during configuration. You need to explicitly configure the build with
<samp>--enable-libxavs2</samp>.
</p>
<p>The following standard libavcodec options are used:
</p><ul>
<li> <samp>b</samp> / <samp>bit_rate</samp>
</li><li> <samp>g</samp> / <samp>gop_size</samp>
</li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
</li></ul>
<p>The encoder also has its own specific options:
</p><a name="Options-36"></a>
<h4 class="subsection">9.17.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-36" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-36" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>lcu_row_threads</samp></span></dt>
<dd><p>Set the number of parallel threads for rows from 1 to 8 (default 5).
</p>
</dd>
<dt><span><samp>initial_qp</samp></span></dt>
<dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
used to set the initial qp for the first frame.
</p>
</dd>
<dt><span><samp>qp</samp></span></dt>
<dd><p>Set the xavs2 quantization parameter from 1 to 63 (default 34). This is
used to set the qp value under constant-QP mode.
</p>
</dd>
<dt><span><samp>max_qp</samp></span></dt>
<dd><p>Set the max qp for rate control from 1 to 63 (default 55).
</p>
</dd>
<dt><span><samp>min_qp</samp></span></dt>
<dd><p>Set the min qp for rate control from 1 to 63 (default 20).
</p>
</dd>
<dt><span><samp>speed_level</samp></span></dt>
<dd><p>Set the Speed level from 0 to 9 (default 0). Higher is better but slower.
</p>
</dd>
<dt><span><samp>log_level</samp></span></dt>
<dd><p>Set the log level from -1 to 3 (default 0). -1: none, 0: error,
1: warning, 2: info, 3: debug.
</p>
</dd>
<dt><span><samp>xavs2-params</samp></span></dt>
<dd><p>Set xavs2 options using a list of <var>key</var>=<var>value</var> couples separated
by ":".
</p>
<p>For example to specify libxavs2 encoding options with <samp>-xavs2-params</samp>:
</p>
<div class="example">
<pre class="example">ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
</pre></div>
</dd>
</dl>
<a name="libxvid"></a>
<h3 class="section">9.18 libxvid<span class="pull-right"><a class="anchor hidden-xs" href="#libxvid" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-libxvid" aria-hidden="true">TOC</a></span></h3>
<p>Xvid MPEG-4 Part 2 encoder wrapper.
</p>
<p>This encoder requires the presence of the libxvidcore headers and library
during configuration. You need to explicitly configure the build with
<code>--enable-libxvid --enable-gpl</code>.
</p>
<p>The native <code>mpeg4</code> encoder supports the MPEG-4 Part 2 format, so
users can encode to this format without this library.
</p>
<a name="Options-37"></a>
<h4 class="subsection">9.18.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-37" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-37" aria-hidden="true">TOC</a></span></h4>
<p>The following options are supported by the libxvid wrapper. Some of
the following options are listed but are not documented, and
correspond to shared codec options. See <a href="#codec_002doptions">the Codec
Options chapter</a> for their documentation. The other shared options
which are not listed have no effect for the libxvid encoder.
</p>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dt><span><samp>g</samp></span></dt>
<dt><span><samp>qmin</samp></span></dt>
<dt><span><samp>qmax</samp></span></dt>
<dt><span><samp>mpeg_quant</samp></span></dt>
<dt><span><samp>threads</samp></span></dt>
<dt><span><samp>bf</samp></span></dt>
<dt><span><samp>b_qfactor</samp></span></dt>
<dt><span><samp>b_qoffset</samp></span></dt>
<dt><span><samp>flags</samp></span></dt>
<dd><p>Set specific encoding flags. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>mv4</samp>’</span></dt>
<dd><p>Use four motion vector by macroblock.
</p>
</dd>
<dt><span>‘<samp>aic</samp>’</span></dt>
<dd><p>Enable high quality AC prediction.
</p>
</dd>
<dt><span>‘<samp>gray</samp>’</span></dt>
<dd><p>Only encode grayscale.
</p>
</dd>
<dt><span>‘<samp>gmc</samp>’</span></dt>
<dd><p>Enable the use of global motion compensation (GMC).
</p>
</dd>
<dt><span>‘<samp>qpel</samp>’</span></dt>
<dd><p>Enable quarter-pixel motion compensation.
</p>
</dd>
<dt><span>‘<samp>cgop</samp>’</span></dt>
<dd><p>Enable closed GOP.
</p>
</dd>
<dt><span>‘<samp>global_header</samp>’</span></dt>
<dd><p>Place global headers in extradata instead of every keyframe.
</p>
</dd>
</dl>
</dd>
<dt><span><samp>trellis</samp></span></dt>
<dt><span><samp>me_method</samp></span></dt>
<dd><p>Set motion estimation method. Possible values in decreasing order of
speed and increasing order of quality:
</p>
<dl compact="compact">
<dt><span>‘<samp>zero</samp>’</span></dt>
<dd><p>Use no motion estimation (default).
</p>
</dd>
<dt><span>‘<samp>phods</samp>’</span></dt>
<dt><span>‘<samp>x1</samp>’</span></dt>
<dt><span>‘<samp>log</samp>’</span></dt>
<dd><p>Enable advanced diamond zonal search for 16x16 blocks and half-pixel
refinement for 16x16 blocks. ‘<samp>x1</samp>’ and ‘<samp>log</samp>’ are aliases for
‘<samp>phods</samp>’.
</p>
</dd>
<dt><span>‘<samp>epzs</samp>’</span></dt>
<dd><p>Enable all of the things described above, plus advanced diamond zonal
search for 8x8 blocks, half-pixel refinement for 8x8 blocks, and motion
estimation on chroma planes.
</p>
</dd>
<dt><span>‘<samp>full</samp>’</span></dt>
<dd><p>Enable all of the things described above, plus extended 16x16 and 8x8
blocks search.
</p></dd>
</dl>
</dd>
<dt><span><samp>mbd</samp></span></dt>
<dd><p>Set macroblock decision algorithm. Possible values in the increasing
order of quality:
</p>
<dl compact="compact">
<dt><span>‘<samp>simple</samp>’</span></dt>
<dd><p>Use macroblock comparing function algorithm (default).
</p>
</dd>
<dt><span>‘<samp>bits</samp>’</span></dt>
<dd><p>Enable rate distortion-based half pixel and quarter pixel refinement for
16x16 blocks.
</p>
</dd>
<dt><span>‘<samp>rd</samp>’</span></dt>
<dd><p>Enable all of the things described above, plus rate distortion-based
half pixel and quarter pixel refinement for 8x8 blocks, and rate
distortion-based search using square pattern.
</p></dd>
</dl>
</dd>
<dt><span><samp>lumi_aq</samp></span></dt>
<dd><p>Enable lumi masking adaptive quantization when set to 1. Default is 0
(disabled).
</p>
</dd>
<dt><span><samp>variance_aq</samp></span></dt>
<dd><p>Enable variance adaptive quantization when set to 1. Default is 0
(disabled).
</p>
<p>When combined with <samp>lumi_aq</samp>, the resulting quality will not
be better than any of the two specified individually. In other
words, the resulting quality will be the worse one of the two
effects.
</p>
</dd>
<dt><span><samp>ssim</samp></span></dt>
<dd><p>Set structural similarity (SSIM) displaying method. Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>off</samp>’</span></dt>
<dd><p>Disable displaying of SSIM information.
</p>
</dd>
<dt><span>‘<samp>avg</samp>’</span></dt>
<dd><p>Output average SSIM at the end of encoding to stdout. The format of
showing the average SSIM is:
</p>
<div class="example">
<pre class="example">Average SSIM: %f
</pre></div>
<p>For users who are not familiar with C, %f means a float number, or
a decimal (e.g. 0.939232).
</p>
</dd>
<dt><span>‘<samp>frame</samp>’</span></dt>
<dd><p>Output both per-frame SSIM data during encoding and average SSIM at
the end of encoding to stdout. The format of per-frame information
is:
</p>
<div class="example">
<pre class="example"> SSIM: avg: %1.3f min: %1.3f max: %1.3f
</pre></div>
<p>For users who are not familiar with C, %1.3f means a float number
rounded to 3 digits after the dot (e.g. 0.932).
</p>
</dd>
</dl>
</dd>
<dt><span><samp>ssim_acc</samp></span></dt>
<dd><p>Set SSIM accuracy. Valid options are integers within the range of
0-4, while 0 gives the most accurate result and 4 computes the
fastest.
</p>
</dd>
</dl>
<a name="MediaFoundation"></a>
<h3 class="section">9.19 MediaFoundation<span class="pull-right"><a class="anchor hidden-xs" href="#MediaFoundation" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MediaFoundation" aria-hidden="true">TOC</a></span></h3>
<p>This provides wrappers to encoders (both audio and video) in the
MediaFoundation framework. It can access both SW and HW encoders.
Video encoders can take input in either of nv12 or yuv420p form
(some encoders support both, some support only either - in practice,
nv12 is the safer choice, especially among HW encoders).
</p>
<a name="mpeg2"></a>
<h3 class="section">9.20 mpeg2<span class="pull-right"><a class="anchor hidden-xs" href="#mpeg2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-mpeg2" aria-hidden="true">TOC</a></span></h3>
<p>MPEG-2 video encoder.
</p>
<a name="Options-38"></a>
<h4 class="subsection">9.20.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-38" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-38" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>profile</samp></span></dt>
<dd><p>Select the mpeg2 profile to encode:
</p>
<dl compact="compact">
<dt><span>‘<samp>422</samp>’</span></dt>
<dt><span>‘<samp>high</samp>’</span></dt>
<dt><span>‘<samp>ss</samp>’</span></dt>
<dd><p>Spatially Scalable
</p></dd>
<dt><span>‘<samp>snr</samp>’</span></dt>
<dd><p>SNR Scalable
</p></dd>
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>simple</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>level</samp></span></dt>
<dd><p>Select the mpeg2 level to encode:
</p>
<dl compact="compact">
<dt><span>‘<samp>high</samp>’</span></dt>
<dt><span>‘<samp>high1440</samp>’</span></dt>
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>low</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>seq_disp_ext <var>integer</var></samp></span></dt>
<dd><p>Specifies if the encoder should write a sequence_display_extension to the
output.
</p><dl compact="compact">
<dt><span><samp>-1</samp></span></dt>
<dt><span><samp>auto</samp></span></dt>
<dd><p>Decide automatically to write it or not (this is the default) by checking if
the data to be written is different from the default or unspecified values.
</p></dd>
<dt><span><samp>0</samp></span></dt>
<dt><span><samp>never</samp></span></dt>
<dd><p>Never write it.
</p></dd>
<dt><span><samp>1</samp></span></dt>
<dt><span><samp>always</samp></span></dt>
<dd><p>Always write it.
</p></dd>
</dl>
</dd>
<dt><span><samp>video_format <var>integer</var></samp></span></dt>
<dd><p>Specifies the video_format written into the sequence display extension
indicating the source of the video pictures. The default is ‘<samp>unspecified</samp>’,
can be ‘<samp>component</samp>’, ‘<samp>pal</samp>’, ‘<samp>ntsc</samp>’, ‘<samp>secam</samp>’ or ‘<samp>mac</samp>’.
For maximum compatibility, use ‘<samp>component</samp>’.
</p></dd>
<dt><span><samp>a53cc <var>boolean</var></samp></span></dt>
<dd><p>Import closed captions (which must be ATSC compatible format) into output.
Default is 1 (on).
</p></dd>
</dl>
<a name="png"></a>
<h3 class="section">9.21 png<span class="pull-right"><a class="anchor hidden-xs" href="#png" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-png" aria-hidden="true">TOC</a></span></h3>
<p>PNG image encoder.
</p>
<a name="Private-options-1"></a>
<h4 class="subsection">9.21.1 Private options<span class="pull-right"><a class="anchor hidden-xs" href="#Private-options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-options-1" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>dpi <var>integer</var></samp></span></dt>
<dd><p>Set physical density of pixels, in dots per inch, unset by default
</p></dd>
<dt><span><samp>dpm <var>integer</var></samp></span></dt>
<dd><p>Set physical density of pixels, in dots per meter, unset by default
</p></dd>
</dl>
<a name="ProRes"></a>
<h3 class="section">9.22 ProRes<span class="pull-right"><a class="anchor hidden-xs" href="#ProRes" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-ProRes" aria-hidden="true">TOC</a></span></h3>
<p>Apple ProRes encoder.
</p>
<p>FFmpeg contains 2 ProRes encoders, the prores-aw and prores-ks encoder.
The used encoder can be chosen with the <code>-vcodec</code> option.
</p>
<a name="Private-Options-for-prores_002dks"></a>
<h4 class="subsection">9.22.1 Private Options for prores-ks<span class="pull-right"><a class="anchor hidden-xs" href="#Private-Options-for-prores_002dks" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Private-Options-for-prores_002dks" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>profile <var>integer</var></samp></span></dt>
<dd><p>Select the ProRes profile to encode
</p><dl compact="compact">
<dt><span>‘<samp>proxy</samp>’</span></dt>
<dt><span>‘<samp>lt</samp>’</span></dt>
<dt><span>‘<samp>standard</samp>’</span></dt>
<dt><span>‘<samp>hq</samp>’</span></dt>
<dt><span>‘<samp>4444</samp>’</span></dt>
<dt><span>‘<samp>4444xq</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp>quant_mat <var>integer</var></samp></span></dt>
<dd><p>Select quantization matrix.
</p><dl compact="compact">
<dt><span>‘<samp>auto</samp>’</span></dt>
<dt><span>‘<samp>default</samp>’</span></dt>
<dt><span>‘<samp>proxy</samp>’</span></dt>
<dt><span>‘<samp>lt</samp>’</span></dt>
<dt><span>‘<samp>standard</samp>’</span></dt>
<dt><span>‘<samp>hq</samp>’</span></dt>
</dl>
<p>If set to <var>auto</var>, the matrix matching the profile will be picked.
If not set, the matrix providing the highest quality, <var>default</var>, will be
picked.
</p>
</dd>
<dt><span><samp>bits_per_mb <var>integer</var></samp></span></dt>
<dd><p>How many bits to allot for coding one macroblock. Different profiles use
between 200 and 2400 bits per macroblock, the maximum is 8000.
</p>
</dd>
<dt><span><samp>mbs_per_slice <var>integer</var></samp></span></dt>
<dd><p>Number of macroblocks in each slice (1-8); the default value (8)
should be good in almost all situations.
</p>
</dd>
<dt><span><samp>vendor <var>string</var></samp></span></dt>
<dd><p>Override the 4-byte vendor ID.
A custom vendor ID like <var>apl0</var> would claim the stream was produced by
the Apple encoder.
</p>
</dd>
<dt><span><samp>alpha_bits <var>integer</var></samp></span></dt>
<dd><p>Specify number of bits for alpha component.
Possible values are <var>0</var>, <var>8</var> and <var>16</var>.
Use <var>0</var> to disable alpha plane coding.
</p>
</dd>
</dl>
<a name="Speed-considerations"></a>
<h4 class="subsection">9.22.2 Speed considerations<span class="pull-right"><a class="anchor hidden-xs" href="#Speed-considerations" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Speed-considerations" aria-hidden="true">TOC</a></span></h4>
<p>In the default mode of operation the encoder has to honor frame constraints
(i.e. not produce frames with size bigger than requested) while still making
output picture as good as possible.
A frame containing a lot of small details is harder to compress and the encoder
would spend more time searching for appropriate quantizers for each slice.
</p>
<p>Setting a higher <samp>bits_per_mb</samp> limit will improve the speed.
</p>
<p>For the fastest encoding speed set the <samp>qscale</samp> parameter (4 is the
recommended value) and do not set a size constraint.
</p>
<a name="QSV-Encoders"></a>
<h3 class="section">9.23 QSV Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#QSV-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-QSV-Encoders" aria-hidden="true">TOC</a></span></h3>
<p>The family of Intel QuickSync Video encoders (MPEG-2, H.264, HEVC, JPEG/MJPEG
and VP9)
</p>
<a name="Ratecontrol-Method"></a>
<h4 class="subsection">9.23.1 Ratecontrol Method<span class="pull-right"><a class="anchor hidden-xs" href="#Ratecontrol-Method" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Ratecontrol-Method" aria-hidden="true">TOC</a></span></h4>
<p>The ratecontrol method is selected as follows:
</p><ul>
<li> When <samp>global_quality</samp> is specified, a quality-based mode is used.
Specifically this means either
<ul class="no-bullet">
<li>- <var>CQP</var> - constant quantizer scale, when the <samp>qscale</samp> codec flag is
also set (the <samp>-qscale</samp> ffmpeg option).
</li><li>- <var>LA_ICQ</var> - intelligent constant quality with lookahead, when the
<samp>look_ahead</samp> option is also set.
</li><li>- <var>ICQ</var> – intelligent constant quality otherwise. For the ICQ modes, global
quality range is 1 to 51, with 1 being the best quality.
</li></ul>
</li><li> Otherwise, a bitrate-based mode is used. For all of those, you should specify at
least the desired average bitrate with the <samp>b</samp> option.
<ul class="no-bullet">
<li>- <var>LA</var> - VBR with lookahead, when the <samp>look_ahead</samp> option is specified.
</li><li>- <var>VCM</var> - video conferencing mode, when the <samp>vcm</samp> option is set.
</li><li>- <var>CBR</var> - constant bitrate, when <samp>maxrate</samp> is specified and equal to
the average bitrate.
</li><li>- <var>VBR</var> - variable bitrate, when <samp>maxrate</samp> is specified, but is higher
than the average bitrate.
</li><li>- <var>AVBR</var> - average VBR mode, when <samp>maxrate</samp> is not specified, both
<samp>avbr_accuracy</samp> and <samp>avbr_convergence</samp> are set to non-zero. This
mode is available for H264 and HEVC on Windows.
</li></ul>
</li></ul>
<p>Note that depending on your system, a different mode than the one you specified
may be selected by the encoder. Set the verbosity level to <var>verbose</var> or
higher to see the actual settings used by the QSV runtime.
</p>
<a name="Global-Options-_002d_003e-MSDK-Options"></a>
<h4 class="subsection">9.23.2 Global Options -> MSDK Options<span class="pull-right"><a class="anchor hidden-xs" href="#Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Global-Options-_002d_003e-MSDK-Options" aria-hidden="true">TOC</a></span></h4>
<p>Additional libavcodec global options are mapped to MSDK options as follows:
</p>
<ul>
<li> <samp>g/gop_size</samp> -> <samp>GopPicSize</samp>
</li><li> <samp>bf/max_b_frames</samp>+1 -> <samp>GopRefDist</samp>
</li><li> <samp>rc_init_occupancy/rc_initial_buffer_occupancy</samp> ->
<samp>InitialDelayInKB</samp>
</li><li> <samp>slices</samp> -> <samp>NumSlice</samp>
</li><li> <samp>refs</samp> -> <samp>NumRefFrame</samp>
</li><li> <samp>b_strategy/b_frame_strategy</samp> -> <samp>BRefType</samp>
</li><li> <samp>cgop/CLOSED_GOP</samp> codec flag -> <samp>GopOptFlag</samp>
</li><li> For the <var>CQP</var> mode, the <samp>i_qfactor/i_qoffset</samp> and
<samp>b_qfactor/b_qoffset</samp> set the difference between <var>QPP</var> and <var>QPI</var>,
and <var>QPP</var> and <var>QPB</var> respectively.
</li><li> Setting the <samp>coder</samp> option to the value <var>vlc</var> will make the H.264
encoder use CAVLC instead of CABAC.
</li></ul>
<a name="Common-Options-1"></a>
<h4 class="subsection">9.23.3 Common Options<span class="pull-right"><a class="anchor hidden-xs" href="#Common-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Common-Options-1" aria-hidden="true">TOC</a></span></h4>
<p>Following options are used by all qsv encoders.
</p>
<dl compact="compact">
<dt><span><samp><var>async_depth</var></samp></span></dt>
<dd><p>Specifies how many asynchronous operations an application performs
before the application explicitly synchronizes the result. If zero,
the value is not specified.
</p>
</dd>
<dt><span><samp><var>preset</var></samp></span></dt>
<dd><p>This option itemizes a range of choices from veryfast (best speed) to veryslow
(best quality).
</p><dl compact="compact">
<dt><span>‘<samp>veryfast</samp>’</span></dt>
<dt><span>‘<samp>faster</samp>’</span></dt>
<dt><span>‘<samp>fast</samp>’</span></dt>
<dt><span>‘<samp>medium</samp>’</span></dt>
<dt><span>‘<samp>slow</samp>’</span></dt>
<dt><span>‘<samp>slower</samp>’</span></dt>
<dt><span>‘<samp>veryslow</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>forced_idr</var></samp></span></dt>
<dd><p>Forcing I frames as IDR frames.
</p>
</dd>
<dt><span><samp><var>low_power</var></samp></span></dt>
<dd><p>For encoders set this flag to ON to reduce power consumption and GPU usage.
</p></dd>
</dl>
<a name="Runtime-Options"></a>
<h4 class="subsection">9.23.4 Runtime Options<span class="pull-right"><a class="anchor hidden-xs" href="#Runtime-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Runtime-Options" aria-hidden="true">TOC</a></span></h4>
<p>Following options can be used durning qsv encoding.
</p>
<dl compact="compact">
<dt><span><samp><var>global_quality</var></samp></span></dt>
<dt><span><samp><var>i_quant_factor</var></samp></span></dt>
<dt><span><samp><var>i_quant_offset</var></samp></span></dt>
<dt><span><samp><var>b_quant_factor</var></samp></span></dt>
<dt><span><samp><var>b_quant_offset</var></samp></span></dt>
<dd><p>Supported in h264_qsv and hevc_qsv.
Change these value to reset qsv codec’s qp configuration.
</p>
</dd>
<dt><span><samp><var>max_frame_size</var></samp></span></dt>
<dd><p>Supported in h264_qsv and hevc_qsv.
Change this value to reset qsv codec’s MaxFrameSize configuration.
</p>
</dd>
<dt><span><samp><var>gop_size</var></samp></span></dt>
<dd><p>Change this value to reset qsv codec’s gop configuration.
</p>
</dd>
<dt><span><samp><var>int_ref_type</var></samp></span></dt>
<dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
<dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
<dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
<dd><p>Supported in h264_qsv and hevc_qsv.
Change these value to reset qsv codec’s Intra Refresh configuration.
</p>
</dd>
<dt><span><samp><var>qmax</var></samp></span></dt>
<dt><span><samp><var>qmin</var></samp></span></dt>
<dt><span><samp><var>max_qp_i</var></samp></span></dt>
<dt><span><samp><var>min_qp_i</var></samp></span></dt>
<dt><span><samp><var>max_qp_p</var></samp></span></dt>
<dt><span><samp><var>min_qp_p</var></samp></span></dt>
<dt><span><samp><var>max_qp_b</var></samp></span></dt>
<dt><span><samp><var>min_qp_b</var></samp></span></dt>
<dd><p>Supported in h264_qsv.
Change these value to reset qsv codec’s max/min qp configuration.
</p>
</dd>
<dt><span><samp><var>low_delay_brc</var></samp></span></dt>
<dd><p>Supported in h264_qsv and hevc_qsv.
Change this value to reset qsv codec’s low_delay_brc configuration.
</p>
</dd>
<dt><span><samp><var>framerate</var></samp></span></dt>
<dd><p>Change this value to reset qsv codec’s framerate configuration.
</p>
</dd>
<dt><span><samp><var>bit_rate</var></samp></span></dt>
<dt><span><samp><var>rc_buffer_size</var></samp></span></dt>
<dt><span><samp><var>rc_initial_buffer_occupancy</var></samp></span></dt>
<dt><span><samp><var>rc_max_rate</var></samp></span></dt>
<dd><p>Change these value to reset qsv codec’s bitrate control configuration.
</p>
</dd>
<dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
<dd><p>Supported in h264_qsv and hevc_qsv.
Change this value to reset qsv codec’s pic_timing_sei configuration.
</p></dd>
</dl>
<a name="H264-options"></a>
<h4 class="subsection">9.23.5 H264 options<span class="pull-right"><a class="anchor hidden-xs" href="#H264-options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-H264-options" aria-hidden="true">TOC</a></span></h4>
<p>These options are used by h264_qsv
</p>
<dl compact="compact">
<dt><span><samp><var>extbrc</var></samp></span></dt>
<dd><p>Extended bitrate control.
</p>
</dd>
<dt><span><samp><var>recovery_point_sei</var></samp></span></dt>
<dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
intra refresh cycle.
</p>
</dd>
<dt><span><samp><var>rdo</var></samp></span></dt>
<dd><p>Enable rate distortion optimization.
</p>
</dd>
<dt><span><samp><var>max_frame_size</var></samp></span></dt>
<dd><p>Maximum encoded frame size in bytes.
</p>
</dd>
<dt><span><samp><var>max_frame_size_i</var></samp></span></dt>
<dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
than zero, then for I frames the value set by max_frame_size is ignored.
</p>
</dd>
<dt><span><samp><var>max_frame_size_p</var></samp></span></dt>
<dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
than zero, then for P frames the value set by max_frame_size is ignored.
</p>
</dd>
<dt><span><samp><var>max_slice_size</var></samp></span></dt>
<dd><p>Maximum encoded slice size in bytes.
</p>
</dd>
<dt><span><samp><var>bitrate_limit</var></samp></span></dt>
<dd><p>Toggle bitrate limitations.
Modifies bitrate to be in the range imposed by the QSV encoder. Setting this
flag off may lead to violation of HRD conformance. Mind that specifying bitrate
below the QSV encoder range might significantly affect quality. If on this
option takes effect in non CQP modes: if bitrate is not in the range imposed
by the QSV encoder, it will be changed to be in the range.
</p>
</dd>
<dt><span><samp><var>mbbrc</var></samp></span></dt>
<dd><p>Setting this flag enables macroblock level bitrate control that generally
improves subjective visual quality. Enabling this flag may have negative impact
on performance and objective visual quality metric.
</p>
</dd>
<dt><span><samp><var>low_delay_brc</var></samp></span></dt>
<dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
more accurate bitrate control to minimize the variance of bitstream size frame
by frame. Value: -1-default 0-off 1-on
</p>
</dd>
<dt><span><samp><var>adaptive_i</var></samp></span></dt>
<dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
to allow changing of frame type from P and B to I.
</p>
</dd>
<dt><span><samp><var>adaptive_b</var></samp></span></dt>
<dd><p>This flag controls changing of frame type from B to P.
</p>
</dd>
<dt><span><samp><var>p_strategy</var></samp></span></dt>
<dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
</p>
</dd>
<dt><span><samp><var>b_strategy</var></samp></span></dt>
<dd><p>This option controls usage of B frames as reference.
</p>
</dd>
<dt><span><samp><var>dblk_idc</var></samp></span></dt>
<dd><p>This option disable deblocking. It has value in range 0~2.
</p>
</dd>
<dt><span><samp><var>cavlc</var></samp></span></dt>
<dd><p>If set, CAVLC is used; if unset, CABAC is used for encoding.
</p>
</dd>
<dt><span><samp><var>vcm</var></samp></span></dt>
<dd><p>Video conferencing mode, please see ratecontrol method.
</p>
</dd>
<dt><span><samp><var>idr_interval</var></samp></span></dt>
<dd><p>Distance (in I-frames) between IDR frames.
</p>
</dd>
<dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
<dd><p>Insert picture timing SEI with pic_struct_syntax element.
</p>
</dd>
<dt><span><samp><var>single_sei_nal_unit</var></samp></span></dt>
<dd><p>Put all the SEI messages into one NALU.
</p>
</dd>
<dt><span><samp><var>max_dec_frame_buffering</var></samp></span></dt>
<dd><p>Maximum number of frames buffered in the DPB.
</p>
</dd>
<dt><span><samp><var>look_ahead</var></samp></span></dt>
<dd><p>Use VBR algorithm with look ahead.
</p>
</dd>
<dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
<dd><p>Depth of look ahead in number frames.
</p>
</dd>
<dt><span><samp><var>look_ahead_downsampling</var></samp></span></dt>
<dd><p>Downscaling factor for the frames saved for the lookahead analysis.
</p><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>auto</samp>’</span></dt>
<dt><span>‘<samp>off</samp>’</span></dt>
<dt><span>‘<samp>2x</samp>’</span></dt>
<dt><span>‘<samp>4x</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>int_ref_type</var></samp></span></dt>
<dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
error resilience without significant impact on encoded bitstream size caused by
I frames. The SDK encoder achieves this by encoding part of each frame in
refresh cycle using intra MBs. <var>none</var> means no refresh. <var>vertical</var> means
vertical refresh, by column of MBs. <var>horizontal</var> means horizontal refresh,
by rows of MBs. <var>slice</var> means horizontal refresh by slices without
overlapping. In case of <var>slice</var>, in_ref_cycle_size is ignored. To enable
intra refresh, B frame should be set to 0.
</p>
</dd>
<dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
<dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
invalid values.
</p>
</dd>
<dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
<dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
[-51, 51] range if target encoding bit-depth for luma samples is 8 and this
range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
</p>
</dd>
<dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
<dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
</p>
</dd>
<dt><span><samp><var>profile</var></samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>baseline</samp>’</span></dt>
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>high</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>a53cc</var></samp></span></dt>
<dd><p>Use A53 Closed Captions (if available).
</p>
</dd>
<dt><span><samp><var>aud</var></samp></span></dt>
<dd><p>Insert the Access Unit Delimiter NAL.
</p>
</dd>
<dt><span><samp><var>mfmode</var></samp></span></dt>
<dd><p>Multi-Frame Mode.
</p><dl compact="compact">
<dt><span>‘<samp>off</samp>’</span></dt>
<dt><span>‘<samp>auto</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>repeat_pps</var></samp></span></dt>
<dd><p>Repeat pps for every frame.
</p>
</dd>
<dt><span><samp><var>max_qp_i</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for I frame.
</p>
</dd>
<dt><span><samp><var>min_qp_i</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for I frame.
</p>
</dd>
<dt><span><samp><var>max_qp_p</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for P frame.
</p>
</dd>
<dt><span><samp><var>min_qp_p</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for P frame.
</p>
</dd>
<dt><span><samp><var>max_qp_b</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for B frame.
</p>
</dd>
<dt><span><samp><var>min_qp_b</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for B frame.
</p>
</dd>
<dt><span><samp><var>scenario</var></samp></span></dt>
<dd><p>Provides a hint to encoder about the scenario for the encoding session.
</p><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>displayremoting</samp>’</span></dt>
<dt><span>‘<samp>videoconference</samp>’</span></dt>
<dt><span>‘<samp>archive</samp>’</span></dt>
<dt><span>‘<samp>livestreaming</samp>’</span></dt>
<dt><span>‘<samp>cameracapture</samp>’</span></dt>
<dt><span>‘<samp>videosurveillance</samp>’</span></dt>
<dt><span>‘<samp>gamestreaming</samp>’</span></dt>
<dt><span>‘<samp>remotegaming</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>avbr_accuracy</var></samp></span></dt>
<dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
</p>
</dd>
<dt><span><samp><var>avbr_convergence</var></samp></span></dt>
<dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
</p>
<p>The parameters <var>avbr_accuracy</var> and <var>avbr_convergence</var> are for the
average variable bitrate control (AVBR) algorithm.
The algorithm focuses on overall encoding quality while meeting the specified
bitrate, <var>target_bitrate</var>, within the accuracy range <var>avbr_accuracy</var>,
after a <var>avbr_Convergence</var> period. This method does not follow HRD and the
instant bitrate is not capped or padded.
</p>
</dd>
<dt><span><samp><var>skip_frame</var></samp></span></dt>
<dd><p>Use per-frame metadata "qsv_skip_frame" to skip frame when encoding. This option
defines the usage of this metadata.
</p><dl compact="compact">
<dt><span>‘<samp>no_skip</samp>’</span></dt>
<dd><p>Frame skipping is disabled.
</p></dd>
<dt><span>‘<samp>insert_dummy</samp>’</span></dt>
<dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
skipped.
</p></dd>
<dt><span>‘<samp>insert_nothing</samp>’</span></dt>
<dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
frames are still used in brc. For example, gop still include skipped frames, and
the frames after skipped frames will be larger in size.
</p></dd>
<dt><span>‘<samp>brc_only</samp>’</span></dt>
<dd><p>skip_frame metadata indicates the number of missed frames before the current
frame.
</p></dd>
</dl>
</dd>
</dl>
<a name="HEVC-Options-1"></a>
<h4 class="subsection">9.23.6 HEVC Options<span class="pull-right"><a class="anchor hidden-xs" href="#HEVC-Options-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-HEVC-Options-1" aria-hidden="true">TOC</a></span></h4>
<p>These options are used by hevc_qsv
</p>
<dl compact="compact">
<dt><span><samp><var>extbrc</var></samp></span></dt>
<dd><p>Extended bitrate control.
</p>
</dd>
<dt><span><samp><var>recovery_point_sei</var></samp></span></dt>
<dd><p>Set this flag to insert the recovery point SEI message at the beginning of every
intra refresh cycle.
</p>
</dd>
<dt><span><samp><var>rdo</var></samp></span></dt>
<dd><p>Enable rate distortion optimization.
</p>
</dd>
<dt><span><samp><var>max_frame_size</var></samp></span></dt>
<dd><p>Maximum encoded frame size in bytes.
</p>
</dd>
<dt><span><samp><var>max_frame_size_i</var></samp></span></dt>
<dd><p>Maximum encoded frame size for I frames in bytes. If this value is set as larger
than zero, then for I frames the value set by max_frame_size is ignored.
</p>
</dd>
<dt><span><samp><var>max_frame_size_p</var></samp></span></dt>
<dd><p>Maximum encoded frame size for P frames in bytes. If this value is set as larger
than zero, then for P frames the value set by max_frame_size is ignored.
</p>
</dd>
<dt><span><samp><var>max_slice_size</var></samp></span></dt>
<dd><p>Maximum encoded slice size in bytes.
</p>
</dd>
<dt><span><samp><var>mbbrc</var></samp></span></dt>
<dd><p>Setting this flag enables macroblock level bitrate control that generally
improves subjective visual quality. Enabling this flag may have negative impact
on performance and objective visual quality metric.
</p>
</dd>
<dt><span><samp><var>low_delay_brc</var></samp></span></dt>
<dd><p>Setting this flag turns on or off LowDelayBRC feautre in qsv plugin, which provides
more accurate bitrate control to minimize the variance of bitstream size frame
by frame. Value: -1-default 0-off 1-on
</p>
</dd>
<dt><span><samp><var>adaptive_i</var></samp></span></dt>
<dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
to allow changing of frame type from P and B to I.
</p>
</dd>
<dt><span><samp><var>adaptive_b</var></samp></span></dt>
<dd><p>This flag controls changing of frame type from B to P.
</p>
</dd>
<dt><span><samp><var>p_strategy</var></samp></span></dt>
<dd><p>Enable P-pyramid: 0-default 1-simple 2-pyramid(bf need to be set to 0).
</p>
</dd>
<dt><span><samp><var>b_strategy</var></samp></span></dt>
<dd><p>This option controls usage of B frames as reference.
</p>
</dd>
<dt><span><samp><var>dblk_idc</var></samp></span></dt>
<dd><p>This option disable deblocking. It has value in range 0~2.
</p>
</dd>
<dt><span><samp><var>idr_interval</var></samp></span></dt>
<dd><p>Distance (in I-frames) between IDR frames.
</p><dl compact="compact">
<dt><span>‘<samp>begin_only</samp>’</span></dt>
<dd><p>Output an IDR-frame only at the beginning of the stream.
</p></dd>
</dl>
</dd>
<dt><span><samp><var>load_plugin</var></samp></span></dt>
<dd><p>A user plugin to load in an internal session.
</p><dl compact="compact">
<dt><span>‘<samp>none</samp>’</span></dt>
<dt><span>‘<samp>hevc_sw</samp>’</span></dt>
<dt><span>‘<samp>hevc_hw</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>load_plugins</var></samp></span></dt>
<dd><p>A :-separate list of hexadecimal plugin UIDs to load in
an internal session.
</p>
</dd>
<dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
<dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
</p>
</dd>
<dt><span><samp><var>profile</var></samp></span></dt>
<dd><p>Set the encoding profile (scc requires libmfx >= 1.32).
</p>
<dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>main10</samp>’</span></dt>
<dt><span>‘<samp>mainsp</samp>’</span></dt>
<dt><span>‘<samp>rext</samp>’</span></dt>
<dt><span>‘<samp>scc</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>tier</var></samp></span></dt>
<dd><p>Set the encoding tier (only level >= 4 can support high tier).
This option only takes effect when the level option is specified.
</p>
<dl compact="compact">
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>high</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>gpb</var></samp></span></dt>
<dd><p>1: GPB (generalized P/B frame)
</p>
<p>0: regular P frame.
</p>
</dd>
<dt><span><samp><var>tile_cols</var></samp></span></dt>
<dd><p>Number of columns for tiled encoding.
</p>
</dd>
<dt><span><samp><var>tile_rows</var></samp></span></dt>
<dd><p>Number of rows for tiled encoding.
</p>
</dd>
<dt><span><samp><var>aud</var></samp></span></dt>
<dd><p>Insert the Access Unit Delimiter NAL.
</p>
</dd>
<dt><span><samp><var>pic_timing_sei</var></samp></span></dt>
<dd><p>Insert picture timing SEI with pic_struct_syntax element.
</p>
</dd>
<dt><span><samp><var>transform_skip</var></samp></span></dt>
<dd><p>Turn this option ON to enable transformskip. It is supported on platform equal
or newer than ICL.
</p>
</dd>
<dt><span><samp><var>int_ref_type</var></samp></span></dt>
<dd><p>Specifies intra refresh type. The major goal of intra refresh is improvement of
error resilience without significant impact on encoded bitstream size caused by
I frames. The SDK encoder achieves this by encoding part of each frame in
refresh cycle using intra MBs. <var>none</var> means no refresh. <var>vertical</var> means
vertical refresh, by column of MBs. <var>horizontal</var> means horizontal refresh,
by rows of MBs. <var>slice</var> means horizontal refresh by slices without
overlapping. In case of <var>slice</var>, in_ref_cycle_size is ignored. To enable
intra refresh, B frame should be set to 0.
</p>
</dd>
<dt><span><samp><var>int_ref_cycle_size</var></samp></span></dt>
<dd><p>Specifies number of pictures within refresh cycle starting from 2. 0 and 1 are
invalid values.
</p>
</dd>
<dt><span><samp><var>int_ref_qp_delta</var></samp></span></dt>
<dd><p>Specifies QP difference for inserted intra MBs. This is signed value in
[-51, 51] range if target encoding bit-depth for luma samples is 8 and this
range is [-63, 63] for 10 bit-depth or [-75, 75] for 12 bit-depth respectively.
</p>
</dd>
<dt><span><samp><var>int_ref_cycle_dist</var></samp></span></dt>
<dd><p>Distance between the beginnings of the intra-refresh cycles in frames.
</p>
</dd>
<dt><span><samp><var>max_qp_i</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for I frame.
</p>
</dd>
<dt><span><samp><var>min_qp_i</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for I frame.
</p>
</dd>
<dt><span><samp><var>max_qp_p</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for P frame.
</p>
</dd>
<dt><span><samp><var>min_qp_p</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for P frame.
</p>
</dd>
<dt><span><samp><var>max_qp_b</var></samp></span></dt>
<dd><p>Maximum video quantizer scale for B frame.
</p>
</dd>
<dt><span><samp><var>min_qp_b</var></samp></span></dt>
<dd><p>Minimum video quantizer scale for B frame.
</p>
</dd>
<dt><span><samp><var>scenario</var></samp></span></dt>
<dd><p>Provides a hint to encoder about the scenario for the encoding session.
</p><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>displayremoting</samp>’</span></dt>
<dt><span>‘<samp>videoconference</samp>’</span></dt>
<dt><span>‘<samp>archive</samp>’</span></dt>
<dt><span>‘<samp>livestreaming</samp>’</span></dt>
<dt><span>‘<samp>cameracapture</samp>’</span></dt>
<dt><span>‘<samp>videosurveillance</samp>’</span></dt>
<dt><span>‘<samp>gamestreaming</samp>’</span></dt>
<dt><span>‘<samp>remotegaming</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>avbr_accuracy</var></samp></span></dt>
<dd><p>Accuracy of the AVBR ratecontrol (unit of tenth of percent).
</p>
</dd>
<dt><span><samp><var>avbr_convergence</var></samp></span></dt>
<dd><p>Convergence of the AVBR ratecontrol (unit of 100 frames)
</p>
<p>The parameters <var>avbr_accuracy</var> and <var>avbr_convergence</var> are for the
average variable bitrate control (AVBR) algorithm.
The algorithm focuses on overall encoding quality while meeting the specified
bitrate, <var>target_bitrate</var>, within the accuracy range <var>avbr_accuracy</var>,
after a <var>avbr_Convergence</var> period. This method does not follow HRD and the
instant bitrate is not capped or padded.
</p>
</dd>
<dt><span><samp><var>skip_frame</var></samp></span></dt>
<dd><p>Use per-frame metadata "qsv_skip_frame" to skip frame when encoding. This option
defines the usage of this metadata.
</p><dl compact="compact">
<dt><span>‘<samp>no_skip</samp>’</span></dt>
<dd><p>Frame skipping is disabled.
</p></dd>
<dt><span>‘<samp>insert_dummy</samp>’</span></dt>
<dd><p>Encoder inserts into bitstream frame where all macroblocks are encoded as
skipped.
</p></dd>
<dt><span>‘<samp>insert_nothing</samp>’</span></dt>
<dd><p>Similar to insert_dummy, but encoder inserts nothing into bitstream. The skipped
frames are still used in brc. For example, gop still include skipped frames, and
the frames after skipped frames will be larger in size.
</p></dd>
<dt><span>‘<samp>brc_only</samp>’</span></dt>
<dd><p>skip_frame metadata indicates the number of missed frames before the current
frame.
</p></dd>
</dl>
</dd>
</dl>
<a name="MPEG2-Options"></a>
<h4 class="subsection">9.23.7 MPEG2 Options<span class="pull-right"><a class="anchor hidden-xs" href="#MPEG2-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-MPEG2-Options" aria-hidden="true">TOC</a></span></h4>
<p>These options are used by mpeg2_qsv
</p><dl compact="compact">
<dt><span><samp><var>profile</var></samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>simple</samp>’</span></dt>
<dt><span>‘<samp>main</samp>’</span></dt>
<dt><span>‘<samp>high</samp>’</span></dt>
</dl>
</dd>
</dl>
<a name="VP9-Options"></a>
<h4 class="subsection">9.23.8 VP9 Options<span class="pull-right"><a class="anchor hidden-xs" href="#VP9-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VP9-Options" aria-hidden="true">TOC</a></span></h4>
<p>These options are used by vp9_qsv
</p><dl compact="compact">
<dt><span><samp><var>profile</var></samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>profile0</samp>’</span></dt>
<dt><span>‘<samp>profile1</samp>’</span></dt>
<dt><span>‘<samp>profile2</samp>’</span></dt>
<dt><span>‘<samp>profile3</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>tile_cols</var></samp></span></dt>
<dd><p>Number of columns for tiled encoding (requires libmfx >= 1.29).
</p>
</dd>
<dt><span><samp><var>tile_rows</var></samp></span></dt>
<dd><p>Number of rows for tiled encoding (requires libmfx >= 1.29).
</p></dd>
</dl>
<a name="AV1-Options"></a>
<h4 class="subsection">9.23.9 AV1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#AV1-Options" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-AV1-Options" aria-hidden="true">TOC</a></span></h4>
<p>These options are used by av1_qsv (requires libvpl).
</p><dl compact="compact">
<dt><span><samp><var>profile</var></samp></span></dt>
<dd><dl compact="compact">
<dt><span>‘<samp>unknown</samp>’</span></dt>
<dt><span>‘<samp>main</samp>’</span></dt>
</dl>
</dd>
<dt><span><samp><var>tile_cols</var></samp></span></dt>
<dd><p>Number of columns for tiled encoding.
</p>
</dd>
<dt><span><samp><var>tile_rows</var></samp></span></dt>
<dd><p>Number of rows for tiled encoding.
</p>
</dd>
<dt><span><samp><var>adaptive_i</var></samp></span></dt>
<dd><p>This flag controls insertion of I frames by the QSV encoder. Turn ON this flag
to allow changing of frame type from P and B to I.
</p>
</dd>
<dt><span><samp><var>adaptive_b</var></samp></span></dt>
<dd><p>This flag controls changing of frame type from B to P.
</p>
</dd>
<dt><span><samp><var>b_strategy</var></samp></span></dt>
<dd><p>This option controls usage of B frames as reference.
</p>
</dd>
<dt><span><samp><var>extbrc</var></samp></span></dt>
<dd><p>Extended bitrate control.
</p>
</dd>
<dt><span><samp><var>look_ahead_depth</var></samp></span></dt>
<dd><p>Depth of look ahead in number frames, available when extbrc option is enabled.
</p></dd>
</dl>
<a name="snow"></a>
<h3 class="section">9.24 snow<span class="pull-right"><a class="anchor hidden-xs" href="#snow" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-snow" aria-hidden="true">TOC</a></span></h3>
<a name="Options-39"></a>
<h4 class="subsection">9.24.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-39" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-39" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>iterative_dia_size</samp></span></dt>
<dd><p>dia size for the iterative motion estimation
</p></dd>
</dl>
<a name="VAAPI-encoders"></a>
<h3 class="section">9.25 VAAPI encoders<span class="pull-right"><a class="anchor hidden-xs" href="#VAAPI-encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-VAAPI-encoders" aria-hidden="true">TOC</a></span></h3>
<p>Wrappers for hardware encoders accessible via VAAPI.
</p>
<p>These encoders only accept input in VAAPI hardware surfaces. If you have input
in software frames, use the <samp>hwupload</samp> filter to upload them to the GPU.
</p>
<p>The following standard libavcodec options are used:
</p><ul>
<li> <samp>g</samp> / <samp>gop_size</samp>
</li><li> <samp>bf</samp> / <samp>max_b_frames</samp>
</li><li> <samp>profile</samp>
<p>If not set, this will be determined automatically from the format of the input
frames and the profiles supported by the driver.
</p></li><li> <samp>level</samp>
</li><li> <samp>b</samp> / <samp>bit_rate</samp>
</li><li> <samp>maxrate</samp> / <samp>rc_max_rate</samp>
</li><li> <samp>bufsize</samp> / <samp>rc_buffer_size</samp>
</li><li> <samp>rc_init_occupancy</samp> / <samp>rc_initial_buffer_occupancy</samp>
</li><li> <samp>compression_level</samp>
<p>Speed / quality tradeoff: higher values are faster / worse quality.
</p></li><li> <samp>q</samp> / <samp>global_quality</samp>
<p>Size / quality tradeoff: higher values are smaller / worse quality.
</p></li><li> <samp>qmin</samp>
</li><li> <samp>qmax</samp>
</li><li> <samp>i_qfactor</samp> / <samp>i_quant_factor</samp>
</li><li> <samp>i_qoffset</samp> / <samp>i_quant_offset</samp>
</li><li> <samp>b_qfactor</samp> / <samp>b_quant_factor</samp>
</li><li> <samp>b_qoffset</samp> / <samp>b_quant_offset</samp>
</li><li> <samp>slices</samp>
</li></ul>
<p>All encoders support the following options:
</p><dl compact="compact">
<dt><span><samp>low_power</samp></span></dt>
<dd><p>Some drivers/platforms offer a second encoder for some codecs intended to use
less power than the default encoder; setting this option will attempt to use
that encoder. Note that it may support a reduced feature set, so some other
options may not be available in this mode.
</p>
</dd>
<dt><span><samp>idr_interval</samp></span></dt>
<dd><p>Set the number of normal intra frames between full-refresh (IDR) frames in
open-GOP mode. The intra frames are still IRAPs, but will not include global
headers and may have non-decodable leading pictures.
</p>
</dd>
<dt><span><samp>b_depth</samp></span></dt>
<dd><p>Set the B-frame reference depth. When set to one (the default), all B-frames
will refer only to P- or I-frames. When set to greater values multiple layers
of B-frames will be present, frames in each layer only referring to frames in
higher layers.
</p>
</dd>
<dt><span><samp>async_depth</samp></span></dt>
<dd><p>Maximum processing parallelism. Increase this to improve single channel
performance. This option doesn’t work if driver doesn’t implement vaSyncBuffer
function. Please make sure there are enough hw_frames allocated if a large
number of async_depth is used.
</p>
</dd>
<dt><span><samp>max_frame_size</samp></span></dt>
<dd><p>Set the allowed max size in bytes for each frame. If the frame size exceeds
the limitation, encoder will adjust the QP value to control the frame size.
Invalid in CQP rate control mode.
</p>
</dd>
<dt><span><samp>rc_mode</samp></span></dt>
<dd><p>Set the rate control mode to use. A given driver may only support a subset of
modes.
</p>
<p>Possible modes:
</p><dl compact="compact">
<dt><span><samp>auto</samp></span></dt>
<dd><p>Choose the mode automatically based on driver support and the other options.
This is the default.
</p></dd>
<dt><span><samp>CQP</samp></span></dt>
<dd><p>Constant-quality.
</p></dd>
<dt><span><samp>CBR</samp></span></dt>
<dd><p>Constant-bitrate.
</p></dd>
<dt><span><samp>VBR</samp></span></dt>
<dd><p>Variable-bitrate.
</p></dd>
<dt><span><samp>ICQ</samp></span></dt>
<dd><p>Intelligent constant-quality.
</p></dd>
<dt><span><samp>QVBR</samp></span></dt>
<dd><p>Quality-defined variable-bitrate.
</p></dd>
<dt><span><samp>AVBR</samp></span></dt>
<dd><p>Average variable bitrate.
</p></dd>
</dl>
</dd>
</dl>
<p>Each encoder also has its own specific options:
</p><dl compact="compact">
<dt><span><samp>h264_vaapi</samp></span></dt>
<dd><p><samp>profile</samp> sets the value of <em>profile_idc</em> and the <em>constraint_set*_flag</em>s.
<samp>level</samp> sets the value of <em>level_idc</em>.
</p>
<dl compact="compact">
<dt><span><samp>coder</samp></span></dt>
<dd><p>Set entropy encoder (default is <em>cabac</em>). Possible values:
</p>
<dl compact="compact">
<dt><span>‘<samp>ac</samp>’</span></dt>
<dt><span>‘<samp>cabac</samp>’</span></dt>
<dd><p>Use CABAC.
</p>
</dd>
<dt><span>‘<samp>vlc</samp>’</span></dt>
<dt><span>‘<samp>cavlc</samp>’</span></dt>
<dd><p>Use CAVLC.
</p></dd>
</dl>
</dd>
<dt><span><samp>aud</samp></span></dt>
<dd><p>Include access unit delimiters in the stream (not included by default).
</p>
</dd>
<dt><span><samp>sei</samp></span></dt>
<dd><p>Set SEI message types to include.
Some combination of the following values:
</p><dl compact="compact">
<dt><span>‘<samp>identifier</samp>’</span></dt>
<dd><p>Include a <em>user_data_unregistered</em> message containing information about
the encoder.
</p></dd>
<dt><span>‘<samp>timing</samp>’</span></dt>
<dd><p>Include picture timing parameters (<em>buffering_period</em> and
<em>pic_timing</em> messages).
</p></dd>
<dt><span>‘<samp>recovery_point</samp>’</span></dt>
<dd><p>Include recovery points where appropriate (<em>recovery_point</em> messages).
</p></dd>
</dl>
</dd>
</dl>
</dd>
<dt><span><samp>hevc_vaapi</samp></span></dt>
<dd><p><samp>profile</samp> and <samp>level</samp> set the values of
<em>general_profile_idc</em> and <em>general_level_idc</em> respectively.
</p>
<dl compact="compact">
<dt><span><samp>aud</samp></span></dt>
<dd><p>Include access unit delimiters in the stream (not included by default).
</p>
</dd>
<dt><span><samp>tier</samp></span></dt>
<dd><p>Set <em>general_tier_flag</em>. This may affect the level chosen for the stream
if it is not explicitly specified.
</p>
</dd>
<dt><span><samp>sei</samp></span></dt>
<dd><p>Set SEI message types to include.
Some combination of the following values:
</p><dl compact="compact">
<dt><span>‘<samp>hdr</samp>’</span></dt>
<dd><p>Include HDR metadata if the input frames have it
(<em>mastering_display_colour_volume</em> and <em>content_light_level</em>
messages).
</p></dd>
</dl>
</dd>
<dt><span><samp>tiles</samp></span></dt>
<dd><p>Set the number of tiles to encode the input video with, as columns x rows.
Larger numbers allow greater parallelism in both encoding and decoding, but
may decrease coding efficiency.
</p>
</dd>
</dl>
</dd>
<dt><span><samp>mjpeg_vaapi</samp></span></dt>
<dd><p>Only baseline DCT encoding is supported. The encoder always uses the standard
quantisation and huffman tables - <samp>global_quality</samp> scales the standard
quantisation table (range 1-100).
</p>
<p>For YUV, 4:2:0, 4:2:2 and 4:4:4 subsampling modes are supported. RGB is also
supported, and will create an RGB JPEG.
</p>
<dl compact="compact">
<dt><span><samp>jfif</samp></span></dt>
<dd><p>Include JFIF header in each frame (not included by default).
</p></dd>
<dt><span><samp>huffman</samp></span></dt>
<dd><p>Include standard huffman tables (on by default). Turning this off will save
a few hundred bytes in each output frame, but may lose compatibility with some
JPEG decoders which don’t fully handle MJPEG.
</p></dd>
</dl>
</dd>
<dt><span><samp>mpeg2_vaapi</samp></span></dt>
<dd><p><samp>profile</samp> and <samp>level</samp> set the value of <em>profile_and_level_indication</em>.
</p>
</dd>
<dt><span><samp>vp8_vaapi</samp></span></dt>
<dd><p>B-frames are not supported.
</p>
<p><samp>global_quality</samp> sets the <em>q_idx</em> used for non-key frames (range 0-127).
</p>
<dl compact="compact">
<dt><span><samp>loop_filter_level</samp></span></dt>
<dt><span><samp>loop_filter_sharpness</samp></span></dt>
<dd><p>Manually set the loop filter parameters.
</p></dd>
</dl>
</dd>
<dt><span><samp>vp9_vaapi</samp></span></dt>
<dd><p><samp>global_quality</samp> sets the <em>q_idx</em> used for P-frames (range 0-255).
</p>
<dl compact="compact">
<dt><span><samp>loop_filter_level</samp></span></dt>
<dt><span><samp>loop_filter_sharpness</samp></span></dt>
<dd><p>Manually set the loop filter parameters.
</p></dd>
</dl>
<p>B-frames are supported, but the output stream is always in encode order rather than display
order. If B-frames are enabled, it may be necessary to use the <samp>vp9_raw_reorder</samp>
bitstream filter to modify the output stream to display frames in the correct order.
</p>
<p>Only normal frames are produced - the <samp>vp9_superframe</samp> bitstream filter may be
required to produce a stream usable with all decoders.
</p>
</dd>
</dl>
<a name="vbn"></a>
<h3 class="section">9.26 vbn<span class="pull-right"><a class="anchor hidden-xs" href="#vbn" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vbn" aria-hidden="true">TOC</a></span></h3>
<p>Vizrt Binary Image encoder.
</p>
<p>This format is used by the broadcast vendor Vizrt for quick texture streaming.
Advanced features of the format such as LZW compression of texture data or
generation of mipmaps are not supported.
</p>
<a name="Options-40"></a>
<h4 class="subsection">9.26.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-40" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-40" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>format <var>string</var></samp></span></dt>
<dd><p>Sets the texture compression used by the VBN file. Can be <var>dxt1</var>,
<var>dxt5</var> or <var>raw</var>. Default is <var>dxt5</var>.
</p></dd>
</dl>
<a name="vc2"></a>
<h3 class="section">9.27 vc2<span class="pull-right"><a class="anchor hidden-xs" href="#vc2" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-vc2" aria-hidden="true">TOC</a></span></h3>
<p>SMPTE VC-2 (previously BBC Dirac Pro). This codec was primarily aimed at
professional broadcasting but since it supports yuv420, yuv422 and yuv444 at
8 (limited range or full range), 10 or 12 bits, this makes it suitable for
other tasks which require low overhead and low compression (like screen
recording).
</p>
<a name="Options-41"></a>
<h4 class="subsection">9.27.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-41" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-41" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>b</samp></span></dt>
<dd><p>Sets target video bitrate. Usually that’s around 1:6 of the uncompressed
video bitrate (e.g. for 1920x1080 50fps yuv422p10 that’s around 400Mbps). Higher
values (close to the uncompressed bitrate) turn on lossless compression mode.
</p>
</dd>
<dt><span><samp>field_order</samp></span></dt>
<dd><p>Enables field coding when set (e.g. to tt - top field first) for interlaced
inputs. Should increase compression with interlaced content as it splits the
fields and encodes each separately.
</p>
</dd>
<dt><span><samp>wavelet_depth</samp></span></dt>
<dd><p>Sets the total amount of wavelet transforms to apply, between 1 and 5 (default).
Lower values reduce compression and quality. Less capable decoders may not be
able to handle values of <samp>wavelet_depth</samp> over 3.
</p>
</dd>
<dt><span><samp>wavelet_type</samp></span></dt>
<dd><p>Sets the transform type. Currently only <var>5_3</var> (LeGall) and <var>9_7</var>
(Deslauriers-Dubuc)
are implemented, with 9_7 being the one with better compression and thus
is the default.
</p>
</dd>
<dt><span><samp>slice_width</samp></span></dt>
<dt><span><samp>slice_height</samp></span></dt>
<dd><p>Sets the slice size for each slice. Larger values result in better compression.
For compatibility with other more limited decoders use <samp>slice_width</samp> of
32 and <samp>slice_height</samp> of 8.
</p>
</dd>
<dt><span><samp>tolerance</samp></span></dt>
<dd><p>Sets the undershoot tolerance of the rate control system in percent. This is
to prevent an expensive search from being run.
</p>
</dd>
<dt><span><samp>qm</samp></span></dt>
<dd><p>Sets the quantization matrix preset to use by default or when <samp>wavelet_depth</samp>
is set to 5
</p><ul class="no-bullet">
<li>- <var>default</var>
Uses the default quantization matrix from the specifications, extended with
values for the fifth level. This provides a good balance between keeping detail
and omitting artifacts.
</li><li>- <var>flat</var>
Use a completely zeroed out quantization matrix. This increases PSNR but might
reduce perception. Use in bogus benchmarks.
</li><li>- <var>color</var>
Reduces detail but attempts to preserve color at extremely low bitrates.
</li></ul>
</dd>
</dl>
<a name="Subtitles-Encoders"></a>
<h2 class="chapter">10 Subtitles Encoders<span class="pull-right"><a class="anchor hidden-xs" href="#Subtitles-Encoders" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Subtitles-Encoders" aria-hidden="true">TOC</a></span></h2>
<a name="dvdsub-1"></a>
<h3 class="section">10.1 dvdsub<span class="pull-right"><a class="anchor hidden-xs" href="#dvdsub-1" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-dvdsub-1" aria-hidden="true">TOC</a></span></h3>
<p>This codec encodes the bitmap subtitle format that is used in DVDs.
Typically they are stored in VOBSUB file pairs (*.idx + *.sub),
and they can also be used in Matroska files.
</p>
<a name="Options-42"></a>
<h4 class="subsection">10.1.1 Options<span class="pull-right"><a class="anchor hidden-xs" href="#Options-42" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Options-42" aria-hidden="true">TOC</a></span></h4>
<dl compact="compact">
<dt><span><samp>palette</samp></span></dt>
<dd><p>Specify the global palette used by the bitmaps.
</p>
<p>The format for this option is a string containing 16 24-bits hexadecimal
numbers (without 0x prefix) separated by commas, for example <code>0d00ee,
ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1,
7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b</code>.
</p>
</dd>
<dt><span><samp>even_rows_fix</samp></span></dt>
<dd><p>When set to 1, enable a work-around that makes the number of pixel rows
even in all subtitles. This fixes a problem with some players that
cut off the bottom row if the number is odd. The work-around just adds
a fully transparent row if needed. The overhead is low, typically
one byte per subtitle on average.
</p>
<p>By default, this work-around is disabled.
</p></dd>
</dl>
<a name="See-Also"></a>
<h2 class="chapter">11 See Also<span class="pull-right"><a class="anchor hidden-xs" href="#See-Also" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-See-Also" aria-hidden="true">TOC</a></span></h2>
<p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
<a href="libavcodec.html">libavcodec</a>
</p>
<a name="Authors"></a>
<h2 class="chapter">12 Authors<span class="pull-right"><a class="anchor hidden-xs" href="#Authors" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Authors" aria-hidden="true">TOC</a></span></h2>
<p>The FFmpeg developers.
</p>
<p>For details about the authorship, see the Git history of the project
(git://source.ffmpeg.org/ffmpeg), e.g. by typing the command
<code>git log</code> in the FFmpeg source directory, or browsing the
online repository at <a href="http://source.ffmpeg.org">http://source.ffmpeg.org</a>.
</p>
<p>Maintainers for the specific components are listed in the file
<samp>MAINTAINERS</samp> in the source code tree.
</p>
<p style="font-size: small;">
This document was generated using <a href="https://www.gnu.org/software/texinfo/"><em>makeinfo</em></a>.
</p>
</div>
</body>
</html>
|