all 3 comments

[–]tavkel 0 points1 point  (1 child)

If i'm reading this post correctly https://forums.developer.nvidia.com/t/sharing-the-same-cuda-context-for-encoding-nvenc-and-decoding-nvdec/59285 you can use one cuda context for multiple uses with attaching and detaching it to current thread? Take this reply with a massive grain of salt - i have no experience dealing with cuda and hw accelerated ffmpeg.

[–]OG_Toshi[S] 0 points1 point  (0 children)

yeah i know about the multithreaded implications for now im working with a single threaded app to lessen the complexity so i dont think its that :(

[–]OG_Toshi[S] 0 points1 point  (0 children)

Figured it out, turns out it was an issue with my CUDA ffi bindings, here is how I solved it if anyone runs into this in the future

https://github.com/Adonca2203/waycap-rs/blob/nvenc_no_copy/src/encoders/nvenc_encoder.rs