Problem with "rtpsrc" and "gst-rtsp-server"

Sebastian Dröge sebastian at centricular.com
Mon Oct 31 13:03:49 UTC 2016


On Thu, 2016-10-27 at 07:41 -0700, Myzhar wrote:
> Hi all,
> 
> I'm trying to restream a h264 rtp stream to rtsp using gst-rtsp-server, but
> I'm getting a strange error.
> 
> I'm using the "test-launch" example
> (https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-launch.c)
> and it correctly works using the default input string:
> "*videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96*"
> 
> When I try to replace the pipeline string with this:
> "*udpsrc multicast-iface=eth0 multicast-group=239.0.0.105
> auto-multicast=true port=16000 ! application/x-rtp, encoding-name=H264,
> payload=96*"
> the server starts, but when a client tries to connect it crashes with the
> following errors:
> "*gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed*"
> and
> "*invalid cast from 'GstUDPSrc' to 'GstBin'*"
> 
> The idea is to try to avoid H264 decoding and encoding since the RTP stream
> is already encoded in H264.

The caps will be incomplete and it won't work well. You need to
depayload and payload the stream again, e.g. by using

  udpsrc ... ! rtph264depay ! rtph264pay name=pay0

Also gst-rtsp-server needs a payloader is the very last element in any
case, or something that implements the same API at least.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161031/09d27ecf/attachment.sig>


More information about the gstreamer-devel mailing list