Image Stride is not changing while using multimedia application in Jetson TX2 NX

Hi,
Please check
Gstnvv4l2camerasrc with GRAY8 support - #16 by DaneLLL

NV12 has two planes and you can call NvBufferGetParam() to get pitch, width, height of each plane.