AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.57k stars 7.95k forks source link

Can't run Yolov3 on video files #4109

Open priyankasingh opened 4 years ago

priyankasingh commented 4 years ago

Hi, I am trying to run yolov3 on video files and I am getting the following error:

``
$ ./darknet detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights ../videos/demo_0946.mp4

Allocate additional workspace_size = 52.43 MB Loading weights from yolov3.weights... seen 64 Done! video file: ../videos/demo_0946.mp4 warning: GStreamer: unhandled property (/builddir/build/BUILD/opencv-2.4.5/modules/highgui/src/cap_gstreamer.cpp:764) GStreamer Plugin: Embedded video playback halted; module decodebin20 reported: Your GStreamer installation is missing a plug-in.

`` I am using cuda 10.0 , OpenCV 2.4.5, Centos 7.6 I have installed all the Gstreamer plug-ins. Here's the list:

`` $ rpm -qa | grep gst gstreamer-python-devel-0.10.22-6.el7.x86_64 clutter-gst3-3.0.26-1.el7.x86_64 gstreamer1-plugins-ugly-free-1.10.4-3.el7.x86_64 gstreamer1-plugins-bad-free-devel-1.10.4-3.el7.x86_64 gstreamer1-plugins-bad-freeworld-1.10.4-2.el7.x86_64 gstreamer-plugins-base-devel-docs-0.10.36-10.el7.noarch gstreamer1-plugins-bad-free-gtk-1.10.4-3.el7.x86_64 gstreamer1-1.10.4-2.el7.x86_64 gstreamer-0.10.36-7.el7.x86_64 gstreamer1-devel-docs-1.10.4-2.el7.noarch gstreamer-plugins-bad-free-devel-0.10.23-23.el7.x86_64 gstreamer-plugins-good-devel-docs-0.10.31-13.el7.noarch gstreamer-plugins-good-0.10.31-13.el7.x86_64 gstreamer-tools-0.10.36-7.el7.x86_64 gstreamer1-libav-1.10.4-2.el7.x86_64 gstreamer1-plugins-base-devel-docs-1.10.4-2.el7.noarch gstreamer1-libav-devel-docs-1.10.4-2.el7.noarch gstreamer-plugins-bad-free-devel-docs-0.10.23-23.el7.x86_64 PackageKit-gstreamer-plugin-1.1.10-1.el7.centos.x86_64 gstreamer1-plugins-base-1.10.4-2.el7.x86_64 gstreamer1-plugins-ugly-1.10.5-2.el7.x86_64 gstreamer1-vaapi-devel-docs-1.10.5-3.el7.noarch gstreamer-devel-0.10.36-7.el7.x86_64 gstreamer-plugins-bad-0.10.23-5.el7.x86_64 gstreamer-plugins-base-tools-0.10.36-10.el7.x86_64 gstreamer-plugins-base-0.10.36-10.el7.x86_64 gstreamer1-plugins-bad-free-1.10.4-3.el7.x86_64 gstreamer1-vaapi-1.10.5-3.el7.x86_64 gstreamer-plugins-bad-free-0.10.23-23.el7.x86_64 gstreamer-plugins-base-devel-0.10.36-10.el7.x86_64 gstreamer-devel-docs-0.10.36-7.el7.noarch gstreamer-plugin-crystalhd-3.10.0-11.el7.x86_64 gstreamer1-plugins-base-devel-1.10.4-2.el7.x86_64 gstreamer1-rtsp-server-devel-docs-1.4.5-1.el7.noarch gstreamer-ffmpeg-0.10.13-16.el7.x86_64 gstreamer1-devel-1.10.4-2.el7.x86_64 gstreamer1-rtsp-server-devel-1.4.5-1.el7.x86_64 gstreamer-plugins-ugly-0.10.19-31.el7.x86_64 gstreamer1-plugins-good-1.10.4-2.el7.x86_64 gstreamer1-plugins-base-tools-1.10.4-2.el7.x86_64 gstreamer1-plugins-ugly-free-devel-1.10.4-3.el7.x86_64 gstreamer-python-0.10.22-6.el7.x86_64 clutter-gst2-2.0.18-1.el7.x86_64 gstreamer1-rtsp-server-1.4.5-1.el7.x86_64

``

I'd be grateful if you can let me know what am I missing and how I can fix this issue

AlexeyAB commented 4 years ago

video file: ../videos/demo_0946.mp4 warning: GStreamer: unhandled property (/builddir/build/BUILD/opencv-2.4.5/modules/highgui/src/cap_gstreamer.cpp:764) GStreamer Plugin: Embedded video playback halted; module decodebin20 reported: Your GStreamer installation is missing a plug-in.

This is not an issue of Darknet.

This is an issue of OpenCV + GStreamer libraries.