I try to use GST on nano to realize the hard decoding function of video stream. The pipeline command is as follows:
(python dec.py --rtsp --uri “rtsp://192.168.1.100:554/user=admin&password=hg123456&channel=1&stream=0.sdp?”)
but errors are reported all the time after execution. The errors are shown in the figure below.
//////////////////////////////
nvbuf_utils: Could not get EGL display connection
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file /home/lwin/Downloads/opencv/opencv-3.4.0/modules/videoio/src/cap_gstreamer.cpp, line 890
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
/home/lwin/Downloads/opencv/opencv-3.4.0/modules/videoio/src/cap_gstreamer.cpp:890: error: (-2) GStreamer: unable to start pipeline
in function cvCaptureFromCAM_GStreamer
////////////////////////////
I used this command to check the status of the camera.
(gst-launch-1.0 rtspsrc location=“rtsp://192.168.1.100:554/user=admin&password=&channel=1&stream=0.sdp?” ! rtph264depay ! h264parse ! omxh264dec ! nveglglessink )
replied as follows:
////////////////**********////////////
nvbuf_utils: Could not get EGL display connection
Setting pipeline to PAUSED …
Using winsys: x11
ERROR: Pipeline doesn’t want to pause.
Setting pipeline to NULL …
Freeing pipeline …
////////////////**********////////////
I tried some solutions, but all failed. Can you give me some suggestions?