# srs低延迟直播推流 rtmp # 安装srs ```bash! sudo apt install -y automake cmake pkg-config git git clone https://github.com/ossrs/srs cd srs/trunk ./configure && make ``` ## 基础配置 配置文件 ``` # conf/rtmp.conf listen 1935; max_connections 1000; vhost __defaultVhost__ { } ``` ## 运行 `./objs/srs -c conf/srs.conf` ## 测试 推流到`rtmp://192.168.1.170:1935/live/livestream` `ffmpeg -i xxxxxxxxxx.mp4 -vcodec copy -acodec copy -f flv -y rtmp://192.168.1.170:1935/live/livestream`