Hi,
Please refer to the sample:
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL
For running Yolo models, we suggest use DeepStream SDK to get optimal performance. Please check the documents:
NVIDIA Metropolis Documentation