WO2017088384A1 - 一种直播视频的上传方法、装置及*** - Google Patents

一种直播视频的上传方法、装置及*** Download PDF

Info

Publication number
WO2017088384A1
WO2017088384A1 PCT/CN2016/082824 CN2016082824W WO2017088384A1 WO 2017088384 A1 WO2017088384 A1 WO 2017088384A1 CN 2016082824 W CN2016082824 W CN 2016082824W WO 2017088384 A1 WO2017088384 A1 WO 2017088384A1
Authority
WO
WIPO (PCT)
Prior art keywords
upload
live video
uploading
path
node
Prior art date
Application number
PCT/CN2016/082824
Other languages
English (en)
French (fr)
Inventor
魏立志
Original Assignee
乐视控股(北京)有限公司
乐视云计算有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视云计算有限公司 filed Critical 乐视控股(北京)有限公司
Priority to RU2016139046A priority Critical patent/RU2016139046A/ru
Priority to US15/245,275 priority patent/US20170155695A1/en
Publication of WO2017088384A1 publication Critical patent/WO2017088384A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a method, device, and system for uploading live video.
  • the content distribution network is called the Content Delivery Network.
  • the purpose is to add a new network architecture to the existing Internet, and publish the content of the website to the "edge" of the network closest to the user, so that users can obtain the required content in the vicinity, solve the congestion of the Internet network, and improve the network.
  • the CDN network architecture consists of two major parts, which are divided into two parts: the center and the edge.
  • the center refers to the CDN network management center and the DNS redirection analysis center. It is responsible for global load balancing.
  • the equipment system is installed in the management center equipment room.
  • the edge mainly refers to remote nodes and CDN distribution.
  • the carrier is mainly composed of a cache cache and a load balancer.
  • Video live broadcast refers to the use of the Internet and streaming media technology for live broadcast.
  • the video is rich in images, text, sound and other rich elements, sounds and shapes, and the effect is excellent, and gradually become the mainstream expression of the Internet.
  • the video creates a strong sense of the scene, attracts the eye, and achieves an impressive and long-lasting communication effect.
  • the edge server to receive the video of the anchor user and upload the video to the video platform according to a certain upload path for online viewing by the netizen. Due to the high real-time performance required for live video, there is a high requirement for the transmission of the upload path.
  • the selection of the upload path is performed by the edge server according to the predetermined upload path.
  • Upload live video Since the uploaded path is relatively simple and fixed, when a network fault occurs in a node in the fixed path, it is necessary to manually modify the upload path information in the edge server to avoid the faulty node. Obviously, this method is not suitable for uploading live video with high timeliness.
  • the embodiment of the invention provides a method, device and system for uploading live video, the main purpose of which is In order to solve the problem of single, fixed and low intelligence of the live video upload path selection.
  • the present invention mainly provides the following technical solutions:
  • an embodiment of the present invention provides a method for uploading a live video, where the method includes:
  • the edge server receives a live video upload request of the anchor user, where the edge server is a node server in the content distribution network CDN system that provides a data transmission service to the anchor user;
  • the path in the upload path information is a data transmission path composed of a node server calculated by the control center according to a preset upload path configuration policy in real time;
  • the sending the upload request to the control center includes:
  • the receiving the upload path information returned by the control center includes:
  • the upload path information is parsed to obtain a node address list, and the address information of each node server in the path for uploading live video data is listed in the node address list.
  • the uploading, by the uploading path information, the live video data of the anchor user to the live broadcast platform includes:
  • the live video data is sent to the live broadcast platform according to the upload path indicated in the node address list.
  • the embodiment of the present invention provides another method for uploading live video, and the method includes:
  • the control center receives the live video upload request sent by the edge server
  • the upload path information is sent to the edge server.
  • the calculating the upload path information in real time for the upload request according to the preset upload path configuration policy includes:
  • a node address list of an upload path where the address information of each node server in the path for uploading live video data is listed in the node address list, where The address of the first node in the node address list is the address of the edge server, and the address of the end node is the address of the source server storing the live video in the live broadcast platform;
  • the node address list is compressed into upload path information for transmission to the edge server.
  • the method further includes: before configuring the upload path information for the upload request according to the preset upload path configuration policy, the method further includes:
  • the control center determines the data transmission status of all node servers in the CDN system by using keep-alive messages.
  • an embodiment of the present invention provides a live video uploading apparatus, where the apparatus includes:
  • a first receiving unit configured to receive, by the edge server, a live video upload request of the anchor user, where the edge server is a node server in the CDN system that provides a data transmission service to the anchor user;
  • a sending unit configured to send an upload request received by the first receiving unit to a control center, so that the control center configures upload path information according to the upload request, where the control center is configured to monitor all nodes in the CDN system The data transfer status of the server;
  • a second receiving unit configured to receive the upload path information returned by the control center, where the path in the upload path information is data that is formed by the node server in real time calculated by the control center according to a preset upload path configuration policy.
  • the uploading unit is configured to upload the live video data of the anchor user to the live broadcast platform according to the upload path information received by the second receiving unit.
  • the sending unit includes:
  • Adding a module configured to add address information of the edge server to the upload request, and generate an upload path request
  • a sending module configured to send an upload path request generated by the adding module to the control center.
  • the second receiving unit includes:
  • An obtaining module configured to acquire upload path information configured by the control center according to the upload path request
  • a parsing module configured to parse the upload path information obtained by the obtaining module, to obtain a node address list, where the address information of each node server in the path for uploading live video data is listed in the node address list.
  • the uploading unit includes:
  • An obtaining module configured to acquire live video data uploaded by the anchor user
  • the uploading module is configured to send the live video data acquired by the acquiring module to the live broadcast platform according to the uploading path indicated in the node address list.
  • the embodiment of the present invention provides another uploading device for live video, and the device includes:
  • a receiving unit configured to receive, by the control center, a live video upload request sent by the edge server;
  • a calculation unit configured to calculate upload path information in real time according to a preset upload path configuration policy for an upload request received by the receiving unit, where the upload path information is a data transmission path formed by a node server;
  • a sending unit configured to send the upload path information calculated by the calculating unit to the edge server.
  • the calculating unit includes:
  • a parsing module configured to parse the upload request, obtain user information of the anchor user, and address information of the edge server;
  • a determining module configured to parse the user information and the preset upload path configuration policy according to the parsing module, and determine a node address list of the upload path, where each of the paths for uploading live video data is listed in the node address list Address information of the node server, where the address of the first node in the node address list is the address of the edge server, and the address of the end node is the address of the source server storing the live video in the live broadcast platform;
  • a compression module configured to compress the node address list determined by the determining module into upload path information, so as to be sent to the edge server.
  • the device further includes:
  • the determining unit is configured to determine, by the keep-alive message, the data transmission status of all node servers in the CDN system before configuring the upload path information for the upload request according to the preset upload path configuration policy.
  • an embodiment of the present invention provides a live video uploading system, where the system includes an edge server including an uploading device for live video as described above and a control center of a live video uploading device as described above;
  • the edge server is configured to receive a live video upload request sent by the anchor user, and send the upload request to the control center, and upload the live video data of the anchor user to the live broadcast according to the upload path information returned by the control center. platform;
  • the control center is configured to receive a live video upload request sent by the edge server, calculate an upload path information in real time according to the preset upload path configuration policy, and send the obtained upload path information to the edge. server.
  • the method, device, and system for uploading live video are provided by the edge server, and the edge server receives the upload request of the live video of the anchor user, and reports the request to the control center, and the control center according to the current CDN system network.
  • the status of the uploading path information of the live video is configured for the uploading request, and the uploading path information is fed back to the edge server that receives the uploading request, and finally the edge server uploads the live video data of the anchor user to the live broadcast platform according to the uploading path information.
  • the upload path configured by the uploading method used in the embodiment of the present invention is a dynamic, non-fixed upload path, and an optimized upload path can be configured according to the current network state, and When you need to modify the policy for configuring the upload path, you only need to adjust the policy in the control center. This eliminates the steps of modifying the path configuration file to each edge server, which simplifies the configuration process and improves the response of the path configuration. effectiveness.
  • FIG. 1 is a flowchart of a method for uploading live video according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for uploading live video according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for uploading a third live video according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a live video uploading apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of another live video uploading apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a third live video uploading apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a fourth live video uploading apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a live video uploading system according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of still another embodiment of a live video uploading apparatus according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method for uploading a live video. As shown in FIG. 1 , the method is applied to an edge server in a CDN system. The specific steps include:
  • the anchor user sends an upload request to an edge server in the CDN system before uploading the live video data.
  • the edge server is the best node server in the CDN system network, that is, the anchor user and the anchor user.
  • the edge server has the highest data transfer performance.
  • an edge server is set according to a region. Therefore, the edge server is also a node server that is closer to the anchor user.
  • the edge server After the edge server receives the upload request of the anchor user, the edge server sends the upload request to the control center for processing.
  • the control center configures an optimal upload path according to the data transmission situation of the current network and returns it to the edge server.
  • the control center in the embodiment of the present invention may be a server located in the relay device layer of the CDN system, and can monitor the data transmission status of all node servers in the CDN system, thereby determining the current working state and load status of each node server.
  • the embodiment of the present invention can dynamically update the existing manner of configuring an upload path for an upload request locally at the edge server.
  • the configuration path information avoids the faulty nodes in the current network.
  • the edge server does not process the configuration of the upload path. Therefore, the saved processing resources can be used for other operations, such as accepting live video data uploaded by the anchor user or uploading requests of other anchor users. Thereby improving the processing efficiency of the edge server.
  • the path in the path information is a data transmission path from the edge server to the live platform calculated by the control center in real time according to the preset upload path configuration policy.
  • the path is composed of a plurality of node servers in the CDN system, and the control center selects a transmission path with the best transmission efficiency and a short distance through a preset policy.
  • the edge server After receiving the upload path information returned by the control center, the edge server replies with a response message to the anchor user, allowing the anchor user to upload the live video data. After receiving the live video data of the anchor user, the live video data is sent to the live broadcast platform according to the specific path in the upload path information.
  • the embodiment of the present invention further provides a method for uploading a live video.
  • the method is applied to a control center in a CDN system, and the specific steps include:
  • the control center in the embodiment of the present invention is located at a relay device layer in the CDN system, and is configured to receive a video upload request sent by all edge servers.
  • the control center After receiving the live video upload request, the control center configures a transmission path with the best transmission rate according to the preset upload path configuration policy.
  • the path is composed of multiple node servers.
  • the preset upload path configuration policy is configured by the administrator according to the actual needs of the live broadcast platform.
  • an optimal calculation from the edge server to the live broadcast platform is calculated.
  • Path in addition, the strategy will also take into account the distance, cross-regional, cross-operator and other factors, the overall planning of the path. Since the processing resources of these parameters need to occupy a large processing resource, the function of the path planning is separated from the edge server, which can reduce the processing pressure of the edge server and concentrate the communication state of the entire system to the control center.
  • the control center centrally processes the path configuration calculation of each edge server to the live platform.
  • the calculation center calculates an optimal upload path for the upload request
  • the obtained upload path information is fed back to the edge server together with the upload request.
  • the method for uploading the live video used by the embodiment of the present invention receives the upload request of the live video of the anchor user through the edge server, and reports the request to the control center, and the control center according to the entire CDN.
  • the current state of the system network is configured to configure an upload path information of the live video for the upload request, and feed the upload path information to the edge server that receives the upload request, and finally the edge server uploads the live video data of the anchor user according to the upload path information.
  • the live broadcast platform To the live broadcast platform.
  • the upload path configured by the uploading method used in the embodiment of the present invention is a dynamic, non-fixed upload path, and an optimized upload path can be configured according to the current network state, and When you need to modify the policy for configuring the upload path, you only need to adjust the policy in the control center. This eliminates the steps of modifying the path configuration file to each edge server, which simplifies the configuration process and improves the response of the path configuration. effectiveness.
  • the edge server receives a live video upload request of the anchor user.
  • the edge server is distributed in the CDN system, and upload requests sent by anchor users of different regions or different operators are sent to different edge servers.
  • the edge server itself also uses the load balancing system in the CDN system to transfer the request of the part of the anchor user to the other edge server according to the processing capability.
  • the function of the CDN system is not described in detail in the embodiment of the present invention. .
  • the upload request is sent by the edge server to the control center.
  • the edge server After receiving the upload request of the anchor user, the edge server sends the upload request to the control center, and adds the address information of the edge server to the upload request before sending, so that the control center can confirm the upload request. It is also sent by an edge server. At the same time, it is also convenient to determine the address of the edge server as the starting address of the upload path.
  • the address information of the edge server is the IP address of the node, and the IP address and the upload request form an upload path request are sent to the control center, and the control center calculates the upload path of the live video for the host user.
  • the control center configures a policy according to the preset upload path according to the received upload request. Calculate the upload path information.
  • the control center After receiving the upload path request sent by the edge server, the control center parses the upload path request, obtains the address information of the edge server and the upload request sent by the anchor user, and extracts the user information of the anchor user according to the upload request. By identifying and judging the user information, it can be determined whether the anchor user is a legitimate user, that is, whether the anchor user has been registered. After the acknowledgment that the anchor user has the right to upload the live video, the path is planned according to the preset upload path configuration policy, where the specific policy is set by the administrator according to actual requirements, and the embodiment of the present invention does not do this. Specific restrictions. The main goal of the strategy is to configure a delivery path with high data transmission rate and relatively low cost. For example, according to the data transmission status of each node server in the system, first determine which nodes are available nodes, and then select among these nodes. An upload path with the carrier to reduce the cost of data transfer.
  • the manner in which the control center determines the data transmission status of each node server in the system may be that the control center periodically sends a message to the node server by sending a keep-alive message to each node in the CDN system. And accept the response message of each node to determine the data transmission status of each node server.
  • the path calculated according to the preset policy is composed of node servers in multiple CDN systems. Therefore, the upload path information may be presented in the form of a list by the IP address of the node server, according to the order of the node servers passing through the path.
  • the corresponding IP address is sequentially arranged, wherein the first node address in the node address list is the address of the edge server for uploading the request, and the terminal node address is the address of the source server storing the live video in the live broadcast platform.
  • the node address list may be compressed to obtain the compressed upload path information.
  • the edge server receives the upload path information returned by the control center.
  • the edge server After receiving the upload path information obtained in 303, the edge server parses according to the specific format of the upload path information, and obtains a node address list therein.
  • the edge server While obtaining the node address list, the edge server returns a message to the anchor user applying for the live video, prompting the anchor user to upload the data of the live video.
  • the live video can be started, that is, the video data of the live video is uploaded.
  • the edge server receives the video data uploaded by the anchor user, According to the obtained node address list, the data is transferred to the node server listed in the list under the IP address of the local IP address, and the next node server sends the video data by analogy until it is sent to the live broadcast platform. For other users to watch online.
  • an embodiment of the present invention provides a live video uploading apparatus, where the apparatus is disposed in a resource server in a CDN network system, as shown in FIG. 4, the apparatus includes:
  • the first receiving unit 41 is configured to receive, by the edge server, a live video upload request of the anchor user, where the edge server is a node server in the CDN system that provides a data transmission service to the anchor user. In addition, the first receiving unit is further configured to receive live video data of the anchor user.
  • a sending unit 42 configured to send an upload request received by the first receiving unit 41 to a control center, so that the control center configures upload path information according to the upload request, where the control center is used to monitor the CDN system.
  • the second receiving unit 43 is configured to receive the upload path information returned by the control center, where the path in the upload path information is composed of a node server that is calculated in real time by the control center according to a preset upload path configuration policy. Data transfer path.
  • the uploading unit 44 is configured to upload the live video data of the anchor user to the live broadcast platform according to the upload path information received by the second receiving unit 43.
  • the sending unit 42 includes:
  • the adding module 421 is configured to add address information of the edge server to the upload request, and generate an upload path request.
  • the sending module 422 is configured to send an upload path request generated by the adding module 421 to the control center.
  • the second receiving unit 43 includes:
  • the obtaining module 431 is configured to obtain upload path information that is configured by the control center according to the upload path request;
  • the parsing module 432 is configured to parse the upload path information acquired by the obtaining module 431 to obtain a node address list, where the address information of each node server in the path for uploading live video data is listed in the node address list.
  • the uploading unit 44 includes:
  • the obtaining module 441 is configured to acquire live video data uploaded by the anchor user.
  • the uploading module 442 is configured to send the live video data acquired by the acquiring module to the live broadcast platform according to the upload path indicated in the node address list.
  • the embodiment of the present invention further provides a live video uploading device, which is disposed in a control center in a CDN network system. As shown in FIG. 6, the device includes:
  • the receiving unit 61 is configured to receive, by the control center, a live video upload request sent by the edge server.
  • the calculating unit 62 is configured to calculate upload path information in real time for the upload request received by the receiving unit 61 according to the preset upload path configuration policy, where the upload path information is a data transmission path composed of a node server.
  • the sending unit 63 is configured to send the upload path information calculated by the calculating unit 62 to the edge server.
  • the calculating unit 62 includes:
  • the parsing module 621 is configured to parse the upload request, and obtain user information of the anchor user and address information of the edge server;
  • the determining module 622 is configured to determine, according to the parsing module 621, the user information and the preset upload path configuration policy, and determine a node address list of the upload path, where the path for uploading live video data is listed in the node address list. Address information of each node server, where the address of the first node in the node address list is the address of the edge server, and the address of the end node is the address of the source server storing the live video in the live broadcast platform;
  • the compression module 623 is configured to compress the node address list determined by the determining module into upload path information, so as to be sent to the edge server.
  • the device further includes:
  • the determining unit 64 is configured to determine, by the control unit 62, the data transmission status of all node servers in the CDN system by using the keep-alive message before the calculating unit 62 configures the upload path information for the upload request according to the preset upload path configuration policy.
  • the embodiment of the present invention provides a live video uploading system.
  • the system includes an edge server 81 that includes a live video uploading device as described above and an upload of the live video as described above.
  • the edge server 81 is configured to receive a live video upload request sent by the anchor user, and send the upload request to the control center 82, and upload the live video data of the anchor user according to the upload path information returned by the control center. To the live broadcast platform.
  • the control center 82 is configured to receive a live video upload request sent by the edge server 81, calculate an upload path information for the upload request in real time according to a preset upload path configuration policy, and send the obtained upload path information to the The edge server.
  • a method, a device, and a system for uploading a live video used by an embodiment of the present invention receive an upload request of a live video of an anchor user through an edge server, and report the request to a control center, which is controlled by the control center.
  • the current state of the entire CDN system network is configured to configure an upload path information of the live video for the upload request, and feed the upload path information to the edge server that receives the upload request, and finally the edge server will broadcast the live video of the anchor user according to the upload path information.
  • the data is uploaded to the live broadcast platform.
  • the upload path configured by the uploading method used in the embodiment of the present invention is a dynamic, non-fixed upload path, and an optimized upload path can be configured according to the current network state, and When you need to modify the policy for configuring the upload path, you only need to adjust the policy in the control center. This eliminates the steps of modifying the path configuration file to each edge server, which simplifies the configuration process and improves the response of the path configuration. effectiveness.
  • each unit module used in the embodiment of the present invention can be implemented by a hardware processor.
  • FIG. 9 is a schematic diagram of still another embodiment of a live video uploading apparatus provided by an embodiment of the present invention, where the broadcast device of the live video is set in a physical server
  • the server may include a processor 91, a communication interface 92, a memory 93, and a bus 94, wherein the processor 91, the communication interface 92, and the memory 93 complete communication with each other via the bus 94.
  • Communication interface 92 can be used for information transfer between the server and the client.
  • the processor 91 may call the logic instructions in the memory 93 to perform the following method: the edge server receives a live video upload request of the anchor user, and the edge server is a node server in the content distribution network CDN system that provides a data transmission service to the anchor user; Sending the upload request to the control center, so that the control center configures upload path information according to the upload request, the control center is configured to monitor data transmission status of all node servers in the CDN system; and receive the control center Returning the uploading path information, where the path in the uploading path information is a data transmission path composed of a node server calculated by the control center according to a preset uploading path configuration policy, and the data is performed according to the uploading path information. Direct user's straight The broadcast video data is uploaded to the live broadcast platform.
  • the logic instructions in the memory 93 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)

Abstract

本发明实施例提供一种直播视频的上传方法、装置及***,涉及计算机技术领域,主要目的在于解决直播视频上传路径选择单一、固定,智能化低的问题。本发明实施例所采用的技术方案是:边缘服务器接收主播用户的直播视频上传请求,边缘服务器是CDN***中向主播用户提供数据传输服务的节点服务器;将上传请求发送至控制中心,以便控制中心根据上传请求配置上传路径信息,控制中心用于监控CDN***中所有节点服务器的数据传输状态;接收控制中心返回的上传路径信息,上传路径信息中的路径是由控制中心根据预置的上传路径配置策略实时计算得到的数据传输路径;根据上传路径信息将主播用户的直播视频数据上传至直播平台。本发明主要用于上传直播视频。

Description

一种直播视频的上传方法、装置及*** 技术领域
本发明实施例涉及计算机技术领域,尤其涉及一种直播视频的上传方法、装置及***。
背景技术
内容分发网络,即CDN,全称为Content Delivery Network。其目的是通过在现有的Internet中增加一层新的网络架构,将网站的内容发布到最接近用户的网络"边缘",使用户可以就近取得所需的内容,解决Internet网络拥塞状况,提高用户访问网站的响应速度。CDN网络架构主要由两大部分,分为中心和边缘两部分,中心指CDN网管中心和DNS重定向解析中心,负责全局负载均衡,设备***安装在管理中心机房,边缘主要指异地节点,CDN分发的载体,主要由高速缓存Cache和负载均衡器等组成。
视频直播是指利用互联网及流媒体技术进行直播,视频因融合了图像、文字、声音等丰富元素,声形并茂,效果极佳,逐渐成为互联网的主流表达方式。视频通过真实、生动的传播,营造出强烈的现场感,吸引眼球,达成印象深刻、记忆持久的传播效果。目前,通过CDN网络上传直播视频时,一般是由主播用户提出请求,通过边缘服务器处理该请求,接收主播用户的视频并根据一定的上传路径将视频上传至视频平台,以供网友在线直播观看。由于直播视频所要求的实时性较高,因此,对于上传路径的传输性有较高的要求,在现有的直播视频上传的技术中,对于上传路径的选择是由边缘服务器根据预定的上传路径进行直播视频的上传的。由于上传的路径相对单一、固定,当固定路径中的某个节点出现网络故障时,要避开故障节点就需要人工修改边缘服务器中的上传路径信息。显然,这种方式并不适合对时效性要求较高的直播视频进行上传。
发明内容
本发明实施例提供一种直播视频的上传方法、装置及***,主要目的在 于解决直播视频上传路径选择单一、固定,智能化低的问题。
为达到上述目的,本发明主要提供如下技术方案:
一方面,本发明实施例提供一种直播视频的上传方法,该方法包括:
边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器是内容分发网络CDN***中向主播用户提供数据传输服务的节点服务器;
将所述上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态;
接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径;
根据所述上传路径信息将所述主播用户的直播视频数据上传至直播平台。
可选的,所述将所述上传请求发送至控制中心包括:
在所述上传请求中添加所述边缘服务器的地址信息,生成上传路径请求;
发送所述上传路径请求至控制中心。
可选的,所述接收所述控制中心返回的上传路径信息包括:
获取所述控制中心根据所述上传路径请求配置的上传路径信息;
解析所述上传路径信息,得到节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息。
可选的,所述根据所述上传路径信息将所述主播用户的直播视频数据上传至直播平台包括:
获取所述主播用户上传的直播视频数据;
将所述直播视频数据按照所述节点地址列表中标示出的上传路径发送至直播平台。
另一方面,本发明实施例提供另一种直播视频的上传方法,该方法包括:
控制中心接收边缘服务器发送的直播视频上传请求;
根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息,所述上传路径信息是由节点服务器组成的数据传输路径;
将所述上传路径信息发送至所述边缘服务器。
可选的,所述根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息包括:
解析所述上传请求,得到主播用户的用户信息和所述边缘服务器的地址信息;
根据所述用户信息和预置的上传路径配置策略,确定上传路径的节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息,其中,所述节点地址列表中的首节点地址为所述边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址;
将所述节点地址列表压缩为上传路径信息,以便于发送至所述边缘服务器。
可选的,在根据预置的上传路径配置策略为所述上传请求配置上传路径信息之前,所述方法还包括:
控制中心通过保活报文确定CDN***中所有节点服务器的数据传输状态。
另一方面,本发明实施例提供一种直播视频的上传装置,该装置包括:
第一接收单元,用于边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器为CDN***中向主播用户提供数据传输服务的节点服务器;
发送单元,用于将所述第一接收单元接收的上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态;
第二接收单元,用于接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径;
上传单元,用于根据所述第二接收单元接收的上传路径信息将所述主播用户的直播视频数据上传至直播平台。
可选的,所述发送单元包括:
添加模块,用于在所述上传请求中添加所述边缘服务器的地址信息,生成上传路径请求;
发送模块,用于发送所述添加模块生成的上传路径请求至控制中心。
可选的,所述第二接收单元包括:
获取模块,用于获取所述控制中心根据所述上传路径请求配置的上传路径信息;
解析模块,用于解析所述获取模块获取的上传路径信息,得到节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息。
可选的,所述上传单元包括:
获取模块,用于获取所述主播用户上传的直播视频数据;
上传模块,用于将所述获取模块获取的直播视频数据按照所述节点地址列表中标示出的上传路径发送至直播平台。
另一方面,本发明实施例提供另一种直播视频的上传装置,该装置包括:
接收单元,用于控制中心接收边缘服务器发送的直播视频上传请求;
计算单元,用于根据预置的上传路径配置策略为所述接收单元接收的上传请求实时计算上传路径信息,所述上传路径信息是由节点服务器组成的数据传输路径;
发送单元,用于将所述计算单元计算的上传路径信息发送至所述边缘服务器。
可选的,所述计算单元包括:
解析模块,用于解析所述上传请求,得到主播用户的用户信息和所述边缘服务器的地址信息;
确定模块,用于根据所述解析模块解析得到用户信息和预置的上传路径配置策略,确定上传路径的节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息,其中,所述节点地址列表中的首节点地址为所述边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址;
压缩模块,用于将所述确定模块确定的节点地址列表压缩为上传路径信息,以便于发送至所述边缘服务器。
可选的,所述装置还包括:
确定单元,用于控制中心在根据预置的上传路径配置策略为所述上传请求配置上传路径信息之前,通过保活报文确定CDN***中所有节点服务器的数据传输状态。
另一方面,本发明实施例提供一种直播视频的上传***,该***包括含有如前所述的直播视频的上传装置的边缘服务器和如前所述的直播视频的上传装置的控制中心;
其中,所述边缘服务器,用于接收主播用户发送的直播视频上传请求,并将所述上传请求发送至所述控制中心,根据控制中心返回的上传路径信息将主播用户的直播视频数据上传至直播平台;
所述控制中心,用于接收所述边缘服务器发送的直播视频上传请求,根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息,并将得到的上传路径信息发送至所述边缘服务器。
本发明实施例提供的一种直播视频的上传方法、装置及***,通过边缘服务器接收主播用户的直播视频的上传请求,并将该请求上报给控制中心,由控制中心根据整个CDN***网络的当前状态为该上传请求配置一个直播视频的上传路径信息,并将该上传路径信息反馈给接收上传请求的边缘服务器,最终由该边缘服务器根据上传路径信息将主播用户的直播视频数据上传至直播平台。相比现有的上传直播视频的方法,本发明实施例所采用的上传方法所配置的上传路径是动态,非固定的上传路径,能够根据当前的网络状态,配置一个最优化的上传路径,并且,在需要修改配置上传路径的策略时,也只需要在控制中心进行策略的调整即可,省去了到各个边缘服务器中修改路径配置文件的步骤,简化了配置流程,提高了路径配置的响应效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作以简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种直播视频的上传方法流程图;
图2为本发明实施例提供的另一种直播视频的上传方法流程图;
图3为本发明实施例提供的第三种直播视频的上传方法流程图;
图4为本发明实施例提供的一种直播视频的上传装置的结构组成框图;
图5为本发明实施例提供的另一种直播视频的上传装置的结构组成框 图;
图6为本发明实施例提供的第三种直播视频的上传装置的结构组成框图;
图7为本发明实施例提供的第四种直播视频的上传装置的结构组成框图;
图8为本发明实施例提供的一种直播视频的上传***示意图;
图9为本发明实施例提供的一种直播视频的上传装置的又一实施例示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供了一种直播视频的上传方法,如图1所示,该方法应用于CDN***中的边缘服务器,具体步骤包括:
101、接收主播用户的直播视频上传请求。
主播用户在上传直播视频数据前,要先向CDN***中的一个边缘服务器发送上传请求,该边缘服务器是在CDN***网络中与该主播用户联通性最好的一个节点服务器,即该主播用户与该边缘服务器的数据传输性最高。一般的CDN***中,边缘服务器是根据地域来设置的,因此,该边缘服务器也是距离给主播用户较近的一个节点服务器。
102、将上传请求发送至控制中心。
当边缘服务器接收到主播用户的上传请求后,会将该上传请求发送给控制中心处理。由控制中心根据当前网络的数据传输情况来配置最优的上传路径并返回给边缘服务器。其中,本发明实施例中的控制中心可是位于CDN***中继设备层的服务器,能够监控CDN***中所有节点服务器的数据传输状态,以此判断各个节点服务器当前的工作状态以及负载情况。相对于现有的在边缘服务器本地为上传请求配置上传路径的方式,本发明实施例能够动态 的配置路径信息,将当前网络中的故障节点避开。同时,边缘服务器由于不再处理配置上传路径的操作,因此,就可以将节省出的处理资源用与其他操作,如接受主播用户上传的直播视频数据或者是其他主播用户的上传请求等。从而提高了该边缘服务器的处理效率。
103、接收控制中心返回的上传路径信息。
该路径信息中的路径为控制中心根据预置的上传路径配置策略实时计算得到的由边缘服务器到直播平台的一条数据传输路径。该路径是由CDN***中的多个节点服务器组成,控制中心通过预置的策略选出一条传输效率最好,且距离较短的传输路径。
104、根据上传路径信息将主播用户的直播视频数据上传至直播平台。
在接收到控制中心返回的上传路径信息后,边缘服务器会向主播用户回复一个响应信息,允许该主播用户上传直播视频数据。在收到主播用户的直播视频数据后,将根据该上传路径信息中的具体路径将直播视频数据发送至直播平台。
与上述方法相对应地,本发明实施例还提供了一种直播视频的上传方法,如图2所示,该方法应用于CDN***中的控制中心,具体步骤包括:
201、接收边缘服务器发送的直播视频上传请求。
本发明实施例中的控制中心位于CDN***中的中继设备层,用于接收所有边缘服务器发送的视频上传请求。
202、根据预置的上传路径配置策略为上传请求实时计算上传路径信息。
控制中心在接收到直播视频上传请求后,将根据预置的上传路径配置策略,配置一条传输速率最优的传输路径,该路径由多个节点服务器所组成。其中,预置的上传路径配置策略是由管理员根据直播平台的实际需要设置的配置策略,通过监控CDN***中各个节点服务器当前的数据传输性能,计算出一条从边缘服务器到直播平台的最优路径,此外,该策略中还会考虑到距离,是否跨区、跨运营商的等因素,对路径的规划进行综合配置。由于在这些参数的计算过程中需要占用较大的处理资源,因此,将路径规划的功能从边缘服务器中分离出来,可以减少边缘服务器的处理压力,将整个***的通讯状态集中到控制中心,由控制中心集中处理各个边缘服务器到直播平台的路径配置计算。
203、将上传路径信息发送至边缘服务器。
当计算中心为上传请求计算出最优的上传路径后,将得到的上传路径信息连同上传请求反馈给边缘服务器。
结合上述的实现方式可以看出,本发明实施例所采用的直播视频的上传方法,通过边缘服务器接收主播用户的直播视频的上传请求,并将该请求上报给控制中心,由控制中心根据整个CDN***网络的当前状态为该上传请求配置一个直播视频的上传路径信息,并将该上传路径信息反馈给接收上传请求的边缘服务器,最终由该边缘服务器根据上传路径信息将主播用户的直播视频数据上传至直播平台。相比现有的上传直播视频的方法,本发明实施例所采用的上传方法所配置的上传路径是动态,非固定的上传路径,能够根据当前的网络状态,配置一个最优化的上传路径,并且,在需要修改配置上传路径的策略时,也只需要在控制中心进行策略的调整即可,省去了到各个边缘服务器中修改路径配置文件的步骤,简化了配置流程,提高了路径配置的响应效率。
为了更加详细地说明本发明实施例所提出的直播视频的上传方法,以下将综合上述的两种方法加以说明,如图3所示,该方法所包括的具体步骤为:
301、边缘服务器接收主播用户的直播视频上传请求。
边缘服务器在CDN***中为分布式设置,不同地域或不同运营商的主播用户所发送上传请求会发送到不同的边缘服务器中。而边缘服务器自身也会根据处理能力的大小利用CDN***中的负载均衡***将部分主播用户的请求转给其他的边缘服务器处理,这部分CDN***的自身功能在本发明实施例中不做详细说明。
302、由边缘服务器将上传请求发送至控制中心。
边缘服务器在收到主播用户的上传请求后,会将该上传请求发送至控制中心,并且在发送前会将边缘服务器的地址信息添加到上传请求中,以便控制中心能够确认该上传请求是由哪一个边缘服务器发送的,同时,也便于将该边缘服务器的地址确定为上传路径的起始地址。边缘服务器的地址信息为该节点的IP地址,将该IP地址与上传请求组成上传路径请求发送给控制中心,由控制中心为主播用户计算直播视频的上传路径。
303、控制中心根据接收到的上传请求根据预置的上传路径配置策略实时 计算上传路径信息。
控制中心在接收到边缘服务器发送的上传路径请求后,将解析该上传路径请求,得到边缘服务器的地址信息和主播用户发送的上传请求,再根据上传请求提取主播用户的用户信息。通过对用户信息的识别与判断,可以确定该主播用户是否为合法用户,即判断该主播用户是否已注册。确认该主播用户具有上传直播视频的权限后,会根据预置的上传路径配置策略进行路径的规划,其中,具体的策略是由管理员根据实际的需求设置的,本发明实施例在此不做具体限制。而该策略的主要目标是要配置一条数据传输速率高,且成本相对低的传递路径,例如,根据***中各个节点服务器的数据传输状态先确定哪些节点是可用的节点,再在这些节点中选择一条同运营商的上传路径以降低数据传送的成本。
其中,控制中心在确定***中各个节点服务器的数据传输状态时所采用的方式可以是通过与CDN***中的各个节点通过发送保活报文的方式,由控制中心周期性的向节点服务器发送消息,并接受各节点的响应消息,以此来确定各节点服务器的数据传输状态。
根据预置策略所计算出的路径是由多个CDN***中的节点服务器所组成的,因此,该上传路径信息可以由节点服务器的IP地址以列表的形式展现,根据路径中经过节点服务器的顺序依次排列出向对应的IP地址,其中,节点地址列表中的首节点地址为上传请求的边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址。
进一步的,为了便于将上传路径的节点服务器地址列表发送给边缘服务器,还可以对节点地址列表进行压缩,得到压缩后的上传路径信息。
304、由边缘服务器接收控制中心返回的上传路径信息。
边缘服务器在接收到303中得到的上传路径信息后,根据该上传路径信息的具体格式进行解析,得到其中的节点地址列表。
在获得节点地址列表的同时,边缘服务器会向申请直播视频的主播用户返回一个信息,提示该主播用户可以进行直播视频的数据上传。
305、根据上传路径信息将主播用户的直播视频数据上传至直播平台。
主播用户在得到边缘服务器的确定信息后,就可以开始直播视频,即上传直播视频的视频数据。而边缘服务器在接收到主播用户上传的视频数据后, 将根据所得到的节点地址列表,将数据传递给在该列表中列在本机IP地址下一个IP地址的节点服务器,由下一个节点服务器以此类推地发送视频数据,直至发送至直播平台,以供其他网友在线观看。
进一步的,作为对上述方法的实现,本发明实施例提供了一种直播视频的上传装置,该装置设置在CDN网络***中的资源服务器内,如图4所示,该装置包括:
第一接收单元41,用于边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器为CDN***中向主播用户提供数据传输服务的节点服务器。此外,第一接收单元还用于接收主播用户的直播视频数据。
发送单元42,用于将所述第一接收单元41接收的上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态。
第二接收单元43,用于接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径。
上传单元44,用于根据所述第二接收单元43接收的上传路径信息将所述主播用户的直播视频数据上传至直播平台。
进一步的,如图5所示,所述发送单元42包括:
添加模块421,用于在所述上传请求中添加所述边缘服务器的地址信息,生成上传路径请求;
发送模块422,用于发送所述添加模块421生成的上传路径请求至控制中心。
进一步的,如图5所示,所述第二接收单元43包括:
获取模块431,用于获取所述控制中心根据所述上传路径请求配置的上传路径信息;
解析模块432,用于解析所述获取模块431获取的上传路径信息,得到节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息。
进一步的,如图5所示,所述上传单元44包括:
获取模块441,用于获取所述主播用户上传的直播视频数据;
上传模块442,用于将所述获取模块获取的直播视频数据按照所述节点地址列表中标示出的上传路径发送至直播平台。
进一步的,本发明实施例还提供一种直播视频的上传装置,该装置设置在CDN网络***中的控制中心内,如图6所示,该装置包括:
接收单元61,用于控制中心接收边缘服务器发送的直播视频上传请求。
计算单元62,用于根据预置的上传路径配置策略为所述接收单元61接收的上传请求实时计算上传路径信息,所述上传路径信息是由节点服务器组成的数据传输路径。
发送单元63,用于将所述计算单元62计算的上传路径信息发送至所述边缘服务器。
进一步的,如图7所示,所述计算单元62包括:
解析模块621,用于解析所述上传请求,得到主播用户的用户信息和所述边缘服务器的地址信息;
确定模块622,用于根据所述解析模块621解析得到用户信息和预置的上传路径配置策略,确定上传路径的节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息,其中,所述节点地址列表中的首节点地址为所述边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址;
压缩模块623,用于将所述确定模块确定的节点地址列表压缩为上传路径信息,以便于发送至所述边缘服务器。
进一步的,如图7所示,所述装置还包括:
确定单元64,用于控制中心在计算单元62根据预置的上传路径配置策略为所述上传请求配置上传路径信息之前,通过保活报文确定CDN***中所有节点服务器的数据传输状态。
进一步的,本发明实施例提供一种直播视频的上传***,如图8所述,该***包括含有如前所述的直播视频的上传装置的边缘服务器81和如前所述的直播视频的上传装置的控制中心82。
其中,所述边缘服务器81,用于接收主播用户发送的直播视频上传请求,并将所述上传请求发送至所述控制中心82,根据控制中心返回的上传路径信息将主播用户的直播视频数据上传至直播平台。
所述控制中心82,用于接收所述边缘服务器81发送的直播视频上传请求,根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息,并将得到的上传路径信息发送至所述边缘服务器。
综上所述,本发明实施例所采用的一种直播视频的上传方法、装置及***,通过边缘服务器接收主播用户的直播视频的上传请求,并将该请求上报给控制中心,由控制中心根据整个CDN***网络的当前状态为该上传请求配置一个直播视频的上传路径信息,并将该上传路径信息反馈给接收上传请求的边缘服务器,最终由该边缘服务器根据上传路径信息将主播用户的直播视频数据上传至直播平台。相比现有的上传直播视频的方法,本发明实施例所采用的上传方法所配置的上传路径是动态,非固定的上传路径,能够根据当前的网络状态,配置一个最优化的上传路径,并且,在需要修改配置上传路径的策略时,也只需要在控制中心进行策略的调整即可,省去了到各个边缘服务器中修改路径配置文件的步骤,简化了配置流程,提高了路径配置的响应效率。
需要说明的是,针对上述直播视频的播放装置,凡是本发明实施例中使用到的各个单元模块的功能都可以通过硬件处理器(hardware processor)来实现。
示例性的,如图9所示,图9示出了本发明实施例提供的一种直播视频的上传装置的又一实施例示意图,是将上述直播视频的播放装置设置在实体服务器中,该服务器可以包括:处理器(processor)91、通信接口(Communications Interface)92、存储器(memory)93和总线94,其中,处理器91、通信接口92、存储器93通过总线94完成相互间的通信。通信接口92可以用于服务器与客户端之间的信息传输。处理器91可以调用存储器93中的逻辑指令,以执行如下方法:边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器是内容分发网络CDN***中向主播用户提供数据传输服务的节点服务器;将所述上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态;接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径;根据所述上传路径信息将所述主播用户的直 播视频数据上传至直播平台。
此外,上述的存储器93中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (15)

  1. 一种直播视频的上传方法,其特征在于,包括:
    边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器是内容分发网络CDN***中向主播用户提供数据传输服务的节点服务器;
    将所述上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态;
    接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径;
    根据所述上传路径信息将所述主播用户的直播视频数据上传至直播平台。
  2. 根据权利要求1所述的方法,其特征在于,将所述上传请求发送至控制中心包括:
    在所述上传请求中添加所述边缘服务器的地址信息,生成上传路径请求;
    发送所述上传路径请求至控制中心。
  3. 根据权利要求1或2所述的方法,其特征在于,接收所述控制中心返回的上传路径信息包括:
    获取所述控制中心根据所述上传路径请求配置的上传路径信息;
    解析所述上传路径信息,得到节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息。
  4. 根据权利要求3所述的方法,其特征在于,根据所述上传路径信息将所述主播用户的直播视频数据上传至直播平台包括:
    获取所述主播用户上传的直播视频数据;
    将所述直播视频数据按照所述节点地址列表中标示出的上传路径发送至直播平台。
  5. 一种直播视频的上传方法,其特征在于,包括:
    控制中心接收边缘服务器发送的直播视频上传请求;
    根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息, 所述上传路径信息是由节点服务器组成的数据传输路径;
    将所述上传路径信息发送至所述边缘服务器。
  6. 根据权利要求5所述的方法,其特征在于,所述根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息包括:
    解析所述上传请求,得到主播用户的用户信息和所述边缘服务器的地址信息;
    根据所述用户信息和预置的上传路径配置策略,确定上传路径的节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息,其中,所述节点地址列表中的首节点地址为所述边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址;
    将所述节点地址列表压缩为上传路径信息,以便于发送至所述边缘服务器。
  7. 根据权利要求5所述的方法,其特征在于,在根据预置的上传路径配置策略为所述上传请求配置上传路径信息之前,所述方法还包括:
    控制中心通过保活报文确定CDN***中所有节点服务器的数据传输状态。
  8. 一种直播视频的上传装置,其特征在于,包括:
    第一接收单元,用于边缘服务器接收主播用户的直播视频上传请求,所述边缘服务器为CDN***中向主播用户提供数据传输服务的节点服务器;
    发送单元,用于将所述第一接收单元接收的上传请求发送至控制中心,以便所述控制中心根据所述上传请求配置上传路径信息,所述控制中心用于监控所述CDN***中所有节点服务器的数据传输状态;
    第二接收单元,用于接收所述控制中心返回的上传路径信息,所述上传路径信息中的路径是由所述控制中心根据预置的上传路径配置策略实时计算得到的由节点服务器组成的数据传输路径;
    上传单元,用于根据所述第二接收单元接收的上传路径信息将所述主播用户的直播视频数据上传至直播平台。
  9. 根据权利要求8所述的装置,其特征在于,所述发送单元包括:
    添加模块,用于在所述上传请求中添加所述边缘服务器的地址信息,生成上传路径请求;
    发送模块,用于发送所述添加模块生成的上传路径请求至控制中心。
  10. 根据权利要求8或9所述的装置,其特征在于,所述第二接收单元包括:
    获取模块,用于获取所述控制中心根据所述上传路径请求配置的上传路径信息;
    解析模块,用于解析所述获取模块获取的上传路径信息,得到节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息。
  11. 根据权利要求10所述的装置,其特征在于,所述上传单元包括:
    获取模块,用于获取所述主播用户上传的直播视频数据;
    上传模块,用于将所述获取模块获取的直播视频数据按照所述节点地址列表中标示出的上传路径发送至直播平台。
  12. 一种直播视频的上传装置,其特征在于,包括:
    接收单元,用于控制中心接收边缘服务器发送的直播视频上传请求;
    计算单元,用于根据预置的上传路径配置策略为所述接收单元接收的上传请求实时计算上传路径信息,所述上传路径信息是由节点服务器组成的数据传输路径;
    发送单元,用于将所述计算单元计算的上传路径信息发送至所述边缘服务器。
  13. 根据权利要求12所述的装置,其特征在于,所述计算单元包括:
    解析模块,用于解析所述上传请求,得到主播用户的用户信息和所述边缘服务器的地址信息;
    确定模块,用于根据所述解析模块解析得到用户信息和预置的上传路径配置策略,确定上传路径的节点地址列表,所述节点地址列表中列出了用于上传直播视频数据的路径中各节点服务器的地址信息,其中,所述节点地址列表中的首节点地址为所述边缘服务器的地址,终节点地址为直播平台中存储直播视频的源服务器的地址;
    压缩模块,用于将所述确定模块确定的节点地址列表压缩为上传路径信息,以便于发送至所述边缘服务器。
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:
    确定单元,用于控制中心在根据预置的上传路径配置策略为所述上传请求配置上传路径信息之前,通过保活报文确定CDN***中所有节点服务器的数据传输状态。
  15. 一种直播视频的上传***,其特征在于,所述***包括含有如权利要求8至11中任一项所述直播视频的上传装置的边缘服务器和如权利要求12至14中任一项所述直播视频的上传装置的控制中心;
    其中,所述边缘服务器,用于接收主播用户发送的直播视频上传请求,并将所述上传请求发送至所述控制中心,根据控制中心返回的上传路径信息将主播用户的直播视频数据上传至直播平台;
    所述控制中心,用于接收所述边缘服务器发送的直播视频上传请求,根据预置的上传路径配置策略为所述上传请求实时计算上传路径信息,并将得到的上传路径信息发送至所述边缘服务器。
PCT/CN2016/082824 2015-11-26 2016-05-20 一种直播视频的上传方法、装置及*** WO2017088384A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
RU2016139046A RU2016139046A (ru) 2015-11-26 2016-05-20 Способ, устройство и система для загрузки видео в реальном времени
US15/245,275 US20170155695A1 (en) 2015-11-26 2016-08-24 Method, device and system for uploading live video

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510845632.2A CN105681387A (zh) 2015-11-26 2015-11-26 一种直播视频的上传方法、装置及***
CN201510845632.2 2015-11-26

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/245,275 Continuation US20170155695A1 (en) 2015-11-26 2016-08-24 Method, device and system for uploading live video

Publications (1)

Publication Number Publication Date
WO2017088384A1 true WO2017088384A1 (zh) 2017-06-01

Family

ID=56947052

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082824 WO2017088384A1 (zh) 2015-11-26 2016-05-20 一种直播视频的上传方法、装置及***

Country Status (4)

Country Link
US (1) US20170155695A1 (zh)
CN (1) CN105681387A (zh)
RU (1) RU2016139046A (zh)
WO (1) WO2017088384A1 (zh)

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872640A (zh) * 2015-12-07 2016-08-17 乐视云计算有限公司 一种直播视频的获取方法、装置及***
CN106254951B (zh) * 2016-09-27 2019-01-01 腾讯科技(深圳)有限公司 一种视频直播创建方法及其***、接入设备、管理设备
US20180097820A1 (en) * 2016-10-03 2018-04-05 Adobe Systems Incorporated Managing content upload and content retrieval
CN106453328A (zh) * 2016-10-18 2017-02-22 乐视控股(北京)有限公司 直播视频文件的推流方法、客户端及边缘流媒体服务器
CN106534916B (zh) * 2016-10-25 2019-03-29 杭州顺网科技股份有限公司 一种针对网吧环境基于三层服务器架构的视频直播***
CN106851343B (zh) * 2017-01-23 2020-04-21 百度在线网络技术(北京)有限公司 用于视频直播的方法和装置
CN107018448A (zh) * 2017-03-23 2017-08-04 广州华多网络科技有限公司 数据处理方法及装置
CN107438201B (zh) * 2017-07-06 2020-08-21 北京潘达互娱科技有限公司 消息处理***、方法及装置
CN107509097B (zh) * 2017-09-15 2020-10-16 武汉斗鱼网络科技有限公司 视频分享方法、装置及分享服务器
CN108810558B (zh) * 2018-06-12 2021-03-02 北京奇艺世纪科技有限公司 一种直播回源的方法及***
CN110798691B (zh) * 2018-08-01 2021-11-09 中移(杭州)信息技术有限公司 一种直播内容上传和获取方法及装置
CN110896410B (zh) * 2018-11-15 2022-03-18 腾讯科技(深圳)有限公司 视频数据的上传方法、装置、计算机可读介质及电子设备
CN109729397A (zh) * 2019-01-29 2019-05-07 网宿科技股份有限公司 一种推流方法、***及服务器
US11102319B2 (en) 2019-01-29 2021-08-24 Wangsu Science and Technology Co., Ltd. Method, system and server for stream-pushing
CN109951716B (zh) * 2019-03-26 2020-10-30 北京达佳互联信息技术有限公司 一种主播调度方法、装置、电子设备及可读存储介质
CN109982103A (zh) * 2019-05-07 2019-07-05 东莞市商二信息科技有限公司 一种基于视频流技术的直播管理***及其管理方法
CN110505489A (zh) * 2019-08-08 2019-11-26 咪咕视讯科技有限公司 视频处理方法、通信设备及计算机可读存储介质
CN111427660B (zh) * 2020-03-19 2023-07-25 北京奇艺世纪科技有限公司 上传机调度方法及装置
CN111935246A (zh) * 2020-07-21 2020-11-13 山东省计算中心(国家超级计算济南中心) 一种基于云边协作的用户生成内容上传方法和***
CN112272201B (zh) * 2020-09-15 2022-05-27 网宿科技股份有限公司 一种设备纳管方法、***及纳管集群
CN112910713A (zh) * 2021-03-02 2021-06-04 山东省计算中心(国家超级计算济南中心) 云边数据分流传输方法、边缘节点、控制中心及存储介质
CN113423143A (zh) * 2021-03-26 2021-09-21 阿里巴巴新加坡控股有限公司 多路径数据传输方法、装置及电子设备
CN113641754A (zh) * 2021-07-12 2021-11-12 陕西悟空云信息技术有限公司 一种分布式储存方法及其***
CN113645478B (zh) * 2021-08-11 2023-06-20 上海哔哩哔哩科技有限公司 直播推流地址分配方法及***
CN113783944B (zh) * 2021-08-24 2024-03-22 国网冀北电力有限公司信息通信分公司 基于云边协同的视频数据处理方法、装置、***及设备
CN114040217A (zh) * 2021-11-05 2022-02-11 南京小灿灿网络科技有限公司 双重混合的流媒体直播方法
CN114466212A (zh) * 2022-02-07 2022-05-10 百度在线网络技术(北京)有限公司 一种直播方法、装置、电子设备和介质
CN114710682A (zh) * 2022-04-02 2022-07-05 体奥动力(北京)体育传播有限公司 赛事现场的虚拟现实视频处理方法、装置和电子设备
CN115499713A (zh) * 2022-09-03 2022-12-20 上海通铭信息科技股份有限公司 基于视频编解码的远程视频调度方法、***及服务器
CN115361379B (zh) * 2022-10-24 2023-03-31 广州市千钧网络科技有限公司 一种视频上传服务器调配方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011112645A1 (en) * 2010-03-10 2011-09-15 Thomson Licensing A unified cache and peer-to-peer method and apparatus for streaming media in wireless mesh networks
CN102624622A (zh) * 2012-03-12 2012-08-01 前卫视讯(北京)科技发展有限公司 基于多级转发的网络视频的路由计算方法和装置
CN103139612A (zh) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 一种视频直播分发网络的动态网络分发树管理方法
CN103188278A (zh) * 2011-12-27 2013-07-03 中国电信股份有限公司 内容数据分发的方法和***
CN103731753A (zh) * 2012-10-12 2014-04-16 上海聚力传媒技术有限公司 个人视频直播流路由***及方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7733808B2 (en) * 2006-11-10 2010-06-08 Microsoft Corporation Peer-to-peer aided live video sharing system
WO2010108053A1 (en) * 2009-03-19 2010-09-23 Azuki Systems, Inc. Method for scalable live streaming delivery for mobile audiences
CN101990113B (zh) * 2009-08-06 2013-09-11 中兴通讯股份有限公司 内容上行方法及内容交付功能实体
US8713130B2 (en) * 2010-08-04 2014-04-29 Kryterion, Inc. Peered proctoring
CA2881012A1 (en) * 2011-08-03 2013-02-07 Libre Communications Inc. Secure event broadcasting system and method
US8611355B1 (en) * 2013-09-03 2013-12-17 tw telecom holdings inc. Buffer-less virtual routing
US9578356B1 (en) * 2015-11-13 2017-02-21 Nanning Fugui Precision Industrial Co., Ltd. Live video matching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011112645A1 (en) * 2010-03-10 2011-09-15 Thomson Licensing A unified cache and peer-to-peer method and apparatus for streaming media in wireless mesh networks
CN103139612A (zh) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 一种视频直播分发网络的动态网络分发树管理方法
CN103188278A (zh) * 2011-12-27 2013-07-03 中国电信股份有限公司 内容数据分发的方法和***
CN102624622A (zh) * 2012-03-12 2012-08-01 前卫视讯(北京)科技发展有限公司 基于多级转发的网络视频的路由计算方法和装置
CN103731753A (zh) * 2012-10-12 2014-04-16 上海聚力传媒技术有限公司 个人视频直播流路由***及方法

Also Published As

Publication number Publication date
CN105681387A (zh) 2016-06-15
RU2016139046A (ru) 2018-08-02
US20170155695A1 (en) 2017-06-01
RU2016139046A3 (zh) 2018-08-02

Similar Documents

Publication Publication Date Title
WO2017088384A1 (zh) 一种直播视频的上传方法、装置及***
WO2017088381A1 (zh) 一种直播视频的播放方法、装置及***
EP3595268B1 (en) Streaming media resource distribution method, system, edge node and central dispatching system
WO2017096846A1 (zh) 一种直播视频的获取方法、装置及***
WO2019084972A1 (zh) 流媒体直播方法及***
US20180213031A1 (en) System and method to balance servers based on server load status
US9838725B2 (en) Intelligent video streaming system
CN112738140B (zh) 一种基于WebRTC的视频流传输方法、装置、存储介质和设备
EP4362422A2 (en) Network traffic identification method and related device
RU2647654C2 (ru) Система и способ доставки аудиовизуального контента в клиентское устройство
CN104754284A (zh) 一种视频会议直播方法、设备及***
WO2017173966A1 (zh) 一种录播控制方法及装置
US10455294B2 (en) Video distribution method and device
KR101805458B1 (ko) 웹 소켓 지원 방법, 그리고 이를 사용한 웹 서버 및 웹 애플리케이션 서버
WO2018232798A1 (zh) 对等网络中的直播***及节点管理方法
US9270937B2 (en) Real time stream provisioning infrastructure
WO2017101370A1 (zh) 直播视频的处理方法及装置
CN106534216B (zh) 一种服务器部署***
US9736200B2 (en) System and method of video streaming
WO2016180284A1 (zh) 服务节点分配方法、装置、cdn管理服务器及***
CN104065665A (zh) 流媒体数据的处理方法和***
CN105554116A (zh) 一种UPnP设备远程互连方法及***
US20140161125A1 (en) Method, duplication point device, and system for data flow reuse transmission
CN114143569B (zh) 一种网页录制和直播方法及***
CN116233481A (zh) 一种媒体流传输方法、媒体服务器以及通信***

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016139046

Country of ref document: RU

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867613

Country of ref document: EP

Kind code of ref document: A1