WO2016062081A1 - 实现hls频道回看业务的系统、设备和方法、存储介质 - Google Patents
实现hls频道回看业务的系统、设备和方法、存储介质 Download PDFInfo
- Publication number
- WO2016062081A1 WO2016062081A1 PCT/CN2015/079375 CN2015079375W WO2016062081A1 WO 2016062081 A1 WO2016062081 A1 WO 2016062081A1 CN 2015079375 W CN2015079375 W CN 2015079375W WO 2016062081 A1 WO2016062081 A1 WO 2016062081A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- server
- channel
- lookback
- fragment
- module
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 239000012634 fragment Substances 0.000 claims abstract description 155
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000012986 modification Methods 0.000 claims description 33
- 230000004048 modification Effects 0.000 claims description 33
- 230000006870 function Effects 0.000 claims description 27
- 238000012552 review Methods 0.000 claims description 17
- 230000002159 abnormal effect Effects 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 10
- 230000005856 abnormality Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 230000015654 memory Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N21/2343—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
- H04N21/23439—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements for generating different versions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2405—Monitoring of the internal components or processes of the server, e.g. server load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26258—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64723—Monitoring of network processes or resources, e.g. monitoring of network load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Definitions
- the present invention relates to the field of Internet video playback technologies, and in particular, to a system, device and method for implementing an HLS (HTTP Live Streaming) channel review service, and a computer storage medium.
- HLS HTTP Live Streaming
- IPTV interactive network television
- each server separately records and provides the HLS channel review service separately.
- the service will not be provided, which will cause the user service to be interrupted for a long time and affect the user experience.
- the service capability of a single server often fails to meet the application requirements of the user. . Therefore, in the commercial operation mode, there is an urgent need to improve the service capabilities and service quality of the HLS channel service server.
- All servers go to the source station to download live segments, and the bandwidth requirements between the server and the source station are relatively high; 2) all servers store a live segment, and the duplicate storage problem is more prominent, making the local storage capacity The requirements are relatively high.
- embodiments of the present invention are expected to provide a system, device, and method for implementing an HLS channel lookback service, and a computer storage medium, which can save bandwidth usage between a server and a video source station, and reduce the storage capacity occupied by the server. .
- An embodiment of the present invention provides a system for implementing an HLS channel lookback service, where the system includes: a management server and a look back server cluster; wherein, the look back server cluster includes two or more lookback servers;
- the management server is configured to monitor each lookback server in the lookback server cluster, and allocate an HLS channel to each lookback server in the lookback server cluster;
- the lookback server is configured to record a live stream of the HLS channel allocated by the management server, and share the recorded transport stream ts fragment file and the corresponding ts fragment file information to the lookback server cluster itself. And the other look-back server; in response to the index request initiated by the user terminal, acquire the ts fragment file information corresponding to the index request, and form an index file to be sent to the user terminal; and respond to the ts fragment request sent by the user terminal to obtain The ts fragment requests a corresponding ts fragment file, and sends the obtained ts fragment file to the user terminal.
- the management server is further configured to: look back to the server cluster broadcast status query message; according to the received status information returned by each lookback server, allocate the HLS channel to each lookback server, and look back at the server cluster broadcast channel recording.
- the lookback server is further configured to receive a status query message sent by the management server, and return its own status information to the management server; receive a channel recording message sent by the management server, and store the channel recording message in a local database.
- the management server is further configured to: after discovering the lookback server in which the recording function is abnormal in the lookback server cluster, all the channels that the recording back function is responsible for recording are allocated to the other than the self. Recording function is normal, look back at the server to record System, and issue a channel modification message to all the lookback servers in the look back server cluster;
- the lookback server is further configured to receive the channel modification message and store the channel modification message in a local database.
- the present invention also provides a lookback server, which includes: a recording module, a distributed file system module, an information sharing module, a database module, and a service module;
- the recording module is configured to record the allocated HLS channel live stream, and store the recorded ts fragment file in the distributed file system module, and the ts fragment file information corresponding to the ts fragment file Stored in the database module;
- the distributed file system module is configured to store the recorded ts fragment file and the corresponding ts fragment file information, and share the ts fragment file and the corresponding ts fragment file information in the server cluster;
- the information sharing module is configured to periodically update the ts fragment file information corresponding to the ts fragment file recorded by the recording module from the database module to the distributed file system module, and periodically Retrieving the ts fragment file information corresponding to the ts fragment file recorded by the other lookback server in the server cluster, and importing the database module from the distributed file system module;
- the database module is configured to store all ts fragment file information for query and retrieval;
- the service module is configured to: in response to the index request initiated by the user terminal, obtain the ts fragment file information corresponding to the index request from the database module, and form an index file to be sent to the user terminal;
- the ts fragment request, the ts fragment file corresponding to the ts fragment request is obtained from the distributed file system module, and the ts fragment file is sent to the user terminal.
- the service module further includes:
- a status query unit configured to receive a status query message sent by the management server, and return status information of the returned server to the management server;
- the recording module further includes:
- the channel recording unit is configured to receive a channel recording message sent by the management server, and store the channel recording message in the database module.
- the recording module further includes:
- the channel modification unit is configured to receive the channel modification message when the management server sends the channel modification message, and store the channel modification message in the database module.
- the invention also provides a management server, the management server comprising:
- a status query module configured to broadcast back a status query message to each lookback server in the server cluster
- the channel allocation module is configured to allocate an HLS channel to the lookback servers according to the received status information returned by the lookback servers, and record the message to the server cluster broadcast channel.
- the management server further includes:
- the abnormality processing module is configured to: after discovering the lookback server in which the recording function is abnormal in the look back server cluster, allocate all the channels that the recording function is abnormal to the recording server to the other lookback server with normal recording function. Record and send a channel modification message to all the lookback servers in the look back server cluster.
- the present invention also provides a method for implementing an HLS channel lookback service, the method comprising:
- the live stream of the assigned HLS channel is recorded, and the recorded ts fragment file and the corresponding ts fragment file information are shared in the server cluster;
- the ts fragment file information corresponding to the index request is obtained, and the index file is sent to the user terminal, and the ts fragment request sent by the user terminal is obtained in response to the index request initiated by the user terminal.
- the ts fragment request corresponds to the ts fragment file, and the ts fragment file is sent to the user terminal.
- the recorded ts fragment file and the corresponding ts fragment file information Sharing in the look back at the server cluster includes:
- the method further includes:
- a channel recording message or a channel modification message is stored in the local database.
- the acquiring the ts fragment file information corresponding to the index request includes:
- the acquiring the ts fragment file corresponding to the ts fragment request includes:
- the ts fragment file is obtained from the distributed file system.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method for implementing an HLS channel lookback service.
- the system, device and method for realizing the HLS channel review service and the computer storage medium provided by the embodiments of the present invention, by introducing a management server, assigning different HLS channels to different lookback server recordings through the management server, and utilizing distributed files
- the system stores the transport stream (tsport) shard file and the corresponding ts fragment file information, so that the ts fragment file recorded by the different lookback server and the corresponding ts fragment file information can be shared in the look back server cluster. Therefore, the single-point recording and multi-point viewing of the HLS channel can be realized; at the same time, the bandwidth usage between the server and the video source station can be saved, and the storage capacity of the server is reduced.
- FIG. 1 is a schematic structural diagram of a system for implementing an HLS channel lookback service system according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of a channel recording process in an HLS channel review service method according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a loopback process in a method for implementing an HLS channel review service according to an embodiment of the present invention
- FIG. 5 is a timing diagram of message and data transmission for implementing channel allocation management of an HLS channel lookback service system according to an embodiment of the present invention
- FIG. 6 is a timing diagram of message and data transmission for implementing channel recording by an HLS channel review service system according to an embodiment of the present invention
- FIG. 7 is a timing diagram of message and data transmission for implementing recording information sharing by an HLS channel review service system according to an embodiment of the present invention.
- FIG. 8 is a timing diagram of message and data transmission for implementing channel lookback of an HLS channel lookback service system according to an embodiment of the present invention.
- different HLS channels are allocated to different lookback server recordings by adding the set management server, and the distributed file system is used to store the ts fragment file and the corresponding ts fragment file information, so that different Looking back at the ts fragment file recorded by the server and the corresponding ts fragment file information can be shared in the look back server cluster.
- FIG. 1 is a schematic structural diagram of a system for implementing an HLS channel lookback service system according to an embodiment of the present invention.
- the system includes: a management server 101 and a lookback server cluster 102; Wherein, look back at the server cluster 102 including two or more look back servers, any two look back servers can be marked with 2i, 2j, i is a positive integer;
- the management server 101 is configured to monitor the lookback servers in the look back server cluster 102, and allocate the HLS channels to the lookback servers in the server cluster 102;
- the server 2j, j is a positive integer that is not equal to i; in response to the index request initiated by the user terminal 103, the ts fragment file information corresponding to the index request is obtained, and the index file is sent to the user terminal 103; The ts fragment request, the ts fragment file corresponding to the ts fragment request is obtained, and the obtained ts fragment file is sent to the user terminal 103;
- the lookback server 2j other than the self may be one or more lookback servers other than the server 2i;
- the index request initiated by the user terminal 103 may be an m3u8 index request, and correspondingly, the index file Can be an m3u8 index file.
- the user terminal 103 when the user terminal 103 needs to look back, it will initiate an index request to the lookback server 2i, and receive an index file sent by the server 2i; parse the received index file according to the index file. The content returns to the server 2i to send a ts fragment request; receives the ts fragment file sent by the server 2i, decodes and plays the ts fragment file.
- the management server 101, the look back server cluster 102, and the user terminal 103 are connected by a network.
- the ts fragment request when the ts fragment request is sent to the lookback server 2i in accordance with the contents of the index file, the ts fragment request may be sent back to the server 2i in the order of the contents of the index file.
- the management server 101 is further configured to: broadcast a status query message to each lookback server in the server cluster 102; and allocate an HLS channel to each lookback server according to the received status information returned by each lookback server. , look back at the server cluster 102 broadcast Channel recording message;
- the lookback server 2i is further configured to receive the status query message sent by the management server 101, and return the status information of the lookback server 2i to the management server 101; and receive the channel recording message sent by the management server 101, and Save the channel recording message to the local database.
- the management server 101 is further configured to: after discovering the lookback server 2i in which the recording function is abnormal in the look back server cluster 102, the returning server 2i that is abnormal in the recording function is responsible for all channels recorded.
- the review server 2j which is assigned to other recording functions other than itself, performs recording, and issues a channel modification message to all the lookback servers in the look back server cluster 102;
- the lookback server 2j that is normal to the recording function other than the self may be one or more lookback servers other than the server 2i;
- the lookback server 2i is further configured to receive the channel modification message when the management server 101 sends a channel modification message, and store the channel modification message in the local database.
- the look back server 2i includes: a recording module 201, a distributed file system module 202, an information sharing module 203, a database module 204, and a service module 205;
- the recording module 201 is configured to record the HLS channel live broadcast code stream allocated by the management server 101, and store the recorded ts fragment file in the distributed file system module 202, and the ts fragment file corresponding to the ts fragment file.
- the information is stored in the database module 204;
- the ts fragment file information includes: a channel number, a storage path, and a start time corresponding to the ts fragment file;
- the distributed file system module 202 is configured to store the recorded ts fragment file and the corresponding ts fragment file information, and share the ts fragment file and the corresponding ts fragment file information in the look back server cluster 102;
- the information sharing module 203 is configured to periodically record the ts fragment recorded by the recording module 201.
- the ts fragment file information corresponding to the piece is updated from the database module 204 to the distributed file system module 202, and the ts fragment file recorded by the other lookback server 2j in the look back server cluster 102 is periodically periodically checked.
- the corresponding ts fragment file information is imported into the database module 204 from the distributed file system module 202; that is, the ts fragment file information in the database module 204 of the server 2i and the distributed file system module 202 are periodically synchronized. ;
- the database module 204 is configured to store all ts fragment file information for query and retrieval;
- the service module 205 is configured to: in response to the m3u8 index request initiated by the user terminal 103, obtain the ts fragment file information corresponding to the m3u8 index request from the database module 204, and form an m3u8 index file to be sent to the user terminal 103; and further configured to respond to the user terminal 103.
- the ts fragment request sent, the ts fragment file corresponding to the ts fragment request is obtained from the distributed file system module 202, and the ts fragment file is sent to the user terminal 103.
- server 2i looking back at the server 2i and looking back at the server 2j all refer to any one or more of the server clusters 102, and the composition of the server 2j and the functions of the components are identical to those of the lookback server 2i.
- the management server 101 in order to monitor and look back at each lookback server in the server cluster 102, includes: a state query module configured to look back at the server cluster. Each look back at the server broadcast status query message;
- the service module 205 in the lookback server 2i further includes: a status query unit configured to receive the status query message sent by the management server 101, and return the status information of the look back server 2i to the management server 101;
- the status information includes reviewing the working status of each functional module on the server 2i, and looking back at the load condition of the server 2i and the overall working status.
- the management server 101 further includes: a channel allocation module, configured to allocate an HLS channel to each lookback server 2i according to the received status information of each lookback server, and broadcast a channel recording message to the server cluster 102;
- the channel recording message includes: a channel number, an HLS channel source station information, and a name of the returning server responsible for recording;
- the recording module 201 in the lookback server 2i further includes: a channel recording unit configured to receive the channel recording message sent by the management server 101, and store the channel recording message in the database module 204.
- the management server 101 when looking back at the lookback server in which the recording function is abnormal in the server cluster, the management server 101 further includes:
- the exception processing module is configured to: after discovering the lookback server 2i in which the recording function is abnormal in the look back server cluster 102, all the channels that the recording back function of the recording function is responsible for recording are assigned to other recording functions. Look at the server 2j for recording, and issue a channel modification message to all the lookback servers in the look back server cluster.
- the recording module 201 in the lookback server 2i further includes: a channel modification unit configured to receive the channel modification message when the management server sends a channel modification message, and store the channel modification message in the database In module 204.
- the recording module 201, the information sharing module 203, and the service module 205, and the units under these modules may be located by a central processing unit (CPU), a microprocessor (MPU), and a number located in the lookback server. a signal processor (DSP), or a field programmable gate array (FPGA) implementation; the channel allocation module, the exception handling module may be a central processing unit (CPU), a microprocessor (MPU), a digital signal located at the management server Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
- the distributed file system module 202 and database module 204 can be implemented by various memories or storage media.
- FIG. 3 is a schematic diagram of a channel recording process in an HLS channel review service method according to an embodiment of the present invention. As shown in FIG. 3, the channel recording process is applied to a lookback server, and includes the following steps:
- Step 301 Record a live stream of the allocated HLS channel
- the recording is implemented by the look back server; the recording module in the server reads all the channel information from the local database, and determines whether the channel needs to be recorded locally for each channel information, and if it needs to be recorded locally, Looking back at the server, by accessing the main m3u8 of the HLS channel source station, the ts fragment file path in the main m3u8 is parsed, and the ts fragment file is downloaded to the local.
- the allocation is performed by the management server according to the status information returned by each lookback server in the server cluster, and the recording task of the HLS channel is recorded, and the allocation result of all the HLS channels is recorded in the local database of each lookback server. There are storage.
- the process flow before performing step 301, the process flow further includes: receiving a channel recording message or a channel modification message; and storing a channel recording message or a channel modification message into the local database.
- the back server reads the channel recording message or the channel modification message; and stores the channel recording message or the channel modification message into the local database; thus, in the local database That is, the distribution result recorded by all HLS channels is stored.
- Step 302 Share the recorded ts fragment file and the corresponding ts fragment file information in a look back server cluster
- the sharing in the look back server cluster means that the ts fragment file and the corresponding ts fragment file information recorded by the returning server that completes the recording are shared and returned to the server to look back at the server cluster.
- Server; other look back servers can be one or more;
- the server reads the ts fragment file in the distributed file system; stores the corresponding ts fragment file information in the look-ahead server local database and the distributed file system, and periodically synchronizes the The ts fragment file information in the local database and the distributed file system, that is, the ts fragment file information stored in the local database of the server is stored, including the ts fragment corresponding to the ts fragment file not recorded by the local lookback server.
- File information is described in the server.
- FIG. 4 is a schematic diagram of a loopback process in a method for implementing an HLS channel lookback service according to an embodiment of the present invention. As shown in FIG. 4, the loopback process is applied to a lookback server, and includes the following steps:
- Step 401 Acquire an rs fragment file information corresponding to the index request, and send an index file to the user terminal, in response to an index request initiated by the user terminal.
- the initiated index request may be an m3u8 index request
- the index file may be an m3u8 index file
- the request message includes information such as a channel number, a start time, and an end time; and the server responds to the m3u8 index request initiated by the user terminal, according to the channel number, and starts. Time and end time, obtaining corresponding ts fragment file information from the local database, and assembling the m3u8 index file to the user terminal;
- the user terminal can parse the ts fragment access path information sequence, and then send the ts fragment request to the server in sequence; in one embodiment, the user terminal parses the first ts fragment. After accessing the path information, the first ts fragment request is sent back to the server.
- Step 402 in response to the ts fragment request sent by the user terminal, acquire the ts fragment file corresponding to the ts fragment request, and send the ts fragment file to the user terminal;
- the lookback server responds to the first ts fragment request sent by the user terminal, according to the first ts fragment file access path information included in the first ts fragment request, from the distributed file. Obtaining a first ts fragment file in the system, and sending the first ts fragment file to the user terminal;
- the user terminal After receiving the first ts fragment file, the user terminal decodes and plays, and returns to the server to continue to request subsequent ts fragment files.
- the message and data transmission timing between each device and module is as shown in FIG. 5.
- the message and data transfer timing between the devices and the module is as shown in FIG. 6; when the HLS is implemented by using the above embodiment.
- the channel review service system performs recording information sharing, the message and data transfer timing between each device and module is as shown in FIG. 7; when the system for implementing the HLS channel review service provided by the above embodiment is used for channel review
- the message and data transfer timing between devices and modules is shown in Figure 8.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing method for implementing an HLS channel lookback service.
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the device is implemented in a flow chart A function specified in a block or blocks of a process or multiple processes and/or block diagrams.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种实现HLS频道回看业务的系统,包括:管理服务器,配置为监控所述回看服务器集群中的各个回看服务器,分配HLS频道给所述回看服务器集群中的各回看服务器,回看服务器集群包括两个及以上回看服务器;所述回看服务器,配置为录制所述管理服务器分配的HLS频道的直播码流,并共享录制得到的ts分片文件和对应的ts分片文件信息;响应用户终端发起索引请求或ts分片请求,将获取的ts分片文件信息形成的索引文件和/或ts分片文件发给用户终端;用户终端,配置为接收索引文件和/或ts分片文件。本发明还同时公开了实现HLS频道回看业务的方法、设备及计算机存储介质。
Description
本发明涉及互联网视频播放技术领域,尤其涉及一种实现HLS(HTTP Live Streaming)频道回看业务的系统、设备和方法、计算机存储介质。
苹果公司提出的互联网视频HLS规范,已经大量运用在HLS频道直播业务上,同时各种传统交互式网络电视(IPTV,Internet Protocol Television)的频道时移回看业务也用HLS进行了实现。
目前,HLS频道回看业务的基本实现方案是:每个服务器单独录制后分别提供HLS频道回看业务。但这种方式当服务器出现软件或者硬件异常,将无法提供服务,会导致用户服务长时间中断,影响用户体验;而且,当用户数量提升后,单台服务器的服务能力常常不能满足用户的应用需求。因此,在商用运营模式下,迫切需要提高HLS频道业务服务器的服务能力和服务质量。
在现有的实际应用中,常常会部署多台服务器,每台服务器上都进行HLS频道录制和存储,以便每台服务器都能够提供所有HLS频道回看服务。这种模式下,每台服务器都会去HLS频道源站下载直播分片,并录制存储到本地服务器上。因此,现有实现方案明显存在以下问题:
1)所有服务器都去源站下载直播分片,对服务器与源站之间的带宽要求比较高;2)所有服务器都存储一份直播分片,重复存储问题比较突出,使得对本地存储容量的要求比较高。
发明内容
有鉴于此,本发明实施例期望提供一种实现HLS频道回看业务的系统、设备和方法、计算机存储介质,能节省服务器与视频源站之间的带宽使用,并减少服务器本地的存储容量占用。
本发明实施例的技术方案是这样实现的:
本发明实施例提供一种实现HLS频道回看业务的系统,该系统包括:管理服务器和回看服务器集群;其中,回看服务器集群中包括两个及以上回看服务器;
所述管理服务器,配置为监控所述回看服务器集群中的各个回看服务器,分配HLS频道给所述回看服务器集群中的各回看服务器;
所述回看服务器,配置为录制所述管理服务器分配的HLS频道的直播码流,将录制得到的传送流ts分片文件和对应的ts分片文件信息共享给所述回看服务器集群中自身以外其它的回看服务器;响应用户终端发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送获得的ts分片文件至所述用户终端。
上述方案中,所述管理服务器,还配置为向回看服务器集群广播状态查询消息;根据接收到的各回看服务器返回的状态信息,分配HLS频道给各回看服务器,向回看服务器集群广播频道录制消息;
所述回看服务器,还配置为接收管理服务器发送的状态查询消息,并向管理服务器返回自身的状态信息;接收管理服务器发送的频道录制消息,并将频道录制消息存入本地数据库中。
上述方案中,所述管理服务器,还配置为发现所述回看服务器集群中存在录制功能异常的回看服务器后,将所述录制功能异常的回看服务器负责录制的所有频道分配给自身以外其它录制功能正常的回看服务器进行录
制,并下发频道修改消息给所述回看服务器集群中所有的回看服务器;
所述回看服务器,还配置为接收所述频道修改消息,并将频道修改消息存入本地数据库中。
本发明还提供一种回看服务器,该回看服务器包括:录制模块、分布式文件系统模块、信息共享模块、数据库模块和服务模块;其中,
所述录制模块,配置为录制分配的HLS频道直播码流,将录制得到的ts分片文件存放于所述分布式文件系统模块中,将与所述ts分片文件对应的ts分片文件信息存放于所述数据库模块中;
所述分布式文件系统模块,配置为存放录制的ts分片文件和对应的ts分片文件信息,并将ts分片文件和对应的ts分片文件信息在回看服务器集群中共享;
所述信息共享模块,配置为定期将所述录制模块录制的ts分片文件所对应的ts分片文件信息从所述数据库模块中更新至所述分布式文件系统模块中,并定期将所述回看服务器集群中其它回看服务器录制的ts分片文件所对应的ts分片文件信息从所述分布式文件系统模块导入所述数据库模块;
所述数据库模块,配置为存放所有ts分片文件信息,以供查询与检索;
所述服务模块,配置为响应用户终端发起的索引请求,从所述数据库模块中获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,从所述分布式文件系统模块中获取所述ts分片请求对应的ts分片文件,发送所述ts分片文件至所述用户终端。
上述方案中,所述服务模块还包括:
状态查询单元,配置为接收管理服务器发送的状态查询消息,并向所述管理服务器返回所在回看服务器的状态信息;
所述录制模块还包括:
频道录制单元,配置为接收所述管理服务器发送的频道录制消息,并将频道录制消息存入所述数据库模块中。
上述方案中,所述录制模块还包括:
频道修改单元,配置为在所述管理服务器下发频道修改消息时,接收所述频道修改消息,并将频道修改消息存入所述数据库模块中。
本发明还提供一种管理服务器,该管理服务器包括:
状态查询模块,配置为向回看服务器集群中的各个回看服务器广播状态查询消息;
频道分配模块,配置为根据接收到的所述各回看服务器返回的状态信息,分配HLS频道给所述各回看服务器,向回看服务器集群广播频道录制消息。
上述方案中,所述管理服务器还包括:
异常处理模块,配置为发现所述回看服务器集群中存在录制功能异常的回看服务器后,将所述录制功能异常的回看服务器负责录制的所有频道分配给其它录制功能正常的回看服务器进行录制,并下发频道修改消息给所述回看服务器集群中所有的回看服务器。
本发明还提供一种实现HLS频道回看业务的方法,该方法包括:
进行频道录制时,录制分配的HLS频道的直播码流,并将录制得到的ts分片文件和对应的ts分片文件信息在回看服务器集群中共享;
进行回看业务时,响应用户终端发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送所述ts分片文件至所述用户终端。
上述方案中,所述将录制得到的ts分片文件和对应的ts分片文件信息
在回看服务器集群中共享包括:
将所述ts分片文件存储于分布式文件系统中;
将所述对应的ts分片文件信息存储于本地数据库和分布式文件系统中,并定期同步所述本地数据库与分布式文件系统中的ts分片文件信息。
上述方案中,所述方法还包括:
接收频道录制消息或频道修改消息;
将频道录制消息或频道修改消息存入所述本地数据库。
上述方案中,所述获取所述索引请求对应的ts分片文件信息包括:
从所述本地数据库中获取所述ts分片文件信息。
上述方案中,所述获取所述ts分片请求对应的ts分片文件包括:
从所述分布式文件系统中获取所述ts分片文件。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的实现HLS频道回看业务的方法。
本发明实施例所提供的实现HLS频道回看业务的系统、设备和方法、计算机存储介质,通过引入管理服务器,通过管理服务器将不同的HLS频道分配给不同的回看服务器录制,利用分布式文件系统存储传送流(Transport Stream,ts)分片文件和对应的ts分片文件信息,使得由不同回看服务器录制的ts分片文件和对应的ts分片文件信息能在回看服务器集群中共享,从而实现对HLS频道单点录制、多点回看;同时,能节省服务器与视频源站之间的带宽使用,并减少服务器本地的存储容量占用。
图1为本发明实施例提供的实现HLS频道回看业务系统的组成结构示意图;
图2为本发明实施例提供的实现HLS频道回看业务系统中回看服务器
的组成结构示意图;
图3为本发明实施例提供的实现HLS频道回看业务方法中的频道录制流程示意图;
图4为本发明实施例提供的实现HLS频道回看业务方法中的回看流程示意图;
图5为本发明实施例提供的实现HLS频道回看业务系统进行频道分配管理的消息和数据传递时序图;
图6为本发明实施例提供的实现HLS频道回看业务系统进行频道录制的消息和数据传递时序图;
图7为本发明实施例提供的实现HLS频道回看业务系统进行录制信息共享的消息和数据传递时序图;
图8为本发明实施例提供的实现HLS频道回看业务系统进行频道回看的消息和数据传递时序图。
为了更清楚地说明本发明实施例和技术方案,下面将结合附图及实施例对本发明的技术方案进行更详细的说明,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明的实施例,本领域普通技术人员在不付出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。
在本发明实施例中,通过增加设置的管理服务器将不同的HLS频道分配给不同的回看服务器录制,并利用分布式文件系统存储ts分片文件和对应的ts分片文件信息,使得由不同回看服务器录制的ts分片文件和对应的ts分片文件信息能在回看服务器集群中共享。
图1为本发明实施例提供的实现HLS频道回看业务系统的组成结构示意图,如图1所示,该系统包括:管理服务器101和回看服务器集群102;
其中,回看服务器集群102中包括两个及以上回看服务器,任意两个回看服务器可采用2i、2j标记,i为正整数;
管理服务器101,配置为监控回看服务器集群102中的各个回看服务器,分配HLS频道给回看服务器集群102中的各回看服务器;
回看服务器2i,配置为录制管理服务器101分配的HLS频道的直播码流,将录制得到的ts分片文件和对应的ts分片文件信息共享给回看服务器集群102中自身以外其它的回看服务器2j,j为不等于i的正整数;响应用户终端103发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至用户终端103;响应用户终端103发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送获得的ts分片文件至用户终端103;
这里,所述自身以外其它的回看服务器2j可以是回看服务器2i以外的一个或多个回看服务器;所述用户终端103发起的索引请求可以是m3u8索引请求,相应的,所述索引文件可以是m3u8索引文件。
此外,如图1所示,用户终端103有回看需要时,会向回看服务器2i发起索引请求,并接收回看服务器2i发送的索引文件;解析收到的索引文件,依照所述索引文件内容向回看服务器2i发送ts分片请求;接收回看服务器2i发送的ts分片文件,解码并播放所述ts分片文件。
管理服务器101、回看服务器集群102和用户终端103之间通过网络连接。
这里,依照所述索引文件内容向回看服务器2i发送ts分片请求时,可以按照所述索引文件内容的顺序向回看服务器2i发送ts分片请求。
在实际应用中,所述管理服务器101,还配置为向回看服务器集群102中的各个回看服务器广播状态查询消息;根据接收到的各回看服务器返回的状态信息,分配HLS频道给各回看服务器,向回看服务器集群102广播
频道录制消息;
相应的,所述回看服务器2i,还配置为接收管理服务器101发送的状态查询消息,并向管理服务器101返回所在回看服务器2i的状态信息;并接收管理服务器101发送的频道录制消息,并将频道录制消息存入本地数据库中。
在实际应用中,所述管理服务器101,还配置为发现所述回看服务器集群102中存在录制功能异常的回看服务器2i后,将所述录制功能异常的回看服务器2i负责录制的所有频道分配给自身以外的其它录制功能正常的回看服务器2j进行录制,并下发频道修改消息给所述回看服务器集群102中所有的回看服务器;
这里,所述自身以外的其它录制功能正常的回看服务器2j可以是回看服务器2i以外的一个或多个回看服务器;
相应的,所述回看服务器2i,还配置为在管理服务器101下发频道修改消息时,接收所述频道修改消息,并将频道修改消息存入本地数据库中。
如图2所示,回看服务器2i包括:录制模块201、分布式文件系统模块202、信息共享模块203、数据库模块204和服务模块205;其中,
录制模块201,配置为录制管理服务器101分配的HLS频道直播码流,将录制得到的ts分片文件存放于分布式文件系统模块202中,将与所述ts分片文件对应的ts分片文件信息存放于数据库模块204中;
其中,ts分片文件信息包括:ts分片文件所对应的频道号、存储路径和起始时间;
分布式文件系统模块202,配置为存放录制的ts分片文件和对应的ts分片文件信息,并将ts分片文件和对应的ts分片文件信息在回看服务器集群102中共享;
信息共享模块203,配置为定期将所述录制模块201录制的ts分片文
件所对应的ts分片文件信息从所述数据库模块204中更新至所述分布式文件系统模块202中,并定期将所述回看服务器集群102中其它回看服务器2j录制的ts分片文件所对应的ts分片文件信息从所述分布式文件系统模块202导入所述数据库模块204;即:定期同步回看服务器2i的数据库模块204与分布式文件系统模块202中的ts分片文件信息;
数据库模块204,配置为存放所有ts分片文件信息,以供查询与检索;
服务模块205,配置为响应用户终端103发起的m3u8索引请求,从数据库模块204中获取m3u8索引请求对应的ts分片文件信息并组成m3u8索引文件发送至用户终端103;还配置为响应用户终端103发送的ts分片请求,从所述分布式文件系统模块202中获取ts分片请求对应的ts分片文件,发送所述ts分片文件至用户终端103。
回看服务器2i、回看服务器2j均指回看服务器集群102中的任意一个或多个回看服务器,回看服务器2j的组成结构及各组成部分的功能与回看服务器2i完全相同。
在本发明实施例所述实现HLS频道回看业务的系统中,为了监控回看服务器集群102中的各个回看服务器,所述管理服务器101包括:状态查询模块,配置为向回看服务器集群中的各个回看服务器广播状态查询消息;
相应的,回看服务器2i中的服务模块205还包括:状态查询单元,配置为接收管理服务器101发送的状态查询消息,并向管理服务器101返回所在回看服务器2i的状态信息;
其中,状态信息包括回看服务器2i上各个功能模块的工作状态,以及回看服务器2i的负荷情况和整体工作状态等。
所述管理服务器101还包括:频道分配模块,配置为根据接收到的各回看服务器的状态信息,分配HLS频道给各回看服务器2i,向回看服务器集群102广播频道录制消息;
其中,频道录制消息中包括:频道号、HLS频道源站信息、负责录制的回看服务器名称;
相应的,回看服务器2i中录制模块201还包括:频道录制单元,配置为接收管理服务器101发送的频道录制消息,并将频道录制消息存入数据库模块204中。
在一个实施例中,当回看服务器集群中存在录制功能异常的回看服务器时,管理服务器101还包括:
异常处理模块,配置为发现所述回看服务器集群102中存在录制功能异常的回看服务器2i后,将所述录制功能异常的回看服务器2i负责录制的所有频道分配给其它录制功能正常的回看服务器2j进行录制,并下发频道修改消息给所述回看服务器集群中所有的回看服务器。
相应的,回看服务器2i中的录制模块201还包括:频道修改单元,配置为在所述管理服务器下发频道修改消息时,接收所述频道修改消息,并将频道修改消息存入所述数据库模块204中。
在实际应用中,所述录制模块201、信息共享模块203、和服务模块205以及这些模块下的各单元可由位于所述回看服务器的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现;所述频道分配模块、异常处理模块可由位于所述管理服务器的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。所述分布式文件系统模块202和数据库模块204可以由各种存储器或存储介质实现。
图3是本发明实施例提供的实现HLS频道回看业务方法中的频道录制流程示意图,如图3所示,该频道录制流程应用于回看服务器中,包括以下步骤:
步骤301,录制分配的HLS频道的直播码流;
具体的,录制由回看服务器实现;回看服务器中的录制模块从本地数据库中获取所有的频道信息,对每个频道信息,判断该频道是否需要在本地进行录制,如果需要在本地进行录制,回看服务器通过访问HLS频道源站的主m3u8,解析出主m3u8中的ts分片文件路径,并将ts分片文件下载到本地。
这里,所述分配是由管理服务器根据回看服务器集群中各回看服务器返回的状态信息,对HLS频道的录制任务进行的分配,所有HLS频道录制的分配结果在每个回看服务器的本地数据库中都有存储。
在一个实施例中,在执行步骤301之前,该处理流程还包括:接收频道录制消息或频道修改消息;将频道录制消息或频道修改消息存入所述本地数据库。
具体的,当管理服务器广播频道录制消息或频道修改消息时,回看服务器接收频道录制消息或频道修改消息;并将频道录制消息或频道修改消息存入所述本地数据库中;这样,本地数据库中即存储有所有HLS频道录制的分配结果。
步骤302,将录制得到的ts分片文件和对应的ts分片文件信息在回看服务器集群中共享;
这里,所述在回看服务器集群中共享是指:完成录制的回看服务器将录制得到的ts分片文件和对应的ts分片文件信息,共享给回看服务器集群中自身以外的其它回看服务器;其它回看服务器可以是一个或多个;
具体的,回看服务器将所述ts分片文件存储于分布式文件系统中;将所述对应的ts分片文件信息存储于回看服务器本地数据库和分布式文件系统中,并定期同步所述本地数据库与分布式文件系统中的ts分片文件信息,即:回看服务器本地数据库中存储有所有ts分片文件信息,包括不是由本地回看服务器录制的ts分片文件对应的ts分片文件信息。
图4是本发明实施例提供的实现HLS频道回看业务方法中的回看流程示意图,如图4所示,该回看流程应用于回看服务器中,包括以下步骤:
步骤401,响应用户终端发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;
这里,所述发起的索引请求可以是m3u8索引请求,相应的,所述索引文件可以是m3u8索引文件;
具体的,当用户终端向回看服务器发起m3u8索引请求时,其中,请求消息中包含频道号、开始时间和结束时间等信息;回看服务器响应用户终端发起的m3u8索引请求,根据频道号、开始时间和结束时间,从所述本地数据库中获取对应的ts分片文件信息,并组装成m3u8索引文件发送至所述用户终端;
用户终端接收m3u8索引文件后,从中可解析出ts分片访问路径信息序列,进而依序向回看服务器发送ts分片请求;在本发明一个实施例中,用户终端解析出第一ts分片访问路径信息后,向回看服务器发送第一ts分片请求。
步骤402,响应用户终端发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送所述ts分片文件至所述用户终端;
具体的,在本发明一个实施例中,回看服务器响应用户终端发送的第一ts分片请求,根据第一ts分片请求中包含的第一ts分片文件访问路径信息,从分布式文件系统中获取到第一ts分片文件,将第一ts分片文件发送至所述用户终端;
用户终端接收到第一ts分片文件后,解码并播放,同时向回看服务器继续请求后续的ts分片文件。
在一个实施例中,当利用上述实施例提供的实现HLS频道回看业务的系统进行频道分配管理时,各设备和模块之间的消息和数据传递时序如图5
所示;当利用上述实施例提供的实现HLS频道回看业务的系统进行频道录制时,各设备和模块之间的消息和数据传递时序如图6所示;当利用上述实施例提供的实现HLS频道回看业务的系统进行录制信息共享时,各设备和模块之间的消息和数据传递时序如图7所示;当利用上述实施例提供的实现HLS频道回看业务的系统进行频道回看时,各设备和模块之间的消息和数据传递时序如图8所示。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的实现HLS频道回看业务的方法。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个
流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
Claims (14)
- 一种实现HLS频道回看业务的系统,所述系统包括:管理服务器和回看服务器集群;其中,回看服务器集群中包括两个及以上回看服务器;所述管理服务器,配置为监控所述回看服务器集群中的各个回看服务器,分配HLS频道给所述回看服务器集群中的各回看服务器;所述回看服务器,配置为录制所述管理服务器分配的HLS频道的直播码流,将录制得到的传送流ts分片文件和对应的ts分片文件信息共享给所述回看服务器集群中自身以外其它的回看服务器;响应用户终端发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送获得的ts分片文件至所述用户终端。
- 根据权利要求1所述的实现HLS频道回看业务的系统,其中,所述管理服务器,还配置为向回看服务器集群广播状态查询消息;根据接收到的各回看服务器返回的状态信息,分配HLS频道给各回看服务器,向回看服务器集群广播频道录制消息;所述回看服务器,还配置为接收管理服务器发送的状态查询消息,并向管理服务器返回自身的状态信息;接收管理服务器发送的频道录制消息,并将频道录制消息存入本地数据库中。
- 根据权利要求1或2所述的实现HLS频道回看业务的系统,其中,所述管理服务器,还配置为发现所述回看服务器集群中存在录制功能异常的回看服务器后,将所述录制功能异常的回看服务器负责录制的所有频道分配给自身以外其它录制功能正常的回看服务器进行录制,并下发频道修改消息给所述回看服务器集群中所有的回看服务器;所述回看服务器,还配置为接收所述频道修改消息,并将频道修改消 息存入本地数据库中。
- 一种回看服务器,所述回看服务器包括:录制模块、分布式文件系统模块、信息共享模块、数据库模块和服务模块;其中,所述录制模块,配置为录制分配的HLS频道直播码流,将录制得到的传送流ts分片文件存放于所述分布式文件系统模块中,将与所述ts分片文件对应的ts分片文件信息存放于所述数据库模块中;所述分布式文件系统模块,配置为存放录制的ts分片文件和对应的ts分片文件信息,并将ts分片文件和对应的ts分片文件信息在回看服务器集群中共享;所述信息共享模块,配置为定期将所述录制模块录制的ts分片文件所对应的ts分片文件信息从所述数据库模块中更新至所述分布式文件系统模块中,并定期将所述回看服务器集群中其它回看服务器录制的ts分片文件所对应的ts分片文件信息从所述分布式文件系统模块导入所述数据库模块;所述数据库模块,配置为存放所有ts分片文件信息,以供查询与检索;所述服务模块,配置为响应用户终端发起的索引请求,从所述数据库模块中获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,从所述分布式文件系统模块中获取所述ts分片请求对应的ts分片文件,发送所述ts分片文件至所述用户终端。
- 根据权利要求4所述的回看服务器,其中,所述服务模块还包括:状态查询单元,配置为接收管理服务器发送的状态查询消息,并向所述管理服务器返回所在回看服务器的状态信息;所述录制模块还包括:频道录制单元,配置为接收所述管理服务器发送的频道录制消息,并 将频道录制消息存入所述数据库模块中。
- 根据权利要求4或5所述的回看服务器,其中,所述录制模块还包括:频道修改单元,配置为在所述管理服务器下发频道修改消息时,接收所述频道修改消息,并将频道修改消息存入所述数据库模块中。
- 一种管理服务器,所述管理服务器包括:状态查询模块,配置为向回看服务器集群中的各个回看服务器广播状态查询消息;频道分配模块,配置为根据接收到的所述各回看服务器返回的状态信息,分配HLS频道给所述各回看服务器,向回看服务器集群广播频道录制消息。
- 根据权利要求7所述的管理服务器,其中,所述管理服务器还包括:异常处理模块,配置为发现所述回看服务器集群中存在录制功能异常的回看服务器后,将所述录制功能异常的回看服务器负责录制的所有频道分配给其它录制功能正常的回看服务器进行录制,并下发频道修改消息给所述回看服务器集群中所有的回看服务器。
- 一种实现HLS频道回看业务的方法,所述方法包括:进行频道录制时,录制分配的HLS频道的直播码流,并将录制得到的传送流ts分片文件和对应的ts分片文件信息在回看服务器集群中共享;进行回看业务时,响应用户终端发起的索引请求,获取所述索引请求对应的ts分片文件信息,并组成索引文件发送至所述用户终端;响应用户终端发送的ts分片请求,获取所述ts分片请求对应的ts分片文件,发送所述ts分片文件至所述用户终端。
- 根据权利要求9所述的方法,其中,所述将录制得到的ts分片文件和对应的ts分片文件信息在回看服务器集群中共享包括:将所述ts分片文件存储于分布式文件系统中;将所述对应的ts分片文件信息存储于本地数据库和分布式文件系统中,并定期同步所述本地数据库与分布式文件系统中的ts分片文件信息。
- 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:接收频道录制消息或频道修改消息;将频道录制消息或频道修改消息存入所述本地数据库。
- 根据权利要求9所述的方法,其中,所述获取所述索引请求对应的ts分片文件信息包括:从所述本地数据库中获取所述ts分片文件信息。
- 根据权利要求9所述的方法,其中,所述获取所述ts分片请求对应的ts分片文件包括:从所述分布式文件系统中获取所述ts分片文件。
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求9至13任一项所述的实现HLS频道回看业务的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP15852423.1A EP3190794A4 (en) | 2014-10-21 | 2015-05-20 | System, device and method for implementing hls channel playback service, and storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410563506.3A CN105592318B (zh) | 2014-10-21 | 2014-10-21 | 一种实现hls频道回看业务的系统、设备和方法 |
CN201410563506.3 | 2014-10-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016062081A1 true WO2016062081A1 (zh) | 2016-04-28 |
Family
ID=55760218
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/079375 WO2016062081A1 (zh) | 2014-10-21 | 2015-05-20 | 实现hls频道回看业务的系统、设备和方法、存储介质 |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP3190794A4 (zh) |
CN (1) | CN105592318B (zh) |
WO (1) | WO2016062081A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106685942A (zh) * | 2016-12-20 | 2017-05-17 | 徐亮 | 视频直播回播系统以及视频直播回播方法 |
CN113612956A (zh) * | 2021-06-28 | 2021-11-05 | 武汉众智数字技术有限公司 | 一种基于WebRTC的录像存储和回放的系统和方法 |
CN116132751A (zh) * | 2022-12-30 | 2023-05-16 | 郑州小鸟信息科技有限公司 | 一种基于web窗口场景同步回放的方法及系统 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106303671B (zh) * | 2016-08-16 | 2019-04-16 | 任晋军 | 一种流媒体的播放方法 |
CN108513162A (zh) * | 2017-02-23 | 2018-09-07 | 中兴通讯股份有限公司 | 直播回看的缓存、播放方法及系统 |
CN111182366A (zh) * | 2018-11-12 | 2020-05-19 | 玲珑视界科技(北京)有限公司 | 一种支持多屏时移和回看融合生产的系统及方法 |
CN109246443B (zh) * | 2018-11-28 | 2021-03-23 | 湖南快乐阳光互动娱乐传媒有限公司 | 一种直播流切片同步方法及系统 |
CN110636335B (zh) * | 2019-09-24 | 2022-04-08 | 中电鸿信信息科技有限公司 | 一种实时视频的hls快速分享的方法 |
CN114237519A (zh) * | 2022-02-23 | 2022-03-25 | 苏州浪潮智能科技有限公司 | 一种对象存储数据迁移的方法、装置、设备及介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572555A (zh) * | 2012-01-16 | 2012-07-11 | 深圳市同洲视讯传媒有限公司 | 一种实现hls客户端视频直播回看的方法及系统 |
CN103533395A (zh) * | 2013-09-27 | 2014-01-22 | 武汉市烽视威科技有限公司 | 实现hls频道回看播放的方法及系统 |
US20140129618A1 (en) * | 2012-11-08 | 2014-05-08 | General Instrument Corporation | Method of streaming multimedia data over a network |
CN103823727A (zh) * | 2014-02-13 | 2014-05-28 | 深圳市同洲电子股份有限公司 | 一种直播录制的备份方法和装置 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101068155B (zh) * | 2006-09-20 | 2010-06-09 | 腾讯科技(深圳)有限公司 | 一种对等连接流媒体直播系统及其采集服务器 |
US8069190B2 (en) * | 2007-12-27 | 2011-11-29 | Cloudscale, Inc. | System and methodology for parallel stream processing |
US9538142B2 (en) * | 2009-02-04 | 2017-01-03 | Google Inc. | Server-side support for seamless rewind and playback of video streaming |
-
2014
- 2014-10-21 CN CN201410563506.3A patent/CN105592318B/zh active Active
-
2015
- 2015-05-20 WO PCT/CN2015/079375 patent/WO2016062081A1/zh active Application Filing
- 2015-05-20 EP EP15852423.1A patent/EP3190794A4/en not_active Ceased
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572555A (zh) * | 2012-01-16 | 2012-07-11 | 深圳市同洲视讯传媒有限公司 | 一种实现hls客户端视频直播回看的方法及系统 |
US20140129618A1 (en) * | 2012-11-08 | 2014-05-08 | General Instrument Corporation | Method of streaming multimedia data over a network |
CN103533395A (zh) * | 2013-09-27 | 2014-01-22 | 武汉市烽视威科技有限公司 | 实现hls频道回看播放的方法及系统 |
CN103823727A (zh) * | 2014-02-13 | 2014-05-28 | 深圳市同洲电子股份有限公司 | 一种直播录制的备份方法和装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3190794A4 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106685942A (zh) * | 2016-12-20 | 2017-05-17 | 徐亮 | 视频直播回播系统以及视频直播回播方法 |
CN106685942B (zh) * | 2016-12-20 | 2020-07-24 | 徐亮 | 视频直播回播系统以及视频直播回播方法 |
CN113612956A (zh) * | 2021-06-28 | 2021-11-05 | 武汉众智数字技术有限公司 | 一种基于WebRTC的录像存储和回放的系统和方法 |
CN113612956B (zh) * | 2021-06-28 | 2024-04-05 | 武汉众智数字技术有限公司 | 一种基于WebRTC的录像存储和回放的系统和方法 |
CN116132751A (zh) * | 2022-12-30 | 2023-05-16 | 郑州小鸟信息科技有限公司 | 一种基于web窗口场景同步回放的方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN105592318B (zh) | 2020-05-19 |
CN105592318A (zh) | 2016-05-18 |
EP3190794A4 (en) | 2018-04-11 |
EP3190794A1 (en) | 2017-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016062081A1 (zh) | 实现hls频道回看业务的系统、设备和方法、存储介质 | |
US10911789B2 (en) | Automatic failover for live video streaming | |
EP3706424B1 (en) | Video live broadcast method and apparatus | |
US11005903B2 (en) | Processing of streamed multimedia data | |
US10114689B1 (en) | Dynamic playlist generation | |
WO2016184229A1 (zh) | 直播视频的录制方法和系统 | |
WO2015035942A1 (en) | Method for playing back live video and device | |
CN106301865B (zh) | 应用于服务提供设备的数据处理方法和设备 | |
US20140129618A1 (en) | Method of streaming multimedia data over a network | |
US20140165119A1 (en) | Offline download method, multimedia file download method and system thereof | |
US20140059244A1 (en) | Method and apparatus for streaming multimedia data with access point positioning information | |
WO2016058411A1 (zh) | 一种http实时流媒体分片的拼接方法及拼接系统 | |
US9819972B1 (en) | Methods and apparatuses for a distributed live-on-demand (LOD) origin | |
US20120271688A1 (en) | Method of switching media content for a mobile apparatus | |
US20140157324A1 (en) | Content Identification and Management | |
US10939150B2 (en) | Content supply device, content supply method, program, terminal device, and content supply system | |
WO2017201980A1 (zh) | 一种视频录制的方法、装置和系统 | |
CN102291629B (zh) | 一种应用于iptv的p2p代理点播系统及实现方法 | |
WO2017028736A1 (zh) | 电视节目的录制方法和服务器 | |
WO2015096745A1 (zh) | 一种内容传送网络的数据处理方法与装置 | |
TW517499B (en) | System and method for fault tolerant stream splitting | |
US9554181B2 (en) | Content supply device, content supply method, program, terminal device and content supply system | |
WO2020117419A1 (en) | Just after broadcast media content | |
US9179189B2 (en) | Systems and methods of recording time offset for video recording devices and services | |
US9229944B2 (en) | Scalable networked digital video recordings via shard-based architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15852423 Country of ref document: EP Kind code of ref document: A1 |
|
REEP | Request for entry into the european phase |
Ref document number: 2015852423 Country of ref document: EP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2015852423 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |