Current Server Time: 23:44 (Central Europe)

#apertus IRC Channel Logs

2022/09/09

Timezone: UTC


02:39
tinybronca[m]
left the channel
13:13
k0fein
thanks for the answer. Magwell offers and example to grap frame directly to NVENC mapped memory and bypass normal ram entirely. This works nice, however from time to time frame is dropped and I was not sure why (now it seems that due to fact how that example was written - encoding and capturing were synchronous by default). I needed to put timestamp into picture prior to grabbing because I hadn't have the
13:13
k0fein
memory under control and I didn't want to spend time (cpu or gpu) on rendering (to not distort time statistics)
13:13
k0fein
*grab frame
13:14
k0fein
but it seems to be irrelevant, once I made everything asynchronous I didn't noticed any other frame drops
16:10
Bertl_oO
ah, nice to know that this works? care to share the code?
16:23
k0fein
you can download SDK directly from their page -> https://www.magewell.com/downloads#capture-sdk-dark-anchor (once you click download you don't have to actually register, at the bottom of the dialog is opti0on 'Download only')
16:23
k0fein
once you install it, the working example is in folder SDK3\Examples\VC++\CmdTools\NvidiaCodec
16:24
k0fein
they are using nvenc v7.something, so a little bit outdated (11.1 is recent as far as i remember)
16:24
k0fein
but it works
16:24
k0fein
now I making some profiling, encoding fullhd progressive @ 59.94, then the same with 1/2 of the size and 1/4 (magewell does the resizing so it costs me nothing) and it looks most of the time ok
16:25
k0fein
encoding time is below frametime
16:25
k0fein
however from time to time (once per 2 - 5 minutes?) it jumps on 1 frame to ~ 50ms
16:25
k0fein
I'm not sure yet if this will cause me a problem or not
16:34
Bertl_oO
I was referring to the asynchronous part
16:35
Bertl_oO
but thanks for the explanation!
17:02
k0fein
async part is part of the example
17:03
k0fein
you just have to set, that you want async encoding
17:04
k0fein
sample.cpp:148
17:04
k0fein
m_stCreateEncodeParams.enableEncodeAsync = 0;
17:04
k0fein
set it to 1
17:04
k0fein
btw both H264 and H265 works ok
17:04
k0fein
at least with presets I tried so far
18:32
Bertl_oO
ah, excellent! thanks!
18:55
Spirit532
left the channel
18:55
Spirit532
joined the channel