jetson tx2 ubuntu18.04 opencv 3.4.6 yolov3 gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed

Install all programs using sdkmanager on jetson tx2
I have reinstalled opencv 3.4.6.
When you run yolov3, the following error occurs.


(darknet: 2559): GStreamer-CRITICAL **: 15: 42: 24.720: gst_element_get_state: assertion ‘GST_IS_ELEMENT (element)’ failed
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to authenticate
Opening in O_NONBLOCKING MODE
VIDEO ERROR: convert to requested pixfmt
libEGL warning: DRI2: failed to authenticate
libEGL warning: DRI2: failed to authenticate
Opening in BLOCKING MODE
VIDEO ERROR: libv4lable to ioctl VIDIOCSPICT

Could not connect to webcam.
: Resource temporarily unavailable
darknet: ./src/utils.c:256: error: Assertion `0 'failed.


How can we solve it? please.

Hi,
You may check if below link helps:

Also SDK manager installs OpenCV 3.3.1 which is compiled without ‘-D WITH_GSTREAMER=ON’. You may double confirm you use self-installed 3.4.6.