RTSP control

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

RTSP control

Paddy
Hi,

I'm using GStreamer 0.10 to capture AV from an Axis camera to disk. I have a few questions that I'm hopeful someone can help me with:

When I create an rtspsrc, the SDP is parsed & all media streams discovered are started. Is there any way that I can change this behaviour or subsequently stop unwanted streams within the 0.10 API. Or is it a case of changing the rtspsrc code or resorting to the camera http API to achieve this ??

How do I stop an RTSP src from within gstreamer. i.e. it stops streaming anything ?? And how do I restart it again ??

Cheers,

Paddy
Reply | Threaded
Open this post in threaded view
|

Re: [gmail] RTSP control

Marc Leeman
> subsequently stop unwanted streams within the 0.10 API. Or is it a case of
> changing the rtspsrc code or resorting to the camera http API to achieve
> this ??

in GST, you can add a capsfilter an link the unwanted streams to
fakesink (I think it's automatic with gst-launch).

As for getting the streams from the encoder; that would depend on the
API of the encoder: some have indeed an option to request streams. That
is typically hidden in the RTSP uri.

--
  greetz, marc
harvey 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 GNU/Linux

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

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

Re: [gmail] RTSP control

Paddy
Cheers Marc,

I currently attach the unwanted streams to fakesinks in the pad-added callbacks. It's works but it requires RTSP srcs are instantiated in a particular order - which is ugly/clumsy/awful & sure to cause problems one day. I'll look into the caps filter approach.