How to have re-transmission for packet loss in RTSP
Usama Tahseen Ul Haque
usamawizard at gmail.com
Thu Aug 31 04:08:40 UTC 2023
I have tried to follow this example for RTSP retransmission.
https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-video-rtx.c
gst_rtsp_media_factory_set_profiles (factory, GST_RTSP_PROFILE_AVPF);
When the profile is set like above , ffmpeg / mplayer / VLC is not able to
play and says that it is an unsupported protocol. I don't know which player
supports this protocol, only the gstreamer player is able to play the video.
When the gst_rtsp_media_factory_set_profiles line is removed then all the
players are working but there is a lot of artifact on the video if there is
packet loss.
everything is working fine on local env but on cloud there are artifact
because of packet loss
I also tried making retransission_time to 10 sec but it did not work.
gst_rtsp_media_factory_set_retransmission_time (factory, 10000 *
GST_MSECOND);
Tried enabling RTCP as required for NACK (did not work i can see RTCP
messages in wireshark )
gst_rtsp_media_factory_set_enable_rtcp(factory , 1);
Tried setting retransmission true (Did not worked )
gst_rtsp_media_factory_set_do_retransmission(factory,1);
I still get the artifacts / glitches on the video some time video just
stuck on the client side
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230831/962bbab9/attachment-0001.htm>
More information about the gstreamer-devel
mailing list