How can I use GStreamer pipeline to create rtmpsrc pipeline for opencv( VideoCapture --- as VideoCapture cap(" gstreamer pipeline "); )

gst-lauch-1.0 rtmpsrc location=“127.0.0.1:9999/uav/live” ! queue ! h264parse ! omxh264dec ! nveglglessink -e
---- is error
my opinions:

  1. location is rtmp stream
  2. hardware decoding — h264
  3. format convert — yuv420p to BGR
  4. Opencv cut frame — VideoCapture cap(“rtmp stream hw decode and format”) ; Mat frame; cap.read(frame);

thank you