gst_element_factory_make errors in gstreamer-1.0
mihaita
ivascumihaita at yahoo.com
Thu May 9 10:35:51 UTC 2019
Le mercredi 08 mai 2019 à 10:40 -0500, mihaita a écrit :
> Hello,
>
> I have created a gstreamer app in Eclipse and i have the following
> runtime emssages:
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
Did you forgot to call gst_init() ?
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_make_from_uri:
> assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make: assertion
> 'gst_is_initialized ()' failed
>
> ** (test:1510): CRITICAL **: gst_app_src_push_buffer_full: assertion
> 'GST_IS_APP_SRC (appsrc)' failed
>
> (test:1510): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion
> 'gst_uri_is_valid (uri)' failed
>
> (test:1510): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion
> 'gst_uri_is_valid (uri)' failed
>
> (test:1510): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>
> (test:1510): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>
> (test:1510): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>
> (test:1510): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>
>
> I have read about possible issues. gst_init is called and the pipeline
> string used by gst_parse_launch seems to be correct.
>
> I do not create pipeline elements by calling gst_element_factory_make,
> instead I have the pipeline defined already:
>
> pipeline = gst_parse_launch("appsrc name=appsrc_element block=true !
> video/x-h264,profile=\"high-4:4:4\" "\
> " width=720,height=480,framerate=30/1 "\
> " ! identity check-imperfect-timestamp=true ! "\
> "videoconvert ! x264dec ! video/x-raw,format=RGB
> "\
> "! rtpvrawpay ! udpsink host=10.2.149.137 ",
> &error);
>
>
> Does anybody know what possible reasons could be for this errors?
>
> Thanks,
> Mihaita
>
>
>
Nicolas Dufresne-5 wrote
> Le mercredi 08 mai 2019 à 10:40 -0500, mihaita a écrit :
>> Hello,
>>
>> I have created a gstreamer app in Eclipse and i have the following
>> runtime emssages:
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>
> Did you forgot to call gst_init() ?
>
> Thanks for your quick reply. I do call gst_init when I start the
> gstreamer:
/
> void
> GStreamer::start(void)
> {
> /* Initialise the gstreamer library */
> gst_init(NULL, NULL);
>
> this->thread = std::thread(GstreamerThread, this);
> }
/
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_make_from_uri:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> (process:1510): GStreamer-CRITICAL **: gst_element_factory_make:
>> assertion
>> 'gst_is_initialized ()' failed
>>
>> ** (test:1510): CRITICAL **: gst_app_src_push_buffer_full: assertion
>> 'GST_IS_APP_SRC (appsrc)' failed
>>
>> (test:1510): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion
>> 'gst_uri_is_valid (uri)' failed
>>
>> (test:1510): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion
>> 'gst_uri_is_valid (uri)' failed
>>
>> (test:1510): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>>
>> (test:1510): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
>> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>>
>> (test:1510): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>>
>> (test:1510): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
>> 'G_TYPE_CHECK_INSTANCE (instance)' failed
>>
>>
>> I have read about possible issues. gst_init is called and the pipeline
>> string used by gst_parse_launch seems to be correct.
>>
>> I do not create pipeline elements by calling gst_element_factory_make,
>> instead I have the pipeline defined already:
>>
>> pipeline = gst_parse_launch("appsrc name=appsrc_element block=true !
>> video/x-h264,profile=\"high-4:4:4\" "\
>> " width=720,height=480,framerate=30/1 "\
>> " ! identity check-imperfect-timestamp=true !
>> "\
>> "videoconvert ! x264dec !
>> video/x-raw,format=RGB
>> "\
>> "! rtpvrawpay ! udpsink host=10.2.149.137 ",
>> &error);
>>
>>
>> Does anybody know what possible reasons could be for this errors?
>>
>> Thanks,
>> Mihaita
>>
>>
>>
>> --
>> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>> _______________________________________________
>> gstreamer-devel mailing list
>>
> gstreamer-devel at .freedesktop
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at .freedesktop
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> signature.asc (201 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4690554/0/signature.asc>
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list