Decoder SDK - how to access decoded frame?

See my response in the other thread you opened for this.

1 Like

Hello, electrodynamics:
I am using your “cuviddec decode sample”. Could you please provide me with the nalu.h? my email is 780540759@qq.com.
Thank you very much!

The NALU code is available here: http://rationalqm.us/misc/nalu.rar

1 Like

Hello, electrodynamics:
Thank you very much for your nalu.I have a question, If i want to decode h265 data,can i use this project?

Yes, for 8-bit HEVC just use this when creating the parser:

parserInitParams.CodecType = cudaVideoCodec_HEVC;

You’ll have to modify things if your source is 10/12 bit and you want to deliver the same depth to the output.

1 Like

hello electrodynamics,
is there any way to debug why pfnSequenceCallback is not getting passes despite passing frames through cuvidParseVideoData returning SUCCESS , and before that initializing cuvidCreateVideoParser which also returns SUCCESS

It depends on what your video type is. You need to give us more details. For example, if it is AVC you need to be sure to inject valid SPS and PPS before sending any frame data. Also, for frame re-ordering you usually need to inject several frames before an output frame will appear.

Tell us what video type you have.

1 Like

its AVC passed after mp4 demuxing

As I said, make sure you are injecting valid SPS and PPS.

1 Like