RTMP與HLS壓力測試工具安裝與配置


在CentOS 6.5環境中安裝依賴軟件包,使用git下載最新版本st-load源碼包

 [root@localhost ~]# yum install git unzip patch gcc gcc-c++ make
 [root@localhost ~]# git clone https://github.com/winlinvip/st-load.git

執行配置和編譯

 [root@localhost st-load]# ./configure
 [root@localhost st-load]# make

查看生成的文件和目錄

 [root@localhost st-load]# ls objs/
 http-parser-2.1 src st_hls_load st_rtmp_load st_rtmp_publish
 Makefile st-1.9 st_http_load st_rtmp_load_fast
 [root@localhost st-load]#

模擬RTMP用戶

./st_rtmp_load -c 1 -r rtmp://127.0.0.1:1935/live/livestream

模擬HLS直播用戶

./st_hls_load -c 1 -r http://127.0.0.1:3080/hls/hls.m3u8

模擬HSL點播用戶

./st_hls_load -c 10000 -o -r http://127.0.0.1:3080/hls/hls.m3u8

模擬RTMP推流用戶

./st_rtmp_publish -i doc/source.200kbps.768x320.flv -c 1 -r rtmp://127.0.0.1:1935/live/livestream

模擬RTMP多路推流用戶

./st_rtmp_publish -i doc/source.200kbps.768x320.flv -c 1000 -r rtmp://127.0.0.1:1935/live/livestream_{i}

支持RTMP流播放測試,一個進程支持5k並發
支持RTMP流推流測試,一個進程支持500個並發。

相關下載:
(1) SRS Bench (原st-load,最后更新:20151231)

原文地址:http://www.linuxcache.com/archives/3328


免責聲明!

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



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