当前位置:网站首页>利用流媒体将RSTP流转成WEB端播放(二)[可回看]
利用流媒体将RSTP流转成WEB端播放(二)[可回看]
2022-07-24 05:19:00 【我惠依旧】
利用ffmpeg+nginx-rtmp(文章地址)的形式在各大浏览器禁用falsh之后就显得不那么可靠了,并且在低并发的情况下,都会把普通服务器的CPU跑满,目前未用过专业的服务器测试,普通的服务器大概小几十个流就推不动了,效果不理想。
于是需求解决方案,嘿,还真找到了,并且已经测试通过了。
建议:
链接:https://pan.baidu.com/s/1ARwaBTgJcMJ_6qQ3fZH6eQ
提取码:zkht
先下载,边下载边食用。
原文地址:https://blog.csdn.net/qq_36801998/article/details/117701370
点进去乍一看,局限性比较大,貌似只支持GB28181协议的流才可以,但其实不然。咱慢慢来(原理架构的就不贴了,请移步原博客)。
先上效果图:

可以看到 设备连接上来了,我们点击通道,观看一下直播

测试推流(抓屏推送工具):
配置地址

点击运行
查看后台:

利用flv播放:

拉流测试:

点击播放

云端录像:


这是录屏的record
总体是可以使用的,就是坑比较多...
整理的坑比较少的(不能说没有,我已经尽量踩完了)的链接:
链接:https://pan.baidu.com/s/1ARwaBTgJcMJ_6qQ3fZH6eQ
提取码:zkht
还有就是,不要使用谷歌92版本登录后台!不要使用谷歌92版本登录后台!不要使用谷歌92版本登录后台!
因为播放不了视频流![]()
92版不支持sharebuffer共享

会报错:sharedArraybuffer is no defined
这里在提供一下flv的简单测试程序:
https://gitee.com/Mr-Format/rtsp-to-flv.git
npm install -》npm start
这个项目可以直接播放rtsp 传参即可 通过node调用ffmpeg转流播放

我们利用它测试wvp项目的流,之前也已经看到效果了

项目下载完成之后内附说明文件:

还有就是 onvif放入这个目录

到这我们就基本完成了任务,之后根据需求二开就好啦
告辞!
源码:
边栏推荐
- Promise_ Async and await
- 聊聊强缓存与协商缓存
- Array_ 01return in foreach
- Insanity:1(Insanity-Hosting)靶机渗透 —Vulnhub
- 7. Draw a Bezier curve on the screen and smooth the curve with anti aliasing technology.
- canvas - 旋转
- OpenGL simulates the process of a ball falling to the ground and bouncing up in real life. Draw a ball on the screen, and the ball will fall from top to bottom, hit the ground and bounce up again.
- C document reading and writing plus linked list addition, deletion, modification and query
- Canvas Bezier Bezier curve
- haclabs: no_name(HL.ova)靶机渗透-Vulnhub
猜你喜欢

Mobile software development ISO simple wechat

PHP 多行文字内容的重复检测功能并统计重复次数

How to forcibly uninstall Google browser? Don't worry about Google opening as a whiteboard. It's effective for personal testing.

Canvas - fill

Pycharm configures LAN access, and the LAN cannot access the solution

The profound meaning of unlimited ecological development in Poka -- Multidimensional Interpretation of parallel chain

Geoserver自动化上传Shapefile

Station B video comment crawling - take the blade of ghost destruction as an example (and store it in CSV)

canvas - Bezier 贝塞尔曲线

special effects - 鼠标移动,出现星星拖尾
随机推荐
Tabs tab (EL tabs)_ Cause the page to jam
JS链表中的快慢指针
C document reading and writing plus linked list addition, deletion, modification and query
通用分页01
Geoserver REST API功能解析
Vulnhub-Funbox: Rookie(Funbox2)靶机渗透
面向 对象
MySQL 批量插入demo
Canvas - fill
pycharm 配置局域网访问,局域网无法访问解决办法
函数多种类型
在 Polkadot 中进行创建的三种方式 —— 平行链、平行线程、智能合约
New grammar 01_ ES6 new syntax
Useref create dynamic reference
3. Draw a five sided cone with a square bottom on the screen. The bottom of the cone is on the xoz plane and the top of the cone is on the Y axis. Use the following figure to map the texture of the fo
flex布局
haclabs: no_name(HL.ova)靶机渗透-Vulnhub
The project is deployed to the public network for free (intranet penetration)
Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
闲来写博~简单说说let和var和const