I want to decode multiple videos concurrently with NVDEC within same process. I googled a lot but couldn’t find an answer to my questions.
- Do I need to create a separate decoder and parser for each video, meaning do I need to call cuvidCreateDecoder and cuvidCreateVideoParser for each video?
- If the answer to (1) is "Yes", do I need to create a separate context or all decoders intances will run in the same context?
- If the answer to (1) is "No", can you explain how to achieve concurrent decoding of multiple videos? Is cudaStream_t used somehow to parallelize multiple decoders? I coulnd't find where does decoder use cudaStream_t.