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_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel