DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  4737 随笔 :: 2 文章 :: 542 评论 :: 1615万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

复制代码

./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/sbin/nginx \
--conf-path=/usr/local/nginx/conf/nginx.conf \
--error-log-path=/usr/local/nginx/log/error.log \
--http-log-path=/usr/local/nginx/log/access.log \
--pid-path=/usr/local/nginx/var/nginx.pid \
--lock-path=/usr/local/nginx/var/nginx.lock \
--http-client-body-temp-path=/tmp/clientbody \
--http-proxy-temp-path=/tmp/proxy \
--http-fastcgi-temp-path=/tmp/fastcgi \
--http-uwsgi-temp-path=/tmp/uwsgi \
--http-scgi-temp-path=/tmp/scgi \
--user=www \
--group=www \
--with-file-aio \
--with-http_realip_module \
--with-http_ssl_module \
--with-openssl=/usr/local/src/openssl \
--with-http_gzip_static_module \
--with-zlib=/usr/local/src/zlib \
--with-http_stub_status_module \
--with-pcre=/usr/local/src/pcre \
--without-select_module \
--without-poll_module \
--without-http_ssi_module \
--without-http_userid_module \
--without-http_geo_module \
--without-http_empty_gif_module \
--without-http_map_module \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--with-http_flv_module \
--with-http_mp4_module \
--add-module=/usr/local/src/nginx_mod_h264_streaming-2.2.7 \ 
--add-module=/usr/local/src/nginx-rtmp-module-master  

注意第三方模块使用的是add-module指定的绝对路径
yamdi

  tar xzvf yamdi-1.4.tar.gz

                   cd yamdi-1.4

           make && make install

      使用方法:yamdi -i input.flv -o out.flv

  

/usr/local/src 所有的文件都在这个目录

 tar xzvf nginx_mod_h264_streaming-2.2.7

 tar xzvf nginx-rtmp-module-master 



即可编译的时候指定路径
--with-http_flv_module \
--with-http_mp4_module \
--add-module=/usr/local/src/nginx_mod_h264_streaming-2.2.7 \ 
--add-module=/usr/local/src/nginx-rtmp-module-master  

make
会出错

vi nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c
:set nu
158行
if (r->zero_in_uri)
{
return NGX_DECLINED;
}
注释掉
/*if (r->zero_in_uri)
{
return NGX_DECLINED;
}*/
保存
在使用配置./configure 上面的那一段↑
make
make install
posted on   DoubleLi  阅读(448)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
历史上的今天:
2014-08-07 boost uuid 学习笔记
2014-08-07 boost uuid
点击右上角即可分享
微信分享提示