rtsp服務器以及rtsp推流/拉流/轉發


rtsp服務器

1、live555

2、ZLMediaKit

3、ffserver

4、gst-rtsp-server

5、feng

6、rtspd

 

1)live555 proxyServer

live555庫文件編譯

https://www.cnblogs.com/dong1/p/5861624.html

源碼

live/proxyServer/live555ProxyServer.cpp

編譯

g++ live555ProxyServer.cpp -o live555ProxyServer \
-I $(pwd)/liveMedia/include ./liveMedia/libliveMedia.a \
-I $(pwd)/groupsock/include ./groupsock/libgroupsock.a \
-I $(pwd)/BasicUsageEnvironment/include ./BasicUsageEnvironment/libBasicUsageEnvironment.a \
-I $(pwd)/UsageEnvironment/include ./UsageEnvironment/libUsageEnvironment.a \

運行

./live555ProxyServer rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream rtsp://172.16.23.66:554/h264major rtsp://172.16.23.66:554/h264minor

 

./live555ProxyServer rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream
LIVE555 Proxy Server
    (LIVE555 Streaming Media library version 2019.06.28; licensed under the GNU LGPL)

Created new TCP socket 4 for connection
RTSP stream, proxying the stream "rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream"
    Play this stream using the URL: rtsp://172.16.23.140:8554/proxyStream

(We use port 8000 for optional RTSP-over-HTTP tunneling.)

 

2)rtsp2rtmp

rtsp stream to rtmp

How to use:

cd demo

go build demo.go

./demo -rtspUrl "rtsp://admin:123456@10.1.51.13/H264?ch=1&subtype=0" -rtmpUrl "rtmp://10.1.51.20:1935/myapp/cv"

https://github.com/falconray0704/rtsp2rtmp

 

3)ffmpeg推送rtsp碼流到rtmp服務器

攝像頭

HIKVISION DS-2CD23RZ

admin 12345

rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream

轉推送

ffmpeg -i "rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream" -f flv -r 25 -s 1920x1080 -an "rtmp://182.61.45.149:1935/live/movie"

ffmpeg -rtsp_transport tcp -re -i "rtsp://admin:12345@172.16.23.142:554/H.264/ch1/main/av_stream" -vcodec libx264 -preset ultrafast -acodec aac -f flv  rtmp://182.61.45.149:1935/live/movie

播放

ffplay rtmp://182.61.45.149:1935/live/movie

 

4)還有srs Ingest模塊

我從2014年到如今(2019年7月30日)都沒用起來,有誰驗證過的請告訴我一聲。因為選擇太多,我也不迷戀srs,所以這些年也就沒折騰了。

采集(Ingest)指的是將文件(flv,mp4,mkv,avi,rmvb等等),流(RTMP,RTMPT,RTMPS,RTSP,HTTP,HLS等等),設備等的數據,

轉封裝為RTMP流(若編碼不是h264/aac則需要轉碼),推送到SRS。

https://github.com/ossrs/srs/wiki/v1_CN_Ingest

 

5)基於gstreamer的rtsp推送,轉發和拉取

https://blog.csdn.net/Jay_2018/article/details/90032652

1)gstreamer rtsp拉流播放

https://blog.csdn.net/yang_quan_yang/article/details/78846134

2)gstereamer rtsp推流

https://blog.csdn.net/zhuwei622/article/details/80348916

 

 

網上搜一圈,太多了,一杯茶得功夫,挖出下面一大堆,不用干重復勞動了,珍惜時間。

https://github.com/PHZ76/RtspServer

https://github.com/PHZ76/DesktopSharing

http://blog.csdn.net/firehood_/article/details/16844397

http://blog.csdn.net/xdshengk/article/details/46881231

http://files.cnblogs.com/files/dong1/rtsp.zip

https://github.com/mpromonet/v4l2rtspclient

https://github.com/mpromonet/v4l2rtspserver

https://github.com/beatgammit/rtsp

https://github.com/iizukanao/node-rtsp-rtmp-server

https://github.com/Streamedian/html5_rtsp_player

https://github.com/anyRTC/anyRTC-RTMP-OpenSource

https://github.com/NiuStar/XRtspServer

https://github.com/statueofmike/rtsp

https://blog.csdn.net/xwu122930/article/details/78962234


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM