我是这个域的新手,但我在一个容器中运行时成功设置了RTSP服务器
./rtsp_media_server -l 8445 -s stream1 -p 8000它工作正常。暴露在哪里8445 …
您可以使用gstreamer通过RTP将H264发送到端口8000。 以下gst-launch-1.0命令可以在终端中为您完成。 gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,framerate=30/1 ! videoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=8000
gst-launch-1.0 -v videotestsrc pattern=smpte ! video/x-raw,framerate=30/1 ! videoconvert ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=127.0.0.1 port=8000