rigaya / NVEnc

NVENCによる高速エンコードの性能実験
https://rigaya34589.blog.fc2.com/blog-category-17.html
Other
1.03k stars 108 forks source link

NVenc can't find the nvvfx files despite their location being the default #589

Open HASJ opened 1 month ago

HASJ commented 1 month ago

Just bought a new gpu and was eager to test these things out but something is wrong


------------------------- System Environment -------------------------

StaxRip    : v2.38.7
Settings   : v2.38
Windows    : Windows 10 Pro 22H2 2009 (19041.1.amd64fre.vb_release.191206-1406)
Language   : Portuguese (Brazil)
CPU        : Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz
RAM        : 32GB
GPU        : Parsec Virtual Display Adapter, NVIDIA GeForce RTX 3060
Resolution : 1920 x 1080
DPI        : 96
Code Page  : 1252

----------------------- Media Info Source File -----------------------

C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109.mp4

General
Complete name                : C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109.mp4
Format                       : MPEG-4
Format profile               : Base Media / Version 2
Codec ID                     : mp42 (isom/mp42)
File size                    : 74.4 MiB
Duration                     : 51 s 363 ms
Overall bit rate             : 12.1 Mb/s
Frame rate                   : 29.886 FPS
Encoded date                 : 2024-05-22 21:34:57 UTC
Tagged date                  : 2024-05-22 21:34:57 UTC
com.android.version          : 14
com.android.manufacturer     : Xiaomi
com.android.model            : POCO M3 Pro 5G

Video
ID                           : 3
Format                       : HEVC
Format/Info                  : High Efficiency Video Coding
Format profile               : Main@L4@Main
Codec ID                     : hvc1
Codec ID/Info                : High Efficiency Video Coding
Duration                     : 51 s 363 ms
Source duration              : 51 s 362 ms
Bit rate                     : 12.0 Mb/s
Width                        : 1 920 pixels
Height                       : 1 080 pixels
Display aspect ratio         : 16:9
Frame rate mode              : Variable
Frame rate                   : 29.886 FPS
Minimum frame rate           : 21.449 FPS
Maximum frame rate           : 49.751 FPS
Real frame rate              : 30.000 FPS
Color space                  : YUV
Chroma subsampling           : 4:2:0
Bit depth                    : 8 bits
Bits/(Pixel*Frame)           : 0.193
Stream size                  : 73.2 MiB (98%)
Source stream size           : 73.2 MiB (98%)
Title                        : VideoHandle
Language                     : English
Encoded date                 : 2024-05-22 21:34:57 UTC
Tagged date                  : 2024-05-22 21:34:57 UTC
Color range                  : Full
Color primaries              : BT.601 PAL
Transfer characteristics     : BT.709
Matrix coefficients          : BT.601
matrix_coefficients_Original : BT.470 System B/G
mdhd_Duration                : 51363
Codec configuration box      : hvcC

Audio
ID                           : 2
Format                       : AAC LC
Format/Info                  : Advanced Audio Codec Low Complexity
Codec ID                     : mp4a-40-2
Duration                     : 51 s 338 ms
Source duration              : 51 s 330 ms
Bit rate mode                : Constant
Bit rate                     : 192 kb/s
Channel(s)                   : 2 channels
Channel layout               : L R
Sampling rate                : 48.0 kHz
Frame rate                   : 46.875 FPS (1024 SPF)
Compression mode             : Lossy
Stream size                  : 1.17 MiB (2%)
Source stream size           : 1.17 MiB (2%)
Title                        : SoundHandle
Language                     : English
Encoded date                 : 2024-05-22 21:34:57 UTC
Tagged date                  : 2024-05-22 21:34:57 UTC
mdhd_Duration                : 51339

Other
Type                         : meta

---------------------------- Configuration ----------------------------

Template                : nvenc x265 qcp27
Video Encoder           : ffmpegEnc
Video Encoder Profile   : ffmpeg | VP | VP9
Container/Muxer Profile : WebM (mkvmerge)
+++++
Process Priority        : BelowNormal
Delete Temp Files       : RecycleBin

--------------------------- AviSynth Script ---------------------------

AddAutoloadDir("C:\tools\StaxRip\StaxRip-v2.38.6-x64\Apps\FrameServer\AviSynth\plugins\")

LoadPlugin("C:\tools\StaxRip\StaxRip-v2.38.6-x64\Apps\Plugins\Dual\L-SMASH-Works\LSMASHSource.dll")
LSMASHVideoSource("C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109.mp4")

------------------------- Source Script Info -------------------------

Width     : 1920
Height    : 1080
Frames    : 1535
Time      : 00:51.362
Framerate : 29.885714 (1046/35)
Format    : YUV420P8

------------------------- Target Script Info -------------------------

Width     : 1920
Height    : 1080
Frames    : 1535
Time      : 00:51.362
Framerate : 29.885714 (1046/35)
Format    : YUV420P8

------------------------ Error Video encoding ------------------------

NVEncC 7.50

C:\tools\StaxRip\StaxRip-v2.38.6-x64\Apps\Encoders\NVEncC\NVEncC64.exe --avsdll C:\tools\StaxRip\StaxRip-v2.38.6-x64\Apps\FrameServer\AviSynth\AviSynth.dll  --cqp 27 --codec h265 --preset P3 --profile main10 --qp-init 28 --qp-max 31 --qp-min 26 --max-bitrate 3000 --aq-temporal --bref-mode each --bframes 5 --ref 16 --lookahead 32 --gop-len 600 --slices 4 --multiref-l0 7 --multiref-l1 3 --vpp-resize  --vpp-deband  --vpp-nvvfx-artifact-reduction mode=0 --transfer bt709 --mv-precision q-pel -i C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109_temp\PXL_20240429_183405109.avs -o C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109_temp\PXL_20240429_183405109_out.h265

-------------------------------------------------------------------------------------
C:\Users\bbbbbbbbbbbb\Desktop\PXL_20240429_183405109_temp\PXL_20240429_183405109_out.h265
-------------------------------------------------------------------------------------
nvvfx-artifact-reduction: Failed to load effect: The file could not be found..
Cannot load model "AR-con-86.engine"
ERROR: Loading TRTModel failed in Artifact Removal

Video encoding returned exit code: 1 (0x1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Start:    15:36:15
End:      15:36:16
Duration: 00:00:00
HASJ commented 1 month ago

Hmm... Maybe I should post this on staxrip's issue tracker... 🙄

rigaya commented 1 month ago

Have you installed the nvvfx models for your gpu?

If not, please install the models.

If you have installed the models, please run NVEncC directly from the command line and run below, and attach test.log to check the situation further.

NVEncC64.exe -i input -o test.mp4 -c hevc --vpp-nvvfx-artifact-reduction mode=0 --log-level debug --log test.log