Any method for checking if rtspsrc is actually connected?

Chuck Crisler ccrisler at mutualink.net
Fri Jan 2 12:50:35 PST 2015


It seems surprising to me that you could have a successfully built pipeline
without pads on your source. I would think that it wouldn't link.

As far as detecting when the source is available, how about a thread that
sleeps for 1 sec (or so) then pings the server, terminating when a
connection is made so the pipeline can be built. That is basically what you
will need unless the server can announce that it is available somehow.

On Wed, Dec 31, 2014 at 3:19 PM, scottyMo220 <smoses220 at gmail.com> wrote:

> So I have a pipeline that starts with an rtspsrc to connect to a video feed
> from a router. However, the service running the pipeline may be started
> before the device I'm getting video from is actually booted up. I've found
> that in this case, my pipeline would still appear to be working normally,
> except with no video (I'd see a black screen on my video frame, but all the
> element and pad states would appear normal). Furthermore, the rtspsrc would
> not get video even after the the target device was booted.
>
> Currently I am getting around this by checking if the rtspsrc itself has
> any
> pads. I've noticed that the rtspsrc will only have pads attached to it in
> cases where it was able to successfully get video from the provided url. I
> routinely capture the pipeline state, delete it and recreate, and finally
> start the new pipeline until the rtspsrc is created with the pads. However,
> this seems like a pretty roundabout way of handing this, and I was
> wondering
> if there might be a more straightforward method of checking if an rtspsrc
> is
> actually getting video? Also if there might be another easier way to have
> the source reconnect automatically as soon the router actually comes up on
> the network.
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Any-method-for-checking-if-rtspsrc-is-actually-connected-tp4670074.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150102/b0ff720e/attachment.html>


More information about the gstreamer-devel mailing list