Does old video-test.c example have some bug?

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

Does old video-test.c example have some bug?

Rodrigo Pimenta Carvalho
Hi.

I have run the video-test.c example with WITH_AUTH and WITH_TLS defined.
It run and prints:           stream ready at rtsps://127.0.0.1:8554/test .


I run the client with this command:
gst-launch-1.0 -v -m --gst-debug-level=3  rtspsrc location=rtsps://127.0.0.1:8554/test user-id=user user-pw=password tls-validation-flags=generic-error ! rtph264depay ! avdec_h264 !  videoconvert  ! autovideosink

The video-test log is:

(lt-test-video:19606): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

(lt-test-video:19606): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed

(lt-test-video:19606): GStreamer-CRITICAL **: gst_element_get_request_pad: assertion 'GST_IS_ELEMENT (element)' failed

(lt-test-video:19606): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed, and so on....


So, the client fails to stream the video.
Is it a kind of known error in old versions of GStreamer?
Have I to update to a new version of GStreamer to eliminate such problem definitely?

Any hint will be very helpful!
Best regards.

Rodrigo Pimenta Carvalho.
Reply | Threaded
Open this post in threaded view
|

Re: Does old video-test.c example have some bug?

Mandar Joshi
> The video-test log is:
>
> (lt-test-video:19606): GLib-GObject-CRITICAL **: g_object_set: assertion
> 'G_IS_OBJECT (object)' failed
>
> (lt-test-video:19606): GStreamer-CRITICAL **: gst_object_ref: assertion
> 'object != NULL' failed
>
> (lt-test-video:19606): GStreamer-CRITICAL **: gst_element_get_request_pad:
> assertion 'GST_IS_ELEMENT (element)' failed
>
> (lt-test-video:19606): GStreamer-CRITICAL **: gst_object_unref: assertion
> 'object != NULL' failed, and so on....
>
>
> So, the client fails to stream the video.

Which distro are you using?
Does RTSP work and RTSPS doesn't ?

Try installing glib-networking gnutls gnutls-bin depending on your distro.

Regards
Mandar Joshi
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Does old video-test.c example have some bug?

Rodrigo Pimenta Carvalho
Hi Mandar Joshi.

Thank you for the reply.

The distro I'm using is:  Ubuntu 14.04.5 LTS \n \l

RTSP works fine when WITH_AUTH and WITH_TLS is not defined in test-video.c
Whether  WITH_AUTH and WITH_TLS is defined in test-video.c, then the RTSP client gets the error: "Could not receive message. (System error)". But that is ok, since client must use RTSPS, because server wants to use TLS.

The glib-networking gnutls gnutls-bin is already installed.

I have downloaded GStreamer 1.8.1 source code and compiled it on my machine. After compiling, I have installed it.

According to a text I read somewhere (I don't remember where), before running client and server, I use to export 3 variables like this:

    export PATH=/home/pimenta/env/gstreamer/COMPILATION_OUTPUT/bin:$PATH
    export LD_LIBRARY_PATH=/home/pimenta/env/gstreamer/COMPILATION_OUTPUT/lib
    export PKG_CONFIG_PATH=/home/pimenta/env/gstreamer/COMPILATION_OUTPUT/lib/pkgconfig

Do you think I should try GStreamer 1.8.1 in another machine?
Or, do you have more hints?

Thank you very much!
Best regards.
Rodrigo.





Reply | Threaded
Open this post in threaded view
|

Re: Does old video-test.c example have some bug?

Rodrigo Pimenta Carvalho
In reply to this post by Mandar Joshi
Hi Mandar.

One more information:

I have just compared the RTSP client log against the RTSPS client log. The difference is that in the RTSPS situation I see:

"Got message #184 from element "udpsrc3" (error): GstMessageError, gerror=(GError)NULL, debug=(string)"gstbasesrc.c\(2948\):\ gst_base_src_loop\ \(\):\ /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc3:\012streaming\ task\ paused\,\ reason\ not-negotiated\ \(-4\)";"

Does it help us to understand what is happening?

Thank you very much.
Best regards.
Rodrigo.