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

rtsp服務器

一、live555html

二、ZLMediaKithtml5

三、ffservernode

四、gst-rtsp-servergit

五、fenggithub

六、rtspd服務器

 

1)live555 proxyServer

live555庫文件編譯app

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

源碼tcp

live/proxyServer/live555ProxyServer.cpppost

編譯

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拉流播放

http://www.javashuo.com/article/p-vpyykhwg-gq.html

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

相關文章
相關標籤/搜索