Current Server Time: 14:59 (Central Europe)

#apertus IRC Channel Logs

2022/09/09

Timezone: UTC


01:39
tinybronca[m]
left the channel
12: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
12:13
k0fein
memory under control and I didn't want to spend time (cpu or gpu) on rendering (to not distort time statistics)
12:13
k0fein
*grab frame
12:14
k0fein
but it seems to be irrelevant, once I made everything asynchronous I didn't noticed any other frame drops
15:10
Bertl_oO
ah, nice to know that this works? care to share the code?
15: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')
15:23
k0fein
once you install it, the working example is in folder SDK3\Examples\VC++\CmdTools\NvidiaCodec
15:24
k0fein
they are using nvenc v7.something, so a little bit outdated (11.1 is recent as far as i remember)
15:24
k0fein
but it works
15: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
15:25
k0fein
encoding time is below frametime
15:25
k0fein
however from time to time (once per 2 - 5 minutes?) it jumps on 1 frame to ~ 50ms
15:25
k0fein
I'm not sure yet if this will cause me a problem or not
15:34
Bertl_oO
I was referring to the asynchronous part
15:35
Bertl_oO
but thanks for the explanation!
16:02
k0fein
async part is part of the example
16:03
k0fein
you just have to set, that you want async encoding
16:04
k0fein
sample.cpp:148
16:04
k0fein
m_stCreateEncodeParams.enableEncodeAsync = 0;
16:04
k0fein
set it to 1
16:04
k0fein
btw both H264 and H265 works ok
16:04
k0fein
at least with presets I tried so far
17:32
Bertl_oO
ah, excellent! thanks!
17:55
Spirit532
left the channel
17:55
Spirit532
joined the channel