Simple three-step realization of live dry

Alt
During the epidemic, in order to protect the students can not stop [closed] school, the teachers also opened a fancy teaching:

Physics teacher - live homemade device with a coat hanger, calendars, wires

Biology teacher - half the meiosis to be, as it involves biological reproduction content Bidiao system

Math teacher - are diagonal strokes, live stuck by students "ruthless" crazy shots

After this wave of teaching, student or student's home school, but teachers ......

So, let's now ready to get up: Live easy to find the way, it is not their practice !

Alt

What is the Video Cloud

Video Cloud Service is a cloud-based computing technology concept video streaming service that enables customers to cost-efficient way to build a professional video systems to easily conduct online video services. In typical video cloud service processes, content provider captured video will first be encoded in a particular format; video after uploading to the cloud server usually transcoded to adapt to different network environments and a playing terminal in the cloud, the service end will provide personalized value-added services, including statistical data, the contents of the audit, including real-time watermark; accelerated video distribution via content delivery network (CDN), and ultimately played on the terminal device by decoding the content consumer.

Demand and live video cloud is the most typical two service types . Cloud transcoding is the core technology on-demand cloud services through a server in the cloud video into standard formats, different bit rate based on the end user's bandwidth video files, to achieve both clear and smooth viewing experience. Live and on-demand more real-time and unexpected compared to cloud services and thus live more sensitive to delay and the first screen time and other indicators of stability under high concurrency and weak network environment also have higher requirements. And common way many different live, interactive live support for users of two-way communication. This two-way communication on the one hand, extremely low latency tolerance, on the other hand because it involves multiple video streams, codec bandwidth pressure and the pressure increased exponentially . Currently, video and more cloud vendors through a combination of real-time communication technologies to solve problems faced interactive live.

由于视频系统对资源和技术具有双重要求,企业自主搭建视频系统需要耗费极高的成本,但在高并发、弱网的复杂环境下依然难以避免延时和卡顿等问题。搭建视频系统首先需要投入高昂的资金购置基础设施,其次,音视频技术领域研发过程复杂,涉及多样的技术栈,企业需根据实际应用场景和业务需要进行高难度的二次开发,无论人力成本或时间成本考虑都是一笔不小的投入。由于企业独享整台服务器的资源和性能,但在实际应用中很少能够满载运行,导致服务器的大量资源长期处于闲置状态,资源浪费的现象普遍存在。

视频云服务充分发挥了云服务在社会分工方面的优势。通过专业的视频云厂商搭建视频系统,向最终用户提供基础服务和增值服务,大大降低了在线视频的准入门槛,让企业能够专注于自身的核心业务。视频云弹性扩展、按需付费、快速上线等特性,允许企业以低成本、高效率的方式向用户提供优质的视频服务。尤其对于视频领域的初创企业和处在转型阶段的传统企业而言,选择视频云服务可以帮助他们更加灵活地应对行业变化。

视频云直播产品概述

视频云直播产品为客户提供:

  • 一站式服务
  • 从推流、转码、分发大哦播放的端到端解决方案
  • 多终端协议
  • 支持RTMP/HDL/HLS协议,PC/iOs/Android多终端视频直播、观看
  • 专业视频能力
  • 实时转码、直播录制、直播截图、直播时移、直播延时等丰富功能,满足视频直播多种业务需求
  • 安全防护
  • 鉴黄、推拉流鉴权、一键断流等保证直播业务安全
  • 多行业多场景
  • 满足电商、娱乐、在线教育、游戏、京东等多种应用场景
  • 服务与支持
    7*24小时专家客服,随时处理客户问题,保证业连续

Alt
直播架构介绍

直播功能和特性

推流SDK:可带美颜、滤镜、混音等功能网络自适应能力,保障推流端多样性体验以及推流稳定性
直播源站:流管理、直播截图、水印、转码
控制台:管理统一化,模板自助化设置,业务数据监控
定制API:丰富API接口,涵盖业务各环节功能点、业务数据多维度查询
播放SDK:直播内容秒开,软硬解码支持

经典案例 “商城视频回家”

项目背景

京东商城应用的商城直播、商品详情页视频和视频晒单功能。从2018年开始,随着视频量和访问量的不断增多,为了提升京东商城网站和移动端用户访问视频功能的速度和体验,将部分流量和存储相关业务切换至我们自己的云上。

解决方案

迁移的视频业务承载京东商城所有视频点、直播相关的所有业务(商品详情页视频、视频晒单、商城直播),大前提要求向供应商所有涉及的云产品(CDN、对象存储)功能对其,平滑迁移,落地指标不下降的原则。通过对供应商功能、性能的分析,完成对应我云自身的功能设计、性能监控的需求开发,并做好明确、详细的迁移计划。

实施过程

  • 视频内容至同步至京东云对象存储,存量与增量内容同步
  • 点播接口联调,直播功能测试对接
  • 基调探测数据、节点日志服务质量数据报告服务质量分析
  • CDN二级节点预热,灰度少部分边缘节点流量
  • 各省节点按流量大小逐级灰度,至全网节点做业务支撑

简单三步实操-实现直播业务

域名准备

推流域名:http://pushtest.jdpoc.com
拉流域名:http://pulltest.jdpoc.com

Alt
配置后,等待可用状态,非常标准!

Alt

域名配置管理

生成的CNAME,为京东云CDN调度GSLB域名,需要将推拉流域名分别调整CNAME记录到对应的域名上:

验证解析:

root@pjn-dev:~# dig pulltest.jdpoc.com +short
pulltest.jdpoc.com.live-play.galileo.jcloud-cdn.com.
live-sched.jcloud-cdn.com.
106.39.178.7
root@pjn-dev:~# dig pushtest.jdpoc.com +short
pushtest.jdpoc.com.live-publish.galileo.jcloud-cdn.com.
live-sched.jcloud-cdn.com.
106.39.178.7

成功,非常标准!

推拉流测试

首先要介绍下我们的推流与拉流的工具:

Push workflow tools OBS - namely Open Broadcaster Software, it is a free open source real-time video recording and video streaming software. It has multiple functions and widely used in video capture, broadcast and other fields.

Pull stream (play) tool VLC --VLC Multimedia Player (originally named VideoLAN Client) is a multimedia player VideoLAN plan. It supports many audio and video decoders and file formats, and supports DVD video CD, VCD and various streaming audio CD protocol. It can also be used in IPv4 or IPv6 as a high-speed network connection for unicast or multicast streaming server. It combines the FFmpeg program decoders and libdvdcss libraries have it play multimedia files and encrypted DVD discs feature.

Ado, start setting plug flow:

Alt
Alt
Custom appname, streamname be plug flow, after determining the configuration
click [start] plug flow

Alt
OBS plug flow state, we can already observe;
open VLC, click Open Network Stream:

Alt

Alt
Pull stream input address, click on the play:

Alt
Good! You did it, is that simple!

Require complex? Then please look forward to our next it ~

We'll tell you how to accomplish the basic functions used in live: transcoding, watermarking, record, capture, callback control and access control.

If you want to learn more about the video broadcast dry goods, please click on the " read " Get Well!

Welcome Click " Jingdong cloud " for more exciting content.

Alt

Alt

Guess you like

Origin www.cnblogs.com/jdclouddeveloper/p/12297445.html