@jkjung13 First of all, thank you very much for all your blogs and Community topics and replies about opencv on jetson serial devices. Those instructions save me a lot of time since I first saw your article.
However, I met the same problem about IP Camero capture or load stream as this topic post. it is the reason that I post this reply here, thought there are more logs of test result.
The story is:
My first thought was to reinstall on a clear tx2, when I failed loading ip camero with your python code tegra-cam.py. And I have just had time today to try again building and installing opencv on tx2 again follow your steps on web page:
https://jkjung-avt.github.io/opencv3-on-tx2/
and:
https://jkjung-avt.github.io/opencv-on-nano/
Then, after running the test instruction, I got some difference between my test result and yours. The test result might give some hit for the gstreamer problem.
The sumary is:
The following tests FAILED:
2 - opencv_test_core (Failed)
3 - opencv_test_cudaarithm (SEGFAULT)
6 - opencv_test_ml (Failed)
10 - opencv_test_cudaimgproc (Failed)
14 - opencv_test_photo (Failed)
<b>16 - opencv_test_videoio (Failed)</b> (different from your result)
<s>20 - opencv_test_calib3d (Failed)</s> (passed on my tx2)
<s>23 - opencv_test_objdetect (Failed)</s> (passed on my tx2)
24 - opencv_test_cudalegacy (Failed)
Errors while running CTest
The details of the test of videoio is:
16/29 Testing: opencv_test_videoio
16/29 Test: opencv_test_videoio
Command: "/home/nvidia/Documents/OpenCV/build/bin/opencv_test_videoio" "--gtest_output=xml:opencv_test_videoio.xml"
Directory: /home/nvidia/Documents/OpenCV/build/test-reports/accuracy
"opencv_test_videoio" start time: Nov 10 23:23 CST
Output:
----------------------------------------------------------
CTEST_FULL_OUTPUT
OpenCV version: 3.4.6
OpenCV VCS version: 3.4.6
Build type: RELEASE
WARNING: build value differs from runtime: Release
Compiler: /usr/bin/c++ (ver 5.4.0)
Parallel framework: pthreads
CPU features: NEON FP16
OpenCL is disabled
[==========] Running 94 tests from 7 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from videoio_avi
[ RUN ] videoio_avi.good_MJPG
[ OK ] videoio_avi.good_MJPG (5 ms)
[ RUN ] videoio_avi.bad_MJPG
[ OK ] videoio_avi.bad_MJPG (1 ms)
[ RUN ] videoio_avi.basic
[ OK ] videoio_avi.basic (0 ms)
[----------] 3 tests from videoio_avi (7 ms total)
[----------] 2 tests from Videoio_Video
[ RUN ] Videoio_Video.ffmpeg_writebig
OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???'
[ OK ] Videoio_Video.ffmpeg_writebig (33458 ms)
[ RUN ] Videoio_Video.ffmpeg_image
[ OK ] Videoio_Video.ffmpeg_image (10 ms)
[----------] 2 tests from Videoio_Video (33468 ms total)
[----------] 1 test from Videoio_Video_parallel_writers_and_readers
[ RUN ] Videoio_Video_parallel_writers_and_readers.accuracy
[ OK ] Videoio_Video_parallel_writers_and_readers.accuracy (18743 ms)
[----------] 1 test from Videoio_Video_parallel_writers_and_readers (18743 ms total)
[----------] 1 test from Videoio_dshow
[ RUN ] Videoio_dshow.fourcc_conversion
[ OK ] Videoio_dshow.fourcc_conversion (0 ms)
[----------] 1 test from Videoio_dshow (0 ms total)
[----------] 48 tests from videoio/Videoio_Bunny
[ RUN ] videoio/Videoio_Bunny.read_position/0, where GetParam() = ("wmv", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.wmv[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/0 (32 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/1, where GetParam() = ("wmv", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/1 (276 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/2, where GetParam() = ("wmv", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.wmv</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/2 (1 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/3, where GetParam() = ("mov", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mov[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/3 (23 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/4, where GetParam() = ("mov", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/4 (367 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/5, where GetParam() = ("mov", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mov</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/5 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/6, where GetParam() = ("mp4", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mp4[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/6 (12 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/7, where GetParam() = ("mp4", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/7 (367 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/8, where GetParam() = ("mp4", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mp4</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/8 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/9, where GetParam() = ("mpg", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mpg[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/9 (12 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/10, where GetParam() = ("mpg", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/10 (317 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/11, where GetParam() = ("mpg", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mpg</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/11 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/12, where GetParam() = ("avi", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.avi[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/12 (11 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/13, where GetParam() = ("avi", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/13 (4039 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/14, where GetParam() = ("avi", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.avi</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/14 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/15, where GetParam() = ("h264", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h264[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/15 (16 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/16, where GetParam() = ("h264", FFMPEG)
CAP_PROP_FRAME_COUNT is not supported by backend. Assume 50 frames.
[ OK ] videoio/Videoio_Bunny.read_position/16 (146 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/17, where GetParam() = ("h264", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h264</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/17 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/18, where GetParam() = ("h265", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h265[/i][/b]
[ OK ] videoio/Videoio_Bunny.read_position/18 (12 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/19, where GetParam() = ("h265", FFMPEG)
CAP_PROP_FRAME_COUNT is not supported by backend. Assume 50 frames.
[ OK ] videoio/Videoio_Bunny.read_position/19 (317 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/20, where GetParam() = ("h265", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h265</i></b>
[ OK ] videoio/Videoio_Bunny.read_position/20 (0 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/21, where GetParam() = ("mjpg.avi", GSTREAMER)
<b><i>(opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed</i></b>
Seek to frame '20' is not supported. SKIP.
Seek to frame '40' is not supported. SKIP.
Seek to frame '60' is not supported. SKIP.
Seek to frame '80' is not supported. SKIP.
Seek to frame '100' is not supported. SKIP.
Seek to frame '120' is not supported. SKIP.
Seek to frame '26' is not supported. SKIP.
Seek to frame '18' is not supported. SKIP.
Seek to frame '116' is not supported. SKIP.
Seek to frame '106' is not supported. SKIP.
Seek to frame '100' is not supported. SKIP.
Seek to frame '90' is not supported. SKIP.
Seek to frame '81' is not supported. SKIP.
Seek to frame '111' is not supported. SKIP.
Seek to frame '97' is not supported. SKIP.
Seek to frame '38' is not supported. SKIP.
[ OK ] videoio/Videoio_Bunny.read_position/21 (5251 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/22, where GetParam() = ("mjpg.avi", FFMPEG)
[ OK ] videoio/Videoio_Bunny.read_position/22 (877 ms)
[ RUN ] videoio/Videoio_Bunny.read_position/23, where GetParam() = ("mjpg.avi", CV_MJPEG)
[ OK ] videoio/Videoio_Bunny.read_position/23 (436 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/0, where GetParam() = ("wmv", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.wmv[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/0 (7 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/1, where GetParam() = ("wmv", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/1 (256 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/2, where GetParam() = ("wmv", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.wmv</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/2 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/3, where GetParam() = ("mov", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mov[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/3 (9 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/4, where GetParam() = ("mov", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/4 (167 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/5, where GetParam() = ("mov", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mov</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/5 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/6, where GetParam() = ("mp4", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mp4[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/6 (9 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/7, where GetParam() = ("mp4", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/7 (163 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/8, where GetParam() = ("mp4", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mp4</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/8 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/9, where GetParam() = ("mpg", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mpg[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/9 (6 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/10, where GetParam() = ("mpg", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/10 (258 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/11, where GetParam() = ("mpg", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.mpg</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/11 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/12, where GetParam() = ("avi", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.avi[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/12 (8 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/13, where GetParam() = ("avi", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/13 (479 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/14, where GetParam() = ("avi", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.avi</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/14 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/15, where GetParam() = ("h264", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h264[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/15 (8 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/16, where GetParam() = ("h264", FFMPEG)
Frames counter is not available. Actual frames: 125. SKIP check.
[ OK ] videoio/Videoio_Bunny.frame_count/16 (331 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/17, where GetParam() = ("h264", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h264</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/17 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/18, where GetParam() = ("h265", GSTREAMER)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h265[/i][/b]
[ OK ] videoio/Videoio_Bunny.frame_count/18 (10 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/19, where GetParam() = ("h265", FFMPEG)
Frames counter is not available. Actual frames: 125. SKIP check.
[ OK ] videoio/Videoio_Bunny.frame_count/19 (503 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/20, where GetParam() = ("h265", CV_MJPEG)
<b><i>SKIP test: backend CV_MJPEG can’t open the video: /home/nvidia/Documents/OpenCV-extra/testdata/highgui/video/big_buck_bunny.h265</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/20 (0 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/21, where GetParam() = ("mjpg.avi", GSTREAMER)
<b><i>(opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed</i></b>
[ OK ] videoio/Videoio_Bunny.frame_count/21 (5196 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/22, where GetParam() = ("mjpg.avi", FFMPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/22 (365 ms)
[ RUN ] videoio/Videoio_Bunny.frame_count/23, where GetParam() = ("mjpg.avi", CV_MJPEG)
[ OK ] videoio/Videoio_Bunny.frame_count/23 (369 ms)
[----------] 48 tests from videoio/Videoio_Bunny (20658 ms total)
[----------] 28 tests from videoio/Videoio_Synthetic
[ RUN ] videoio/Videoio_Synthetic.write_read_position/0, where GetParam() = (640x480, FOURCC(XVID), .avi, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/0 (1435 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/1, where GetParam() = (640x480, FOURCC(MPEG), .avi, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/1 (2066 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/2, where GetParam() = (640x480, FOURCC(IYUV), .avi, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/2 (936 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/3, where GetParam() = (640x480, FOURCC(MJPG), .avi, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/3 (2467 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/4, where GetParam() = (640x480, FOURCC(XVID), .mkv, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/4 (1458 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/5, where GetParam() = (640x480, FOURCC(MPEG), .mkv, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/5 (2069 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/6, where GetParam() = (640x480, FOURCC(MJPG), .mkv, FFMPEG, 30dB)
[ OK ] videoio/Videoio_Synthetic.write_read_position/6 (2515 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/7, where GetParam() = (640x480, FOURCC(MPEG), .avi, GSTREAMER, 30dB)
[b][i](opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
** (opencv_test_videoio:22376): CRITICAL **: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed
(opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_post_message: assertion 'message != NULL' failed
(opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
SKIP test: backend GSTREAMER can’t open the video: /tmp/__opencv_temp.qg5UrR.MPEG.avi[/i][/b]
[ OK ] videoio/Videoio_Synthetic.write_read_position/7 (256 ms)
[ RUN ] videoio/Videoio_Synthetic.write_read_position/8, where GetParam() = (640x480, FOURCC(MJPG), .avi, GSTREAMER, 30dB)
<b><i>(opencv_test_videoio:22376): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed</i></b>
JPEG parameter struct mismatch: library thinks size is 584, caller expects 712
<end of output>
Test time = 86.20 sec
----------------------------------------------------------
Test Failed.
"opencv_test_videoio" end time: Nov 10 23:25 CST
"opencv_test_videoio" time elapsed: 00:01:26
----------------------------------------------------------
As the log shows, the gstreamer did not work well on many test tasks. I hope to get some help from you about the gstreamer, and here are some info of my tx2 and my installation steps.
- The os of my tx2 is Ubuntu 16.04, which is based on jetpack 3.3 installed by official run file "JetPack-L4T-3.3-linux-x64_b39.run";
- I have compared the script file "install_opencv-3.4.6.sh" and the the scripts you paste in "How to Install OpenCV (3.4.0) on Jetson TX2";
- After comparison, I notice that the difference of dependencies installed by apt-get is only libjasper-dev. And, I decide not to install jasper;
- I only install python3 and needed dependencies by pip3, which I'll always use in the future. Python2 is the one installed by os default. No pip2 installed, no numpy or other dependencies for python2 installed;
- Change "matplotlibrc" file;
- Change "cuda_gl_interop.h" file. You gave two different ways in the two web page. But the result is same. I modified the file by vim, actually gedit;
- Follow "How to Install OpenCV (3.4.0) on Jetson TX2" add soft link for libGL.so;
- Checkout opencv 3.4.6 from git. Then mkdir build and cd into the folder;
- Use the cmake settings post on "Installing OpenCV 3.4.6 on Jetson Nano", changed CUDA_ARCH_BIN="6.2", and change BUILD_TESTS=ON;
- In ./configure, some problems was shown,
a. Unexpected option: ENABLE_FAST_MATH (=ON)
b. CBLAS/LAPACK headers are not found in
- Test result was different from yours, but build well.
I haven’t tried the ip camera loading or ways showed here, I’ll reply here later.