sdk - "NVENC Feature not available for current license key type" error from nvEncoder sample -
when try run nvencoder sample application included in nv encode sdk 2.0, fails open encode session. here output:
c:\users\timothy\downloads\nvenc_2.0_pkg\samples\nvencodeapp>1080p_heavyhand_3se c.bat c:\users\timothy\downloads\nvenc_2.0_pkg\samples\nvencodeapp>nvencoder -infile=. .\yuv\1080p\heavyhandidiot.3sec.yuv -outfile=heavyhandidiot.3sec.264 -width=1920 -height=1080 -bitrate=6000000 > nvencode configuration parameters encoder[0] > gpu device id = 0 > input file = ..\yuv\1080p\heavyhandidiot.3sec.yuv > output file = heavyhandidiot.3sec.264 > frames [000--01] = 0 frames > multi-view codec = no > width,height = [1920,1080] > video output codec = 4 - h.264 codec > average bitrate = 6000000 (bps/sec) > peak bitrate = 24000000 (bps/sec) > buffersize = 3000000 > rate control mode = 2 - cbr (constant bitrate) > frame rate (num/denom) = (30000/1001) 29.9700 fps > gop length = 30 > set initial rc qp = 0 > initial rc qp (i,p,b) = i(0), p(0), b(0) > number of b frames = 0 > display aspect ratio x = 1920 > display aspect ratio y = 1080 > number of b-frames = 0 > qp (all frames) = 26 > qp (i-frames) = 25 > qp (p-frames) = 28 > qp (b-frames) = 31 > hiearchical p-frames = 0 > hiearchical b-frames = 0 > svc temporal scalability = 0 > number of temporal layers = 0 > outband spspps = 0 > video codec profile = 100 > stereo 3d mode = 0 > stereo 3d enable = no > number slices per frame = 1 > encoder preset = 3 - high performance (hp) preset > asynchronous mode = yes > yuv input format = nv12 (semi-planar uv interleaved) pitch linear > nvenc api interface = 2 - cuda > map resource api demo = no > dynamic resolution change = 0 > dynamic bitrate change = 0 input filesize: 236390400 bytes input filename: ..\yuv\1080p\heavyhandidiot.3sec.yuv auto-detected (nvappencoderparams.endframe = 76 frames) >> getnumberencoders() has detected 1 cuda capable gpu device(s) << [ gpu #0 - < geforce gtx 670 > has compute sm 3.0, nvenc available ] >> initcuda() has detected 1 cuda capable gpu device(s)<< [ gpu #0 - < geforce gtx 670 > has compute sm 3.0, available nvenc ] >> select gpu #0 - < geforce gtx 670 > supports sm 3.0 , nvenc file: src\cnvencoder.cpp, line: 1380, nvencopenencodesessionex() returned e rror 21 note: guid key may invalid or incorrect. recommend upgrade drivers nd obtain new key nvenc error @ src\cnvencoder.cpp:1382 code=21(nvenc feature not available c urrent license key type) "nvstatus"
the api says error code 21 nv_enc_err_incompatible_client_key
, comment:
/** * indicates client attempting use feature * not available license type current system. */
the programming guide says:
2. setting hardware encoding
2.1 opening encode session
after loading nvenc interface, client should first call
nvencopenencodesession
open encoding session. nvenc interface provide encode session handle client, must used further api calls in current session.2.1.1 using license client key guid:
the client should pass pointer key guid has been delivered sdk or has been purchased part of license separately,
nv_enc_open_encode_session_ex_params::clientkeyptr
according guide, sample code invalid, doesn't set nv_enc_open_encode_session_ex_params::clientkeyptr
. sdk wasn't delivered key guid guide said.
someone had same problem here , resolved using free trial key. seems have been included 2.0 beta version of sdk, no longer available.
i've tried installing drivers 311.06, 312.07, , 314.22 no success. have geforce gtx 670.
is there solution?
starting geforce 334.67 driver, nvenc no longer requires license key use on geforce cards.
Comments
Post a Comment