目標
- 透過 nginx,將 流 透過 rtmpt:80 的 protocol 轉送給 rtmp:1935 protocol
- 推流 ffmpeg / OBS, protocol : rtmpt
- 收流 VLC player, protocol : rtmp
- 額外測試 : 送 rtmpt 給 ossrs
- 延伸
- 透過 rtmpts (tunnel by https),加入 ssl
- 透過 rtmps,直接接收 rtmps 流,並 proxy 轉送給 ossrs
env
- push streaming tool
- ffmpeg 3.4 :
- 將桌面影像上傳 :
ffmpeg -f avfoundation -i "1" -vcodec libx264 -preset ultrafast -acodec libfaac -f flv rtmpt://localhost/demo/desktop
- 將桌面影像上傳 :
- OBS
- 將制式的 mp4 檔案丟到
rtmpt://localhost/demo/video
- 將制式的 mp4 檔案丟到
- wrong :
[tcp @ 0x7f830d5153c0] Connection to tcp://localhost:80 failed (Connection refused), trying next address
- 會自動檢查
127.0.0.1
- 會自動檢查
- ffmpeg 3.4 :
- watch streaming tool
- VLC player
- docker :
- ossrs
- nginx:latest (1.13.6)
- rtmp server
- rtmpt server
- compiler first
- nginx-rtmp-module :
https://github.com/arut/nginx-rtmp-module
- nginx-rtmpt-proxy-module :
https://github.com/kwojtek/nginx-rtmpt-proxy-module
- nginx-rtmp-module :
nginx. conf : rtmpt & rtmp
1 |
|