CN107580232A - A live video system and method - Google Patents
A live video system and method Download PDFInfo
- Publication number
- CN107580232A CN107580232A CN201710900258.0A CN201710900258A CN107580232A CN 107580232 A CN107580232 A CN 107580232A CN 201710900258 A CN201710900258 A CN 201710900258A CN 107580232 A CN107580232 A CN 107580232A
- Authority
- CN
- China
- Prior art keywords
- video
- distributed
- distribution server
- memory unit
- directory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000012552 review Methods 0.000 claims abstract description 19
- 230000005540 biological transmission Effects 0.000 abstract 4
- 230000000875 corresponding effect Effects 0.000 description 61
- 238000010586 diagram Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明涉及视频直播技术领域,更具体地说,涉及一种视频直播系统及方法。The present invention relates to the technical field of video live broadcast, and more specifically, to a video live broadcast system and method.
背景技术Background technique
在视频广电行业,通常有直播和回看两大业务,直播业务把视频直接发送给客户端,为了保障回看业务,直播时需要将视频进行存储。In the video broadcasting industry, there are usually two major services: live broadcast and playback. The live broadcast service sends the video directly to the client. In order to ensure the playback service, the video needs to be stored during the live broadcast.
现有的一种视频直播方法是,在转码服务器端分出两路,一路直接发送视频至分发服务器,以供分发服务器为客户端提供直播业务;另一路对视频进行录制及存储,以供分发服务器利用存储的视频为客户端提供回看业务。An existing video live broadcast method is to divide two channels at the transcoding server side, one channel directly sends the video to the distribution server for the distribution server to provide live broadcast services for the client; the other channel records and stores the video for The distribution server uses the stored video to provide the client with a playback service.
然而,在客户端的数量较多时,需要额外增加转码服务器或者分发服务器来满足客户端的业务需求,工作量大,实施起来较为困难,使得现有的视频直播方法的适应性较差。However, when the number of clients is large, additional transcoding servers or distribution servers need to be added to meet the business needs of the clients. The workload is heavy and implementation is relatively difficult, which makes the adaptability of the existing video live broadcast method poor.
综上所述,如何提高视频直播业务的适应性是目前本领域技术人员亟待解决的问题。To sum up, how to improve the adaptability of the live video service is an urgent problem to be solved by those skilled in the art.
发明内容Contents of the invention
本发明的目的是提供一种视频直播系统,其能在一定程度上解决如何提高视频直播业务的适应性的技术问题。本发明还提供了一种视频直播方法。The purpose of the present invention is to provide a live video system, which can solve the technical problem of how to improve the adaptability of the live video service to a certain extent. The invention also provides a video live broadcast method.
为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
一种视频直播系统,包括:A live video system, comprising:
分布式存储模块,用于接收及存储转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供所述第一分发服务器基于所述视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至所述第二分发服务器,以供所述第二分发服务器基于存储的对应的视频为所述客户端提供回看业务。The distributed storage module is used to receive and store the video sent by the transcoding server, and send the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client based on the video; Triggered by the second distribution server, the stored corresponding video is sent to the second distribution server, so that the second distribution server provides the client with a review service based on the stored corresponding video.
优选的,所述分布式存储模块包括分布式内存单元及分布式文件单元;Preferably, the distributed storage module includes a distributed memory unit and a distributed file unit;
所述分布式内存单元,用于接收所述转码服务器发送的视频,并实时将接收的视频发送至所述第一分发服务器,以供所述第一分发服务器为所述客户端提供直播业务;以及用于发送接收的视频至所述分布式文件单元;The distributed memory unit is configured to receive the video sent by the transcoding server, and send the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client ; and for sending and receiving video to the distributed file unit;
所述分布式文件单元,用于接收并存储所述分布式内存单元发送的视频,并在所述第二分发服务器的触发下,将存储的对应的视频发送至所述第二分发服务器,以供所述第二分发服务器为所述客户端提供回看业务。The distributed file unit is configured to receive and store the video sent by the distributed memory unit, and under the trigger of the second distribution server, send the corresponding stored video to the second distribution server, so as to The second distribution server provides a review service for the client.
优选的,所述分布式内存单元还用于将所述分布式文件单元挂载至自身的本地目录,将接收的视频拷贝至所述分布式文件单元对应的挂载目录,所述挂载目录为挂载所述分布式内存单元的本地目录,同时建立拷贝的视频与所述挂载目录间的对应关系,以供所述第二分发服务器基于所述挂载目录及所述对应关系在所述分布式文件单元中读取所需的视频。Preferably, the distributed memory unit is also used to mount the distributed file unit to its own local directory, and copy the received video to the mounted directory corresponding to the distributed file unit, and the mounted directory In order to mount the local directory of the distributed memory unit, a corresponding relationship between the copied video and the mounted directory is established at the same time, so that the second distribution server can use the mounted directory and the corresponding relationship in the Read the desired video in the distributed file unit described above.
优选的,还包括:Preferably, it also includes:
日志模块,用于记录所述分布式内存单元拷贝的视频、所述挂载目录及所述对应关系,并生成日志。A log module, configured to record the video copied by the distributed memory unit, the mounted directory and the corresponding relationship, and generate a log.
优选的,还包括:Preferably, it also includes:
视频转存软件,用于在所述分布式内存单元的触发下,将所述分布式内存单元接收的视频拷贝至所述分布式文件单元对应的挂载目录。The video dumping software is used to copy the video received by the distributed memory unit to the mount directory corresponding to the distributed file unit under the trigger of the distributed memory unit.
本发明还提供了一种视频直播方法,包括:The present invention also provides a live video broadcasting method, comprising:
分布式存储模块接收及存储转码服务器发送的视频;The distributed storage module receives and stores the video sent by the transcoding server;
所述分布式存储模块实时发送接收的视频至第一分发服务器,以供所述第一分发服务器基于所述视频为客户端提供直播业务;The distributed storage module sends the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client based on the video;
所述分布式存储模块在第二分发服务器的触发下,发送存储的对应的视频至所述第二分发服务器,以供所述第二分发服务器基于所述存储的对应的视频为客户端提供回看业务。Under the trigger of the second distribution server, the distributed storage module sends the corresponding stored video to the second distribution server, so that the second distribution server can provide the client with the corresponding stored video based on the stored video. Look at business.
优选的,所述分布式存储模块包括分布式内存单元及分布式文件单元,所述分布式存储模块为客户端提供直播业务和回看业务包括:Preferably, the distributed storage module includes a distributed memory unit and a distributed file unit, and the distributed storage module provides the client with a live broadcast service and a playback service including:
所述分布式内存单元接收所述转码服务器发送的视频,并实时将接收的视频发送至所述第一分发服务器,以供所述第一分发服务器为所述客户端提供直播业务;以及发送接收的视频至所述分布式文件单元;The distributed memory unit receives the video sent by the transcoding server, and sends the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client; and sends the received video to the distributed file unit;
所述分布式文件单元接收并存储所述分布式内存单元发送的视频,并在所述第二分发服务器的触发下,将存储的对应的视频发送至所述第二分发服务器,以供所述第二分发服务器为所述客户端提供回看业务。The distributed file unit receives and stores the video sent by the distributed memory unit, and under the trigger of the second distribution server, sends the stored corresponding video to the second distribution server for the The second distribution server provides a review service for the client.
优选的,所述分布式内存单元将视频存储至所述分布式文件单元,包括:Preferably, the distributed memory unit stores video to the distributed file unit, including:
所述分布式内存单元将所述分布式文件单元挂载至自身的本地目录,将接收的视频拷贝至所述分布式文件单元对应的挂载目录,所述挂载目录为挂载所述分布式内存单元的本地目录,同时建立拷贝的视频与所述挂载目录间的对应关系,以供所述第二分发服务器基于所述挂载目录及所述对应关系在所述分布式文件单元中读取对应的视频。The distributed memory unit mounts the distributed file unit to its own local directory, and copies the received video to the mount directory corresponding to the distributed file unit, and the mount directory is for mounting the distributed file unit. The local directory of the type memory unit, and at the same time establish the corresponding relationship between the copied video and the mounted directory, so that the second distribution server can distribute the files in the distributed file unit based on the mounted directory and the corresponding relationship Read the corresponding video.
优选的,所述分布式内存单元建立拷贝的视频与所述挂载目录间的对应关系之后,还包括:Preferably, after the distributed memory unit establishes the corresponding relationship between the copied video and the mounted directory, it further includes:
日志模块记录所述分布式内存单元拷贝的视频、所述挂载目录及所述对应关系,并生成日志。The log module records the video copied by the distributed memory unit, the mounted directory and the corresponding relationship, and generates a log.
优选的,所述分布式内存单元将接收的视频拷贝至所述分布式文件单元对应的挂载目录,包括:Preferably, the distributed memory unit copies the received video to the mount directory corresponding to the distributed file unit, including:
视频转存软件在所述分布式内存单元的触发下,将所述分布式内存单元接收的视频拷贝至所述分布式文件单元对应的挂载目录。The video dumping software copies the video received by the distributed memory unit to the mount directory corresponding to the distributed file unit under the trigger of the distributed memory unit.
本发明提供的一种视频直播系统,包括:分布式存储模块,其用于接收及存储转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器基于视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器,以供第二分发服务器基于存储的对应的视频为客户端提供回看业务。本发明提供的一种视频直播系统用分布式存储模块来接收及存储转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器基于视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器,以供第二分发服务器基于存储的对应的视频为客户端提供回看业务。本发明提供的一种视频直播系统借助分布式存储模块来实现直播业务和回看业务,这样在客户端的数量较多时,只需对分布式存储模块进行改进升级,不需要额外增加转码服务器或者分发服务器,与现有技术相比,改进升级分布式存储模块的工作量较少,实施起来较为容易,可以提高视频直播业务的适应性。综上所述,本发明提供的一种视频直播系统在一定程度上解决了如何提高视频直播业务的适应性的技术问题。本发明提供的一种视频直播方法也解决了相应的技术问题。A video live broadcast system provided by the present invention includes: a distributed storage module, which is used to receive and store the video sent by the transcoding server, and send the received video to the first distribution server in real time for the first distribution server based on The video provides a live broadcast service for the client; under the trigger of the second distribution server, the corresponding stored video is sent to the second distribution server, so that the second distribution server provides the client with a review service based on the stored corresponding video. A video live broadcast system provided by the present invention uses a distributed storage module to receive and store the video sent by the transcoding server, and sends the received video to the first distribution server in real time, so that the first distribution server can provide the client with the video based on the video. Live service: under the trigger of the second distribution server, the stored corresponding video is sent to the second distribution server, so that the second distribution server provides the client with a review service based on the stored corresponding video. A video live broadcast system provided by the present invention uses a distributed storage module to realize the live broadcast service and the playback service. In this way, when the number of clients is large, only the distributed storage module needs to be improved and upgraded, and there is no need to add additional transcoding servers or For the distribution server, compared with the prior art, the workload of improving and upgrading the distributed storage module is less, the implementation is relatively easy, and the adaptability of the live video service can be improved. To sum up, the live video system provided by the present invention solves the technical problem of how to improve the adaptability of the live video service to a certain extent. A live video broadcasting method provided by the present invention also solves corresponding technical problems.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例提供的一种视频直播系统的结构示意图;FIG. 1 is a schematic structural diagram of a video live broadcast system provided by an embodiment of the present invention;
图2为实际应用中本发明实施例提供的一种视频直播系统的结构示意图;FIG. 2 is a schematic structural diagram of a video live broadcast system provided by an embodiment of the present invention in practical applications;
图3为本发明实施例提供的一种视频直播方法的流程图。Fig. 3 is a flow chart of a video live broadcast method provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明的申请人发现,视频直播业务中,当客户端的数量增多时,需要额外增加转码服务器或者分发服务器来满足客户端数量增多的需求,比如在转码服务器的带宽不够的情况下,需要增加转码服务器;而增加转码服务器时,由于转码服务器和分发服务器之间的耦合,将新增加的转码服务器添加至直播业务中的工作量大;然而借助分布式存储模块可以很好的解决这一问题。The applicant of the present invention found that in the live video service, when the number of clients increases, additional transcoding servers or distribution servers need to be added to meet the increasing demand of clients. For example, when the bandwidth of the transcoding server is insufficient, it is necessary to Increase the transcoding server; when adding the transcoding server, due to the coupling between the transcoding server and the distribution server, the workload of adding the newly added transcoding server to the live broadcast service is heavy; however, the distributed storage module can be used to to solve this problem.
请参阅图1,图1为本发明实施例提供的一种视频直播系统的结构示意图。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of a video live broadcast system provided by an embodiment of the present invention.
本发明实施例提供的一种视频直播系统可以包括:A live video system provided by an embodiment of the present invention may include:
分布式存储模块A1,用于接收及存储转码服务器A2发送的视频,并实时将接收的视频发送至第一分发服务器A3,以供第一分发服务器A3基于视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器A4,以供第二分发服务器A4基于存储的对应的视频为客户端提供回看业务。The distributed storage module A1 is used to receive and store the video sent by the transcoding server A2, and send the received video to the first distribution server A3 in real time, so that the first distribution server A3 provides live broadcast services for the client based on the video; Under the trigger of the second distribution server, the stored corresponding video is sent to the second distribution server A4, so that the second distribution server A4 provides the client with a review service based on the stored corresponding video.
由于分布式存储模块具有即写即读的功能,可以无间隔的接收视频及将接收的视频发送出去,所以可以满足直播业务视频写入不丢帧和直播不卡顿的需求。此外,由于分布式存储模块的带宽一般比转码服务器的带宽大,其可以为更多的客户端提供直播业务和回看业务;而且在客户端数量较多的时候,可以只对分布式存储单元进行改进升级,而不对转码服务器和分发服务器做改动,比如在分布式存储模块与转码服务器及分发服务器连接关系不变时,仅仅将分布式存储模块的网卡进行升级,比如扩大网卡的带宽等;实际应用中,还可以通过交换机将分布式存储模块与转码服务和分发服务器连接,这样,在需要更换分布式存储模块时,借助交换机可以很方便的实现分布式存储模块的更换。Since the distributed storage module has the function of writing and reading immediately, it can receive video without interval and send the received video, so it can meet the requirements of live broadcast business video writing without frame loss and live broadcast without freezing. In addition, because the bandwidth of the distributed storage module is generally larger than that of the transcoding server, it can provide live broadcast services and playback services for more clients; and when the number of clients is large, only distributed storage modules can The unit is improved and upgraded without changing the transcoding server and distribution server. For example, when the connection relationship between the distributed storage module and the transcoding server and distribution server remains unchanged, only the network card of the distributed storage module is upgraded, such as expanding the network card. Bandwidth, etc.; in practical applications, the distributed storage module can also be connected to the transcoding service and distribution server through the switch, so that when the distributed storage module needs to be replaced, the distributed storage module can be easily replaced by the switch.
本发明提供的一种视频直播系统,包括:分布式存储模块,其用于接收及存储转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器基于视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器,以供第二分发服务器基于对应的存储视频为客户端提供回看业务。本发明提供的一种视频直播系统用分布式存储模块来接收及存储转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器基于视频为客户端提供直播业务;在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器,以供第二分发服务器基于存储的对应的视频为客户端提供回看业务。本发明提供的一种视频直播系统借助分布式存储模块来实现直播业务和回看业务,这样在客户端的数量较多时,只需对分布式存储模块进行改进升级,不需要额外增加转码服务器或者分发服务器,与现有技术相比,改进升级分布式存储模块的工作量较少,实施起来较为容易,可以提高视频直播业务的适应性。综上所述,本发明提供的一种视频直播系统在一定程度上解决了如何提高视频直播业务的适应性的技术问题。A video live broadcast system provided by the present invention includes: a distributed storage module, which is used to receive and store the video sent by the transcoding server, and send the received video to the first distribution server in real time for the first distribution server based on The video provides the live broadcast service for the client; under the trigger of the second distribution server, the corresponding stored video is sent to the second distribution server, so that the second distribution server provides the client with a review service based on the corresponding stored video. A video live broadcast system provided by the present invention uses a distributed storage module to receive and store the video sent by the transcoding server, and sends the received video to the first distribution server in real time, so that the first distribution server can provide the client with the video based on the video. Live service: under the trigger of the second distribution server, the stored corresponding video is sent to the second distribution server, so that the second distribution server provides the client with a review service based on the stored corresponding video. A video live broadcast system provided by the present invention uses a distributed storage module to realize the live broadcast service and the playback service. In this way, when the number of clients is large, only the distributed storage module needs to be improved and upgraded, and there is no need to add additional transcoding servers or For the distribution server, compared with the prior art, the workload of improving and upgrading the distributed storage module is less, the implementation is relatively easy, and the adaptability of the live video service can be improved. To sum up, the live video system provided by the present invention solves the technical problem of how to improve the adaptability of the live video service to a certain extent.
请参阅图2,图2为实际应用中本发明实施例提供的一种视频直播系统的结构示意图。Please refer to FIG. 2 . FIG. 2 is a schematic structural diagram of a video live broadcast system provided by an embodiment of the present invention in practical application.
本发明实施例提供的一种视频直播系统中,分布式存储模块A1可以包括分布式内存单元A11及分布式文件单元A12;In a live video system provided by an embodiment of the present invention, the distributed storage module A1 may include a distributed memory unit A11 and a distributed file unit A12;
分布式内存单元A11,用于接收转码服务器A2发送的视频,并实时将接收的视频发送至第一分发服务器A3,以供第一分发服务器A3为客户端提供直播业务;以及用于发送接收的视频至分布式文件单元A12;The distributed memory unit A11 is used to receive the video sent by the transcoding server A2, and send the received video to the first distribution server A3 in real time, so that the first distribution server A3 provides live broadcast services for the client; and is used for sending and receiving to the distributed file unit A12;
分布式文件单元A12,用于接收并存储分布式内存单元A11发送的视频,并在第二分发服务器A4的触发下,将存储的对应的存储视频发送至第二分发服务器A4,以供第二分发服务器A4为客户端提供回看业务。The distributed file unit A12 is used to receive and store the video sent by the distributed memory unit A11, and under the trigger of the second distribution server A4, send the corresponding stored video to the second distribution server A4 for the second distribution server A4 The distribution server A4 provides a review service for the client.
实际应用中,可以将分布式存储模块拆分为分布式内存单元和分布式文件单元;分布式内存单元用于接收转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器为客户端提供直播业务,同时发送接收的视频至分布式文件单元;分布式文件单元用于接收并存储分布式内存单元发送的视频,并在第二分发服务器的触发下,将存储的与第二分发服务器对应的视频发送至第二分发服务器,以供第二分发服务器为客户端提供回看业务。这样借助分布式内存单元和分布式文件单元可以将分布式存储模块的直播业务和回看业务分开,在直播业务或者回看业务繁忙的情况下,只对对应的单元进行改进升级即可,可以进一步降低工作量,比如在直播业务繁忙的时候,只对负责直播业务的分布式内存单元进行改进升级即可。In practical applications, the distributed storage module can be split into a distributed memory unit and a distributed file unit; the distributed memory unit is used to receive the video sent by the transcoding server, and send the received video to the first distribution server in real time, For the first distribution server to provide live broadcast services for the client, and at the same time send the received video to the distributed file unit; the distributed file unit is used to receive and store the video sent by the distributed memory unit, and under the trigger of the second distribution server , sending the stored video corresponding to the second distribution server to the second distribution server, so that the second distribution server can provide the client with a review service. In this way, with the help of the distributed memory unit and the distributed file unit, the live broadcast service and the review service of the distributed storage module can be separated. When the live broadcast service or the review service is busy, only the corresponding unit can be improved and upgraded. To further reduce the workload, for example, when the live broadcast service is busy, only the distributed memory unit responsible for the live broadcast service can be improved and upgraded.
本发明实施例提供的一种视频直播系统中,分布式内存单元还用于将分布式文件单元挂载至自身的本地目录,将接收的视频拷贝至分布式文件单元对应的挂载目录,挂载目录为挂载分布式内存单元的本地目录,同时建立拷贝的视频与挂载目录间的对应关系,以供第二分发服务器基于挂载目录及对应关系在分布式文件单元中读取对应的视频。In a video live broadcast system provided by an embodiment of the present invention, the distributed memory unit is also used to mount the distributed file unit to its own local directory, copy the received video to the mounted directory corresponding to the distributed file unit, and mount the The upload directory is the local directory of the mounted distributed memory unit, and the corresponding relationship between the copied video and the mounted directory is established at the same time, so that the second distribution server can read the corresponding video in the distributed file unit based on the mounted directory and the corresponding relationship. video.
实际应用中,可以借助挂载这一现有技术来降低分布式文件单元、分布式内存单元和第二分发服务器间的IO时延,这里的IO时延指的是分布式内存单元将视频存储至分布式文件单元及第二分发服务器读取存储在分布式文件单元的视频的时延,实现过程可以如下:分布式内存单元将分布式文件单元挂载至自身的本地目录,将接收的视频拷贝至分布式文件单元对应的挂载目录,同时建立拷贝的视频与挂载目录间的对应关系,以供第二分发服务器基于挂载目录及对应关系在分布式文件单元中读取对应的视频。实际应用中,拷贝视频和建立对应关系的操作可以为原子性,也即两个操作同时进行同时结束,这样可以保障挂载操作的顺利实现。In practical applications, the existing technology of mounting can be used to reduce the IO delay between the distributed file unit, the distributed memory unit and the second distribution server. The IO delay here refers to the distributed memory unit storing video To the distributed file unit and the second distribution server to read the time delay of the video stored in the distributed file unit, the implementation process can be as follows: the distributed memory unit mounts the distributed file unit to its own local directory, and the received video Copy to the mounting directory corresponding to the distributed file unit, and establish a corresponding relationship between the copied video and the mounting directory, so that the second distribution server can read the corresponding video in the distributed file unit based on the mounting directory and the corresponding relationship . In practical applications, the operation of copying video and establishing a corresponding relationship can be atomic, that is, the two operations are completed at the same time, which can ensure the smooth implementation of the mount operation.
本发明实施例提供的一种视频直播系统中,还可以包括:In a live video system provided by an embodiment of the present invention, it may also include:
日志模块,用于记录分布式内存单元拷贝的视频、挂载目录及对应关系,并生成日志。The log module is used to record the video copied by the distributed memory unit, the mounted directory and the corresponding relationship, and generate a log.
实际应用中,可以在本发明实施例提供的一种视频直播系统中设置日志模块,日志模块用于记录分布式内存单元拷贝的视频、挂载目录及对应关系,并生成日志,这样可以便于外界通过日志模块查看挂载进程。日志模块还可以根据实际需要记录其他内容,本发明在这里不做具体限定In practical applications, a log module can be set in a video live broadcast system provided by the embodiment of the present invention, and the log module is used to record the video copied by the distributed memory unit, the mounted directory and the corresponding relationship, and generate a log, which can facilitate external View the mounting process through the log module. The log module can also record other content according to actual needs, and the present invention does not specifically limit it here
本发明实施例提供的一种视频直播系统中,还可以包括:In a live video system provided by an embodiment of the present invention, it may also include:
视频转存模块,用于在分布式内存单元的触发下,将分布式内存单元接收的视频拷贝至分布式文件单元对应的挂载目录。The video dump module is used to copy the video received by the distributed memory unit to the mount directory corresponding to the distributed file unit under the trigger of the distributed memory unit.
实际应用中,还可以在本发明实施例提供的一种视频直播系统中设置视频转存模块,视频转存模块用于在分布式内存单元的触发下,将分布式内存单元接收的视频拷贝至分布式文件单元对应的挂载目录,借助视频转存模块可以降低分布式内存单元的服务压力。实际应用中,可以是分布式内存单元向视频转存模块发送指令,视频转存模块接到指令后自动读取分布式内存单元接收的视频并将读取的视频拷贝至分布式文件单元对应的挂载目录。In practical applications, a video dump module can also be set in a video live broadcast system provided by an embodiment of the present invention, and the video dump module is used to copy the video received by the distributed memory unit to the The mounting directory corresponding to the distributed file unit can reduce the service pressure of the distributed memory unit with the help of the video dump module. In practical applications, the distributed memory unit may send an instruction to the video dump module, and the video dump module automatically reads the video received by the distributed memory unit after receiving the instruction and copies the read video to the corresponding file location of the distributed file unit. Mount directory.
本发明还提供了一种视频直播方法,其具有本发明实施例提供的一种视频直播系统具有的对应效果。请参阅图3,图3为本发明实施例提供的一种视频直播方法的流程图。The present invention also provides a video live broadcast method, which has the corresponding effect of the video live broadcast system provided by the embodiment of the present invention. Please refer to FIG. 3 . FIG. 3 is a flow chart of a video live broadcast method provided by an embodiment of the present invention.
本发明实施例提供的一种视频直播方法可以包括以下步骤:A video live broadcast method provided by an embodiment of the present invention may include the following steps:
步骤S101:分布式存储模块接收及存储转码服务器发送的视频;Step S101: the distributed storage module receives and stores the video sent by the transcoding server;
步骤S102:分布式存储模块实时发送接收的视频至第一分发服务器,以供第一分发服务器基于视频为客户端提供直播业务;Step S102: The distributed storage module sends the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client based on the video;
步骤S103:分布式存储模块在第二分发服务器的触发下,发送存储的对应的视频至第二分发服务器,以供第二分发服务器基于存储的对应的视频为客户端提供回看业务。Step S103: Triggered by the second distribution server, the distributed storage module sends the stored corresponding video to the second distribution server, so that the second distribution server provides the client with a review service based on the stored corresponding video.
本发明实施例提供的一种视频直播方法中,分布式存储模块可以包括分布式内存单元及分布式文件单元,分布式存储模块为客户端提供直播业务和回看业务可以包括:In a video live broadcast method provided by an embodiment of the present invention, the distributed storage module may include a distributed memory unit and a distributed file unit, and the distributed storage module may provide a live broadcast service and a playback service for a client, including:
分布式内存单元接收转码服务器发送的视频,并实时将接收的视频发送至第一分发服务器,以供第一分发服务器为客户端提供直播业务;以及发送接收的视频至分布式文件单元;The distributed memory unit receives the video sent by the transcoding server, and sends the received video to the first distribution server in real time, so that the first distribution server provides live broadcast services for the client; and sends the received video to the distributed file unit;
分布式文件单元接收并存储分布式内存单元发送的视频,并在第二分发服务器的触发下,将存储的对应的视频发送至第二分发服务器,以供第二分发服务器为客户端提供回看业务。The distributed file unit receives and stores the video sent by the distributed memory unit, and under the trigger of the second distribution server, sends the corresponding stored video to the second distribution server, so that the second distribution server can provide the client with a review business.
本发明实施例提供的一种视频直播方法中,分布式内存单元将视频存储至分布式文件单元,可以包括:In a video live broadcast method provided by an embodiment of the present invention, the distributed memory unit stores the video in the distributed file unit, which may include:
分布式内存单元将分布式文件单元挂载至自身的本地目录,将接收的视频拷贝至分布式文件单元对应的挂载目录,挂载目录为挂载分布式内存单元的本地目录,同时建立拷贝的视频与挂载目录间的对应关系,以供第二分发服务器基于挂载目录及对应关系在分布式文件单元中读取对应的视频。The distributed memory unit mounts the distributed file unit to its own local directory, and copies the received video to the mounting directory corresponding to the distributed file unit. The mounting directory is the local directory where the distributed memory unit is mounted, and a copy is created at the same time The corresponding relationship between the video and the mounted directory is used for the second distribution server to read the corresponding video in the distributed file unit based on the mounted directory and the corresponding relationship.
本发明实施例提供的一种视频直播方法中,分布式内存单元建立拷贝的视频与挂载目录间的对应关系之后,还可以包括:In a video live broadcast method provided by an embodiment of the present invention, after the distributed memory unit establishes the corresponding relationship between the copied video and the mounted directory, it may further include:
日志模块记录分布式内存单元拷贝的视频、挂载目录及对应关系,并生成日志。The log module records the video copied by the distributed memory unit, the mounted directory and the corresponding relationship, and generates a log.
本发明实施例提供的一种视频直播方法中,分布式内存单元将接收的视频拷贝至分布式文件单元对应的挂载目录,可以包括:In a video live broadcast method provided by an embodiment of the present invention, the distributed memory unit copies the received video to the mounting directory corresponding to the distributed file unit, which may include:
视频转存软件在分布式内存单元的触发下,将分布式内存单元接收的视频拷贝至分布式文件单元对应的挂载目录。Under the trigger of the distributed memory unit, the video dump software copies the video received by the distributed memory unit to the mount directory corresponding to the distributed file unit.
本发明实施例提供的一种视频直播方法中相关部分的说明请参见本发明实施例提供的一种视频直播系统中对应部分的详细说明,在此不再赘述。另外,本发明实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。For the description of the relevant parts in the video live broadcast method provided by the embodiment of the present invention, please refer to the detailed description of the corresponding part in the video live broadcast system provided by the embodiment of the present invention, and details are not repeated here. In addition, the parts of the technical solutions provided by the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710900258.0A CN107580232A (en) | 2017-09-28 | 2017-09-28 | A live video system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710900258.0A CN107580232A (en) | 2017-09-28 | 2017-09-28 | A live video system and method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107580232A true CN107580232A (en) | 2018-01-12 |
Family
ID=61039556
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710900258.0A Pending CN107580232A (en) | 2017-09-28 | 2017-09-28 | A live video system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107580232A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111107386A (en) * | 2019-12-27 | 2020-05-05 | 北京达佳互联信息技术有限公司 | Live video playback method and device, electronic equipment, system and storage medium |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1972440A (en) * | 2006-12-13 | 2007-05-30 | 北京大学 | An implementation method for picture-in-picture in IPTV |
| CN101039329A (en) * | 2006-12-28 | 2007-09-19 | 中兴通讯股份有限公司 | Media delivery system of network TV system based on media delivery |
| CN101083756A (en) * | 2007-03-14 | 2007-12-05 | 中国科学技术大学 | internet based TV stream data real time transmission and service apparatus and method |
| CN101355476A (en) * | 2008-05-23 | 2009-01-28 | 林云帆 | System and method for storing, distributing and applying data files based on server cluster |
| CN101557499A (en) * | 2008-04-09 | 2009-10-14 | 中兴通讯股份有限公司 | System and method for delivering media and method for renewing resource of media delivering system |
| CN101635635A (en) * | 2009-08-25 | 2010-01-27 | 北京原力创新科技有限公司 | Cloud mode streaming media service platform |
| CN101727503A (en) * | 2010-01-29 | 2010-06-09 | 宋振华 | Method for establishing disk file system |
| CN101873348A (en) * | 2010-06-09 | 2010-10-27 | 清华大学 | Cloud storage system based on network egress device and network access method thereof |
| CN101917591A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method and device for playing back live video |
| CN101980198A (en) * | 2010-11-01 | 2011-02-23 | 福州星网视易信息系统有限公司 | Method for carrying karaoke |
| CN102170473A (en) * | 2011-04-21 | 2011-08-31 | 中兴通讯股份有限公司 | Resource sharing system, mobile terminal and resource sharing method |
| CN102546780A (en) * | 2011-12-28 | 2012-07-04 | 山东大学 | Operation method for file distributed storage based on thin client |
| CN103116729A (en) * | 2013-01-15 | 2013-05-22 | 厦门市美亚柏科信息股份有限公司 | Method and system of automatic export of data of portable device |
| US20130152142A1 (en) * | 1998-05-06 | 2013-06-13 | Tivo Inc. | Playback of Audio/Video Content with Control Codes |
| CN106385619A (en) * | 2016-09-14 | 2017-02-08 | 乐视控股(北京)有限公司 | Replay method and device for live broadcast video stream |
-
2017
- 2017-09-28 CN CN201710900258.0A patent/CN107580232A/en active Pending
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130152142A1 (en) * | 1998-05-06 | 2013-06-13 | Tivo Inc. | Playback of Audio/Video Content with Control Codes |
| CN1972440A (en) * | 2006-12-13 | 2007-05-30 | 北京大学 | An implementation method for picture-in-picture in IPTV |
| CN101039329A (en) * | 2006-12-28 | 2007-09-19 | 中兴通讯股份有限公司 | Media delivery system of network TV system based on media delivery |
| CN101083756A (en) * | 2007-03-14 | 2007-12-05 | 中国科学技术大学 | internet based TV stream data real time transmission and service apparatus and method |
| CN101557499A (en) * | 2008-04-09 | 2009-10-14 | 中兴通讯股份有限公司 | System and method for delivering media and method for renewing resource of media delivering system |
| CN101355476A (en) * | 2008-05-23 | 2009-01-28 | 林云帆 | System and method for storing, distributing and applying data files based on server cluster |
| CN101635635A (en) * | 2009-08-25 | 2010-01-27 | 北京原力创新科技有限公司 | Cloud mode streaming media service platform |
| CN101917591A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method and device for playing back live video |
| CN101727503A (en) * | 2010-01-29 | 2010-06-09 | 宋振华 | Method for establishing disk file system |
| CN101873348A (en) * | 2010-06-09 | 2010-10-27 | 清华大学 | Cloud storage system based on network egress device and network access method thereof |
| CN101980198A (en) * | 2010-11-01 | 2011-02-23 | 福州星网视易信息系统有限公司 | Method for carrying karaoke |
| CN102170473A (en) * | 2011-04-21 | 2011-08-31 | 中兴通讯股份有限公司 | Resource sharing system, mobile terminal and resource sharing method |
| CN102546780A (en) * | 2011-12-28 | 2012-07-04 | 山东大学 | Operation method for file distributed storage based on thin client |
| CN103116729A (en) * | 2013-01-15 | 2013-05-22 | 厦门市美亚柏科信息股份有限公司 | Method and system of automatic export of data of portable device |
| CN106385619A (en) * | 2016-09-14 | 2017-02-08 | 乐视控股(北京)有限公司 | Replay method and device for live broadcast video stream |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111107386A (en) * | 2019-12-27 | 2020-05-05 | 北京达佳互联信息技术有限公司 | Live video playback method and device, electronic equipment, system and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110121871B (en) | Request-based encoding system and method for streaming content portions | |
| US8874700B2 (en) | Optimizing storage of data files | |
| CA2858654C (en) | Media service and method for delivery of stored media | |
| CN104052770A (en) | Storage space expansion system and method | |
| CN105323272A (en) | Method, terminal and system for managing clipboard | |
| CN105025391A (en) | Video playing method and apparatus | |
| CN110300339B (en) | Live multimedia playback method, device and system | |
| CN103368991A (en) | Cloud storage immediate synchronization system | |
| CN102131114A (en) | A playlist providing method and system | |
| CN110781149A (en) | Method, device, equipment and storage medium for managing live broadcast room information | |
| CN100574439C (en) | Realize the system and method that third party's audio-video frequency content is uploaded in the IPTV system | |
| US9921918B1 (en) | Cloud-based data backup and management | |
| CN103179153A (en) | Mobile terminal and mobile terminal data backup method based on cloud server | |
| CN114501044B (en) | Live broadcast data processing method, device, equipment and storage medium | |
| CN107580232A (en) | A live video system and method | |
| US11622164B2 (en) | System and method for streaming video/s | |
| CN108848180A (en) | A kind of metadata synchronization method, device, equipment and readable storage medium storing program for executing | |
| WO2025015917A1 (en) | Object pushing method and apparatus, and related device | |
| CN115859232A (en) | Electronic asset title confirmation business processing method, device, electronic device and storage medium | |
| CN102438171B (en) | Program source document handling method, device and network television system | |
| CN103795810A (en) | Data distribution system and method and central server of data distribution system | |
| KR101440186B1 (en) | Real Time Data Migration System and Method therefor | |
| CN106302617B (en) | Data processing method and device applied to computing device | |
| CN111352916B (en) | Data storage method, system and storage medium based on NAS storage system | |
| CN110297598B (en) | A data synchronization method and storage system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180112 |