启用MediaServer.exe
rtp推流(单端口)-- 端口固定,ssrc随机
推流 ffmpeg -stream_loop -1 -re -i "test.mp4" -vcodec h264 -acodec aac -f rtp_mpegts rtp://127.0.0.1:10000
查看流地址 http://127.0.0.1/index/api/getMediaList?secret=64kPPS5lQh6ScgAT5bwWTEGmqLxelq9a&schema=rtsp
播放 rtsp://127.0.0.1/rtp/B3D95E63
rtp推流(多端口)-- 指定端口,ssrc固定
http://127.0.0.1/index/api/closeRtpServer?secret=64kPPS5lQh6ScgAT5bwWTEGmqLxelq9a&stream_id=34020000001110000001-34020000001310000001
http://127.0.0.1/index/api/openRtpServer?secret=64kPPS5lQh6ScgAT5bwWTEGmqLxelq9a&port=30000&tcp_mode=1&stream_id=34020000001110000001-34020000001310000001
推流 ffmpeg -re -stream_loop -1 -i "test.mp4" -vcodec h264 -acodec aac -f rtp_mpegts rtp://127.0.0.1:30000
播放 rtsp://127.0.0.1/rtp/34020000001110000001-34020000001310000001