I’m trying to write an optimized decoder. I’ve reviewed the samples (which are generally very helpful but none of which are optimized) and the documentation. I’m basically stuck on this spot on page 17 of the API Reference: “This thread checks if there are any decoded frames available”. I may be missing something obvious but how exactly do I do this? Specifically I need to have a thread feeding NAL units into the decoder (cuvidDecodePicture()) and another pulling decoded frames out. Exactly how do they synchronize? How and when do they block and wake up? (Sample code would be a terrific help). Thanks.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Decode video file while it is being written | 4 | 1183 | February 20, 2018 | |
Receive decoded frame after first call to parser (NVDEC) | 1 | 1104 | May 21, 2018 | |
CUDA multi-threaded programming | 3 | 4280 | December 22, 2023 | |
Decoder API Flow of Control | 0 | 593 | April 21, 2017 | |
Two encoders, one decoder - what to do? | 2 | 983 | November 29, 2018 | |
The detailed decoding process using NVIDIA Video Codec | 3 | 472 | July 3, 2023 | |
Low Latency Decoding Issue | 11 | 1562 | September 11, 2018 | |
NVDEC How to multihread decoding for better performance (lower latency)? | 3 | 2056 | April 21, 2020 | |
Sharing same decoders among multiple deumxers/video stream | 0 | 429 | June 25, 2019 | |
The NVIDIA Video Codec can decode several RTSP video streams normally, but after a few days, it fails to decode certain streams | 1 | 429 | July 3, 2023 |