当前位置:网站首页>Deployment and test of crtmp live video server
Deployment and test of crtmp live video server
2022-06-28 00:09:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
One 、 build CRTMP video live broadcast The server
1、 download CRTMP Server software
svn co –username anonymous –password “” https://svn.rtmpd.com/crtmpserver/trunk crtmpserver
2、 Enter the following directory , function cleanup.sh
cd crtmpserver/builders/cmak/ sh cleanup.sh
3、 Build a compilation environment
install cmake、build-essential、libssl0.9.8、libssl-dev.
4、make
cmake .
make
5、 Run the server
./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua( stay crtmpserver/builders/cmak/ Run in directory , among crtmpserver.lua For profile )
Two 、 test player
6、 Live test
download http://www.longtailvideo.com/players/jw-flv-player/ player
After downloading, there is a mediaplayer-5.6-viral Compressed package , After decompressing ,player.swf For the player ,video.mp4 For test video , take player.swf\video.mp4\swfobject.js\jwplayer.js Upload to web Test on the server
Edit a simple page to test
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” ” http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“> <html xmlns=” http://www.w3.org/1999/xhtml“> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf8″ /> <title> Video test </title> </head>
<body style=”width:980px; background-color:#000000;”> <div style=”margin-left:300px;”> <embed id=”player” width=”480″ height=”380″ flashvars=”&streamer=start&type=http&autostart=true&logo=&plugins=none&file= http://192.168.3.108/test/video.mp4” wmode=”transparent” allowscriptaccess=”always” allowfullscreen=”true” quality=”high” name=”player” style=”” src=” http://192.168.3.108/test/player.swf” type=”application/x-shockwave-flash”> </div> </body> </html>
After testing , Test success
Discover that you can publish , But I didn't use two js file , Later, I found out that these two files were used for javascrip The use of .
3、 ... and 、 live streaming
Edit a live broadcast page
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” ” http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“> <html xmlns=” http://www.w3.org/1999/xhtml“> <head> <meta http-equiv=”Content-Type” content=”text/html”; charset=”utf8″ /> <script type=”text/javascript” src=”/test/jwplayer.js”></script> <script type=”text/javascript” src=”/test/swfobject.js”></script> <title> Video test </title> </head>
<body style=”width:980px; background-color:#003000;”>
<div id=’mediaplayer’>The player will be placed here</div>
<script type=”text/javascript”> jwplayer(‘mediaplayer’).setup({ flashplayer: ” http://192.168.3.108/test/player.swf“, width: ‘1024’, height: ‘788’, provider: ‘rtmp’, streamer: ‘rtmp://192.168.3.68/flvplayback/’, file: ‘vod’ }); </script>
</div> </body> </html>
open crtmpd The server
./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
download FlashMediaLiveEncoder For live broadcast machine
download e2eSoft VCam As a virtual camera , As the input device of live broadcast
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/133034.html Link to the original text :https://javaforall.cn
边栏推荐
- 超纲练习题不超纲
- golang使用mongo-driver操作——查(数组相关)
- 翻译(5): 技术债务墻:一种让技术债务可见并可协商的方法
- Although the TCGA database has 33 cancers
- One step forward is excellent, one step backward is ignorant
- Cornernet由浅入深理解
- 赛尔笔记|视频文本预训练简述
- [PCL self study: segmentation4] point cloud segmentation based on Min cut
- 炼金术(6): 可迭代的模型和用例
- 本地可视化工具连接阿里云centOS服务器的redis
猜你喜欢

认识微信小程序项目的基本组成结构

零基础自学SQL课程 | SQL基本函数大全
![[PCL self study: pclplotter] pclplotter draws data analysis chart](/img/ca/db68d5fae392c7976bfc93d2107509.png)
[PCL self study: pclplotter] pclplotter draws data analysis chart

Local visualization tool connects to redis of Alibaba cloud CentOS server
Does the subscription of Siyuan notes stop deleting cloud data directly?
![[microservices sentinel] sentinel data persistence](/img/9f/2767945db99761bb35e2bb5434b44d.png)
[microservices sentinel] sentinel data persistence
![[PCL self study: segmentation4] point cloud segmentation based on Min cut](/img/af/a6c5abf357c1db0718df505499df70.png)
[PCL self study: segmentation4] point cloud segmentation based on Min cut
![Using two stacks to implement queues [two first in first out is first in first out]](/img/de/07297816f1a44d41389bb45d012c80.png)
Using two stacks to implement queues [two first in first out is first in first out]
![用两个栈实现队列[两次先进后出便是先进先出]](/img/de/07297816f1a44d41389bb45d012c80.png)
用两个栈实现队列[两次先进后出便是先进先出]

Zero foundation self-study SQL course | case function
随机推荐
吴恩达《机器学习》课程总结(14)_降维
股市小白在网上股票开户安全吗?
線程池實現:信號量也可以理解成小等待隊列
Const keyword and its function (usage), detailed explanation of C language const
QStringList 的学习笔记
[AI application] detailed parameters of NVIDIA geforce RTX 1080ti
积分体系和营销活动结合在一起有哪些玩法
MySQL enterprise parameter tuning practice sharing
Is not null and in SQL= Difference between null
[PCL self study: pclplotter] pclplotter draws data analysis chart
Chenyun pytorch learning notes_ Build RESNET with 50 lines of code
How to select documents for literature review? For example, I can't finish reading more than 200 search results. How to select documents
SCU|通过深度强化学习进行微型游泳机器人的步态切换和目标导航
VMware virtual machine bridging connectivity
系统学习+主动探索,是最舒适的入门学习方式!
ASP. Net warehouse purchase, sales and inventory ERP management system source code ERP applet source code
Pat class B 1013
NDSS 2022 received list
炼金术(8): 开发和发布的并行
flutter系列之:flutter中的变形金刚Transform