Read output frame data of nvof


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.


This is similar, am looking into this:

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