Read output frame data of nvof

Hi,

nvof outputs both the motion vectors and the source frames.

I am connecting “nvstreammux ! nvinfer ! nvof ! appsink”.
Is there a way to access the source frames from appsink? Any sample source would be good.
Because of batching due to streammux, it’s not clear how to access the source frames.

If there is a way to correlate the MVs and the frames, it would be good too.

Regards.

This is similar, am looking into this: https://devtalk.nvidia.com/default/topic/1060956/deepstream-sdk/access-frame-pointer-in-deepstream-app/2

Moving to DeepStream SDK forum for resolution.

You can refer to dsexample for mechanism to access data - gstdsexample.cpp -> gst_dsexample_transform_ip() ->
NvBufSurface “sources/includes/nvbufsurface.h”-> NvBufSurfaceParams-> dataPtr