I write a sample that instance multiple nvdec in a common cuda context and launched nvidia-smi to profile the Encoder payload, but the result is 0%. Instead using a single decoder the percentage is updated correctly.
Using a stream H264 nvml works correctly and i can see the percentage decoder.
Using a MJPEG stream with four sub-sessions and instantiating for each one a dedicated decoder with flag cudaVideoCreate_PreferCUVID. In this case Nvml Decoder occupations drop to 0.
In the meanwhile I understood that MJpeg is decoded with CUDA and not using the hardware decoder, is it correct?
So, if I want to decode multiple streams concurrently, do I just need to create separate decoder for each stream? Meaning I need to call “cuvidCreateDecoder” for each stream?