无法使用 GStreamer 流式传输 RTSP

无法使用 GStreamer 流式传输 RTSP

我正在尝试使用 GStreamer 传输 RTSP 视频。我使用的test-launch示例来自gst-rtsp-server

服务器:

./test-launch "(videotestsrc ! x264enc ! h264parse ! rtph264pay)"

客户端:VLC。

当我尝试rtsp://0.0.0.0:8554/test在 VLC 中打开 URI 时出现错误:

live555 debug: we will now try HTTP tunneling mode
live555 debug: connection error -115
live555 error: Failed to connect with rtsp://127.0.0.1:8554/test
core debug: no access_demux modules matched
core debug: creating access 'rtsp' location='127.0.0.1:8554/test', path='(null)'
core debug: looking for access module matching "rtsp": 25 candidates
core debug: net: connecting to 127.0.0.1 port 8554
core debug: connection succeeded (socket = 28)
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
core debug: no access modules matched
core error: open of `rtsp://127.0.0.1:8554/test' failed

我尝试使用 wget 进行简单测试并收到错误503: Service Unavailable

gstreamer 日志:

0:00:10.219925652  2772       0xcb4ca0 ERROR             rtspclient rtsp-client.c:767:find_media: client 0xe140c0: can't prepare media
0:00:10.220158204  2772       0xcb4ca0 ERROR             rtspclient rtsp-client.c:2283:handle_describe_request: client 0xe140c0: no media

我做错了什么?

相关内容