Error: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed

asked 2019-03-30 02:14:53 -0500

Nitinnaik gravatar image

updated 2019-03-30 02:19:17 -0500

While run the below program:

vc = cv2.VideoCapture('udpsrc port=5600 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! appsink', cv2.CAP_GSTREAMER)

I am getting this error:

GStreamer: Error opening bin: no element "udpsrc"

(python.exe:652): GStreamer-CRITICAL **: 12:39:30.967: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed

I have already installed opencv with gstreamer support in python2. Here is cv2.getBuildInformation() snapshot:

Video I/O:
DC1394:                      NO
FFMPEG:                      YES (prebuilt binaries)
  avcodec:                   YES (ver 57.107.100)
  avformat:                  YES (ver 57.83.100)
  avutil:                    YES (ver 55.78.100)
  swscale:                   YES (ver 4.8.100)
  avresample:                YES (ver 3.7.0)
GStreamer:                   
  base:                      YES (ver 1.0)
  video:                     YES (ver 1.0)
  app:                       YES (ver 1.0)
  riff:                      YES (ver 1.0)
  pbutils:                   YES (ver 1.0)
DirectShow:                  YES
Media Foundation:            YES
  DXVA:                      YES

Please help me to resolve this issue.

edit retag flag offensive close merge delete

Comments

please follow tag gstreamer

LBerger gravatar imageLBerger ( 2019-03-30 02:55:56 -0500 )edit