<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>直播服务器 LiveServer搭建</title><link>https://liveserver.com.cn/</link><description>rtmp直播服务器搭建</description><item><title>主流流媒体的综合性能大 PK ( smart_rtmpd, srs, zlm, nginx rtmp )</title><link>https://liveserver.com.cn/?id=20</link><description>&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;随着互联网的发展，音视频行业越来越火，自然而然的流媒体服务器也是百花齐放。市面上也有很多种类的流媒体服务器，让人眼花缭乱。特别是对技术了解不深的朋友，更不知道怎么选择。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;其实作为服务器，主要考察的无外乎几个核心指标，只要符合，基本上都是属于比较优秀的流媒体服务器。我简略说一说这些核心特性：&lt;/p&gt;&lt;pre class=&quot;highlighter-hljs&quot; highlighted=&quot;true&quot; has-selection=&quot;true&quot; style=&quot;margin: 10px auto; padding: 0px; transition-duration: 0.2s; transition-property: background, font-size, border-color, border-radius, border-width, padding, margin, color; overflow: auto; text-wrap-mode: wrap; color: rgb(51, 51, 51); background-color: rgb(255, 255, 255);&quot;&gt;稳定性，性能，资源占用，并发能力，成本，可维护性&lt;/pre&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;其实这些特性又不是独立存在的，相互影响彼此。比如：可维护性。可维护性分为两类，一个开发的可维护性，一个是运营的可维护性。开发的可维护性包括，软件整体架构清晰，模块耦合性低，层次清晰，&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;这样对于新业务的扩展比较容易，有问题也非常容易排查；这样的架构也为高效，稳定提供了基石；运营的可维护性，对于新业务的展开逻辑比较清晰，错误排查比较方便容易定位，运维人员维护性差的可能需要 3 个人，而维护性好的可以 1 个人搞定，大大节省了人员成本。同时，对硬件资源可以减少使用的台数，大大的节省运维费用。其实每一点都可以长篇累牍的去讲述它的优缺点，但偏离了本文的用意，这里就不一一列举了。&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这里主要介绍几款个人感觉不错的流媒体服务器。 smart_rtmpd, nginx rtmp, srs, zlm 。明白人一眼就看出来，这些主要是 C, C++ 语言实现的服务器，没错。就像有的借助小汽车的底盘，有的借助摩托车地盘，&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;从起点很多别的语言的流媒体服务器就输了。 C, C++ 基本上属于性能最好的语言，性能上 C &amp;gt; C++， 不要和我抬杠说汇编。：）&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;名字&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;开发语言&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;nginx rtmp&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;C&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;smart_rtmpd&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;C++&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;srs&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;C++&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;zlm&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;C++&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 id=&quot;基本情况介绍&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;基本情况介绍&lt;/h1&gt;&lt;h3 id=&quot;smart_rtmpd-服务器&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;smart_rtmpd 服务器&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;github 地址:&amp;nbsp;&lt;a href=&quot;https://github.com/superconvert/smart_rtmpd&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://github.com/superconvert/smart_rtmpd&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;gitee 地址:&amp;nbsp;&lt;a href=&quot;https://gitee.com/superconvert/smart_rtmpd&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://gitee.com/superconvert/smart_rtmpd&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;免费软件，支持 rtmp, rtsp, srt 推流，rtmp, rtsp, srt, hls, dash, http-flv, ws-flv, webrtc 拉流；支持 webrtc sfu 功能， 支持 VOD 功能，支持直播和录像； 特点，稳定，高效，简洁，跨平台，解压及运行，支持的操作系统 Windows, Ubuntun, CentOS, Debian, FreeBSD, ARM 64，无第三方依赖，基本上内核 + glibc 就能运行，软件体积非常小，配置相对简单，由于出道比下面三个晚，名气相对没有下面三个大。&lt;/p&gt;&lt;h3 id=&quot;nginx-rtmp-服务器&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;nginx rtmp 服务器&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;github 地址：&lt;a href=&quot;https://github.com/arut/nginx-rtmp-module&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://github.com/arut/nginx-rtmp-module&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;开源软件，由于 nginx rtmp 依托 nginx 底层，所以性能也是相对比较好的，但功能相对于其余三个，相对比较少一点，也是支持跨平台，需要准备第三方库及编译环境，针对不同的操作系统需要不同的环境配置进行编译适配，过多的功能和说明，请参考它们的 README.md&lt;/p&gt;&lt;h3 id=&quot;srs-服务器&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;srs 服务器&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;github 地址：&lt;a href=&quot;https://github.com/ossrs/srs&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://github.com/ossrs/srs&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;开源软件：srs 基于协程技术，对于单进程的能力挖掘相当强悍，单对于多核应用同时对于 webrtc 的功能支持也是比较全面。也是支持跨平台，需要配置对应的编译环境，过多的功能和说明，请参考它们的 README.md&lt;/p&gt;&lt;h3 id=&quot;zlm-服务器&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;zlm 服务器&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;github 地址：&lt;a href=&quot;https://github.com/ZLMediaKit/ZLMediaKit&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://github.com/ZLMediaKit/ZLMediaKit&lt;/a&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;开源软件：目前是一个庞大的开发框架，不仅提供服务器的一些功能，还提供一些基础组件，对于国产化的相关规范支持的比较全。过多的功能和说明，请参考它们的 README.md&lt;/p&gt;&lt;h1 id=&quot;测试环境&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;测试环境&lt;/h1&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;测试一般分为三端，推流端，服务器，拉流端，为了保证公平公正合理的情况下，测试过程中，推流端不做任何更改，推流码率固定；拉流端不做任何更改；服务器端依次运行各个流媒体服务器软件，其它软硬件环境均保持不变。同样的硬件，既同样的 CPU, 内存，硬盘，网络。&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;软件条件说明:&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;服务器操作系统 Ubuntu 24.04.1 LTS ( 虚拟机 ) , CPU: 2 , Memory: 8G&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;软件&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;编译器&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;版本或源码分支&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;smart_rtmpd&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;gcc 5.4.0&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;2024.09.16 乌班图多线程版本&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;老的编译器进行编译，新编译器应该性能会更好&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;nginx rtmp&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;gcc 13.2.0&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;源码分支：2fb11dffaedc5af66b1442b0315c54a4b9da585d&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;大家如果想验证测试结果可以自行选择最优分支进行验证&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;srs&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;gcc 13.2.0&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;源码分支：747831154742e6e4dee9b16f3a29fc6e01904e8c&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;大家如果想验证测试结果可以自行选择最优分支进行验证&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;zlm&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;gcc 13.2.0&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;源码分支：da704ab2f1184c3c87be64fe18c9f413de101d0f&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;大家如果想验证测试结果可以自行选择最优分支进行验证&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推流软件&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;软件&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;版本&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;OBS&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;29.0.2&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;ffmpeg.exe&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;version 4.3.2-2021-02-02-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;拉流软件&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;软件&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;版本&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;rtmpstress.exe&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;无&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;ffplay.exe&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;version 4.3.2-2021-02-02-full_build-www.gyan.dev Copyright (c) 2003-2021 the FFmpeg developers&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 id=&quot;测试场景及数据&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;测试场景及数据&lt;/h1&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;测试分为三个场景，时延测试，拉流测试，推流测试&lt;/p&gt;&lt;h3 id=&quot;时延测试&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;时延测试&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推流 OBS + 浏览器网页截屏 ( 1920x1080, 8192 kb/s )&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;浏览器：在线秒表网页&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;测试协议：rtmp 推拉流&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;拉流 ffplay -fflags nobuffer rtmp://192.168.23.141:1935/live/stream&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;测试场景： 一路推流一路拉流，主要测试延时&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;smart rtmpd&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;srs&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;zlm&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;nginx rtmp&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.117&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.506&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.635&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.334&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.337&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.635&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;2.451&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.333&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.247&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.507&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;2.194&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.334&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.246&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.504&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.721&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.291&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.335&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.644&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;3.441&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.773&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.287&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.505&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.677&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.290&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.258&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.460&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.635&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.291&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.247&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.590&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.634&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.290&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.374&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.548&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.677&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.204&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;单位秒&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.376&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.635&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.592&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;1.376&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h3 id=&quot;拉流测试&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;拉流测试&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推流 OBS ( 4096 kb/s )&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;测试协议：rtmp 推拉流&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;测试时长：10 分钟&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;拉流 rtmpstress.exe 一路推 800 路拉，主要系统指标&lt;/p&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;smart rtmpd&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;srs&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;zlm&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;nginx rtmp&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;86%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;88%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;189%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;95.40%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;123%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;98%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;200%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;97.40%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;82%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;99%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;143%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;84.30%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;23%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;53%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;OBS 断开，拉流 187&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;94.80%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;98%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;42%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;35.00%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;89%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;6%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;95.50%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;97%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;4%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;40.00%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;102%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;OBS 断开，拉流全部断开&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;94.80%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;81%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;26.20%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;38%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;95.00%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;CPU 随机抽取 10 次&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;内存&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;0.50%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;3.30%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;0.90%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;0.30%&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;结论 平均 CPU 占用率 smart_rtmpd 与 nginx rtmp 旗鼓相当，CPU 占用率相对较低，对于内存的占用也是相对较低，推拉流过程相对平稳，无异常，但 nginx rtmp 业务相对于其它三个服务器业务是最简单的，缓存或 IO 都是简化处理的，其次它是纯 C 实现的，语言上对性能的优化占有天然的优势。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;压测过程中 srs 和 zlm 推流一段时间，推流端会产生断开现象，拉流端会出现全部断开的现象。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;smart_rtmpd 的拉流链接由 800 路降低到 724 路， 而 nginx rtmp 的拉流链接数由 800 路降低到 664 路。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;srs 协程模型只能用一个 CPU ，所以理论上 CPU 不会超过 100%&lt;/p&gt;&lt;h3 id=&quot;推流测试&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推流测试&lt;/h3&gt;&lt;div class=&quot;table-wrapper&quot; style=&quot;margin: 0px; padding: 0px; overflow-x: auto; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;table&gt;&lt;thead style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;说明&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;smart rtmpd&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;srs&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;zlm&lt;/th&gt;&lt;th style=&quot;margin: 0px; padding: 8px 14px; background-color: rgb(250, 250, 250); border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;nginx rtmp&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;CPU&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;13.7% ~ 200%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;23.9% ~100%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;97.4% ~ 200%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;52.5% ~93.8%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;内存&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;13.60%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;6.00%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;11.90%&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;0.40%&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;说明 top 查看网卡中断和服务器进程交替霸榜，CPU 大部分时间占用和 nginx 相差不多，但 CPU 最大值大于 nginx 。推流长时间有部分链接断开&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&amp;quot;协程（单进程，CPU 最大 100%, 推流长时间推流链接大量断开 )&amp;quot;&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;推流长时间有部分链接断开&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;top 查看网卡和服务器进程交替霸榜，表现相当不错，推流长时间链接没有断开&lt;/td&gt;&lt;td style=&quot;margin: 0px; padding: 8px 14px; border-color: rgb(192, 192, 192); border-collapse: collapse; min-width: 50px;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;结论： CPU 表现相对优秀的是 nginx rtmp, smart_rtmpd&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;内存占用 smart_rtmpd 最多，不过缓冲队列是可配置的，没有降低配置降低内存占用，nginx rtmp 的内存占用比较优秀不过 smart_rtmpd, srs, zlm 的业务功能都比 nginx 复杂很多，内存占用过多是理所当然的，nginx 几乎就是做了一个简单解流封流转流的功能，所以系统的占用需求是最小的&amp;quot;&lt;/p&gt;&lt;h1 id=&quot;收尾&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;收尾&lt;/h1&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;各位老铁想不想也想测试一下对比一下各个流媒体的性能呢？包括软件的便利性，兼容性，部署成本，维护成本，可维护性做一个全面的对比。欢迎各位老铁拿出您的数据与结论，选出您最喜欢的流媒体服务器。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Fri, 27 Mar 2026 19:13:04 +0800</pubDate></item><item><title>RTMPMiniServer 基本使用方法</title><link>https://liveserver.com.cn/?id=18</link><description>&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;这是同一局域网内主机之间的基本“操作方法”。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;所以我想构建这样的工作流程：&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;figure style=&quot;box-sizing: inherit; margin: 1em 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192920177089576098794.png&quot;/&gt;&lt;/p&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;我的主机分别命名为“服务器”PC和“编码器”PC。&lt;/span&gt;&lt;/p&gt;&lt;hr style=&quot;box-sizing: content-box; border: 0px; background-color: rgb(204, 204, 204); height: 1px; margin-bottom: 1.5em; text-wrap-mode: wrap;&quot;/&gt;&lt;h3 style=&quot;box-sizing: inherit; color: rgb(34, 34, 34); font-weight: 400; margin-bottom: 15px; line-height: 26.208px; margin-top: 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;服务器电脑&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;步骤 1&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;：下载（&lt;/span&gt;&lt;a rel=&quot;noreferrer noopener&quot; aria-label=&quot;链接（在新标签页中打开）&quot; href=&quot;http://garaninapps.com/rtmpminiserver#downloads&quot; target=&quot;_blank&quot; style=&quot;box-sizing: inherit; color: rgb(0, 0, 0); outline: 0px; transition: 0.1s linear;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;链接&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;）并安装 RTMPMiniServer。运行它。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;figure style=&quot;box-sizing: inherit; margin: 1em 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p id=&quot;_img_parent_tmp&quot; style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192922177089576287143.png&quot;/&gt;&lt;/p&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;步骤二：&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;按下开始键&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;has-small-font-size&quot; style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-size: 13px; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;em style=&quot;box-sizing: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;注意：如果您收到“端口 1935 不可用”的错误信息，请在设置中更改端口。&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;figure class=&quot;wp-block-image&quot; style=&quot;box-sizing: inherit; margin: 1em 0px; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192923177089576382015.png&quot;/&gt;&lt;figcaption style=&quot;box-sizing: inherit; margin-top: 0.5em; margin-bottom: 1em;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;“黄色”图标表示“等待”状态（目前还没有人连接到我们的服务器）。&lt;/span&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;步骤 3&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;：打开预览窗口&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;figure class=&quot;wp-block-image&quot; style=&quot;box-sizing: inherit; margin: 1em 0px; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192924177089576483476.png&quot;/&gt;&lt;/figure&gt;&lt;/p&gt;&lt;hr class=&quot;wp-block-separator&quot; style=&quot;box-sizing: content-box; border: 0px; background-color: rgb(204, 204, 204); height: 1px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap;&quot;/&gt;&lt;h3 style=&quot;box-sizing: inherit; color: rgb(34, 34, 34); font-weight: 400; margin-bottom: 15px; line-height: 26.208px; font-family: Lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial; margin-top: 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;“编码器”PC&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;步骤 4&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;：打开任意 RTMP 编码器。我在 macOS 上使用 OBS：前往“设置”—&amp;gt;“串流”：选择“自定义服务”，然后输入服务器和串流密钥。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;figure class=&quot;wp-block-image&quot; style=&quot;box-sizing: inherit; margin: 1em 0px; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192926177089576628344.png&quot;/&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;步骤 5：&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;按下“开始串流”按钮，编码器开始向 RTMPMiniServer 发送 RTMP 流。现在让我们到“服务器”电脑上查看结果。&lt;/span&gt;&lt;br style=&quot;box-sizing: inherit;&quot;/&gt;&lt;br style=&quot;box-sizing: inherit;&quot;/&gt;&lt;/p&gt;&lt;hr class=&quot;wp-block-separator&quot; style=&quot;box-sizing: content-box; border: 0px; background-color: rgb(204, 204, 204); height: 1px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap;&quot;/&gt;&lt;h3 style=&quot;box-sizing: inherit; color: rgb(34, 34, 34); font-weight: 400; margin-bottom: 15px; line-height: 26.208px; font-family: Lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial; margin-top: 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;服务器电脑（检查结果）&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;我在“服务器”电脑上得到了以下结果：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;figure class=&quot;wp-block-image&quot; style=&quot;box-sizing: inherit; margin: 1em 0px; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192927177089576738506.png&quot;/&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: inherit; color: rgb(34, 34, 34); font-weight: 400; margin-bottom: 15px; line-height: 33.6px; font-family: Lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial; margin-top: 0px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;连接到 NDI 工作流&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1.5em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;RTMPMiniServer 将接收到的 RTMP 信号转换为 NDI 信号。&lt;/span&gt;&lt;br style=&quot;box-sizing: inherit;&quot;/&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;只需打开任何 NDI 软件（例如 vMix、OBS、Wirecast 等），然后选择名为“MiniServer A-Line 1”的 NDI 源即可。&lt;/span&gt;&lt;br style=&quot;box-sizing: inherit;&quot;/&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;例如，我使用的是 NewTek Tools 的“NDI Studio Monitor”：&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;wp-block-image&quot; style=&quot;box-sizing: inherit; margin-bottom: 1em; font-family: lato, lato, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;figure class=&quot;aligncenter&quot; style=&quot;box-sizing: inherit; display: table; margin: 1em auto; clear: both;&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192929177089576991194.png&quot;/&gt;&lt;figcaption style=&quot;box-sizing: inherit; display: table-caption; margin-top: 0.5em; margin-bottom: 1em; caption-side: bottom;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; vertical-align: inherit;&quot;&gt;选择“迷你服务器 A-线路 1”&lt;/span&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;figure class=&quot;aligncenter&quot; style=&quot;box-sizing: inherit; display: table; margin: 1em auto; clear: both;&quot;&gt;&lt;br/&gt;&lt;/figure&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2026/02/20260212192933177089577366241.png&quot;/&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 12 Feb 2026 19:26:58 +0800</pubDate></item><item><title>最快的流媒体服务器搭建 smart_rtmpd</title><link>https://liveserver.com.cn/?id=21</link><description>&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;流媒体服务器是一个很专业的名词，对于圈外人来说，可能显得比较高深。但是日常应用中还是经常需要用到它，搭建流媒体服务器需要了解各种名词，系统，环境配置，使用方法，使用流程。这让很多圈外人感觉无从下手，望而却步。&lt;/p&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;为了解决这个问题，本博文因此而生，用深入浅出，图文并茂的方式给各位客官一个基本的科普。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;流媒体服务器其实只要性能好，使用简洁，维护方便，扩展性强。这是核心需求，只要满足上述几点，基本上就可以断定这是一款优秀的软件。&lt;/p&gt;&lt;h1 id=&quot;性能对比&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;性能对比&lt;/h1&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;现在流媒体服务器还是有很多型号可以选择的，下面是针对主流的一些流媒体服务器进行性能的 PK&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;a href=&quot;https://www.cnblogs.com/superconvert/p/18421322&quot; target=&quot;_blank&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://www.cnblogs.com/superconvert/p/18421322&lt;/a&gt;&lt;/p&gt;&lt;h1 id=&quot;搭建准备&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;搭建准备&lt;/h1&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;需要用到三方软件，流媒体服务器，推流端，拉流端。由于 windows 是各位客官的主流使用系统，本搭建基于 windows 进行。win10 或 win11 均可&lt;/p&gt;&lt;ol style=&quot;margin-bottom: 1em; margin-left: 40px; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;流媒体服务器&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;这里对目前市面上诸多选品，针对 smart_rtmpd 进行讲解，它具有上述的各项优点，况且跨平台，架构轻盈，部署简单，维护方便。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;推流端&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;本文推荐使用 OBS，功能强大，方便快捷&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;拉流端&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;本文推荐使用 VLC，兼容性高，方便快捷&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 id=&quot;推流端-obs&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推流端 OBS&lt;/h1&gt;&lt;h3 id=&quot;软件下载&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;软件下载&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://obsproject.com/download&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://obsproject.com/download&lt;/a&gt;&lt;/p&gt;&lt;h1 id=&quot;拉流端-vlc&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;拉流端 VLC&lt;/h1&gt;&lt;h3 id=&quot;软件下载-1&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;软件下载&lt;/h3&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://www.videolan.org/vlc/&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://www.videolan.org/vlc/&lt;/a&gt;&lt;/p&gt;&lt;h1 id=&quot;流媒体服务器&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;流媒体服务器&lt;/h1&gt;&lt;h3 id=&quot;软件下载-2&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 16px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;软件下载&lt;/h3&gt;&lt;ol style=&quot;margin-bottom: 1em; margin-left: 40px; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;网盘下载&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;通过网盘分享的文件：smart_rtmpd.zip&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;链接:&amp;nbsp;&lt;a href=&quot;https://pan.baidu.com/s/19DSKFDexKFk65fBfQOFfug?pwd=y6ev&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://pan.baidu.com/s/19DSKFDexKFk65fBfQOFfug?pwd=y6ev&lt;/a&gt;&amp;nbsp;提取码: y6ev&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;gitee 下载&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;链接:&amp;nbsp;&lt;a href=&quot;https://gitee.com/superconvert/smart_rtmpd&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://gitee.com/superconvert/smart_rtmpd&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;github 下载&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;链接：&lt;a href=&quot;https://github.com/superconvert/smart_rtmpd&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow&quot; style=&quot;margin: 0px; padding: 0px; color: rgb(0, 0, 0);&quot;&gt;https://github.com/superconvert/smart_rtmpd&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 id=&quot;流媒体系统搭建&quot; style=&quot;margin: 10px 0px; padding: 0px; font-size: 28px; line-height: 1.5; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;流媒体系统搭建&lt;/h1&gt;&lt;ol style=&quot;margin-bottom: 1em; margin-left: 40px; padding: 0px; color: rgb(51, 51, 51); font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;运行流媒体服务器&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;下载流媒体服务器解压后，里面包含一个软件包 smart_rtmpd_win.zip，这个就是 windows 版本的 smart_rtmpd，继续解压这个文件，得到目录 smart_rtmpd_win，这个目录里面有个 smart_rtmpd.exe 就是流媒体服务器的主程序。执行此文件即可，截图如下：&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191932_16102.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191932_16102.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;此过程不需要额外的配置，就是鼠标点几下，简单不简单&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;运行推流端 OBS&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;安装 OBS 并运行，添加播放素材&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_26463.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_26463.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;选择视频文件&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_27822.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_27822.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;点 OBS 主界面[设置] 按钮，填写推流信息&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_77203.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_77203.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;填写完毕，返回主界面，执行[开始直播]&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_81356.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_81356.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;推流成功！&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;margin: 10px auto; padding: 0px;&quot;&gt;运行拉流端 VLC&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;安装 VLC 并运行&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_68999.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191933_68999.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;填写播放地址，播放&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;&lt;img alt=&quot;image&quot; loading=&quot;lazy&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191934_39819.png&quot; class=&quot;lazyloaded medium-zoom-image&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2026/03/20260327191934_39819.png&quot; style=&quot;margin: 0px; padding: 0px; border: none; max-width: 800px; height: auto !important; cursor: zoom-in; transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) !important;&quot;/&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;OK，整体流程完毕！是不是很简单。&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;虽然文字和图片感觉很多，其实也不过是一分钟的搞定的事情！&lt;br style=&quot;margin: 0px; padding: 0px;&quot;/&gt;Good luck!&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 27 Mar 2025 19:18:57 +0800</pubDate></item><item><title>rtmp直播服务器搭建</title><link>https://liveserver.com.cn/?id=9</link><description>&lt;p&gt;前言：1&lt;span class=&quot;&quot;&gt;公网IP&lt;/span&gt;（没有公网IP的考虑内网穿透）、2电脑一台&lt;/p&gt;&lt;p&gt;软件准备1 obs（推流）2 vlc（拉流）只进行推流的话可以不用准备vlc&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: var(--articleFontsize);letter-spacing: 0.034em;&quot;&gt;下载准备好的nginx，解压到没有中文目录的文件夹里（下载地址 点上方捐赠&lt;span style=&quot;color: #3F3F3F; font-family: Arial, 微软雅黑, 宋体, 新宋体, sans-serif; letter-spacing: normal; text-wrap: wrap; background-color: #C2ECB2;&quot;&gt;）&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-galleryid=&quot;&quot; data-imgfileid=&quot;100000002&quot; data-ratio=&quot;0.6898148148148148&quot; data-s=&quot;300,640&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143656_78950.png&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;height: auto !important; visibility: visible !important; width: 677px !important;&quot; data-original-style=&quot;height: auto !important;&quot; data-index=&quot;0&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143656_78950.png&quot; _width=&quot;677px&quot; __sec_open_place_holder__=&quot;true&quot; data-sec-load-status=&quot;2&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot;/&gt;&lt;/p&gt;&lt;p&gt;在蓝色框中输入cmd&amp;nbsp;回车&lt;span style=&quot;font-size: var(--articleFontsize);letter-spacing: 0.034em;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-galleryid=&quot;&quot; data-imgfileid=&quot;100000003&quot; data-ratio=&quot;0.7083333333333334&quot; data-s=&quot;300,640&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;height: auto !important; visibility: visible !important; width: 677px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143657_98472.png&quot; data-original-style=&quot;height: auto !important;&quot; data-index=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143657_98472.png&quot; _width=&quot;677px&quot; __sec_open_place_holder__=&quot;true&quot; data-sec-load-status=&quot;2&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;在弹出的窗口输入nginx&amp;nbsp;后回车 如下图&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-galleryid=&quot;&quot; data-imgfileid=&quot;100000004&quot; data-ratio=&quot;0.5185185185185185&quot; data-s=&quot;300,640&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;height: auto !important; visibility: visible !important; width: 677px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_24636.png&quot; data-original-style=&quot;height: auto !important;&quot; data-index=&quot;2&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_24636.png&quot; _width=&quot;677px&quot; __sec_open_place_holder__=&quot;true&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;此时你已搭建完成直播服务器&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;下面开始让我们去配置obs 进行推流&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;打开安装好的obs 点击设置&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-galleryid=&quot;&quot; data-imgfileid=&quot;100000005&quot; data-ratio=&quot;1.2371134020618557&quot; data-s=&quot;300,640&quot; data-type=&quot;png&quot; data-w=&quot;485&quot; style=&quot;height: auto !important; visibility: visible !important; width: 485px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_64788.png&quot; data-original-style=&quot;height: auto !important;&quot; data-index=&quot;3&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_64788.png&quot; _width=&quot;485px&quot; __sec_open_place_holder__=&quot;true&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-galleryid=&quot;&quot; data-imgfileid=&quot;100000006&quot; data-ratio=&quot;0.7759259259259259&quot; data-s=&quot;300,640&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;height: auto !important; visibility: visible !important; width: 677px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_44870.png&quot; data-original-style=&quot;height: auto !important;&quot; data-index=&quot;4&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143658_44870.png&quot; _width=&quot;677px&quot; __sec_open_place_holder__=&quot;true&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;在直播选项&amp;gt;服务器里填入 rtmp://127.0.0.1:1935/live&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;推流码填入你喜欢的英文或拼音（最好不要超过5个，不然不好记）&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;然后点击确定 回到之前界面点击开始直播即可。&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;截至目前为止&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;你已成功搭建直播服务器，并在自己的服务器上开启了一场直播。&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;下面要做的就是把这场直播向网络公开，让其他人能看到这场直播&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;公网IP的公开方式为在路由器后台设置&lt;span class=&quot;&quot;&gt;端口映射&lt;/span&gt;，映射到运行nginx的设备上，详情可自行百度&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;设置完成端口映射后给需要观看的人发送地址即可&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center;&quot;&gt;地址&amp;nbsp; rtmp://公网IP:1935/live/推流码&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; margin-bottom: 0px;&quot;&gt;观看人借助vlc进行观看&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 10 Nov 2024 14:35:35 +0800</pubDate></item><item><title>windows下使用Nginx搭建Rtmp流媒体服务器，实现视频直播功能</title><link>https://liveserver.com.cn/?id=8</link><description>&lt;h2 data-id=&quot;heading-0&quot; style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;一、环境介绍&lt;/strong&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;操作系统&lt;/strong&gt;：win10 64位系统&lt;/p&gt;&lt;h2 data-id=&quot;heading-1&quot; style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;二、流媒体服务器介绍&lt;/strong&gt;&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;流媒体服务器的主要功能是以流式协议（RTP/RTSP、MMS、RTMP等）将视频文件传输到客户端，供用户在线观看；也可从视频采集、压缩软件接收实时视频流，再以流式协议直播给客户端。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;nginx服务器是开源的高性能的http服务器，反向代理服务器，在国内许多公司应用比较多。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;rtmp是实时消息传输协议（real time messaging protocol），主要应用在流媒体传输，实时音视频通信的协议。&lt;/p&gt;&lt;h3 data-id=&quot;heading-2&quot; style=&quot;text-align: left;&quot;&gt;三、搭建流媒体服务器&lt;/h3&gt;&lt;h3 data-id=&quot;heading-3&quot; style=&quot;text-align: left;&quot;&gt;3.1 下载Nginx&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Nginx (engine x) 是一个高性能的HTTP和反向代理web服务器，同时也提供了IMAP/POP3/SMTP服务。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;Nginx 下载地址：&lt;a href=&quot;https://link.juejin.cn?target=http%3A%2F%2Fnginx-win.ecsds.eu%2Fdownload%2F&quot; target=&quot;_blank&quot; title=&quot;http://nginx-win.ecsds.eu/download/&quot; ref=&quot;nofollow noopener noreferrer&quot;&gt;nginx-win.ecsds.eu/download/&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143044173122024449624.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;我这里在电脑D盘建立了一个Nginx文件夹，然后将下载的nginx 1.7.11.3 Gryphon.zip文件解压在Nginx文件夹下（我这里解压，选择的是解压到当前目录）。&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143045173122024524534.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h3 data-id=&quot;heading-4&quot; style=&quot;text-align: left;&quot;&gt;3.2 配置&lt;strong&gt;nginx.conf&lt;/strong&gt;文件&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;接下来在&lt;strong&gt;D:\Nginx\conf&lt;/strong&gt; 目录下新建一个&lt;strong&gt;nginx.conf&lt;/strong&gt;文件。&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143045173122024596377.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;写入以下代码：&lt;/p&gt;&lt;pre&gt;ini代码解读复制代码&amp;nbsp;&amp;nbsp;worker_processes&amp;nbsp;&amp;nbsp;1;&amp;nbsp;&amp;nbsp;&amp;nbsp;#Nginx进程数，建议设置为等于CPU总核数&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;events&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;worker_connections&amp;nbsp;&amp;nbsp;1024;&amp;nbsp;&amp;nbsp;#工作模式与连接数上限&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rtmp_auto_push&amp;nbsp;on;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#RTMP服务&amp;nbsp;&amp;nbsp;rtmp&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;server&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;listen&amp;nbsp;8888;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;application&amp;nbsp;live&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;live&amp;nbsp;on;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#HTTP服务&amp;nbsp;&amp;nbsp;http&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mime.types;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;default_type&amp;nbsp;&amp;nbsp;application/octet-stream;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sendfile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;on;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;keepalive_timeout&amp;nbsp;&amp;nbsp;65;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;server&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;listen&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;8099;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;server_name&amp;nbsp;&amp;nbsp;localhost;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;/&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;root&amp;nbsp;&amp;nbsp;&amp;nbsp;html;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;index&amp;nbsp;&amp;nbsp;index.html&amp;nbsp;index.htm;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;/live_hls{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;types{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#m3u8&amp;nbsp;type设置&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;application/vnd.apple.mpegurl&amp;nbsp;m3u8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#ts分片文件设置&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;video/mp2t&amp;nbsp;ts;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#指向访问m3u8文件目录&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alias&amp;nbsp;./m3u8File;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;add_header&amp;nbsp;Cache-Control&amp;nbsp;no-cache;&amp;nbsp;#禁止缓存&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;/control{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rtmp_control&amp;nbsp;all;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;/stat{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rtmp_stat&amp;nbsp;all;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rtmp_stat_stylesheet&amp;nbsp;stat.xsl;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;/stat.xsl{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;root&amp;nbsp;./nginx-rtmp-module-master;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;redirect&amp;nbsp;server&amp;nbsp;error&amp;nbsp;pages&amp;nbsp;to&amp;nbsp;the&amp;nbsp;static&amp;nbsp;page&amp;nbsp;/50x.html&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error_page&amp;nbsp;&amp;nbsp;&amp;nbsp;500&amp;nbsp;502&amp;nbsp;503&amp;nbsp;504&amp;nbsp;&amp;nbsp;/50x.html;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location&amp;nbsp;=&amp;nbsp;/50x.html&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;root&amp;nbsp;&amp;nbsp;&amp;nbsp;html;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;}&lt;/pre&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;需要注意的地方：上面配置文件里，有两个地方设置了端口号，一个是HTTP(8099)，一个是RTMP(8888)，这两个端口号必须是系统当前没有使用的，如果被占用，下面3.4的步骤就会报错。&lt;/strong&gt;&lt;/p&gt;&lt;h3 data-id=&quot;heading-5&quot; style=&quot;text-align: left;&quot;&gt;3.3 建立工作目录&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;在D:\Nginx 目录下新建三个目录：m3u8File、rec、vod 。&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143046173122024647188.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h3 data-id=&quot;heading-6&quot; style=&quot;text-align: left;&quot;&gt;3.4 检查配置是否正确&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;打开windows命令行终端，进入到D:\Nginx 目录下，运行&lt;strong&gt;nginx.exe -t&lt;/strong&gt; 。 出现以下结果，就表示成功。&lt;/p&gt;&lt;pre&gt;bash代码解读复制代码&amp;nbsp;Microsoft&amp;nbsp;Windows&amp;nbsp;[版本&amp;nbsp;10.0.18363.778]&amp;nbsp;&amp;nbsp;(c)&amp;nbsp;2019&amp;nbsp;Microsoft&amp;nbsp;Corporation。保留所有权利。&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D:\Nginx&amp;gt;nginx.exe&amp;nbsp;-t&amp;nbsp;&amp;nbsp;nginx:&amp;nbsp;the&amp;nbsp;configuration&amp;nbsp;file&amp;nbsp;D:\Nginx/conf/nginx.conf&amp;nbsp;syntax&amp;nbsp;is&amp;nbsp;ok&amp;nbsp;&amp;nbsp;nginx:&amp;nbsp;configuration&amp;nbsp;file&amp;nbsp;D:\Nginx/conf/nginx.conf&amp;nbsp;test&amp;nbsp;is&amp;nbsp;successful&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;D:\Nginx&amp;gt;&lt;/pre&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143047173122024782575.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h3 data-id=&quot;heading-7&quot; style=&quot;text-align: left;&quot;&gt;3.5 启动Nginx服务器&lt;/h3&gt;&lt;p style=&quot;text-align: left;&quot;&gt;在命令行，继续运行启动命令。&lt;/p&gt;&lt;pre&gt;sql代码解读复制代码&amp;nbsp;start&amp;nbsp;nginx&lt;/pre&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143047173122024797404.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;启动之后，用户可以通过命令nginx.exe -s stop或者nginx.exe -s quit停止nginx。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;接下来，打开浏览器，输入地址：&lt;a href=&quot;https://link.juejin.cn?target=http%3A%2F%2F127.0.0.1%3A8099%2F&quot; target=&quot;_blank&quot; title=&quot;http://127.0.0.1:8099/&quot; ref=&quot;nofollow noopener noreferrer&quot;&gt;http://127.0.0.1:8099/&lt;/a&gt; ，查看nginx启动状态，看到下面页面就表示启动成功了,。&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143048173122024821609.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 data-id=&quot;heading-8&quot; style=&quot;text-align: left;&quot;&gt;四、推流、拉流测试&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;在Nginx的配置文件里，设置RTMP服务器的端口号是8888，下面使用编写的推流软件进行测试。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;因为是在本地测试，我这里就使用本地IP地址：127.0.0.1&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;根据上面的配置说明，那么本机Nginx服务器的推流和拉流的地址就是：&lt;strong&gt;rtmp://127.0.0.1:8888/live/video01&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;上面地址里“live是在配置文件里设置的，“video0”是随意写，是服务器创建的临时目录。&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143050173122025022950.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;接下来打开Vlc软件，测试下拉流效果。 拉流地址和推流地址是一样的：&lt;strong&gt;rtmp://127.0.0.1:8888/live/video01&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143051173122025181960.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110143051173122025176140.jpeg&quot; alt=&quot;img&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;至此：推流服务器搭建完毕。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 05 Nov 2024 20:05:20 +0800</pubDate></item><item><title>搭建基于nginx的rtmp直播服务器</title><link>https://liveserver.com.cn/?id=7</link><description>&lt;h1 id=&quot;视频教程&quot; style=&quot;margin: 0px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 22px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;视频教程&lt;/h1&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;a href=&quot;https://www.bilibili.com/video/av78957794&quot; style=&quot;background-color: transparent; color: rgb(80, 81, 96); text-decoration-line: none; outline: 0px; border-bottom: 1px solid rgb(153, 153, 153); overflow-wrap: break-word;&quot;&gt;https://www.bilibili.com/video/av78957794&lt;/a&gt;&lt;br/&gt;OBS录屏推流教程：&lt;a href=&quot;https://www.bilibili.com/video/av78808759&quot; style=&quot;background-color: transparent; color: rgb(80, 81, 96); text-decoration-line: none; outline: 0px; border-bottom: 1px solid rgb(153, 153, 153); overflow-wrap: break-word;&quot;&gt;https://www.bilibili.com/video/av78808759&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;搭建nginx + nginx-rtmp-module&lt;br/&gt;演示的系统使用CentOS-7-x86_64-Everything-1611.iso&lt;/p&gt;&lt;h2 id=&quot;关闭防火墙&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;关闭防火墙&lt;/h2&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;请根据实际情况调整防火墙。为了演示方便，博主关闭防火墙。&lt;br/&gt;临时停止&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;systemctl&amp;nbsp;stop&amp;nbsp;firewalld&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;禁用&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;systemctl&amp;nbsp;disable&amp;nbsp;firewalld&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;查看状态&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;systemctl&amp;nbsp;status&amp;nbsp;firewalld&lt;/pre&gt;&lt;h2 id=&quot;安装wget&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装wget&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;wget&lt;/pre&gt;&lt;h2 id=&quot;安装 gcc gcc-c++&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装 gcc gcc-c++&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;gcc&amp;nbsp;gcc-c++&lt;/pre&gt;&lt;h2 id=&quot;安装PCRE库&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装PCRE库&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;cd&amp;nbsp;/usr/local/
wget&amp;nbsp;http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gztar&amp;nbsp;-zxvf&amp;nbsp;pcre-8.33.tar.gz
cd&amp;nbsp;pcre-8.33
./configure
make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;h2 id=&quot;安装openssl&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装openssl&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;cd&amp;nbsp;/usr/local/&amp;nbsp;
wget&amp;nbsp;http://www.openssl.org/source/openssl-1.0.1j.tar.gz&amp;nbsp;tar&amp;nbsp;-zxvf&amp;nbsp;openssl-1.0.1j.tar.gz&amp;nbsp;
cd&amp;nbsp;openssl-1.0.1j
./config
make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://pic.tomhuang2000.com/images/2019/12/12/nginxrtmp2.jpg&quot; alt=&quot;nginxrtmp2.jpg&quot; title=&quot;nginxrtmp2.jpg&quot; style=&quot;border: 0px; display: block; max-width: 100%; height: auto; cursor: zoom-in; box-sizing: border-box; padding: 5px; margin: 0px auto;&quot;/&gt;&lt;br/&gt;如果提示You need Perl 5，则输入下面这个命令。&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;Perl&amp;nbsp;5&lt;/pre&gt;&lt;h2 id=&quot;安装zlib&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装zlib&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;cd&amp;nbsp;/usr/local/
wget&amp;nbsp;http://zlib.net/zlib-1.2.11.tar.gztar&amp;nbsp;-zxvf&amp;nbsp;zlib-1.2.11.tar.gz
./configure
make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;h2 id=&quot;git clone&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;git clone&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;cd&amp;nbsp;/usr/local/
yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;git
git&amp;nbsp;clone&amp;nbsp;https://github.com/arut/nginx-rtmp-module.git&lt;/pre&gt;&lt;h2 id=&quot;安装nginx&quot; style=&quot;margin: 20px 0px 15px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 20px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;安装nginx&lt;/h2&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;cd&amp;nbsp;/usr/local/
wget&amp;nbsp;http://nginx.org/download/nginx-1.8.0.tar.gztar&amp;nbsp;-zxvf&amp;nbsp;nginx-1.8.0.tar.gz
cd&amp;nbsp;nginx-1.8.0
./configure&amp;nbsp;--prefix=/usr/local/src/nginx&amp;nbsp;--with-http_stub_status_module&amp;nbsp;--with-http_gzip_static_module&amp;nbsp;--with-http_realip_module&amp;nbsp;--with-http_sub_module&amp;nbsp;--with-http_ssl_module&amp;nbsp;&amp;nbsp;--add-module=../nginx-rtmp-module&amp;nbsp;&amp;nbsp;--with-openssl=&amp;lt;path&amp;gt;&amp;nbsp;--with-http_ssl_module
make&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;make&amp;nbsp;install&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果提示&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;./configure:&amp;nbsp;error:&amp;nbsp;SSL&amp;nbsp;modules&amp;nbsp;require&amp;nbsp;the&amp;nbsp;OpenSSL&amp;nbsp;library.&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;执行&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;openssl&amp;nbsp;openssl-devel&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果提示&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;&amp;nbsp;./configure:&amp;nbsp;error:&amp;nbsp;the&amp;nbsp;HTTP&amp;nbsp;rewrite&amp;nbsp;module&amp;nbsp;requires&amp;nbsp;the&amp;nbsp;PCRE&amp;nbsp;library.&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;执行&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;yum&amp;nbsp;-y&amp;nbsp;install&amp;nbsp;pcre-devel&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我下载并安装了pcre-8.33.tar.gz 和 openssl-1.0.1j.tar.gz ，并没有出现上面的错误&lt;/p&gt;&lt;h1 id=&quot;nginx相关命令&quot; style=&quot;margin: 0px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 22px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;nginx相关命令&lt;/h1&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;启动&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;/usr/local/src/nginx/sbin/nginx&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;重启&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;/usr/local/src/nginx/sbin/nginx&amp;nbsp;–s&amp;nbsp;reload&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;启动后，打开浏览器，输入服务器ip地址，访问显示如下页面，则表示成功安装。&lt;br/&gt;&lt;img src=&quot;https://pic.tomhuang2000.com/images/2019/12/12/nginxrtmp3.jpg&quot; alt=&quot;nginxrtmp3.jpg&quot; title=&quot;nginxrtmp3.jpg&quot; style=&quot;border: 0px; display: block; max-width: 100%; height: auto; cursor: zoom-in; box-sizing: border-box; padding: 5px; margin: 0px auto;&quot;/&gt;&lt;/p&gt;&lt;h1 id=&quot;修改conf&quot; style=&quot;margin: 0px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 22px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;修改conf&lt;/h1&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://pic.tomhuang2000.com/images/2019/12/12/nginxrtmp4.jpg&quot; alt=&quot;nginxrtmp4.jpg&quot; title=&quot;nginxrtmp4.jpg&quot; style=&quot;border: 0px; display: block; max-width: 100%; height: auto; cursor: zoom-in; box-sizing: border-box; padding: 5px; margin: 0px auto;&quot;/&gt;&lt;br/&gt;使用winscp前往/usr/local/src/nginx/conf/nginx.conf&lt;br/&gt;在http{前加入&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;rtmp&amp;nbsp;{
server&amp;nbsp;{
listen&amp;nbsp;1935;&amp;nbsp;#监听的端口
chunk_size&amp;nbsp;4000;
application&amp;nbsp;yuchen&amp;nbsp;{#rtmp推流请求路径&amp;nbsp;(切记路径错了会推不上流)
live&amp;nbsp;on;&amp;nbsp;#开启实时
hls&amp;nbsp;on;&amp;nbsp;#开启hls
hls_path&amp;nbsp;/usr/local/src/nginx/html/yuchen;&amp;nbsp;#rtmp推流请求路径，文件存放路径
hls_fragment&amp;nbsp;5s;&amp;nbsp;#每个TS文件包含5秒的视频内容
}
}
}&lt;/pre&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;修改完成后，使用命令重启nginx&lt;/p&gt;&lt;pre style=&quot;overflow: auto; font-size: 13px; padding: 2px 4px; margin: 0px 4px; overflow-wrap: break-word; color: rgb(85, 85, 85); background-color: rgb(238, 238, 238); border-radius: 3px; font-family: Menlo, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, Monaco, Consolas, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, monospace !important;&quot;&gt;/usr/local/src/nginx/sbin/nginx&amp;nbsp;–s&amp;nbsp;reload&lt;/pre&gt;&lt;h1 id=&quot;推拉流&quot; style=&quot;margin: 0px; padding: 0px 0px 0px 18px; line-height: 1.5; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; font-size: 22px; position: relative; color: rgb(85, 85, 85); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;推拉流&lt;/h1&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开obs推流，右下角变为绿色方块则推流成功。&lt;br/&gt;&lt;img src=&quot;https://pic.tomhuang2000.com/images/2019/12/12/nginxrtmp5.jpg&quot; alt=&quot;nginxrtmp5.jpg&quot; title=&quot;nginxrtmp5.jpg&quot; style=&quot;border: 0px; display: block; max-width: 100%; height: auto; cursor: zoom-in; box-sizing: border-box; padding: 5px; margin: 0px auto;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; margin-bottom: 20px; color: rgb(85, 85, 85); font-family: system, -apple-system, BlinkMacSystemFont, &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Microsoft YaHei&amp;quot;, Lato, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;在potplayer中播放http的m3u8地址。或者是使用支持rtmp协议的播放器拉流。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 05 Nov 2024 20:01:24 +0800</pubDate></item><item><title>构建您自己的视频流服务器：综合指南</title><link>https://liveserver.com.cn/?id=6</link><description>&lt;p style=&quot;text-align:center&quot;&gt;&lt;img src=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/wpstream-featured-image-streaming-server-e1689605531915.webp&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;在数字内容主导的时代，视频流迅速成为观看电影、收看我们喜爱的电视节目、体验现场活动等的标准方式。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;流媒体背后的技术越来越容易获得，这不仅为最终消费者而且为内容创作者和企业打开了无限机遇的大门。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;但你有没有停下来思考过你首选的流媒体平台背后的复杂机制？有没有想过视频是如何从服务器上的一个普通文件转变为屏幕上引人入胜的电影的？&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这些令人着迷的问题的答案是&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;视频流服务器&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;在本指南中，我们将深入探讨复杂而又有趣的视频流服务器世界。我们将阐明视频流服务器到底是什么、为什么你应该（不？）构建自己的服务器以及如何从头开始设置服务器。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;对于那些对前景感到畏惧，或者只是在寻找更简单的替代方案的人，我们将讨论&lt;/span&gt;&lt;a href=&quot;https://wpstream.net/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;WpStream&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&amp;nbsp;- 一个多功能的&lt;/span&gt;&lt;a href=&quot;https://wordpress.org/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;WordPress&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;插件，无论技术实力如何，每个人都可以进行实时流媒体和视频共享。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;WpStream 不仅直观，而且能够适应更复杂的设置，让您完全控制和拥有您的内容，让您运行自己的流媒体服务的梦想成为现实。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;那么，事不宜迟，我们开始吧！&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;什么是视频流服务器？&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;视频流服务器是一种特殊类型的网络服务器，具有实时流协议 (RTSP) 功能，旨在通过互联网向全球观众传输实时或点播视频内容。&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;box-sizing: border-box; color: rgb(34, 20, 102); text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;figure style=&quot;margin: 0px auto; box-sizing: border-box; clear: both; display: table;&quot;&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img fetchpriority=&quot;high&quot; decoding=&quot;async&quot; width=&quot;789&quot; height=&quot;526&quot; src=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup.webp&quot; alt=&quot;配备摄像机的视频流设置。&quot; data-lazy-srcset=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup.webp 789w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup-300x200.webp 300w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup-768x512.webp 768w&quot; data-lazy-sizes=&quot;(max-width: 789px) 100vw, 789px&quot; data-lazy-src=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup.webp&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 789px) 100vw, 789px&quot; srcset=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup.webp 789w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup-300x200.webp 300w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/video-streaming-setup-768x512.webp 768w&quot; style=&quot;box-sizing: border-box; height: auto; max-width: 100%; border: none; vertical-align: bottom; border-radius: 0px; box-shadow: none;&quot;/&gt;&lt;/p&gt;&lt;figcaption style=&quot;box-sizing: border-box; color: rgb(51, 51, 51); line-height: 1.4; font-style: italic; margin-bottom: 1em; margin-top: 0.5em; caption-side: bottom; display: table-caption;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;来源：&lt;/em&gt;&lt;a href=&quot;https://www.pexels.com/photo/black-camera-recorder-66134/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Pexels&lt;/a&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;a href=&quot;https://wpstream.net/live-streaming-platform-free/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;这些强大的流媒体服务器是您最喜欢的免费流媒体平台&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;（如&lt;/span&gt;&lt;a href=&quot;https://www.youtube.com/live&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;YouTube Live&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;、&lt;/span&gt;&lt;a href=&quot;https://www.twitch.tv/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Twitch&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;和&lt;/span&gt;&lt;a href=&quot;https://www.facebook.com/watch/live/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Facebook Live&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&amp;nbsp;）以及专业流媒体服务（如 WpStream）的核心&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;。它们构成了核心骨干，确保将引人入胜的视频内容无缝传送到您的设备。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;当谈到通过互联网传播视频内容时，你基本上有三个可行的选择：&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;1. 建立自己的流媒体服务器&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;此选项可让您完全控制流媒体的设置和交付，定制每个方面以满足您的特定需求。但是，此路线需要牢固的技术掌握，因为您需要自己处理设置服务器的复杂细节。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这不仅仅是购买硬件，还包括安装服务器软件、配置网络设置、确保足够的带宽以及管理持续的维护和故障排除。这是一条可以带来巨大回报的道路，但不能掉以轻心。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;2. 利用免费的流媒体平台&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;如果设置自己的服务器的前景令人望而生畏，您可以考虑此选项。YouTube Live、Twitch 和 Facebook Live 等平台省去了繁琐的服务器设置任务，为您提供了一个随时可用的平台来流式传输内容。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;然而，尽管这些平台可能是免费的并且相对容易使用，但它们也有自己的局限性。您可能不得不放弃对直播内容、外观、货币化选项以及直播产生的数据的部分控制权。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;本质上，你是在用控制来换取便利。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;3. 使用专业的流媒体服务&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;对于那些寻求折中方案的人来说，像 WpStream 这样的专业流媒体服务可能是答案。虽然它的价格比免费平台高，但它提供了更大的灵活性和对流媒体的控制力。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这些服务设计得足够简单，任何人都可以使用，但又足够复杂，可以满足更复杂的要求。它们的优势在于可以保持对内容和数据的控制，并且已经建立了强大的基础设施来将您的流媒体传输到世界各地。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;选择最佳内容交付方法取决于您的具体需求和情况。您的选择应符合以下方面：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; margin-block: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(34, 20, 102); text-wrap-mode: wrap;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;你的技术实力。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您期望的控制级别。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您可以支配的资源。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;为了帮助您决定哪种方法最适合您，让我们更详细地探讨第一个选项——构建您自己的流媒体服务器。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;为什么要构建自己的流媒体服务器？&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;构建自己的视频流服务器的前景具有不可否认的吸引力。制定自己的解决方案可以带来许多优势，让您比传统的第三方流媒体平台更具优势，包括：&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;定制&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;构建自己的流媒体服务器的最大优势之一是它允许的自定义程度。您可以对流媒体流程的每个方面进行精细控制，从调整视频编码设置到确定服务器容量等等。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您可以对每个方面进行微调，以完美满足您的特定需求，从而实现真正个性化的流媒体体验。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;所有权和控制权&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;拥有自己的服务器后，您的所有数据都可以安全地保存在内部。这对于处理敏感内容的公司或重视完全控制用户数据的公司来说是一个关键因素。您不受第三方平台规则和限制的约束，可以自由地按照自己认为合适的方式进行操作。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;规模成本效益&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;对于拥有大量用户群的组织来说，从长远来看，拥有并管理自己的服务器可以更具成本效益。虽然初期投资巨大，但后续成本可能低于支付第三方服务费用，尤其是当您的用户群增长且流媒体需求不断变化时。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;品牌&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;运营自己的服务器可让您完全按照自己的意愿打造自己的平台品牌。您的视频播放器和平台可以不带任何第三方徽标或水印，提供与您的品牌形象相符的专业且统一的外观。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;然而，虽然这些引人注目的优势可以使构建自己的流媒体服务器的想法具有吸引力，但值得注意的是，某些平台（如WpStream）提供了这些好处，而不需要构建自己的解决方案的技术要求。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;WpStream 提供您自己的服务器的定制、控制、成本效益和品牌优势，同时还提供即用型、强大的流媒体平台的额外便利。&lt;/span&gt;&lt;/p&gt;&lt;h2 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;如何构建视频流服务器？&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;现在让我们看看构建您自己的视频流服务器所涉及的主要步骤，以确保流畅、可靠的视频传输。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;步骤 1：定义您的需求&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;在开始构建视频流服务器的技术之旅之前，首先明确您的具体需求和期望至关重要。成功的流媒体服务器的基础在于了解服务的精确要求。以下是您需要问自己的一些关键问题：&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; margin-block: 0px; border: 0px; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(34, 20, 102); text-wrap-mode: wrap;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;观众规模：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您预计直播的观众人数是多少？这将严重影响您服务器的规格，观众人数越多，服务器容量和带宽就越大。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;视频质量：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您所需的视频质量将决定您需要实施的编码设置。例如，高清 (HD) 和 4K 流比低分辨率流需要更多的处理能力和存储空间。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;存储&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;：您是否计划存档您的直播副本？如果是，您需要估算所需的存储空间。直播的时长和质量以及广播频率将是此计算的关键因素。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;观众位置：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您的观众遍布世界各地吗？观众的地理分布会影响服务器的位置或内容交付网络 (CDN) 的需求，以确保无论观众从何处收看，都能获得无缝的观看体验。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;访问控制：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;谁应该能够访问您的流媒体内容？您是否想限制对某些视频的访问或提供公开和私人内容的混合？这将影响您需要在服务器上实施的安全措施和访问控制。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这些注意事项将指导您完成流媒体服务器设置过程中的后续步骤。它们将决定您需要构建的基础设施，从服务器规格和网络设置到软件配置和安全措施。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;提前确定您的具体要求，以便更有效地规划并相应地制定预算，确保您的流媒体服务器从一开始就能够满足您的独特需求。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;第 2 步：设置服务器&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;构建自己的流媒体服务器并不一定意味着从头开始。得益于专注于视频流的&lt;/span&gt;&lt;a href=&quot;https://awesomeopensource.com/projects/video-streaming&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;开源项目&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;丰富的生态系统，您可以在坚实的基础上开始您的旅程。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;选择与您的基础设施、首选媒体播放器和内容传送协议相符的项目，以节省大量时间和精力。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;一个广受青睐的选择是&lt;/span&gt;&lt;a href=&quot;https://www.nginx.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Nginx&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&amp;nbsp;Web 服务器。Nginx 不仅可以在 Linux、Windows 和 macOS 等各种平台上运行，还可以与两种最常用的流媒体协议 RTMP（实时消息传递协议）和 HLS（HTTP 实时流媒体）无缝集成。它的多功能性和兼容性使其成为许多希望建立自己的流媒体服务器的人的理想起点。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;利用 Nginx Web 服务器上的强大库，您可以构建满足特定要求的流媒体服务器。这可以包括集成其他工具和功能，例如货币化选项、自定义视频播放器配置和控件、自适应比特率流媒体以获得最佳观看体验以及增强的安全功能。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;设置服务器不仅仅涉及初始安装。您需要确保服务器已正确配置以满足您的特定流媒体需求，并且您需要进行彻底的测试以确保在开始流媒体之前一切正常运行。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这个阶段至关重要；设置良好的服务器是可靠且可扩展的视频流服务的关键。&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;步骤 3：安装并配置直播软件&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;设置服务器后，选择并配置流媒体软件。该软件负责编码和广播视频内容，充当源视频和流媒体服务器之间的桥梁。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51) !important; margin-bottom: 30px !important; text-align: left;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;对于免费的开源解决方案，我们推荐&lt;/span&gt;&lt;a href=&quot;https://obsproject.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;OBS Studio&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;。凭借其全面而灵活的功能集，OBS Studio 成为流媒体最通用的工具之一。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;box-sizing: border-box; color: rgb(34, 20, 102); text-wrap-mode: wrap; background-color: rgb(255, 255, 255); text-align: left;&quot;&gt;&lt;figure style=&quot;margin: 0px auto; box-sizing: border-box; clear: both; display: table;&quot;&gt;&lt;p id=&quot;_img_parent_tmp&quot; style=&quot;text-align:center&quot;&gt;&lt;img decoding=&quot;async&quot; width=&quot;790&quot; height=&quot;651&quot; src=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot.webp&quot; alt=&quot;OBS Studio 直播软件。&quot; data-lazy-srcset=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot.webp 790w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot-300x247.webp 300w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot-768x633.webp 768w&quot; data-lazy-sizes=&quot;(max-width: 790px) 100vw, 790px&quot; data-lazy-src=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot.webp&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 790px) 100vw, 790px&quot; srcset=&quot;https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot.webp 790w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot-300x247.webp 300w, https://dei2yvdxppkas.cloudfront.net/wp-content/uploads/2023/07/obs-studio-headshot-768x633.webp 768w&quot; style=&quot;box-sizing: border-box; height: auto; max-width: 100%; border: none; vertical-align: bottom; border-radius: 0px; box-shadow: none;&quot;/&gt;&lt;/p&gt;&lt;figcaption class=&quot;wp-element-caption&quot; style=&quot;box-sizing: border-box; color: rgb(51, 51, 51); line-height: 1.4; font-style: italic; margin-bottom: 1em; margin-top: 0.5em; caption-side: bottom; display: table-caption;&quot;&gt;&lt;em style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;来源：&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://obsproject.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;OBS Studio&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/em&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;其主要特点包括：&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;wp-block-list list-paddingleft-2&quot; style=&quot;box-sizing: border-box; margin-block: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(34, 20, 102); font-family: Roboto, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;高性能视频/音频捕捉和混合：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&amp;nbsp;OBS Studio 可以实时捕捉高质量的视频和音频，确保您的流媒体提供清晰、生动的内容。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;易于配置：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;尽管功能强大，OBS Studio 仍然易于使用。它提供简单的配置选项，可让您轻松调整设置以满足您的直播的特定需求。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;丰富的制作选项：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;使用 OBS Studio，您不仅可以广播视频，还可以制作节目。该软件可让您从多个来源创建场景，为您的广播增添深度和专业性。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div aria-hidden=&quot;true&quot; class=&quot;wp-block-spacer&quot; style=&quot;box-sizing: border-box; clear: both; color: rgb(34, 20, 102); font-family: Roboto, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); height: 30px;&quot;&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;要开始使用 OBS Studio，请下载并安装与您的服务器操作系统兼容的版本。安装后，运行自动配置向导来设置初始设置。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;虽然这会给你一个坚实的起点，但不要害怕稍后调整这些设置。微调配置以满足您的特定流媒体要求是该过程的重要组成部分。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;步骤 4：设置内容分发网络 (CDN)&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;流畅、不间断的流媒体体验不仅仅是配置良好的服务器和最佳流媒体软件的产物。您的全球观众需要强大的基础设施来快速高效地提供您的内容，无论他们身在何处。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这就是内容分发网络（CDN）发挥作用的地方。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;CDN 是一个分布在世界各地的服务器网络，可以快速地将您的视频流传送给观众，无论他们身处何地，都能最大限度地减少延迟和缓冲。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;建立 CDN 需要考虑以下几个方面：&lt;/span&gt;&lt;/p&gt;&lt;ul class=&quot;wp-block-list list-paddingleft-2&quot; style=&quot;box-sizing: border-box; margin-block: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(34, 20, 102); font-family: Roboto, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;选择物理服务器或云服务器：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您需要决定是否要部署物理远程服务器或使用云服务器作为您的 CDN。必须了解，您的原始服务器选择不需要镜像您的 CDN 的远程服务器（也称为接入点 (PoP)）。最有效的解决方案将取决于您的特定需求和情况。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;选择互联网服务提供商 (ISP)：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您的 CDN 需要可靠的 ISP。这是一个重要的决定，因为 ISP 将直接影响您的流媒体服务的质量。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;路由和缓存软件：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;您还需要确定用于路由和缓存的软件。路由软件可确保您的内容传送到正确的位置，而缓存软件可将内容存储在更靠近查看者的位置以加快传送速度。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div aria-hidden=&quot;true&quot; class=&quot;wp-block-spacer&quot; style=&quot;box-sizing: border-box; clear: both; color: rgb(34, 20, 102); font-family: Roboto, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); height: 30px;&quot;&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;虽然设置自己的 CDN 可以提供广泛的控制和自定义，但这可能是一项相当复杂的任务。另一种方法是与成熟的 CDN 提供商（如&lt;/span&gt;&lt;a href=&quot;https://www.akamai.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Akamai&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;、&lt;/span&gt;&lt;a href=&quot;https://aws.amazon.com/cloudfront/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Amazon Cloudfront&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;或&lt;/span&gt;&lt;a href=&quot;https://www.cloudflare.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Cloudflare）&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;集成。这些提供商拥有广泛的全球网络和内容交付方面的专业知识，可简化流程并提供可靠的解决方案。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;步骤 5：设置媒体播放器&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;媒体播放器是拼图的最后一块。这是观众观看流媒体的工具，因此其功能和兼容性至关重要。在媒体播放器方面，您有两个主要选择：&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;wp-block-list list-paddingleft-2&quot; style=&quot;box-sizing: border-box; margin-block: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); color: rgb(34, 20, 102); font-family: Roboto, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;使用现有播放器：&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;有几种可靠的媒体播放器可供选择，其中最受欢迎的是&lt;/span&gt;&lt;a href=&quot;https://www.videolan.org/vlc/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;VLC&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;和 HTML5 视频播放器。这些平台因其与各种设备的兼容性、用户友好的界面以及对不同视频格式和流媒体协议的广泛支持而受到青睐。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;创建自定义播放器：如果您想要更好地控制和自定义播放器的功能和外观，您可以创建自己的播放器。使用&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&lt;/span&gt;&lt;a href=&quot;https://jwplayer.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;JW Player&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;或&lt;/span&gt;&lt;a href=&quot;https://videojs.com/&quot; style=&quot;box-sizing: border-box; background-color: transparent; text-decoration-line: none; color: rgb(34, 20, 102); box-shadow: none;&quot;&gt;Video.js&lt;/a&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;等框架&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;，您可以构建一个满足您特定需求的媒体播放器。这可能包括自定义控制选项、品牌元素等。&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div aria-hidden=&quot;true&quot; class=&quot;wp-block-spacer&quot; style=&quot;box-sizing: border-box; clear: both; color: rgb(34, 20, 102); font-family: Roboto, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); height: 30px;&quot;&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;此步骤中主要考虑的是兼容性。您必须确保您的播放器支持您选择的流媒体协议，并与观众可能使用的设备和浏览器兼容。在观众使用各种设备（从台式机和笔记本电脑到平板电脑和智能手机）消费内容的时代，跨平台兼容性至关重要。&lt;/span&gt;&lt;/p&gt;&lt;h2 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 2rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Drawbacks_of_building_your_own_streaming_server&quot; ez-toc-data-id=&quot;#Drawbacks_of_building_your_own_streaming_server&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;构建自己的流媒体服务器的缺点&lt;/span&gt;&lt;span class=&quot;ez-toc-section-end&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;创建自己的视频流服务器可以成为一次有益的技术之旅，提供无与伦比的控制、定制和灵活性。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;然而，这并非没有挑战。在开始构建自己的服务器之前，请考虑与使用专用的第三方流媒体平台相比的潜在缺点：&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;技术复杂性&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;构建和维护视频流服务器需要广泛的知识基础，从服务器硬件和软件到网络协议和视频编解码器。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;根据您的要求，您可能还需要具备 Web 开发技能才能将视频播放器集成到网站或应用中。相比之下，专用的第三方平台可以为您管理大部分复杂性。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;维护和保养&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;服务器需要定期维护和更新才能保持安全和正常运行。这不仅限于流媒体软件；它还扩展到服务器的操作系统及其托管的任何其他软件。解决硬件故障或软件错误可能既昂贵又耗时。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;扩展挑战&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;受众增长需要相应的服务器容量扩展。这可能涉及负载平衡和 CDN 管理等复杂任务。第三方平台通常会自动管理扩展，从而使扩展更容易、更高效。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;前期成本&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;构建自己的服务器可能需要相当多的前期成本，尤其是购买自己的硬件时。加上电力、网络带宽和可能的服务器空间租金等持续成本，财务方面就成为一个重要的考虑因素。相比之下，第三方平台通常收取可预测的月费。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;安全风险&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;使用自己的服务器，所有安全措施都由您负责。这包括保护服务器免受攻击和保护视频流本身。第三方平台通常具有强大的安全措施，并由专门的安全专家团队提供支持。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;可靠性和性能&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;通过 DIY 设置来实现第三方平台所提供的性能和可靠性（它们拥有大型、地理分布的服务器网络和冗余系统）可能具有挑战性且成本高昂。&lt;/span&gt;&lt;/p&gt;&lt;h3 class=&quot;wp-block-heading&quot; style=&quot;box-sizing: border-box; margin-block: 0.5rem 1rem; font-family: Roboto, sans-serif; font-weight: 500; line-height: 1.2; color: rgb(34, 20, 102); font-size: 1.75rem; margin: 45px 0px 15px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bolder;&quot;&gt;有限支持&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;当出现问题时，您基本上只能靠自己。如果没有专门的支持团队，排除故障和解决问题可能是一项艰巨的任务。第三方服务通常提供全面的技术支持，使问题解决更快、更轻松。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;虽然构建自己的流媒体服务器的想法最初看起来很有吸引力，但权衡这些潜在挑战与收益至关重要。&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-block: 0px 0.9rem; line-height: 1.7; font-family: Roboto, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); font-size: 18px !important; color: rgb(51, 51, 51) !important; margin-bottom: 30px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;对于许多人来说，像WpStream这样的第三方服务提供的便利性、可靠性和支持可能是更实用、更有效的解决方案。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 05 Nov 2024 19:55:17 +0800</pubDate></item><item><title>直播服务器便携版.Windows+Nginx+RTMP+HLS+Dash</title><link>https://liveserver.com.cn/?id=5</link><description>&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;该软件包从 SwampApe/nginx-rtmp-1.17.10-windows 分叉而来。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;这是什么？这是我的尝试，使在 MS Windows 上设置直播服务器变得尽可能简单。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;首先，我们需要确保所有文件都被 Windows 解锁，这样我们才能运行它们。您可以通过右键单击可执行文件并选择属性，然后选择解锁来完成此操作。但是，有一种更快、更简单的方法来解锁某个文件夹中的所有文件。单击“开始”，开始输入：“Windows Powershell”，如果出现，请右键单击它并选择：“以管理员身份运行”。在窗口中输入类似以下内容。（在此示例中，我将 zip 文件的内容放在 C:\livestream 中。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;dir C:\livestream -Recurse | Unblock-File&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;请动动脑筋，针对你解压文件的位置执行此操作。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;在运行 nginx.exe 之前，请确保您已经查看过 conf/nginx.conf 文件。您可能需要根据您的需要或愿望编辑其中的一些内容。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;每次更改配置时，您都应该使用 test-config.bat 文件查看 nginx 是否在您的配置中发现任何错误。如果没有发现错误，您可以安全地（重新）启动 Nginx。如果确实发现错误，它会向您显示错误，以便您可以轻松地更改该选项，然后再次尝试 test-config.bat。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;每次更改配置文件后，您都需要重新启动 nginx.exe。配置文件在 Nginx 启动时加载，因此如果您希望它获取您编辑的更改，则必须重新启动它。首先使用 stop-nginx.bat 文件，并通过查看任务管理器 (ctrl+alt+del) 检查它是否杀死了所有 nginx 进程。如果它没有杀死所有 nginx 进程，您必须通过右键单击它们并选择“结束进程”来手动杀死它们。现在您可以再次启动 nginx.exe，您的更改将生效。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;当您想要测试设置时，请确保正确设置了 OBS 或任何其他直播应用程序。直播 URL 应为：“rtmp://localhost/live”，直播密钥应为：“stream”&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;如果您有任何疑问，请不要来烦我。只需像其他受人尊敬的极客一样使用 Google 即可。&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;祝你好运，直播愉快！&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;markdown-heading&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; position: relative; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h1 tabindex=&quot;-1&quot; class=&quot;heading-element&quot; dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: var(--base-size-24); margin-right: 0px; margin-bottom: var(--base-size-16); margin-left: 0px; font-weight: var(--base-text-weight-semibold, 600); line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid var(--borderColor-muted, var(--color-border-muted));&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;nginx-rtmp-1.17.10-windows&lt;/span&gt;&lt;/h1&gt;&lt;a id=&quot;user-content-nginx-rtmp-11710-windows&quot; class=&quot;anchor&quot; aria-label=&quot;永久链接：nginx-rtmp-1.17.10-windows&quot; href=&quot;https://github.com/ustoopia/Live-stream-server-portable-Windows-Nginx-RTMP-HLS-Dash#nginx-rtmp-11710-windows&quot; style=&quot;box-sizing: border-box; background-color: transparent; float: left; padding-right: var(--base-size-4); margin: auto; line-height: 1; position: absolute; top: 25.2969px; left: -28px; display: flex; width: 28px; height: 28px; border-radius: var(--borderRadius-medium); opacity: 0; justify-content: center; align-items: center; transform: translateY(calc(-50% - 0.3rem)); text-underline-offset: 0.2rem;&quot;&gt;&lt;svg class=&quot;octicon octicon-link&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;snippet-clipboard-content notranslate position-relative overflow-auto&quot; style=&quot;box-sizing: border-box; display: flex; justify-content: space-between; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; position: relative !important; overflow: auto !important;&quot;&gt;&lt;pre class=&quot;notranslate&quot; style=&quot;box-sizing: border-box; font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace); font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: var(--base-size-16); overflow: auto; line-height: 1.45; color: var(--fgColor-default, var(--color-fg-default)); background-color: var(--bgColor-muted, var(--color-canvas-subtle)); border-radius: 6px;&quot;&gt;Nginx:&amp;nbsp;1.17.10
RTMP&amp;nbsp;Module:&amp;nbsp;1.2.1&lt;/pre&gt;&lt;div class=&quot;zeroclipboard-container&quot; style=&quot;box-sizing: border-box; animation: auto ease 0s 1 normal none running none;&quot;&gt;&lt;clipboard-copy aria-label=&quot;Copy&quot; class=&quot;ClipboardButton btn btn-invisible js-clipboard-copy m-2 p-0 d-flex flex-justify-center flex-items-center&quot; data-copy-feedback=&quot;Copied!&quot; data-tooltip-direction=&quot;w&quot; value=&quot;Nginx: 1.17.10
RTMP Module: 1.2.1&quot; tabindex=&quot;0&quot; role=&quot;button&quot; style=&quot;box-sizing: border-box; position: relative; font-size: 14px; font-weight: var(--base-text-weight-medium, 500); line-height: 20px; text-wrap-mode: nowrap; vertical-align: middle; cursor: pointer; user-select: none; border: 0px; border-radius: 6px; appearance: none; color: var(--fgColor-accent, var(--color-accent-fg)); box-shadow: none; transition: color 80ms cubic-bezier(0.33, 1, 0.68, 1), background-color, box-shadow, border-color; width: var(--control-small-size, 28px); height: var(--control-small-size, 28px); display: flex !important; padding: 0px !important; justify-content: center !important; align-items: center !important; margin: var(--base-size-8, 8px) !important;&quot;&gt;&lt;svg aria-hidden=&quot;true&quot; height=&quot;16&quot; viewbox=&quot;0 0 16 16&quot; version=&quot;1.1&quot; width=&quot;16&quot; data-view-component=&quot;true&quot; class=&quot;octicon octicon-copy js-clipboard-copy-icon&quot;&gt;&lt;path d=&quot;M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/clipboard-copy&gt;&lt;/div&gt;&lt;/div&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: var(--base-size-16); color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;使用的 autoconf 设置：&lt;/span&gt;&lt;/p&gt;&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255); margin-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;自动/配置&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-cc=cl&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-debug&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--prefix=&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--conf-path=conf/nginx.conf --&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;pid-path=logs/nginx.pid&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-log-path=logs/access.log&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--error-log-path=logs/error.log&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--sbin-path=nginx.exe&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-client-body-temp-path=temp/client_body_temp&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-proxy-temp-path=temp/proxy_temp&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-fastcgi-temp-path=temp/fastcgi_temp&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-scgi-temp-path=temp/scgi_temp&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--http-uwsgi-temp-path=temp/uwsgi_temp&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-cc-opt=-DFD_SETSIZE=1024&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-pcre=objs/lib/pcre-8.44&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-zlib=objs/lib/zlib-1.2.11&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-openssl=objs/lib/openssl-1.1.1d&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-openssl-opt=no-asm&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_ssl_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_flv_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_geoip_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_gzip_static_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_mp4_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_secure_link_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_slice_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-http_v2_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-mail&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-mail_ssl_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-stream&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--with-stream_ssl_module&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box;&quot;/&gt;&lt;span style=&quot;box-sizing: border-box; vertical-align: inherit;&quot;&gt;--add-module=nginx-rtmp-module \&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 05 Nov 2024 19:53:38 +0800</pubDate></item><item><title>直播服务器 – 如何构建一个，你应该这样做吗？</title><link>https://liveserver.com.cn/?id=4</link><description>&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;采用 DIY 方式进行直播，设置自己的直播服务器和直播流程，听起来可能是一种简单的直播方式。一切都在公司内部按照自己的方式完成，这个想法非常有吸引力。此外，你还可以节省私人视频流服务的费用。对吧？&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;错了。遗憾的是，推出自己的直播流媒体服务器有几个严重的缺点。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;这些缺点中的许多都是流式传输视频时出现的问题所特有的。例如，熟悉标准 Web 内容的系统管理员可能不具备处理流式传输直播内容的常见挑战和要求的能力。构建直播服务器并对其进行支持可能需要不同的技能组合。&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;想象一下，设置和维护自己的流媒体服务器就像从头开始做晚餐。你必须列一个清单，去商店买所有的食材。然后你回到家，把所有东西切碎，按照食谱做，希望它能成功，味道很好。这是一种令人满意的感觉，但它需要大量的时间和精力。此外，搞砸事情的可能性总是很高。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;另一方面，使用实时视频流平台或专用媒体流服务器就像从杂货店购买半熟餐食套件。媒体流服务器软件使视频流过程更简单。想象一下在繁忙的工作日晚上准备同样健康的家常饭菜，但只用四分之一的时间和更少的努力。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;那么，餐食包和直播平台有什么共同点呢？它们都为你处理一些工作，让你专注于更重要的工作。对于主播来说，那就是制作引人入胜的视频内容，无论是点播视频还是直播视频。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;如果您仍然想知道需要什么，我们将向您介绍如何&amp;nbsp;以及为什么要构建自己的视频流服务器。然后，我们将重点介绍创建和运营自己的直播流解决方案的一些风险和陷阱，并提供自托管视频的替代方案。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;让我们开始吧。&lt;/p&gt;&lt;h2 data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;目录&lt;/h2&gt;&lt;ul data-pm-slice=&quot;3 3 []&quot; style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;什么是视频流服务器？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;谁需要视频流服务器？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;如何构建自己的视频服务器&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;为什么要考虑DIY直播服务器？&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;运营DIY 直播服务器的挑战&lt;/p&gt;&lt;/li&gt;&lt;ul style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;延迟&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;缓冲&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;缺乏冗余&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;规模的限制&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;安全漏洞&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;技术债务&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;无技术支持&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;探索自托管的替代方案&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;为什么选择 Dacast？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;常见问题解答&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;text-align: left;&quot;&gt;结论&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;什么是视频流服务器？&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;figure id=&quot;attachment_334195&quot; aria-describedby=&quot;caption-attachment-334195&quot;&gt;&lt;picture&gt;&lt;source srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193944_82383.jpeg.webp 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-300x225.jpg.webp 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-768x576.jpg.webp 768w&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; type=&quot;image/webp&quot; style=&quot;box-sizing: border-box; object-fit: cover; object-position: center center;&quot;/&gt;&lt;p style=&quot;text-align:center&quot;&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193944_82383.jpeg&quot; decoding=&quot;async&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193944_82383.jpeg&quot; alt=&quot;&quot; width=&quot;1024&quot; height=&quot;768&quot; data-srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193944_82383.jpeg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-300x225.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-768x576.jpg 768w&quot; data-sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; data-eio=&quot;p&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193944_82383.jpeg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-300x225.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/video-server-768x576.jpg 768w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;/p&gt;&lt;/picture&gt;&lt;figcaption id=&quot;caption-attachment-334195&quot;&gt;使用视频服务器存储点播内容或作为直播流媒体服务器&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;视频流服务器就像广播公司和观众之间的中间人。&amp;nbsp;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;视频流服务器是一种具有内置 RTSP 功能的网络服务器，旨在为支持互联网的设备提供实时或点播视频。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;使用视频流软件，必须对&amp;nbsp;原始视频进行编码并转换为数据格式。然后，必须将信息作为数据流从原始服务器发送到观看者的计算机。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;使用基于云的服务器流媒体，观看者无需将整个视频文件存储在计算机硬盘上。相反，云服务器会传输数据，因为他们可以在文件播放过程中流式传输和观看视频。&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;谁需要视频流服务器？&amp;nbsp;&lt;/h2&gt;&lt;p data-pm-slice=&quot;1 1 []&quot; style=&quot;text-align: left;&quot;&gt;任何想要在线分享视频并允许最终用户观看这些视频的人都需要流媒体服务器。流媒体服务器是通过互联网直播或点播视频所必需的。&lt;/p&gt;&lt;p style=&quot;text-align: left;&quot;&gt;您可以自行搭建视频流服务器，使用第三方服务器，或与提供服务器和其他工具访问权限的视频托管平台合作。也就是说，流媒体服务器的配置会根据其用途而有所不同。例如，直播流媒体服务器的要求与点播流媒体服务器的要求不同。&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;如何构建自己的视频服务器&lt;/h2&gt;&lt;p style=&quot;text-align: left;&quot;&gt;&lt;figure id=&quot;attachment_77917&quot; aria-describedby=&quot;caption-attachment-77917&quot;&gt;&lt;p id=&quot;_img_parent_tmp&quot; style=&quot;text-align:center&quot;&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_56727.&quot; decoding=&quot;async&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_56727.&quot; alt=&quot;如何搭建直播服务器&quot; width=&quot;1020&quot; height=&quot;574&quot; data-srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_56727. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server-768x432.jpeg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server-300x169.jpeg 300w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server.jpeg 1365w&quot; data-sizes=&quot;(max-width: 1020px) 100vw, 1020px&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1020px) 100vw, 1020px&quot; srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_56727. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server-768x432.jpeg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server-300x169.jpeg 300w, https://prod-images.dacast.com/wp-content/uploads/2021/05/how-to-build-a-live-streaming-server.jpeg 1365w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;/p&gt;&lt;figcaption id=&quot;caption-attachment-77917&quot;&gt;利用正确的在线视频托管平台技术，可以构建您自己的实时视频流服务器。&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;创建自己的视频流服务器需要您使用其他操作系统来满足您的流式传输需求。创建自己的视频服务器并不意味着您无需使用其他人的程序，而是意味着您无需专门为视频托管付费。&lt;/p&gt;&lt;p&gt;我们将为您提供构建直播服务器所需的技术知识和基本信息。您需要技术知识和故障排除技能来构建和维护自己的服务器。但是，您应该记住，创建和使用自己的直播服务器（而不是使用通过专业流媒体解决方案托管的服务器）存在一些缺点。&lt;/p&gt;&lt;p&gt;让我们快速了解如何构建自己的实时流视频服务器。&lt;/p&gt;&lt;h3 data-pm-slice=&quot;1 1 []&quot;&gt;1. 明确需求&lt;/h3&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;在学习如何构建直播服务器之前，了解您对直播服务器的要求非常重要。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;你的观众有多少？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;流媒体质量有多重要？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;您使用的是 Windows、Linux（Ubuntu）还是 Mac OS？您的操作系统要求是什么？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;谁可以访问视频流？&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;您需要保存视频流的副本吗？&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;了解这些问题的答案将决定接下来的具体步骤。例如，在 Windows 上设置流媒体服务器的步骤与在 Linux 上设置直播流媒体服务器的步骤不同。了解这些细节将帮助您学习如何构建和运行自己的直播流媒体服务器。&lt;/p&gt;&lt;p&gt;一旦你清楚了所有这些问题的答案，就该学习如何构建你的视频流服务器了。&lt;/p&gt;&lt;h3&gt;2. 选择一个开源项目&lt;/h3&gt;&lt;p&gt;既然许多顶级开源项目都是免费的，为什么还要花费时间和资源呢？要构建服务器，您需要访问预先存在的代码库。&lt;/p&gt;&lt;p&gt;选择支持您首选的媒体播放器和传输协议的开源项目。当有开源软件帮助您构建自己的视频服务器时，您无需创建自己的代码。开源软件是免费的，因此您也不必为此花费很多钱。&amp;nbsp;&lt;/p&gt;&lt;p&gt;Nginx Web 服务器是一种流行且经过验证的选择，它可以在 Linux、Windows和 Mac OS 上运行。Nginx Web 服务器还可通过 Nginx-RTMP 模块轻松与 HLS 和 RTMP 集成。需要复习的是，HLS 和 RTMP是两种常见的视频流协议。&lt;/p&gt;&lt;p&gt;然后，您可以使用 Nginx Web 服务器上的库来构建一个专门适合您的视频流需求的实时流服务器。&amp;nbsp;&lt;/p&gt;&lt;p&gt;这使您可以将许多工具和功能集成到您的视频流服务器中。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;安全工具&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;盈利工具&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;视频控制（快进、快退等）&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;自定义视频播放器配置以匹配您的品牌&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;自适应比特率流媒体&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;这些只是您可以使用 Nginx Web 服务器上的库功能进行的一些自定义。&lt;/p&gt;&lt;h3 data-pm-slice=&quot;1 1 []&quot;&gt;3. 下载 OBS Studio&lt;/h3&gt;&lt;p&gt;OBS&amp;nbsp;Studio 是一款出色的媒体服务器软件资源。服务器准备就绪后，您就可以设置直播软件了。OBS&amp;nbsp;Studio是一款免费的开源直播服务器软件，您可以将其用于编码和其他直播功能。&lt;/p&gt;&lt;p&gt;下载的 OBS Studio 的正确版本取决于您的操作系统。选择正确的操作系统后，您应该运行自动配置向导。此向导将测试您的系统并相应地调整您的设置。&lt;/p&gt;&lt;p&gt;要开始您的视频流服务，您需要您的流密钥。获得流密钥后，转到“媒体”选项并单击“打开网络流”。现在输入您的流密钥。Steam 密钥是专门为查看任何特定流而生成的代码。&lt;/p&gt;&lt;p&gt;许多开发人员建议使用OBS Studio与您的 DIY 服务器到服务器一起运行，以确保一切正常运行。&lt;/p&gt;&lt;h3&gt;4.创建 CDN&lt;/h3&gt;&lt;p&gt;列表中的下一个项目是内容分发网络。CDN 解决了延迟问题。在广播中，延迟是指直播或点播视频的延迟。换句话说，强大的视频流 CDN对于向远近观众提供高质量的直播至关重要。&lt;/p&gt;&lt;p&gt;要为您的视频流服务器构建自己的CDN&amp;nbsp;，您必须首先决定是通过云还是物理远程服务器来推送您的内容。物理服务器通常更可靠，但云流服务器可能更现实，这取决于您的可用资源。&lt;/p&gt;&lt;p&gt;一旦你确定了云与物理的选择，你就需要选择 ISP、缓存软件和路由技术。然后，你将安排原始服务器和 PoP 的位置。构建可靠的 CDN 网络对于视频流服务器的运行至关重要。&lt;/p&gt;&lt;p&gt;我们建议下载Varnish，这是一个 CDN 构建工具，可帮助将所有内容整合在一起。&lt;/p&gt;&lt;p&gt;或者，您可以选择付费 CDN，例如 Cloudflare。它可以帮助您获得广泛的全球覆盖范围，从而确保您的内容以最小的延迟到达观众。您的 CDN 服务器离观众越近，延迟就越好。因此，请确保您选择的 CDN 在您的观众所在的任何地方都有服务器。&amp;nbsp;&lt;/p&gt;&lt;h2 data-pm-slice=&quot;1 1 []&quot;&gt;为什么要考虑DIY直播服务器？&lt;/h2&gt;&lt;p&gt;&lt;figure id=&quot;attachment_334200&quot; aria-describedby=&quot;caption-attachment-334200&quot;&gt;&lt;picture&gt;&lt;source srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_94116.jpeg.webp 1092w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-300x152.jpg.webp 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-1024x518.jpg.webp 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-768x388.jpg.webp 768w&quot; sizes=&quot;(max-width: 1092px) 100vw, 1092px&quot; type=&quot;image/webp&quot; style=&quot;box-sizing: border-box; object-fit: cover; object-position: center center;&quot;/&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_94116.jpeg&quot; decoding=&quot;async&quot; class=&quot;size-full wp-image-334200 entered litespeed-loaded&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_94116.jpeg&quot; alt=&quot;&quot; width=&quot;1092&quot; height=&quot;552&quot; data-srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_94116.jpeg 1092w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-300x152.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-1024x518.jpg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-768x388.jpg 768w&quot; data-sizes=&quot;(max-width: 1092px) 100vw, 1092px&quot; data-eio=&quot;p&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1092px) 100vw, 1092px&quot; srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193949_94116.jpeg 1092w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-300x152.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-1024x518.jpg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/DIY-Live-Streaming-Server-768x388.jpg 768w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;/picture&gt;&lt;figcaption id=&quot;caption-attachment-334200&quot;&gt;使用您自己的流媒体服务器和流媒体软件完全自定义视频质量&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;DIY 直播设置可以完全控制您的直播设置，从直播协议到服务器硬件资源的选择。&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 3 []&quot;&gt;现在，了解了如何构建自己的视频流服务器，您可能想知道是否有任何令人信服的理由选择 DIY 路线。以下是一些：&amp;nbsp;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;完全控制您的设置：DIY 直播服务器让您完全控制直播基础设施的各个方面。从硬件和软件选择到配置和自定义，您可以根据自己的特定需求量身定制一切。这种控制级别对于精通技术的个人或组织尤其有吸引力，因为他们有现成的解决方案可能无法满足的独特需求。&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;节省成本：对于某些人来说，构建直播服务器可能是一种经济有效的解决方案，特别是如果他们已经拥有一些必要的硬件和技术专长。通过避免与专业流媒体服务相关的订阅费，您可以减少长期开支。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;培养技术专长：设置和管理自己的视频流服务器可以成为一种极好的学习体验。具有技术天赋的流媒体可能会喜欢构建自己的基础设施并深入了解直播背后的技术的挑战。它将为您提供网络、服务器管理和流媒体技术方面的宝贵实践知识，这对个人成长或职业发展大有裨益。&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;流媒体小众内容：如果您的内容面向非常特定的小众受众，那么构建自己的流媒体服务器可能就足以满足您的需求。例如，拥有少量忠实粉丝的当地观鸟俱乐部可能不需要专业平台提供的功能和资源。此外，如果您需要通常不具备的非常具体的功能，DIY 直播服务器可让您完全按照自己的设想实现它们。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;隐私和安全：DIY 方法可以提高隐私性并更好地控制您的数据。您可以实施自己的安全措施，并确保敏感信息按照您的标准处理，这对于某些关注数据隐私的组织和个人来说至关重要。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;h2 data-pm-slice=&quot;1 1 []&quot;&gt;运营 DIY 直播服务器的挑战&lt;/h2&gt;&lt;p&gt;&lt;figure id=&quot;attachment_71278&quot; aria-describedby=&quot;caption-attachment-71278&quot;&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_68834.&quot; decoding=&quot;async&quot; class=&quot;size-full wp-image-71278 entered litespeed-loaded&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_68834.&quot; alt=&quot;直播服务器托管&quot; width=&quot;1024&quot; height=&quot;683&quot; data-srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_68834. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/live-streaming-server-1-768x512.png 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/live-streaming-server-1-300x200.png 300w&quot; data-sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_68834. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/live-streaming-server-1-768x512.png 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/live-streaming-server-1-300x200.png 300w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;figcaption id=&quot;caption-attachment-71278&quot;&gt;我们建议您探索视频托管解决方案，作为使用自己的直播服务器进行自行托管的替代方案。&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;现在您已经了解了构建直播服务器的基本步骤，那么问题是，您应该构建自己的直播服务器吗？&lt;/p&gt;&lt;p&gt;运营自己的直播服务器时存在许多潜在的缺点。 其中包括延迟、缓冲、故障安全、容量安全等问题。&lt;/p&gt;&lt;p&gt;让我们回顾一下决定使用 DIY 服务器进行直播的广播公司面临的一些最常见的问题和挑战。&lt;/p&gt;&lt;h3&gt;1. 延迟&lt;/h3&gt;&lt;p&gt;延迟是指直播从录制到观众在屏幕上看到直播的延迟。影响延迟的主要因素有两个：&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;距离：主要因素是距离。流媒体软件需要时间来处理数据。您的视频流服务器距离观众越远，所需的处理时间就越长。这会使延迟或等待时间在观众看来更大，尤其是那些距离您的视频流服务器较远的观众。这时，强大的 CDN 可以帮助您。如果它的终端服务器更靠近您的观众，您将能够最大限度地减少因距离而导致的延迟。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;流量负载：影响视频延迟的第二个因素是流量负载，即有多少人同时观看直播。一台或几台服务器只能处理少量流量。如果您的视频内容很成功，吸引了大量观众，您的服务器可能无法处理。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;当这种情况发生时，每个人的视频流都会延迟，您可能会失去观众。&lt;/p&gt;&lt;p&gt;距离和流量负载都是使用专业 CDN 网络可以轻松解决的问题。专业内容交付网络的服务器分布在全国和全球，具体取决于您的目标受众所在的位置。&lt;/p&gt;&lt;p&gt;这样，您的观众总是靠近服务器，并且有足够多的服务器来处理您的直播观看视频时产生的流量。&lt;/p&gt;&lt;h3&gt;2.缓冲&lt;/h3&gt;&lt;p&gt;&lt;figure id=&quot;attachment_70166&quot; aria-describedby=&quot;caption-attachment-70166&quot;&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_24614.&quot; decoding=&quot;async&quot; class=&quot;size-full wp-image-70166 entered litespeed-loaded&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_24614.&quot; alt=&quot;视频缓冲&quot; width=&quot;1024&quot; height=&quot;646&quot; data-srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_24614. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/video-buffering-768x485.jpeg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/video-buffering-300x189.jpeg 300w&quot; data-sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_24614. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/video-buffering-768x485.jpeg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/video-buffering-300x189.jpeg 300w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;figcaption id=&quot;caption-attachment-70166&quot;&gt;缓冲可能会影响观看者的体验。&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;流媒体软件、服务器和观看者之间的网络速度减慢或瓶颈会导致实时视频缓冲。您在尝试在线观看流媒体内容时可能遇到过缓冲，因此您知道这有多令人沮丧。&lt;/p&gt;&lt;p&gt;您可以通过多比特率流媒体和自适应媒体播放器缓解缓冲问题。这称为“自适应流媒体”。但是，即使使用自适应视频流媒体，缓冲问题仍会持续存在。&lt;/p&gt;&lt;p&gt;自适应比特率流媒体 (ABR)内置于大多数在线视频平台中，但自托管用户可能无法使用此功能。自适应比特率流媒体可根据观众的互联网连接为其提供最佳质量的视频。它是为观众提供优质体验的最佳工具之一，无论他们的互联网连接如何&lt;/p&gt;&lt;p&gt;如果没有自适应流媒体，对于网络连接不太好的任何用户来说，缓冲的可能性都更大。对于使用智能手机进行实时视频流传输的用户来说，情况尤其如此，因为他们在移动时数据速度可能会波动。&lt;/p&gt;&lt;p&gt;如果您的视频广为流传，并且单个媒体服务器或小型集群受到大量请求的冲击，则缓冲问题的风险会更大。在这种情况下，流甚至可能根本无法加载。&lt;/p&gt;&lt;p&gt;因此，您可能会失去观众，并失去吸引新观众的机会，还有其他负面后果。如果您的内容正在缓冲，大多数观众将不会留下来。&lt;/p&gt;&lt;h3&gt;3.缺乏冗余&lt;/h3&gt;&lt;p&gt;我们推荐的最佳直播做法是始终使用备用流。通过从不同路径向观众提供两条流，您可以绕过直播中途出现的问题。这种双流方法称为“冗余”。&lt;/p&gt;&lt;p&gt;使用动态媒体服务器网络（例如直播流内容交付网络）时，通常不存在此问题。如果一台机器离线，您的备份流将立即上线。&lt;/p&gt;&lt;p&gt;在服务器架构有限的情况下，冗余变得更加困难和复杂。设备故障、电涌或其他系统故障导致的服务中断可能会导致整个流式传输停止。&lt;/p&gt;&lt;p&gt;即使您有备份流，当问题影响您的系统时它也无济于事。&lt;/p&gt;&lt;h3&gt;4.规模的限制&lt;/h3&gt;&lt;p&gt;运行自己的直播流服务器的另一个问题是运营规模，尤其是当您运行多个频道或播客时。每个媒体服务器都有有限数量的观众可以同时进行流式传输。&lt;/p&gt;&lt;p&gt;随着观众人数的增加，您需要扩大规模并将更多媒体流服务器纳入您的设置，以确保媒体内容的流畅流式传输。添加新服务器可能具有挑战性。&lt;/p&gt;&lt;p&gt;如果直播火爆，您将无法立即添加更多服务器来支持流量的突然增加。火爆可能会导致您的直播崩溃。&lt;/p&gt;&lt;p&gt;其成本和复杂性可能会阻碍许多广播公司的发展，尤其是个人和小型企业。&lt;/p&gt;&lt;p&gt;此外，与一开始与专业流媒体平台签约相比，你最终可能需要支付更多的钱来解决持续存在的规模问题。&lt;/p&gt;&lt;p&gt;有了专业的流媒体平台，如果您突然走红并获得大量流量，您将可以访问他们的整个媒体服务器网络。&lt;/p&gt;&lt;h3&gt;5.安全漏洞&lt;/h3&gt;&lt;p&gt;运行自己的视频流服务器意味着您拥有完全的自主权。这也意味着您的流协议的隐私和安全完全由您决定。在勒索软件、网络钓鱼攻击和盗版猖獗的世界中，保护服务器是一项复杂而艰巨的任务。&lt;/p&gt;&lt;p&gt;但是，通过使用安全的流媒体提供商，您可以绕过安全知识和投资的需求。与专业视频托管平台（例如Dacast）的安全措施相比，您在小范围内采取的任何措施都可能微不足道。此类平台将为您的直播流媒体提供企业级安全性，这样您在直播后就不会遇到问题。&lt;/p&gt;&lt;h3&gt;6.技术债务&lt;/h3&gt;&lt;p&gt;对于企业、非营利组织、大学和其他组织来说，一个至关重要的概念是“技术债务”。&lt;/p&gt;&lt;p&gt;本质上，技术债务是指创建关键技术系统所带来的后果。一旦创建，你就必须维护这些完整的系统。&lt;/p&gt;&lt;p&gt;投资高端设备和流媒体软件是一回事，但您能维持其运行成本吗？&lt;/p&gt;&lt;p&gt;这就是为什么您需要考虑创建自己的视频流服务器（而不是使用视频托管和直播流平台）的长期成本。即使您设计系统是为了解决问题，它们最终也可能导致新的问题。&lt;/p&gt;&lt;p&gt;随着时间的推移，您投资的视频流技术数量不断增加，可能会产生技术债务。与金融债务一样，技术债务也会拖累您自行运营的直播服务器设置。这些技术义务会妨碍您灵活应对并将时间和资源投入到新技术中的能力。&lt;/p&gt;&lt;p&gt;当然，有时技术债务问题是不可避免的。尽管如此，对于任何构建自己的视频流服务器的人来说，这都是一个重要的考虑因素。&lt;/p&gt;&lt;h3&gt;7. 没有技术支持&lt;/h3&gt;&lt;p&gt;当您独自使用流媒体服务器时，直播过程中出现问题可能会令人沮丧。您无法享受端到端流媒体解决方案提供的全天候客户支持。当您构建自己的流媒体视频服务器时，您必须提供自己的技术支持。&lt;/p&gt;&lt;p&gt;如果您雇用一个人或一个小团队来帮助您构建视频流服务器，您不能指望他们全天候提供故障排除和技术支持。&lt;/p&gt;&lt;p&gt;即使您付钱让他们随叫随到，他们也未必能够立即获得解决您的问题所需的工具和信息。&lt;/p&gt;&lt;h2&gt;探索自托管的替代方案&lt;/h2&gt;&lt;p&gt;&lt;figure id=&quot;attachment_71282&quot; aria-describedby=&quot;caption-attachment-71282&quot;&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_50734.&quot; decoding=&quot;async&quot; class=&quot;size-full wp-image-71282 entered litespeed-loaded&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_50734.&quot; alt=&quot;自托管视频&quot; width=&quot;1024&quot; height=&quot;683&quot; data-srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_50734. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/self-hosting-video-768x512.jpg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/self-hosting-video-300x200.jpg 300w&quot; data-sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1024px) 100vw, 1024px&quot; srcset=&quot;https://prod-images.dacast.comhttps://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_50734. 1024w, https://prod-images.dacast.com/wp-content/uploads/2021/04/self-hosting-video-768x512.jpg 768w, https://prod-images.dacast.com/wp-content/uploads/2021/04/self-hosting-video-300x200.jpg 300w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;figcaption id=&quot;caption-attachment-71282&quot;&gt;许多平台都是安全私人视频托管的可行替代方案。&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;您是否知道，通过专用流媒体服务在您的网站上播放直播视频时，可以完全控制您的内容？&lt;/p&gt;&lt;p&gt;一个很好的替代方案是使用视频流托管提供商。大多数平台将软件即服务 (SaaS) 业务模型与基础设施即服务 (IaaS) 相结合。&lt;/p&gt;&lt;p&gt;您只需支付简单、可预测的月费，即可获得世界一流的流媒体服务器硬件和直播软件来支持它。您无需从头开始构建自己的服务器。您可以访问专业直播平台的知识和功能。&lt;/p&gt;&lt;p&gt;由于它们更易于使用并且避免了与自托管相关的问题，因此您的组织可能需要考虑专业的视频托管软件解决方案。&lt;/p&gt;&lt;p&gt;以下是您也应该考虑使用视频流软件平台来满足您的广播需求的主要原因：&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;更好的安全性&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;节省时间&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;API 定制&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;盈利选项&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;分析和反馈&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;内容分发网络 CDN&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;数字版权管理 DRM 软件&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;底线是什么？我们建议考虑使用直播视频流专用服务器。这有助于规避风险并降低创建自己的流媒体解决方案所带来的直播活动成本。&lt;/p&gt;&lt;h2&gt;为什么选择 Dacast？&amp;nbsp;&lt;/h2&gt;&lt;p&gt;&lt;figure id=&quot;attachment_334205&quot; aria-describedby=&quot;caption-attachment-334205&quot;&gt;&lt;picture&gt;&lt;source srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_27212.jpeg.webp 1600w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-300x150.jpg.webp 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1024x512.jpg.webp 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-768x384.jpg.webp 768w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1536x768.jpg.webp 1536w&quot; sizes=&quot;(max-width: 1600px) 100vw, 1600px&quot; type=&quot;image/webp&quot; style=&quot;box-sizing: border-box; object-fit: cover; object-position: center center;&quot;/&gt;&lt;img data-lazyloaded=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_27212.jpeg&quot; decoding=&quot;async&quot; class=&quot;wp-image-334205 size-full entered litespeed-loaded&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_27212.jpeg&quot; alt=&quot;&quot; width=&quot;1600&quot; height=&quot;800&quot; data-srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_27212.jpeg 1600w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-300x150.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1024x512.jpg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-768x384.jpg 768w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1536x768.jpg 1536w&quot; data-sizes=&quot;(max-width: 1600px) 100vw, 1600px&quot; data-eio=&quot;p&quot; data-ll-status=&quot;loaded&quot; sizes=&quot;(max-width: 1600px) 100vw, 1600px&quot; srcset=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241105193951_27212.jpeg 1600w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-300x150.jpg 300w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1024x512.jpg 1024w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-768x384.jpg 768w, https://prod-images.dacast.com/wp-content/uploads/2023/12/dacast-live-streaming-service-1536x768.jpg 1536w&quot; style=&quot;box-sizing: border-box; border-style: none; max-width: 100%; height: auto; display: inline-block; vertical-align: middle; opacity: 1; transition: opacity 1s;&quot;/&gt;&lt;/picture&gt;&lt;figcaption id=&quot;caption-attachment-334205&quot;&gt;Dacast 视频流服务器可以托管您的视频文件并确保安全的视频流&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;选择 Dacast 是因为它的可靠性、可扩展性、高级安全功能和全天候客户支持。&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;Dacast 是一项完全基于云的流媒体服务，为广播公司和内容创作者提供了很多优势。最重要的好处是您可以专注于直播的创意方面，例如寻找绝佳的地点、展示您周围的世界以及为观众带来高质量的内容。&lt;/p&gt;&lt;p&gt;以下是Dacast 的一些高级功能，这些功能将说服您尝试这个直播平台：&lt;/p&gt;&lt;h3&gt;全球配送&lt;/h3&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;借助 Dacast 的中国视频托管和强大的 CDN，您可以更轻松地增加自然覆盖率并提高内容曝光率。这样一来，无论您身处世界哪个地区，您的观众都可以实时观看您的内容；这要归功于其一流的代理服务器。很少有其他视频流媒体提供商提供中国交付服务，这使得 Dacast 与众不同。&amp;nbsp;&lt;/p&gt;&lt;h3&gt;灵活的计划&lt;/h3&gt;&lt;p&gt;Dacast 为用户提供价格实惠的直播套餐，价格各不相同。这意味着您可以获得直播和视频点播服务器。无论您的预算如何，您都可以找到适合您的套餐，而不会让财务状况妨碍您的内容创作。&lt;/p&gt;&lt;h3&gt;白标流媒体&lt;/h3&gt;&lt;p&gt;借助Dacast 的白标和品牌控制，您的视频将与您的品牌形象和愿景相符。当您将视频嵌入到您的网站时，它们会融入您的网站，以符合您的网站美感。&lt;/p&gt;&lt;h3&gt;无限的可扩展性&amp;nbsp;&lt;/h3&gt;&lt;p&gt;当您使用 Dacast 强大的网络进行直播时，可扩展性永远不是您担心的问题。&lt;/p&gt;&lt;p&gt;随着观众人数的增加，您可以切换到更高的套餐并继续流式传输！与负载过大时崩溃的视频流服务器不同。&lt;/p&gt;&lt;h3&gt;安全流媒体&lt;/h3&gt;&lt;p&gt;使用专业直播服务器的最大优势是其安全性。Dacast 始终提供以下功能以提供安全可靠的流媒体：&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;基于云的视频转码工具&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;高级视频安全功能&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;自适应比特率流媒体&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;HLS 流式传输&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;RTMP摄取与RTMP编码器兼容&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;所有这些广播质量功能让您的观众可以在移动设备上更安全地播放视频。&lt;/p&gt;&lt;h3&gt;数据驱动的反馈&lt;/h3&gt;&lt;p&gt;Dacast 了解您在创建引人入胜的直播方面投入了大量的时间和金钱。这就是为什么我们的深入视频分析可以帮助您更好地了解您的内容。以及观众的人口统计数据以及哪种类型的内容最受他们欢迎。&lt;/p&gt;&lt;h3&gt;无广告播放&lt;/h3&gt;&lt;p&gt;YouTube 和 Facebook 等免费直播平台可让您接触大量观众，但广告却层出不穷。大多数观众觉得广告很烦人，因为它们会破坏节奏并降低参与度。借助 Dacast，您和您的观众可以享受无缝、无广告的高质量播放和直播，这还要归功于可以使用最佳音频编解码器。&lt;/p&gt;&lt;h3&gt;24/7用户支持&lt;/h3&gt;&lt;p&gt;直播过程中可能会出现很多问题。因此，Dacast 团队为其广播公司提供全天候支持。无论出现什么问题，您都可以随时通过实时聊天联系我们，我们将共同解决问题，为您的观众提供绝佳的观看体验。&lt;/p&gt;&lt;h2&gt;常见问题解答&lt;/h2&gt;&lt;h3&gt;1. 哪个服务器最适合直播？&lt;/h3&gt;&lt;p&gt;OBS Studio 是最好的实时视频流服务器之一。它拥有您启动和运行广播流所需的所有工具。您所要做的就是正确设置 OBS Studio，然后选择正确的 CDN，以确保您的视频实时流传输时不会出现太多延迟。&lt;/p&gt;&lt;h3&gt;2. 如何搭建直播服务器？&lt;/h3&gt;&lt;p&gt;要制作一个可以帮助您轻松播放视频内容的直播服务器，您可以按照以下步骤操作：&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; list-style-position: initial; list-style-image: initial; padding: 0px; margin-bottom: 1.3em; color: rgb(119, 119, 119); font-family: Roboto, Helvetica, sans-serif; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;满足您的要求&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;选择一个开源项目&amp;nbsp;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;下载 OBS Studio&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;为你的直播服务器选择 CDN&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;3. 流媒体服务器起什么作用？&lt;/h3&gt;&lt;p&gt;简单来说，流媒体服务器可帮助您实时向观众广播视频内容。它确保观众能够以最小的延迟观看您&amp;nbsp;在流媒体平台上广播的活动，从而获得愉快的视频观看体验。&amp;nbsp;&lt;/p&gt;&lt;h3&gt;4. 哪里可以免费直播？&lt;/h3&gt;&lt;p&gt;如果您打算免费直播，可以先使用 OBS Studio 设置直播服务器，该软件完全免费使用。或者，您可以免费在 Facebook、YouTube 和 Instagram 等社交媒体平台上开始直播。虽然它们无法&amp;nbsp;像许多专用的流媒体平台那样为您的流媒体和播放器打上品牌标志，但使用它们很容易上手。&lt;/p&gt;&lt;h3&gt;5.什么是广播服务器？&lt;/h3&gt;&lt;p&gt;广播服务器是专门为支持视频直播而设置的服务器。它经过优化，可帮助您实时编码直播流并将直播流的片段发送到 CDN，这样您的视频便可以以最小的延迟传送给多个设备上的观众。&lt;/p&gt;&lt;h3&gt;6. 如何使用 OBS 在 Kick 上进行直播？&lt;/h3&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;想要了解如何使用新推出的 Red Hot Kick 直播平台在 OBS 工作室进行直播吗？&lt;/p&gt;&lt;p data-pm-slice=&quot;1 1 []&quot;&gt;查看我们关于如何使用 OBS 在 Kick 上进行流式传输的终极指南，我们将引导您了解使用 OBS 在 Kick 上开始直播所需了解的一切。&lt;/p&gt;&lt;h2&gt;结论&lt;/h2&gt;&lt;p&gt;DIY 很棒。但使用自己的服务器存在风险，弊大于利。为什么不使用专用于此目的的平台呢？&lt;/p&gt;&lt;p&gt;需要考虑的两个最重要的事情是构建自己的服务器可能遇到的复杂性以及使用专业流媒体解决方案时无法获得的支持。&lt;/p&gt;&lt;p&gt;如果您的团队中有一名熟练的开发人员，那么构建自己的视频流服务器是可能的。不过，与使用成熟的在线视频主机相比，它可能成本更低，而且更复杂。我们亲眼目睹了可能出现的复杂情况，并且我们知道普通广播公司没有财力或技术手段来解决所有这些问题。&lt;/p&gt;&lt;p&gt;我们整理了一份详尽的指南，帮助您解决直播问题并找出问题的根源。使用我们列出的十个技巧，您的直播可以立即恢复正常。&lt;/p&gt;&lt;p&gt;还不是 Dacast 广播员？您不必相信我们说 Dacast 服务功能丰富，有适合各种预算的定价计划！相反，您可以注册我们的免费试用版，在14 天内免费访问直播和我们所有的强大功能（无需信用卡）。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Tue, 05 Nov 2024 19:29:11 +0800</pubDate></item><item><title>海康 大华 监控设备RTMP实时推流直播</title><link>https://liveserver.com.cn/?id=16</link><description>&lt;blockquote data-tool=&quot;mdnice编辑器&quot; style=&quot;color: rgb(80, 191, 255); border-top: none; border-right: none; border-bottom: none; font-size: 0.9em; overflow: auto; border-left-color: rgb(80, 191, 255); background: rgb(236, 248, 255); border-top-right-radius: 6px; border-bottom-right-radius: 6px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 5px; padding: 10px 10px 10px 20px; margin-bottom: 20px; margin-top: 20px; visibility: visible;&quot;&gt;&lt;p style=&quot;font-size: 16px; padding-top: 8px; padding-bottom: 8px; color: black; line-height: 26px; visibility: visible;&quot;&gt;笔者最近的业务中，需要将机房的摄像头的图像在大屏或者html页面展示出来。本文以大华摄像头为例，介绍具体的做法。&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;figure data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; visibility: visible;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021190&quot; data-ratio=&quot;0.43425925925925923&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 656.969px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_84047.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;1&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_84047.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;figcaption style=&quot;margin-top: 5px; text-align: center; color: rgb(136, 136, 136); visibility: visible;&quot;&gt;使用场景&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px; visibility: visible;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;visibility: visible;&quot;&gt;设备清单&lt;/span&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;ul data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 8px; margin-bottom: 8px; padding-left: 25px; visibility: visible;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;section style=&quot;margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); visibility: visible;&quot;&gt;大华摄像头（P20A2-WT）但笔者还是推荐海康。&lt;/section&gt;&lt;/li&gt;&lt;li&gt;&lt;section style=&quot;margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); visibility: visible;&quot;&gt;本地同机房主机（Linux）&lt;/section&gt;&lt;/li&gt;&lt;li&gt;&lt;section style=&quot;margin-top: 5px; margin-bottom: 5px; line-height: 26px; color: rgb(1, 1, 1); visibility: visible;&quot;&gt;公网服务器或ipv6网络&lt;/section&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;section data-tool=&quot;mdnice编辑器&quot; data-website=&quot;https://www.mdnice.com&quot; style=&quot;font-size: 16px; padding-right: 10px; padding-left: 10px; line-height: 1.6; letter-spacing: 0px; word-break: break-word; font-family: Roboto, Oxygen, Ubuntu, Cantarell, PingFangSC-light, PingFangTC-light, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; visibility: visible;&quot;&gt;&lt;figure data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; visibility: visible;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021197&quot; data-ratio=&quot;0.562037037037037&quot; data-type=&quot;jpeg&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 636.984px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_24598.jpeg&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;2&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_24598.jpeg&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;figcaption style=&quot;margin-top: 5px;text-align: center;color: #888;font-size: 14px;&quot;&gt;机房&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021196&quot; data-ratio=&quot;0.562037037037037&quot; data-type=&quot;jpeg&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 636.984px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_96006.jpeg&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;3&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_96006.jpeg&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;figcaption style=&quot;margin-top: 5px;text-align: center;color: #888;font-size: 14px;&quot;&gt;大华P20A2-WT&lt;/figcaption&gt;&lt;/figure&gt;&lt;/section&gt;&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;安装EasyDarwin&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;EasyDarwin&lt;/code&gt;是一款流媒体服务器软件。支持视频点播、RTMP推流直播（RTSP、FLV、WebRTC）、串流拉流直播、服务端录像与回放、视频抽帧快照。&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;&lt;strong&gt;官网下载地址:&lt;/strong&gt; &lt;span class=&quot;wx_text_underline&quot;&gt;https://www.easydarwin.org/p/easydarwin.html&lt;/span&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;根据系统类型，下载安装包。执行&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;./EasyDarwin&lt;/code&gt;运行。运行后，访问&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;ip:10086&lt;/code&gt;效果如下：&lt;/p&gt;&lt;p&gt;&lt;figure data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021186&quot; data-ratio=&quot;0.5925925925925926&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 656.984px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_19398.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;4&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150015_19398.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;figcaption style=&quot;margin-top: 5px; text-align: center; color: rgb(136, 136, 136);&quot;&gt;登录页面&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;&lt;span style=&quot;color: #FF2941;&quot;&gt;&lt;strong&gt;注意，需要在安全组中开启相应的端口。&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;初始账号和密码：&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;admin/admin&lt;/code&gt;&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;类型一 拉流直播&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;新建直播，按照如下要求填写。&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021188&quot; data-ratio=&quot;0.48333333333333334&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 657px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_70998.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;5&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_70998.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;strong&gt;大华推流地址&lt;/strong&gt;&lt;/p&gt;&lt;pre data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px; margin-bottom: 10px; border-radius: 5px; box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;&quot;&gt;&lt;span style=&quot;display: block;background: url(&amp;quot;https://mmbiz.qpic.cn/mmbiz_svg/wcib2GksmGOmA4FYxkq57icOXUYOIV5YayCYGHialbSqAbD3l7N04j1rzQEB5aVzsHxOxGxua3NV9wAsgzVZa3ic9yQhYyOTWsCm/640?wx_fmt=svg&amp;amp;from=appmsg&amp;quot;) 10px 10px / 40px no-repeat #282C34;height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;&quot;&gt;&lt;/span&gt;&lt;code style=&quot;overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;&quot;&gt;rtsp://admin:admin12345==@192.168.123.91/cam/realmonitor?channel=1&amp;amp;subtype=1&lt;br/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;海康等其他品牌的，可以自行搜索。添加完成后，效果如下：&lt;/p&gt;&lt;p&gt;&lt;figure data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;&quot;&gt;&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021187&quot; data-ratio=&quot;0.38055555555555554&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 656.969px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_61981.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;6&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_61981.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;figcaption style=&quot;margin-top: 5px; text-align: center; color: rgb(136, 136, 136);&quot;&gt;注意状态&lt;/figcaption&gt;&lt;/figure&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;点击播放按钮，效果如下：&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021192&quot; data-ratio=&quot;0.44814814814814813&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 657px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_53310.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;7&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_53310.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;这样我们就得到了摄像头的直播地址，如&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;m3u8&lt;/code&gt;地址。&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;类型二 推流直播&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;同样，我们新建直播，选择推流直播。按要求填写。&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021193&quot; data-ratio=&quot;0.4787037037037037&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 657px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_16646.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;8&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_16646.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;点击播放按钮，我们便可以得到推流地址&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;rtmp://pan.bbskali.cn:10035/live/sPMPun8SR?sign=sPMEu7USgz&lt;/code&gt;其中&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;sPMPun8SR?sign=sPMEu7USgz&lt;/code&gt;就是推流密匙。我们以OBS为例：&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021194&quot; data-ratio=&quot;0.38333333333333336&quot; data-type=&quot;png&quot; data-w=&quot;1080&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 657px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_59202.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;9&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150016_59202.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;当然，如果你的摄像头支持rtmp。直接在摄像头后台添加推流地址就行了。&lt;img class=&quot;rich_pages wxw-img&quot; data-imgfileid=&quot;100021195&quot; data-ratio=&quot;0.5877632898696088&quot; data-type=&quot;png&quot; data-w=&quot;997&quot; style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px; border-radius: 6px; display: block; margin-right: auto; margin-left: auto; height: auto !important; visibility: visible !important; width: 657px !important;&quot; data-src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150017_45205.png&quot; data-original-style=&quot;box-shadow: rgb(160, 160, 160) 2.2px 2.2px 8px;border-radius: 6px;display: block;margin-right: auto;margin-left: auto;height: auto !important;&quot; data-index=&quot;10&quot; src=&quot;https://liveserver.com.cn/zb_users/upload/2024/11/20241110150017_45205.png&quot; _width=&quot;677px&quot; crossorigin=&quot;anonymous&quot; alt=&quot;图片&quot; data-fail=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;推流成功后，在后台我们变可以获得直播画面了。&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;两者对比&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;拉流&lt;/code&gt;只能在本地访问，公网不能访问。因此我们可以利用frp或者IPv6访问。&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;推流&lt;/code&gt;可以直接将数据推送到公网服务器，实现公网访问。&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;公网访问&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px; padding-bottom: 8px; line-height: 26px;&quot;&gt;在很多情况下，公网是不能访问的。如我们得到的直播流地址&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;http://182.168.123.90:10086/hls/cMOAm7USR/playlist.m3u8&lt;/code&gt;是无法在公网访问的。因此我们可以做端口映射，将&lt;code style=&quot;padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: rgb(199, 37, 78); background-color: rgba(27, 31, 35, 0.05); font-family: &amp;quot;Operator Mono&amp;quot;, Consolas, Monaco, Menlo, monospace; word-break: break-all;&quot;&gt;182.168.123.90:10086&lt;/code&gt;映射即可。后面的地址不变！其实IPv6也是不错的选择。&lt;/p&gt;&lt;h3 data-tool=&quot;mdnice编辑器&quot; style=&quot;margin-top: 30px; margin-bottom: 15px; font-size: 20px;&quot;&gt;&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;总结&lt;span style=&quot;display: none;&quot;&gt;&lt;/span&gt;&lt;/h3&gt;&lt;p data-tool=&quot;mdnice编辑器&quot; style=&quot;padding-top: 8px;padding-bottom: 8px;line-height: 26px;&quot;&gt;笔者在实际测试中，大华摄像头有很多问题。推流直播一直推不到服务器，只能用拉流直播搞。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 12 Jun 2024 14:59:45 +0800</pubDate></item></channel></rss>