资源简介
windows基于nginx搭建rtmp流服务器,已配置好配口号1935。
在根目录下执行命令nginx.exe -c conf\nginx-win-rtmp.conf即可开启服务器

代码片段和文件信息
/*
* Copyright (C) Roman Arutyunyan
*/
#include
#include
#include
#include
#include “ngx_rtmp.h“
static char *ngx_rtmp_block(ngx_conf_t *cf ngx_command_t *cmd void *conf);
static ngx_int_t ngx_rtmp_add_ports(ngx_conf_t *cf ngx_array_t *ports
ngx_rtmp_listen_t *listen);
static char *ngx_rtmp_optimize_servers(ngx_conf_t *cf ngx_array_t *ports);
static ngx_int_t ngx_rtmp_add_addrs(ngx_conf_t *cf ngx_rtmp_port_t *mport
ngx_rtmp_conf_addr_t *addr);
#if (NGX_HAVE_INET6)
static ngx_int_t ngx_rtmp_add_addrs6(ngx_conf_t *cf ngx_rtmp_port_t *mport
ngx_rtmp_conf_addr_t *addr);
#endif
static ngx_int_t ngx_rtmp_cmp_conf_addrs(const void *one const void *two);
static ngx_int_t ngx_rtmp_init_events(ngx_conf_t *cf
ngx_rtmp_core_main_conf_t *cmcf);
static ngx_int_t ngx_rtmp_init_event_handlers(ngx_conf_t *cf
ngx_rtmp_core_main_conf_t *cmcf);
static char * ngx_rtmp_merge_applications(ngx_conf_t *cf
ngx_array_t *applications void **app_conf ngx_rtmp_module_t *module
ngx_uint_t ctx_index);
static ngx_int_t ngx_rtmp_init_process(ngx_cycle_t *cycle);
#if (nginx_version >= 1007011)
ngx_queue_t ngx_rtmp_init_queue;
#elif (nginx_version >= 1007005)
ngx_thread_volatile ngx_queue_t ngx_rtmp_init_queue;
#else
ngx_thread_volatile ngx_event_t *ngx_rtmp_init_queue;
#endif
ngx_uint_t ngx_rtmp_max_module;
static ngx_command_t ngx_rtmp_commands[] = {
{ ngx_string(“rtmp“)
NGX_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS
ngx_rtmp_block
0
0
NULL }
ngx_null_command
};
static ngx_core_module_t ngx_rtmp_module_ctx = {
ngx_string(“rtmp“)
NULL
NULL
};
ngx_module_t ngx_rtmp_module = {
NGX_MODULE_V1
&ngx_rtmp_module_ctx /* module context */
ngx_rtmp_commands /* module directives */
NGX_CORE_MODULE /* module type */
NULL /* init master */
NULL /* init module */
ngx_rtmp_init_process /* init process */
NULL /* init thread */
NULL /* exit thread */
NULL /* exit process */
NULL /* exit master */
NGX_MODULE_V1_PADDING
};
static char *
ngx_rtmp_block(ngx_conf_t *cf ngx_command_t *cmd void *conf)
{
char *rv;
ngx_uint_t i m mi s;
ngx_conf_t pcf;
ngx_array_t ports;
ngx_module_t **modules;
ngx_rtmp_listen_t *listen;
ngx_rtmp_module_t *module;
ngx_rtmp_conf_ctx_t *ctx;
ngx_rtmp_core_srv_conf_t *cscf **cscfp;
ngx_rtmp_core_main_conf_t *cmcf;
ctx = ngx_pcalloc(cf->pool sizeof(ngx_rtmp_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 344064 2014-03-31 18:35 lua51.dll
文件 3162112 2015-03-19 20:37 nginx.exe
文件 1966080 2015-03-19 18:26 nginx_basic.exe
文件 34789 2015-03-19 20:43 Readme nginx-win version.txt
文件 316 2013-09-07 12:08 Tweak-Optimize tcpip parameters for nginx connections.reg
文件 3747 2015-03-12 22:31 conf\EBLB\iworkcomproto.lua
文件 2524 2015-03-04 11:59 conf\EBLB\upstreamcontrol.lua
文件 4280 2015-03-05 13:59 conf\EBLB\upstreamstatus.lua
文件 1807 2015-03-03 10:03 conf\EBLB\upstream_candc.conf
文件 2291 2015-03-09 13:21 conf\EBLB\upstream_EBLB_with_IWCP.txt
文件 1034 2014-01-03 23:32 conf\fastcgi.conf
文件 964 2014-01-03 23:32 conf\fastcgi_params
文件 2837 2014-01-03 23:32 conf\koi-utf
文件 2223 2014-01-03 23:32 conf\koi-win
文件 3957 2014-03-07 18:19 conf\mime.types
文件 279 2013-11-14 21:46 conf\mysite.rules
文件 5452 2014-12-30 22:39 conf\naxsi_core.rules
文件 2656 2014-06-27 15:18 conf\nginx-org.conf
文件 2254 2014-11-05 15:26 conf\nginx-simple-WAF.conf
文件 5671 2017-11-08 09:28 conf\nginx-win-rtmp.conf
文件 5116 2015-03-07 17:47 conf\nginx-win1111.conf
文件 539 2015-02-14 11:11 conf\php-opcache-example.ini
文件 2794 2015-02-05 16:58 conf\php-xcache-example.ini
文件 596 2014-01-03 23:32 conf\scgi_params
文件 623 2014-01-03 23:32 conf\uwsgi_params
文件 887 2015-03-13 11:18 conf\vhts\VHTS.txt
文件 600 2015-03-14 20:43 conf\vhts\vtsvalues-eop.js
文件 407 2015-03-13 10:06 conf\vhts\vtsvalues.js
文件 3610 2014-01-03 23:32 conf\win-utf
文件 1272 2014-05-15 20:45 contrib\geo2nginx.pl
............此处省略128个文件信息
- 上一篇:数值计算方法课后题答案详解
- 下一篇:Nanomeasure 纳米材料粒径测量工具
相关资源
- 轻量级文件服务器Fdfs搭建(fastDFS+n
- nginx-rtmp-win32-master.rar
- yaf-2.1.17.tgz
- onvif协议视频转码推流网页播放
- ffmpegh265rtmp.zip
- 自动reload nginx解决nginx对动态域名不重
- RTMP_H265推流直播技术研讨
- 屏幕采集\\录屏\\rtmp推流的一体化工具
- 最简单的基于FFmpeg的推流器以推送R
- FFmpeg 采集摄像头输出rtmp直播流媒体,
- 使用RTMPdump(libRTMP)直播来自v4l2的摄
- rtmpdump vs2005版本
- Linux中nginx安装相关资源包
- nginx-1.19.0-1.aarch64.rpm银河麒麟+飞腾
- nginx-1.19.0-1.aarch64.rpm 银河麒麟V10+飞腾
- nginx与zookeeper交互,同步数据,发送系
- rtmp抓包分析
- rtmp流播放工具
- 内存H264+PCM发布rtmp.rar
- librtmp 封装类 VS 2015
- Nginx+keepalived双机热备主从模式高可用
- rtsp摄像头推流上云使用浏览器播放
- 手机USB摄像头直播及服务器推流手机
- 搭建rtmp流媒体服务器的nginx
- NGINX Cookbook 无水印英文高清完整.pdf版
- 精通Nginx 第二版 高清 非扫描 带书签
- nginx-1.17.10.rar
- [Nginx] Nginx HTTP Server 第2版 (英文版)
- 摄像头推流到rtmp
- Nginx源代码VS2010直接编译运行
评论
共有 条评论