gst_element_factory_make errors in gstreamer-1.0

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

gst_element_factory_make errors in gstreamer-1.0

mihaita
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

(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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make errors in gstreamer-1.0

Nicolas Dufresne-5
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
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make errors in gstreamer-1.0

mihaita

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@.freedesktop

>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel@.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/
_______________________________________________
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_factory_make errors in gstreamer-1.0

mihaita
In reply to this post by Nicolas Dufresne-5
>      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 Gstreamer
thread:

/ void
GStreamer::start(void)
{
    /* Initialise the gstreamer library */
    gst_init(NULL, NULL);

    this->thread = std::thread(GstreamerThread, 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_factory_make errors in gstreamer-1.0

Nicolas Dufresne-5
Le jeudi 09 mai 2019 à 05:40 -0500, mihaita a écrit :

> >      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 Gstreamer
> thread:
GStreamer run-time check does not agree with you.

>
> / void
> GStreamer::start(void)

Do you ensure not to call gst_element_factory_make() before calling
GStreamer::start() ?

> {
>     /* Initialise the gstreamer library */
>     gst_init(NULL, NULL);
>
>     this->thread = std::thread(GstreamerThread, this);
> }/
>
>
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gst_element_factory_make errors in gstreamer-1.0

mihaita
Nicolas Dufresne-5 wrote

> Le jeudi 09 mai 2019 à 05:40 -0500, mihaita a écrit :
>>> >      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 Gstreamer
>>>thread:
>
>>GStreamer run-time check does not agree with you.
>    Yes, I cannot identify why it still complains
>
>>>
>>> / void
>>> GStreamer::start(void)
>
>>Do you ensure not to call gst_element_factory_make() before calling
>>GStreamer::start() ?
>
>   I do not call gst_element_factory_make() explicitly in my code.
> Before calling GStreamer::start() I just create a new object so the
> constructor is called:
>
> GStreamer::GStreamer()
> {
>     this->loop = NULL;
>     this->appsrc = NULL;
>     this->run = false;
> }
>
>>> {
>>>     /* Initialise the gstreamer library */
>>>     gst_init(NULL, NULL);
>>>
>>>     this->thread = std::thread(GstreamerThread, this);
>>> }/
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>>

> gstreamer-devel@.freedesktop

>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel@.freedesktop

> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> signature.asc (201 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4690575/0/signature.asc>





--
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_factory_make errors in gstreamer-1.0

mihaita
In reply to this post by Nicolas Dufresne-5
I got rid of assertion failures for gst_element_factory_make.
Indeed it appeared I was calling something before of gst_init.

After buffers are starting to be pushed in appsrc I get at some point the
following errors:

Error: Internal data flow error.
Deleting pipeline

Do you know how can I debug it and identify the element in pipeline that
causes this issue?





--
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_factory_make errors in gstreamer-1.0

mihaita
In reply to this post by Nicolas Dufresne-5
I would have another question, I am aware that maybe I should open  a new
topic.

If I want to send  video stream via UDP/RTP and use udpsink/udpsrc elements
do I still need to create a network socket and a udp server/client
implementation additionally or gstreamer takes care of that?

Thanks



--
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_factory_make errors in gstreamer-1.0

dabrain34
In reply to this post by mihaita
Hello,

You can first start to run your application GST_DEBUG=*:2 ./your_application
which will output errors and warnings to the stdout.

you can increase the log level of the appsrc or any other elements you are
using ie GST_DEBUG=app*:5 will output error/warning/info/log/debug level for
appsrc and appsink on stdout.

You can also redirect the logs into a file by setting the env var
GST_DEBUG_FILE=/tmp/log.txt if its too verbose

You should find more info about debugging on this page:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html

Best regards.



--
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_factory_make errors in gstreamer-1.0

mihaita
Hello,

  I have no warnings/error messages but instead at receiver pull_rtp_buffer
is blocked at:

sample = gst_app_sink_pull_sample(GST_APP_SINK(obj->appsink));


   I have attached the log.

   Therefore I think the buffer/sample is not available in pipeline because
of network issues.

   I have done a udp client/server communication so the gstreamer has a
opened port it can communicate on but the issue remains.
   The pipeline is blocked in gst_app_sink_pull_sample gstreamer_recv.txt
<http://gstreamer-devel.966125.n4.nabble.com/file/t378780/gstreamer_recv.txt>  



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel