linux rtsp 获取摄像头视频流,用RTSP流式网络摄像头

我正在尝试使用连接到笔记本电脑的网络摄像头实时播放视频。我正在Linux Ubuntu中工作。

这里是服务器端和客户端的Gstreamer管道:

流媒体服务器:我试图使用gst-rtsp-server来为v4l2设备上的视频提供服务。

./test-launch --gst-debug=0 "( v4l2src

!

video/x-raw-yuv,width=352,height=288,framerate=15/1

! x264enc ! rtph264pay name=pay0 pt=96

)"

接收器:

gst-launch -v rtspsrc

location=rtsp://192.168.XX.XX:8554/test

! decodebin ! autovideosink

我有这个消息错误:

Setting pipeline to PAUSED …

ERROR: Pipeline doesn’t want to pause.

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could

not read from resource. Additional debug info: gstrtspsrc.c(4573):

gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Got

error response: 503 (Service Unavailable).

Setting pipeline to NULL …

Freeing pipeline …

谁知道这个问题和/或可以尝试帮助我?