obendidi / Tracking-with-darkflow

Real-time people Multitracker using YOLO v2 and deep_sort with tensorflow
GNU General Public License v3.0
524 stars 176 forks source link

GStreamer-CRITICAL error #55

Open tonmoyborah opened 6 years ago

tonmoyborah commented 6 years ago

I came into this strange error (stack below). I have reinstalled tensorflow and other packages like opencv and they are in place. Any idea regarding this issue is highly appreciated.

(python3:7151): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed OpenCV Error: Unspecified error (GStreamer: cannot link elements ) in CvVideoWriter_GStreamer::open, file /home/strange/software/opencv/modules/videoio/src/capgstreamer.cpp, line 1466 Traceback (most recent call last): File "run.py", line 31, in tfnet.camera() File "/home/strange/objectTracking/Tracking-with-darkflow/darkflow/darkflow/net/help.py", line 130, in camera 'output{}'.format(file), fourcc, fps, (width, height)) cv2.error: /home/strange/software/opencv/modules/videoio/src/cap_gstreamer.cpp:1466: error: (-2) GStreamer: cannot link elements in function CvVideoWriter_GStreamer::open

tonmoyborah commented 6 years ago

I have verified that the issue is caused by tfnet.camera() in run.py. I do not understand, however, what this line does. I plan to give a set of videos as input. I think I might have to change few things in help.py as well? Is there anything I need to do give video input? Further I don't think this is a codec issue as I have tried pointing the FLAGS.demo to various videos. Thanks a lot.