重磅:SRS 5.0正式支持Windows平台和安装引导程式
Written by 赵文杰.
SRS for Windows
SRS 5.0.89+正式支持Windows,基于Cygwin64平台,支持代码编译,以及流水线,每个5.0的版本都会提供安装包。
Build from code
如果你需要自己从代码编译Windows版本的SRS,请先安装Cygwin64[1]。
另外,还需要安装工具gcc-g++
make
automake
patch
pkg-config
tcl
cmake
,可以参考流水线说明[2]。
安装好环境后,在Cygwin终端中执行命令:
git checkout develop
./configure
make
这样就可以编译出Windows版本的SRS了,可执行文件在./objs/srs.exe
,其他使用说明参考Getting Started[3]。
Install from binary
从5.0.89之后,SRS 5.0每个版本release[4],都会附带Windows的安装包。你可以下载后,快速安装和使用SRS。
下面是一些安装包的链接,注意你应该用最新版本,而不是使用某个固定版本release[5]:
- • 最新版本下载[6]
- • SRS-Windows-x86_64-5.0.89-setup.exe[7]
- • SRS-Windows-x86_64-5.0.19-setup.exe[8]
Note: SRS 5.0.89+之后,使用流水线构建Windows安装包,GitHub Actions自动生成。
安装后,使用管理员权限启动SRS:
使用FFmpeg或OBS推流到SRS:
ffmpeg -re -i ~/srs/doc/source.flv -c copy -f flv rtmp://win11/live/livestream
使用VLC或srs-player[9]播放流:
基本上SRS现有的功能都能用,比如RTMP, HTTP-FLV, HLS, WebRTC, HTTP-API, Prometheus Exporter等等。
Package by NSIS
如果你需要自己修改代码并打包,可以使用NSIS[10],在Cygwin终端中执行命令:
"/cygdrive/c/Program Files (x86)/NSIS/makensis.exe" \
/DSRS_VERSION=$(./objs/srs -v 2>&1) \
/DCYGWIN_DIR="C:\cygwin64" \
packaging/nsis/srs.nsi
Known Issues
- • Cygwin: Build with SRT is ok, but crash when running. #3251[11]
- • Cygwin: Support address sanitizer for windows. #3252[12]
- • Cygwin: ST stuck when working in multiple threads mode. #3253[13]
- • Cygwin: Support iocp and windows native build. #3256[14]
- • Cygwin: Build srtp with openssl fail for no srtp_aes_icm_ctx_t #3254[15]
Links
ST supports windows: https://github.com/ossrs/state-threads/issues/20
Commits about SRS Windows: https://github.com/ossrs/srs-windows/issues/2
Windows docker also works for SRS, however, srs.exe
is more popular for windows developers.
引用链接
[1]
Cygwin64: https://cygwin.com/install.html
[2]
说明: https://github.com/cygwin/cygwin-install-action#parameters
[3]
Getting Started: ./getting-started.md
[4]
release: https://github.com/ossrs/srs/releases
[5]
release: https://github.com/ossrs/srs/releases
[6]
最新版本下载: https://github.com/ossrs/srs/releases
[7]
SRS-Windows-x86_64-5.0.89-setup.exe: https://github.com/ossrs/srs/releases/tag/v5.0.89
[8]
SRS-Windows-x86_64-5.0.19-setup.exe: https://github.com/ossrs/srs/releases/tag/v5.0.19
[9]
srs-player: http://win11:8080/
[10]
NSIS: https://nsis.sourceforge.io/Download
[11]
Cygwin: Build with SRT is ok, but crash when running. #3251: https://github.com/ossrs/srs/issues/3251
[12]
Cygwin: Support address sanitizer for windows. #3252: https://github.com/ossrs/srs/issues/3252
[13]
Cygwin: ST stuck when working in multiple threads mode. #3253: https://github.com/ossrs/srs/issues/3253
[14]
Cygwin: Support iocp and windows native build. #3256: https://github.com/ossrs/srs/issues/3256
[15]
Cygwin: Build srtp with openssl fail for no srtp_aes_icm_ctx_t #3254: https://github.com/ossrs/srs/issues/3254
相关文章
- Windows Vista Ultimate OEM 21in1 简体中文版(终结版)
- windows通过cmd查找端口占用
- cuDNN安装教程(Windows)「建议收藏」
- 面向Windows的Pytorch完整安装教程
- htc u11第三方rom_htc手机windows系统
- WINDOWS下安装系统_在Windows环境下
- windows 下安装ftp,亲测有效
- imazing 2.16.9官网Mac/Windows下载电脑版功能介绍已经如何安装
- 苹果电脑MacBook Air、MacBook Pro怎么安装win10双系统或Windows软件
- 普大喜奔!Windows支持eBPF了
- Windows 2003下IIS+PHP+MySQL+Zend Optimizer+GD库+phpMyAdmin安装配置
- windows版虚拟机软件 VMware 安装运行,VMware虚拟mac系统
- MongoDB在Windows平台的安装及配置方法
- linux或windows环境下pytorch的安装与检查验证(解决runtimeerror问题)
- python2.7与3.5共存windows平台安装详解编程语言
- KIE Drools6.4.0.Final(Windows)的安装详解编程语言
- Linux下搭建Windows虚拟机的实现方案(linux下windows虚拟机)
- Windows中安装macOS:让你在同一台电脑上实现双系统切换(windows安装macos)
- windows比较Linux与Windows:谁占上风?(linuxvss)
- 在Windows环境下实现Redis服务安装(windows下安装redis)
- 微软发布 Windows 版 OpenSSH 源码
- 同时安装Windows和Linux双系统(windows装linux双系统)
- 和windows双系统安装:Linux与Windows并存(安装双系统linux)
- Windows上安装MongoDB:一步一步分解(windows安装mongodb)
- 在Windows上安装Linux系统的步骤(windows安装linux系统)
- 在Windows环境下安装双系统:WindowsLinux(windows下安装linux)
- Linux安装轻松:Windows只一步之遥(linux装windows)
- 7解决MySQL 57在Windows下的安装问题CMD(cmd安装mysql5)
- 国行三星Windows MR头显“玄龙MR”正式开卖,售价4499
- PHPlet在Windows下的安装