Re: RTSP server: RTCP retransmission

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

Re: RTSP server: RTCP retransmission

Sebastian Dröge-3
On Thu, 2016-11-17 at 12:40 +0300, Yurii Monakov wrote:

> Hi All!
>
> I'm able to feed GStreamer RTSP server with H264 RTP stream:
>
> ( udpsrc port=5544 caps="application/x-rtp,media=(string)video,clock-
> rate=(int)90000,encoding-name=(string)H264,payload=(int)96"
> name=pay0)
>
> Everything works and clients are able to receive this stream. The
> problem is that I need to transmit custom RTCP packets, which are
> also generated on the feed side.
>
> Is there any way to tell RTSP server to take RTCP packets from
> external port and stop generating them internally?
You can hook into the RTCP machinery of the server and insert your own
packets there. You'll have to write code for that though.

See the "send-rtcp" and "on-sending-rtcp" signals on the rtpsession for
details. This allows you to send whatever custom RTCP packets you want
to add.


Generating RTCP outside the rtpsession and independent of that is not a
good idea as it will be very difficult to generate valid RTCP with
regard to the actual media stream.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: RTSP server: RTCP retransmission

Sebastian Dröge-3
On Tue, 2016-11-22 at 13:52 +0300, Yurii Monakov wrote:
> Hi Sebastian! Thank you for the answer.
>
> > See the "send-rtcp" and "on-sending-rtcp" signals on the rtpsession
> for details
> Unfortunately I'm using gstreamer-0.10 (with RHEL 6) and gst-rsp-
> server-0.10.7 it does not have this signals.
> But there are some callbacks (with
> gst_rtsp_session_stream_set_callbacks). Can I use them instead of
> signals?

Well, if you use such old GStreamer you have a problem :) Independent
of this specific problem. Upgrade!

> > Generating RTCP outside the rtpsession and independent of that is
> not a good idea
> My RTP  source is another gstreamer pipeline, which streams live
> video from workstations.
> It uses gstrtpbin which provides RTCP Sender Reports. So I think that
> I should keep original RTCP data.

You must not directly resend RTCP but you have to update it for the new
stream accordingly.

> And why this is not a good idea? Does GStreamer RTSP server alter RTP
> timestamps?

Depends, but it definitely gives the stream a new SSRC among other
things.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment