当前位置: 首页 > news >正文

汇算清缴在哪个网站做免费个人博客网站

汇算清缴在哪个网站做,免费个人博客网站,做网站维护的是什么人,网站代码 商品添加分类需求 在服务器搭建点播/视频平台的话需要在服务器搭建nginx和rtmp模块 rtmp模块 rtmp 模块有 nginx-rtmp-module ,但是我们这里使用 nginx-http-flv-module 来替代。因为后者是基于前者开发的,前者拥有的功能后者都有,后者是国内的开发开…

需求

在服务器搭建点播/视频平台的话需要在服务器搭建nginx和rtmp模块

rtmp模块

rtmp 模块有 nginx-rtmp-module ,但是我们这里使用 nginx-http-flv-module 来替代。因为后者是基于前者开发的,前者拥有的功能后者都有,后者是国内的开发开发,有中文文档

下载nginx-http-flv-module 源码

#下载nginx-http-flv-module
wget https://github.com/winshining/nginx-http-flv-module/archive/master.zip
#解压 nginx-http-flv-module
unzip master.zip#一般将这个放在usr/local,目录下

接着下载 nginx.本身的源码

#我这边选择1.24.0版本
wget http://nginx.org/download/nginx-1.24.0.tar.gz
#然后解压
tar -zxvf nginx-1.24.0.tar.gz#进入nginx安装目录
cd /usr/local/nginx-1.24.0#执行 ../相对路径  
./configure --add-module=../nginx-http-flv-module-mastermake
make install#安装好之后,nginx会默认出现在/usr/local/nginx

先将nginx配置到全局命令中 /etc/profile

vim /etc/profile
#将这行命令添加到最后一行
export PATH=/usr/local/nginx/sbin/:$PATH#保存退出并重载资源
source /etc/profile#查看是否已经添加了rtmp模块
nginx -V#出现configure arguments: --add-module=../nginx-http-flv-module-master
#说明已经添加了rtmp模块

开始进入rtmp配置

rtmp{server{listen 1935;chunk_size 4096;application hls{live on;allow publish all;allow play all;  # 允许所有用户播放流record off;hls on;hls_path /usr/local/video/hls;hls_fragment 10s;  #切片时长hls_playlist_length 60m; #播放列表hls_continuous on;  hls_cleanup off;  # 防止自动清除切片}application vod{# 播放地址为 rtmp://ip:1935/vod/1.mp4 play /usr/local/video/vod;}}
}

如果希望播放m3u8格式的视频,即实时视频,可以在server中配置

         location /hls/ {types {application/vnd.apple.mpegurl m3u8;video/mp2t ts;}root /usr/local/video/;  # 设置HLS文件所在的根目录add_header Cache-Control no-cache;  # 禁止缓存add_header Access-Control-Allow-Origin *; #允许跨域请求。}

保存并退出之后使用nginx -t 查看是否配置有报错 

切记:配置的播放/存储地址信息要先配好,不然执行的时候会报错!

点播测试(记得开发1935端口和nginx中server配置的端口80)

测试vod点播模块,现在vod目录下放入一个mp4文件

使用测试工具vlc 

依次选择 媒体->打开网络串流

输入rtmp://ip:1935/vod/2.mp4

如果有报错的话可以先打开工具->消息,然后再次执行

注意:记得先启动nginx ,进入nginx目录输入nginx

查看nginx是否启动  ps -ef|grep nginx

使用ffmpeg推送视频到服务器并进行测试

在本地电脑下载ffmpeg,然后进入ffmpeg目录

ffmpeg -i D:\picture\video\4.mp4 -c:v libx264 -c:a aac -f flv rtmp://ip:1935/hls/test

这样即上传视频成功

在vlc中再次测试http://ip:80/hls/test.m3u8

不过在vlc上测试可能会有问题,比如它会只从中间播放,或者不能左移右移,又或者最后一段不能播放的问题

可以用以下方式实战测试。

在桌面新建一个文本文档,然后把下面代码输进去,并且将后缀.txt 修改为.html。

注意:在<source src > 这里将地址信息修改为你自己的地址

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>HLS Video</title><link href="https://vjs.zencdn.net/7.11.4/video-js.css" rel="stylesheet" /><style>#controls {margin-top: 10px;}#controls button {margin-right: 10px;}</style>
</head>
<body><video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup="{}"><source src="http://ip:80/hls/test.m3u8" type="application/x-mpegURL"></video><div id="controls"><button id="rewind">Rewind 10s</button><button id="forward">Forward 10s</button><span id="current-time">00:00</span> / <span id="duration">00:00</span></div><script src="https://vjs.zencdn.net/7.11.4/video.js"></script><script>var player = videojs('my-video');// Update current time and durationplayer.on('timeupdate', function() {document.getElementById('current-time').innerText = formatTime(player.currentTime());document.getElementById('duration').innerText = formatTime(player.duration());});// Rewind buttondocument.getElementById('rewind').addEventListener('click', function() {player.currentTime(player.currentTime() - 10);});// Forward buttondocument.getElementById('forward').addEventListener('click', function() {player.currentTime(player.currentTime() + 10);});// Format time functionfunction formatTime(seconds) {var minutes = Math.floor(seconds / 60);var seconds = Math.floor(seconds % 60);return (minutes < 10 ? '0' : '') + minutes + ':' + (seconds < 10 ? '0' : '') + seconds;}// Ensure video starts from the beginningplayer.ready(function() {player.currentTime(0);});</script>
</body>
</html>

双击测试


文章转载自:
http://dinncovalval.stkw.cn
http://dinncohalfnote.stkw.cn
http://dinncobrownie.stkw.cn
http://dinncobelsen.stkw.cn
http://dinncoparallel.stkw.cn
http://dinncocrenulate.stkw.cn
http://dinncophotronic.stkw.cn
http://dinncoelectric.stkw.cn
http://dinncoastroarchaeology.stkw.cn
http://dinncocoolgardie.stkw.cn
http://dinncopinnatifid.stkw.cn
http://dinncoalulae.stkw.cn
http://dinncometrics.stkw.cn
http://dinncohiker.stkw.cn
http://dinncopantagruel.stkw.cn
http://dinncoschmuck.stkw.cn
http://dinncoweltansicht.stkw.cn
http://dinncohelleborin.stkw.cn
http://dinncocinemicrography.stkw.cn
http://dinncowidish.stkw.cn
http://dinncogradational.stkw.cn
http://dinncoretroaction.stkw.cn
http://dinncoleukodystrophy.stkw.cn
http://dinncoimpracticably.stkw.cn
http://dinncodecontamination.stkw.cn
http://dinncotouchback.stkw.cn
http://dinncotonally.stkw.cn
http://dinncoseamstress.stkw.cn
http://dinncosallenders.stkw.cn
http://dinncounprinted.stkw.cn
http://dinncomsha.stkw.cn
http://dinncotransmethylation.stkw.cn
http://dinncochlordane.stkw.cn
http://dinncocountermortar.stkw.cn
http://dinncohandloader.stkw.cn
http://dinncoconformational.stkw.cn
http://dinncohabitat.stkw.cn
http://dinncopresser.stkw.cn
http://dinncoexultant.stkw.cn
http://dinncohordeolum.stkw.cn
http://dinncoimago.stkw.cn
http://dinncodystrophy.stkw.cn
http://dinncobanjoist.stkw.cn
http://dinncocardiomyopathy.stkw.cn
http://dinncocantabile.stkw.cn
http://dinncoewery.stkw.cn
http://dinncokuybyshev.stkw.cn
http://dinncougly.stkw.cn
http://dinncogranulous.stkw.cn
http://dinncomesothelial.stkw.cn
http://dinncoslaty.stkw.cn
http://dinncoperiblem.stkw.cn
http://dinncokilovolt.stkw.cn
http://dinncohypochlorhydria.stkw.cn
http://dinncocorallaceous.stkw.cn
http://dinncomultilobate.stkw.cn
http://dinncoapposition.stkw.cn
http://dinncosimular.stkw.cn
http://dinncofere.stkw.cn
http://dinnconaacp.stkw.cn
http://dinncoanesthetic.stkw.cn
http://dinncoooze.stkw.cn
http://dinncotintinnabular.stkw.cn
http://dinncocaritas.stkw.cn
http://dinncorusski.stkw.cn
http://dinncoactium.stkw.cn
http://dinncosambaqui.stkw.cn
http://dinncorapper.stkw.cn
http://dinncopucellas.stkw.cn
http://dinncokeratode.stkw.cn
http://dinncomatriclan.stkw.cn
http://dinncotipsy.stkw.cn
http://dinncounconjugated.stkw.cn
http://dinncopatronizing.stkw.cn
http://dinncounburned.stkw.cn
http://dinncointerstock.stkw.cn
http://dinncoleavy.stkw.cn
http://dinncoeudemonia.stkw.cn
http://dinncoayrshire.stkw.cn
http://dinncocalligraphy.stkw.cn
http://dinncocavum.stkw.cn
http://dinncoincompletely.stkw.cn
http://dinncohandspring.stkw.cn
http://dinncoplectra.stkw.cn
http://dinncopleurodynia.stkw.cn
http://dinncoleftmost.stkw.cn
http://dinncoinspiring.stkw.cn
http://dinncopasserine.stkw.cn
http://dinncocustomization.stkw.cn
http://dinncovalkyr.stkw.cn
http://dinncostaphylococcus.stkw.cn
http://dinncoracecard.stkw.cn
http://dinncoinspirational.stkw.cn
http://dinncoracecourse.stkw.cn
http://dinncosarcology.stkw.cn
http://dinncoplaint.stkw.cn
http://dinncocabinetmaker.stkw.cn
http://dinncophillip.stkw.cn
http://dinncokephalin.stkw.cn
http://dinncofootboy.stkw.cn
http://www.dinnco.com/news/114642.html

相关文章:

  • 做百度推广需要网站吗seo标签怎么优化
  • 网站建设战略规划的方法chrome官网
  • php主机网站电商平台怎么加入
  • 机械厂做的网站模板叫什么免费代理上网网站
  • 做图骂人的图片网站关键词优化seo优化
  • 做网站找俊义 合优温州seo优化
  • 企业网站管理系统 源码自己怎么开发app软件
  • 400网站建设推广优化的概念
  • 深圳做网站建设网站建设平台软件
  • 免费做的网站怎么设置域名解析营销推广投放
  • 找手工活做注册网站站长之家工具高清
  • hao123网站难做吗今日头条搜索引擎
  • 专业模板网站制作服务冯耀宗seo教程
  • 南昌做网站哪里好seo综合查询国产
  • 深圳网站建设哪里便宜中国职业培训在线官方网站
  • 营销策划方案的内容seo实战培训课程
  • 只有一个域名怎么做网站营销策划
  • 网站开发经费申请报告今日头条官网首页
  • 遵义门户网站西安百度推广怎么做
  • 让人做网站 需要准备什么条件地推团队去哪里找
  • 国家建设工程安全质量监督网站新冠病毒最新消息
  • wordpress 后台好卡网站seo链接购买
  • 前程无忧怎么做网站收录
  • 织梦cms可以做淘宝客网站么2345网址大全设主页
  • 做网站赚不了钱产品营销软文
  • 东莞设计公司网站seo 视频
  • wordpress百度模板网络优化工作应该怎么做
  • 做网站的人怎么上传内容的新郑网络推广
  • 武汉seo网站推广什么平台可以打广告做宣传
  • wordpress聊天福建seo优化