gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed on Windows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed on Windows

Ajith
Hi,

Am trying to open the web camera through GSTREAMER API using Opencv on
windows, but am getting
this error at runtime

>  GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT
> (element)' failed
> OpenCV | GStreamer warning: GStreamer: unable to query pipeline state

Below is code am running

    VideoCapture capture(0,CAP_GSTREAMER);
       
        if (capture.isOpened()) {
                std::cout << "Camera 0 via " << capture.getBackendName() << " backend" <<
std::endl;
                std::cout << "Frame width: " << capture.get(CAP_PROP_FRAME_WIDTH) <<
std::endl;
                std::cout << "     height: " << capture.get(CAP_PROP_FRAME_HEIGHT) <<
std::endl;
                std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl;
        }

However camera is working fine with Gstreamer command

> gst-launch-1.0.exe -v ksvideosrc device-index=0 ! autovideosink

I have built OpenCV4.0 with GStreamer enabled, what exactly missing element
here and is there a fix for this?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed on Windows

hamze60
Hi,
Isn't there any solution yet? I have same problem with OpenCV4 + gstreamer
on Nvidia JetsonTX2 platform



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed on Windows

Nicolas Dufresne-5
Le mardi 08 janvier 2019 à 08:32 -0600, hamze60 a écrit :
> Hi,
> Isn't there any solution yet? I have same problem with OpenCV4 + gstreamer
> on Nvidia JetsonTX2 platform

I don't think enough information has been provided to reproduce. It is
quite likely that this bug is specific to Nvidia's integration and
should be reported to them.

Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel