How to use NVEnc?

Anything related to video and my tools that is not a support request.
Post Reply
User avatar
DJATOM
Distinguished Member
Distinguished Member
Posts: 50
Joined: Fri Oct 16, 2015 6:14 pm

How to use NVEnc?

Post by DJATOM » Tue Feb 26, 2019 6:38 am

[This was split from another thread where I had asked for guidance on using NVEnc.]

@Don
https://github.com/rigaya/NVEnc/releases/tag/4.31 - x64 version.
I've used a plain --vpy script mode (no mt) and my script had a simple clip = core.dgdecodenv.DGSource(...) call and clip.set_output()
cmd: NVEncC64 -i script.vpy --vpy -o file.264 --cqp 16 -u quality

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: How to use NVEnc?

Post by admin » Tue Feb 26, 2019 8:46 am

Great, thank you very much.

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 663
Joined: Sun Apr 08, 2012 6:12 pm

Re: How to use NVEnc?

Post by gonca » Tue Feb 26, 2019 4:19 pm

NVEncC on a 1080Ti
cmd line

Code: Select all

--vbrhq 17500 --codec h265 --preset quality --level 4.1 --gop-len 24 --lookahead 32 --qp-init 1 --vbr-quality 25 --aq --cuda-schedule auto --colormatrix bt709 --colorprim bt709 --transfer bt709 --mv-precision q-pel --cabac
with a RTX add b frames
This acts as a sort of pseudo CRF
I also use a vpy or avs script as input

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: How to use NVEnc?

Post by admin » Tue Feb 26, 2019 11:39 pm

Thank you, gonca.

Sharc
Distinguished Member
Distinguished Member
Posts: 204
Joined: Thu Sep 23, 2010 1:53 pm

Re: How to use NVEnc?

Post by Sharc » Wed Feb 27, 2019 4:16 am

FWIW here my (basic) command line which I use for NVenc in ffmpeg for a kind of bitrate constrained constant quality encode

Code: Select all

ffmpeg.exe -i "input.264" -an -sn -c:v h264_nvenc -b:v 5000k -maxrate 18000k -bufsize 18000k -r 24000/1001 -s 1920x1080 -aspect 16:9 -pix_fmt yuv420p -preset bd -level 4.1 -cq 24 -bf 2 -b_strategy 1 -keyint_min 24 -g 24 -y "output.ts"
pause

User avatar
admin
Site Admin
Posts: 4266
Joined: Thu Sep 09, 2010 3:08 pm

Re: How to use NVEnc?

Post by admin » Wed Feb 27, 2019 10:11 am

Thank you Sharc.

Post Reply