Regarding dump_dmabuf in NvUtils.cpp

Hello,

It seems that the data received from memory 1 is written to stream 2, that is, ctx->out_file.
Can you tell me how to save the data received from memory #1 by dividing and storing yuv video one by one?

2 == 3, same


Thank you.

Hi,
NvBufferColorFormat_NV12 has two planes, one Y plane and one UV plane. dump_dmabuf() only saves one plane so we have to call it twice(plane 0 and plane 1). The implementation is correct.

1 Like

Hello,

Can I use write_video_frame function instead of dump_dmabuf function?

Thank you.

Hi,
write_video_frame() is for saving h264/h265 stream in video encoding. May not be suitable in video decoding.

1 Like