Gstreamer pipeline input to opencv in python

Hi,
The last plugin has to be appsink. It does not work with nveglglessink. Please refer to this sample:
Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL