could not open video file

asked 2018-10-17 07:13:30 -0600

kishan patel gravatar image

Hello, I have using opencv 2.4.13 and 3.1. I have tried to open video file, but got some errors as below: (app:7400): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

Regards, Kishan Patel.

edit retag flag offensive close merge delete

Comments

that's from gstreamer, and it means, some nessecary plugin is not installed.

berak gravatar imageberak ( 2018-10-17 07:17:56 -0600 )edit

Okay, so how can we identify that which plugin is require to install?

kishan patel gravatar imagekishan patel ( 2018-10-17 07:23:01 -0600 )edit

Hello berak, i have installed some libraries(gstreamer0.10-plugins-base, gstreamer0.10-plugins-good) and could not install(gstreamer0.10-plugins-bad-multiverse, gstreamer0.10-plugins-ugly-multiverse). Then i got error as below:

GStreamer Plugin: Embedded video playback halted; module typefind reported: Could not determine type of stream. OpenCV Error: Unspecified error (GStreamer: unable to start pipeline ) in cvCaptureFromCAM_GStreamer, file /home/kishan/Opencv/opencv-2.4.13/modules/highgui/src/cap_gstreamer.cpp, line 816 terminate called after throwing an instance of 'cv::Exception' what(): /home/kishan/Opencv/opencv-2.4.13/modules/highgui/src/cap_gstreamer.cpp:816: error: (-2) GStreamer: unable to start pipeline in function cvCaptureFromCAM_GStreamer

Aborted (core dumped)

kishan patel gravatar imagekishan patel ( 2018-10-17 07:38:07 -0600 )edit

sorry, i have no idea.

berak gravatar imageberak ( 2018-10-17 07:50:23 -0600 )edit

Actually, i have used gstreamer and convert sample video-file into BGR format using VPE and VIDEOCONVERT. This converted video-file can open by "VOOYA" software but it did not open by OpenCV application.

kishan patel gravatar imagekishan patel ( 2018-10-18 05:21:23 -0600 )edit