Skip to content

Parameter issues,... (--vpp-subburn and --fps) #560

@Selur

Description

@Selur

I wanted to try the '--vpp-subburn' option using:

NVEncC --avhw  -i "G:\TestClips&Co\files\5000frames.mp4" --fps 25.000 --codec av1 --sar 1:1 --output-depth 10 --vbr 0 --vbr-quality 23.00 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 7 --multiref-l0 3 --multiref-l1 3 --bframes 3 --bref-mode auto --mv-precision Q-pel --preset quality --colorrange limited --colormatrix bt470bg --vpp-resize cubic --output-res 640x480 --vpp-gauss disabled --cuda-schedule sync --vpp-subburn filename="G:\TestClips&Co\files\Subtitles\TITLE_1_0_lang_en.idx" --output "J:\tmp\5000frames_1_2024-02-26@17_20_55_2410_01.av1"
--------------------------------------------------------------------------------
J:\tmp\5000frames_1_2024-02-26@17_20_55_2410_01.av1
--------------------------------------------------------------------------------
avcuvid: Unknown input option: framerate=25/1, ignored.
NVEncC (x64) 7.41 (r2681) by rigaya, Jan 22 2024 13:02:15 (VC 1929/Win)
OS Version     Windows 11 x64 (22631) [UTF-8]
CPU            AMD Ryzen 9 7950X 16-Core Processor [5.52GHz] (16C/32T)
GPU            #0: NVIDIA GeForce RTX 4080 (9728 cores, 2505 MHz)[PCIe4x16][551.61]
NVENC / CUDA   NVENC API 12.1, CUDA 12.4, schedule mode: sync
Input Buffers  CUDA, 20 frames
Input Info     avcuvid: H.265/HEVC, 640x480, 25/1 fps
AVSync         vfr
Vpp Filters    cspconv(p010 -> yv12(16bit))
               subburn: G:\TestClips&Co\files\Subtitles\TITLE_1_0_lang_en.idx, scale x0.00
               cspconv(yv12(16bit) -> p010)
Output Info    AV1 main 10bit @ Level auto
               640x480p 1:1 25.000fps (25/1fps)
Encoder Preset quality
Rate Control   VBR
Multipass      none
Bitrate        0 kbps (Max: 0 kbps)
Target Quality 23.00
Initial QP     I:20  P:23  B:25
QP range       I:0-255  P:0-255  B:0-255
QP Offset      cb:0  cr:0
VBV buf size   auto
Split Enc Mode auto
Lookahead      off
GOP length     250 frames
B frames       3 frames [ref mode: middle]
Ref frames     7 frames, MultiRef L0:auto L1:auto
AQ             on (spatial, temporal, strength 5)
Part size      max auto / min auto
Tile num       columns auto / rows auto
TemporalLayers max 1
Refs           forward auto, backward auto
VUI            matrix:bt470bg,range:limited
Others         mv:Q-pel
resize: Invalid parameter.

fails.
removing the:

 --vpp-subburn filename="G:\TestClips&Co\files\Subtitles\TITLE_1_0_lang_en.idx"

part and only calling:

NVEncC --avhw  -i "G:\TestClips&Co\files\5000frames.mp4" --fps 25.000 --codec av1 --sar 1:1 --output-depth 10 --vbr 0 --vbr-quality 23.00 --aq --aq-strength 5 --aq-temporal --gop-len 0 --ref 7 --multiref-l0 3 --multiref-l1 3 --bframes 3 --bref-mode auto --mv-precision Q-pel --preset quality --colorrange limited --colormatrix bt470bg --vpp-resize auto --output-res 640x480 --vpp-gauss disabled --cuda-schedule sync --output "J:\tmp\5000frames_1_2024-02-26@17_20_55_2410_01.av1"
--------------------------------------------------------------------------------
J:\tmp\5000frames_1_2024-02-26@17_20_55_2410_01.av1
--------------------------------------------------------------------------------
avcuvid: Unknown input option: framerate=25/1, ignored.
NVEncC (x64) 7.41 (r2681) by rigaya, Jan 22 2024 13:02:15 (VC 1929/Win)
OS Version     Windows 11 x64 (22631) [UTF-8]
CPU            AMD Ryzen 9 7950X 16-Core Processor [5.52GHz] (16C/32T)
GPU            #0: NVIDIA GeForce RTX 4080 (9728 cores, 2505 MHz)[PCIe4x16][551.61]
NVENC / CUDA   NVENC API 12.1, CUDA 12.4, schedule mode: sync
Input Buffers  CUDA, 20 frames
Input Info     avcuvid: H.265/HEVC, 640x480, 25/1 fps
AVSync         vfr
Vpp Filters    copyDtoD
Output Info    AV1 main 10bit @ Level auto
               640x480p 1:1 25.000fps (25/1fps)
Encoder Preset quality
Rate Control   VBR
Multipass      none
Bitrate        0 kbps (Max: 0 kbps)
Target Quality 23.00
Initial QP     I:20  P:23  B:25
QP range       I:0-255  P:0-255  B:0-255
QP Offset      cb:0  cr:0
VBV buf size   auto
Split Enc Mode auto
Lookahead      off
GOP length     250 frames
B frames       3 frames [ref mode: middle]
Ref frames     7 frames, MultiRef L0:auto L1:auto
AQ             on (spatial, temporal, strength 5)
Part size      max auto / min auto
Tile num       columns auto / rows auto
TemporalLayers max 1
Refs           forward auto, backward auto
VUI            matrix:bt470bg,range:limited
Others         mv:Q-pel

encoded 5000 frames, 1785.08 fps, 20.91 kbps, 0.50 MB
encode time 0:00:02, CPU: 0.2%, GPU: 66.7%, VE: 44.3%, VD: 19.0%, GPUClock: 2685MHz, VEClock: 2125MHz
frame type IDR   20
frame type I     20,  total size  0.01 MB
frame type P   1260,  total size  0.01 MB
frame type B   3720,  total size  0.48 MB

works.

So my guess is that:
a. I'm not properly using the '--vpp-subburn' option and the error message is not really helping.
b. "--fps" is broken, independent whether I use --fps <int/int> or --fps <float> I see:

avcuvid: Unknown input option: framerate=FRACTION, ignored

Cu Selur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions