Project

General

Profile

RE: Nvidia Scale using spawn profile » Encoder h264_nvenc.txt

ffmpeg -h encoder=h264_nvenc output - Jack Jordan, 2021-07-28 12:41

 
1
ffmpeg version N-103078-gbc5faacc3f Copyright (c) 2000-2021 the FFmpeg developer                                                                                                             s
2
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
3
  configuration: --enable-cuda --enable-cuvid --enable-nvdec --enable-nvenc --en                                                                                                             able-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ld                                                                                                             flags=-L/usr/local/cuda/lib64
4
  libavutil      57.  2.100 / 57.  2.100
5
  libavcodec     59.  3.102 / 59.  3.102
6
  libavformat    59.  4.101 / 59.  4.101
7
  libavdevice    59.  0.100 / 59.  0.100
8
  libavfilter     8.  1.103 /  8.  1.103
9
  libswscale      6.  0.100 /  6.  0.100
10
  libswresample   4.  0.100 /  4.  0.100
11
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]:
12
    General capabilities: dr1 delay hardware
13
    Threading capabilities: none
14
    Supported hardware devices: cuda cuda
15
    Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0                                                                                                              rgb0 gbrp gbrp16le cuda
16
h264_nvenc AVOptions:
17
  -preset            <int>        E..V....... Set the encoding preset (from 0 to                                                                                                              18) (default p4)
18
     default         0            E..V.......
19
     slow            1            E..V....... hq 2 passes
20
     medium          2            E..V....... hq 1 pass
21
     fast            3            E..V....... hp 1 pass
22
     hp              4            E..V.......
23
     hq              5            E..V.......
24
     bd              6            E..V.......
25
     ll              7            E..V....... low latency
26
     llhq            8            E..V....... low latency hq
27
     llhp            9            E..V....... low latency hp
28
     lossless        10           E..V.......
29
     losslesshp      11           E..V.......
30
     p1              12           E..V....... fastest (lowest quality)
31
     p2              13           E..V....... faster (lower quality)
32
     p3              14           E..V....... fast (low quality)
33
     p4              15           E..V....... medium (default)
34
     p5              16           E..V....... slow (good quality)
35
     p6              17           E..V....... slower (better quality)
36
     p7              18           E..V....... slowest (best quality)
37
  -tune              <int>        E..V....... Set the encoding tuning info (from                                                                                                              1 to 4) (default hq)
38
     hq              1            E..V....... High quality
39
     ll              2            E..V....... Low latency
40
     ull             3            E..V....... Ultra low latency
41
     lossless        4            E..V....... Lossless
42
  -profile           <int>        E..V....... Set the encoding profile (from 0 t                                                                                                             o 3) (default main)
43
     baseline        0            E..V.......
44
     main            1            E..V.......
45
     high            2            E..V.......
46
     high444p        3            E..V.......
47
  -level             <int>        E..V....... Set the encoding level restriction                                                                                                              (from 0 to 62) (default auto)
48
     auto            0            E..V.......
49
     1               10           E..V.......
50
     1.0             10           E..V.......
51
     1b              9            E..V.......
52
     1.0b            9            E..V.......
53
     1.1             11           E..V.......
54
     1.2             12           E..V.......
55
     1.3             13           E..V.......
56
     2               20           E..V.......
57
     2.0             20           E..V.......
58
     2.1             21           E..V.......
59
     2.2             22           E..V.......
60
     3               30           E..V.......
61
     3.0             30           E..V.......
62
     3.1             31           E..V.......
63
     3.2             32           E..V.......
64
     4               40           E..V.......
65
     4.0             40           E..V.......
66
     4.1             41           E..V.......
67
     4.2             42           E..V.......
68
     5               50           E..V.......
69
     5.0             50           E..V.......
70
     5.1             51           E..V.......
71
     5.2             52           E..V.......
72
     6.0             60           E..V.......
73
     6.1             61           E..V.......
74
     6.2             62           E..V.......
75
  -rc                <int>        E..V....... Override the preset rate-control (                                                                                                             from -1 to INT_MAX) (default -1)
76
     constqp         0            E..V....... Constant QP mode
77
     vbr             1            E..V....... Variable bitrate mode
78
     cbr             2            E..V....... Constant bitrate mode
79
     vbr_minqp       8388612      E..V....... Variable bitrate mode with MinQP (                                                                                                             deprecated)
80
     ll_2pass_quality 8388616      E..V....... Multi-pass optimized for image qu                                                                                                             ality (deprecated)
81
     ll_2pass_size   8388624      E..V....... Multi-pass optimized for constant                                                                                                              frame size (deprecated)
82
     vbr_2pass       8388640      E..V....... Multi-pass variable bitrate mode (                                                                                                             deprecated)
83
     cbr_ld_hq       8388616      E..V....... Constant bitrate low delay high qu                                                                                                             ality mode
84
     cbr_hq          8388624      E..V....... Constant bitrate high quality mode
85
     vbr_hq          8388640      E..V....... Variable bitrate high quality mode
86
  -rc-lookahead      <int>        E..V....... Number of frames to look ahead for                                                                                                              rate-control (from 0 to INT_MAX) (default 0)
87
  -surfaces          <int>        E..V....... Number of concurrent surfaces (fro                                                                                                             m 0 to 64) (default 0)
88
  -cbr               <boolean>    E..V....... Use cbr encoding mode (default fal                                                                                                             se)
89
  -2pass             <boolean>    E..V....... Use 2pass encoding mode (default a                                                                                                             uto)
90
  -gpu               <int>        E..V....... Selects which NVENC capable GPU to                                                                                                              use. First GPU is 0, second is 1, and so on. (from -2 to INT_MAX) (default any)
91
     any             -1           E..V....... Pick the first device available
92
     list            -2           E..V....... List the available devices
93
  -delay             <int>        E..V....... Delay frame output by the given am                                                                                                             ount of frames (from 0 to INT_MAX) (default INT_MAX)
94
  -no-scenecut       <boolean>    E..V....... When lookahead is enabled, set thi                                                                                                             s to 1 to disable adaptive I-frame insertion at scene cuts (default false)
95
  -forced-idr        <boolean>    E..V....... If forcing keyframes, force them a                                                                                                             s IDR frames. (default false)
96
  -b_adapt           <boolean>    E..V....... When lookahead is enabled, set thi                                                                                                             s to 0 to disable adaptive B-frame decision (default true)
97
  -spatial-aq        <boolean>    E..V....... set to 1 to enable Spatial AQ (def                                                                                                             ault false)
98
  -spatial_aq        <boolean>    E..V....... set to 1 to enable Spatial AQ (def                                                                                                             ault false)
99
  -temporal-aq       <boolean>    E..V....... set to 1 to enable Temporal AQ (de                                                                                                             fault false)
100
  -temporal_aq       <boolean>    E..V....... set to 1 to enable Temporal AQ (de                                                                                                             fault false)
101
  -zerolatency       <boolean>    E..V....... Set 1 to indicate zero latency ope                                                                                                             ration (no reordering delay) (default false)
102
  -nonref_p          <boolean>    E..V....... Set this to 1 to enable automatic                                                                                                              insertion of non-reference P-frames (default false)
103
  -strict_gop        <boolean>    E..V....... Set 1 to minimize GOP-to-GOP rate                                                                                                              fluctuations (default false)
104
  -aq-strength       <int>        E..V....... When Spatial AQ is enabled, this f                                                                                                             ield is used to specify AQ strength. AQ strength scale is from 1 (low) - 15 (agg                                                                                                             ressive) (from 1 to 15) (default 8)
105
  -cq                <float>      E..V....... Set target quality level (0 to 51,                                                                                                              0 means automatic) for constant quality mode in VBR rate control (from 0 to 51)                                                                                                              (default 0)
106
  -aud               <boolean>    E..V....... Use access unit delimiters (defaul                                                                                                             t false)
107
  -bluray-compat     <boolean>    E..V....... Bluray compatibility workarounds (                                                                                                             default false)
108
  -init_qpP          <int>        E..V....... Initial QP value for P frame (from                                                                                                              -1 to 51) (default -1)
109
  -init_qpB          <int>        E..V....... Initial QP value for B frame (from                                                                                                              -1 to 51) (default -1)
110
  -init_qpI          <int>        E..V....... Initial QP value for I frame (from                                                                                                              -1 to 51) (default -1)
111
  -qp                <int>        E..V....... Constant quantization parameter ra                                                                                                             te control method (from -1 to 51) (default -1)
112
  -weighted_pred     <int>        E..V....... Set 1 to enable weighted predictio                                                                                                             n (from 0 to 1) (default 0)
113
  -coder             <int>        E..V....... Coder type (from -1 to 2) (default                                                                                                              default)
114
     default         -1           E..V.......
115
     auto            0            E..V.......
116
     cabac           1            E..V.......
117
     cavlc           2            E..V.......
118
     ac              1            E..V.......
119
     vlc             2            E..V.......
120
  -b_ref_mode        <int>        E..V....... Use B frames as references (from 0                                                                                                              to 2) (default disabled)
121
     disabled        0            E..V....... B frames will not be used for refe                                                                                                             rence
122
     each            1            E..V....... Each B frame will be used for refe                                                                                                             rence
123
     middle          2            E..V....... Only (number of B frames)/2 will b                                                                                                             e used for reference
124
  -a53cc             <boolean>    E..V....... Use A53 Closed Captions (if availa                                                                                                             ble) (default true)
125
  -dpb_size          <int>        E..V....... Specifies the DPB size used for en                                                                                                             coding (0 means automatic) (from 0 to INT_MAX) (default 0)
126
  -multipass         <int>        E..V....... Set the multipass encoding (from 0                                                                                                              to 2) (default disabled)
127
     disabled        0            E..V....... Single Pass
128
     qres            1            E..V....... Two Pass encoding is enabled where                                                                                                              first Pass is quarter resolution
129
     fullres         2            E..V....... Two Pass encoding is enabled where                                                                                                              first Pass is full resolution
130
  -ldkfs             <int>        E..V....... Low delay key frame scale; Specifi                                                                                                             es the Scene Change frame size increase allowed in case of single frame VBV and                                                                                                              CBR (from 0 to 255) (default 0)
131
  -extra_sei         <boolean>    E..V....... Pass on extra SEI data (e.g. a53 c                                                                                                             c) to be included in the bitstream (default true)
(1-1/2)