Medium information acquisition method and apparatus, and computer device and storage medium

By dynamically selecting the target gateway with the best overall usage rate in the gateway pool, the playback quality and user experience problems caused by the nearby scheduling of multicast gateways in the prior art are solved, and high-quality media information acquisition and playback experience are achieved.

WO2025025482A1PCT designated stage expired Publication Date: 2025-02-06CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/139206
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-08-01
Filing Date
2023-12-15
Publication Date
2025-02-06

AI Technical Summary

Technical Problem

Due to nearby scheduling, existing multicast gateways cannot always schedule the optimal gateway for the playback media, which in turn affects the playback quality and user experience.

Method used

By responding to the playback request from the media demand side, the gateway pool corresponding to the media information to be played is obtained, and the target gateway is dynamically selected based on the total usage rate of the gateway pool, and the gateway information is feedbacked to the media demand side to locate the target gateway.

Benefits of technology

It realizes that the optimal gateway is always scheduled for the playback media, thereby improving playback quality and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139206_06022025_PF_FP_ABST
    Figure CN2023139206_06022025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present application are a medium information acquisition method and apparatus, and a computer device and a storage medium. The method can be applied to the technical field of networks, and specifically comprises: in response to a medium information play request sent by a medium demand end, acquiring a gateway pool of a medium source corresponding to medium information to be played (S201); on the basis of the total utilization rate of the gateway pool, selecting a target gateway from the gateway pool (S202); and feeding back to the medium demand end gateway information of the target gateway, which is used for the medium demand end to locate the target gateway, so as to acquire said medium information by means of the target gateway (S203).
Need to check novelty before this filing date? Find Prior Art

Description

Media information acquisition method, device, computer equipment and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on August 1, 2023, with application number 2023109605511, and application name “Method, device, computer equipment and storage medium for obtaining media information”, all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of network technology, and in particular to a method, apparatus, computer equipment, and storage medium for acquiring media information. Background Art

[0003] As a bridge between media sources and media demanders, gateways play an increasingly important role in media playback, such as live streaming. They enable the new generation of multicast technology to carry a large number of Internet live broadcasts, providing the software and hardware foundation for the rapid development of the Internet live streaming industry.

[0004] The multicast gateway used in multicast not only performs multicast-to-unicast conversion but also converts high-bitrate multicast to multi-bitrate unicast, placing high demands on the multicast gateway. However, existing multicast gateways are dispatched based on proximity, making it impossible to consistently dispatch media to the optimal multicast gateway to improve playback quality. This, in turn, prevents users from consistently providing a high-quality playback experience. Therefore, an improved method is urgently needed to address this issue.

[0005] Summary of the Invention

[0006] Based on this, it is necessary to provide a media information acquisition method, device, computer equipment and storage medium that can always dispatch the playback media to the optimal gateway to address the above technical problems, thereby always providing users with a high level of playback experience.

[0007] In a first aspect, the present application provides a method for obtaining media information, the method comprising:

[0008] In response to a media information playing request sent by a media demand end, obtaining a gateway pool of a media source corresponding to the media information to be played;

[0009] Select a target gateway from the gateway pool based on the total usage of the gateway pool;

[0010] Feedback the gateway information of the target gateway to the media demand side; wherein the gateway information is used for the media demand side to locate the target gateway, so as to obtain the media information to be played through the target gateway.

[0011] In one embodiment, selecting a target gateway from the gateway pool according to a total usage of the gateway pool includes:

[0012] When the total usage rate of the gateway pool is less than or equal to the first threshold, the gateway closest to the media demand end in the gateway pool is used as the target gateway;

[0013] When the total usage rate is greater than a first threshold and less than a second threshold, a target gateway is selected from the gateway pool according to the indicator value of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0014] In one embodiment, selecting a target gateway from a gateway pool according to an indicator value of each gateway in the gateway pool under a communication indicator includes:

[0015] According to the weight of the communication indicator, the indicator value of each gateway in the gateway pool under the communication indicator is weighted and calculated to obtain the weighted value of each gateway in the gateway pool;

[0016] The gateway with the smallest weight in the gateway pool is used as the target gateway.

[0017] In one embodiment, the method further comprises:

[0018] Selecting a backup gateway set from a plurality of selectable gateways;

[0019] According to the indicator value of each gateway in the standby gateway set under the communication indicator, a first preset number of gateways are selected from the standby gateway set to build a gateway pool.

[0020] In one embodiment, selecting a backup gateway set from a plurality of selectable gateways includes:

[0021] Selecting a first gateway covering a media source and a second gateway other than the first gateway from a plurality of optional gateways;

[0022] Taking the first gateway as the center, selecting a second preset number of third gateways from the second gateways;

[0023] The set of the first gateway and the third gateway is used as a backup gateway.

[0024] In one embodiment, the method further comprises:

[0025] When a gateway pool update event is detected, the constructed gateway pool is updated.

[0026] In one embodiment, the communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

[0027] In a second aspect, the present application further provides a media information acquisition device, the device comprising:

[0028] An acquisition module, configured to respond to a media information playback request sent by a media demand end and acquire a gateway pool of a media source corresponding to the media information to be played;

[0029] A selection module is used to select a target gateway from the gateway pool based on the total usage of the gateway pool;

[0030] The feedback module is used to feed back the gateway information of the target gateway to the media demand side; wherein the gateway information is used for the media demand side to locate the target gateway so as to obtain the media information to be played through the target gateway.

[0031] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned media information acquisition method when executing the computer program.

[0032] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned media information acquisition method are implemented.

[0033] In a fifth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the above-mentioned media information acquisition method.

[0034] The above-mentioned media information acquisition method, apparatus, computer device, and storage medium obtain the gateway pool of the media source corresponding to the media information to be played by responding to the media information playback request sent by the media demand side, and select a target gateway from the gateway pool based on the total usage rate of the gateway pool. Then, the gateway information of the target gateway is fed back to the media demand side, so that the media demand side can locate the target gateway and obtain the media information to be played through the target gateway. The media information acquisition method of the present application dynamically selects the target gateway from the gateway pool based on the changing indicator of the total usage rate of the gateway pool, which can always schedule the playback media to the optimal gateway, thereby always providing users with a high-level playback experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] FIG1 is a diagram showing an application environment of a method for acquiring media information according to an embodiment;

[0036] FIG2 is a schematic diagram of a flow chart of a method for acquiring media information in one embodiment;

[0037] FIG3 is a schematic diagram of a process for selecting a target gateway from a gateway pool in one embodiment;

[0038] FIG4 is a schematic diagram of a process for constructing a gateway pool in one embodiment;

[0039] FIG5 is an interaction diagram of a method for obtaining media information in one embodiment;

[0040] FIG6 is a flow chart of a method for acquiring media information in another embodiment;

[0041] FIG7 is a structural block diagram of a media information acquisition device according to an embodiment;

[0042] FIG8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0044] As a bridge between media sources and media demanders, gateways play an increasingly important role in media playback, such as live streaming. They enable the new generation of multicast technology to carry a large number of Internet live broadcasts, providing the software and hardware foundation for the rapid development of the Internet live streaming industry.

[0045] The core goals of acquiring multicast live media information are low latency, low bandwidth consumption, low computing power consumption, low packet loss, and low multicast multiplexing rate. However, for existing methods for local scheduling of multicast live media information acquisition, these goals are mutually exclusive. For example, to achieve low latency, the gateway deployment location needs to be close to the user. In this scenario, the gateway's bandwidth consumption, computing power consumption, packet loss, and multicast multiplexing rate will all increase. Therefore, existing local scheduling methods are unable to provide a scheduling method that achieves all of these goals for existing multicast services. Based on this, the embodiments of the present application provide a method for acquiring media information to improve the above-mentioned technical problems.

[0046] The media information acquisition method provided in the embodiment of the present application can be applied to situations involving how to execute media information acquisition in any field. The method can be executed by a scheduling server. For example, the media information acquisition method provided in the embodiment of the present application can be applied in the application environment shown in Figure 1. Among them, the media demand end 101 communicates with the scheduling server 102 through the communication network 104. The data storage system 103 can store data that the scheduling server 102 needs to process. The data storage system 103 can be integrated on the scheduling server 102, or it can be placed on the cloud or other network servers. Specifically, in the case of a media information playback request from the media demand end, the scheduling server 102 responds to the media information playback request from the user end, obtains the gateway pool of the media source corresponding to the media information to be played, selects the target gateway from the gateway pool based on the total usage rate of the gateway pool, and then feeds back the gateway information of the target gateway to the media demand end; wherein, the gateway information is used for the media demand end to locate the target gateway so as to obtain the media information to be played through the target gateway. Furthermore, the scheduling server 102 may interact with the media demand end 101 to feed back the result of executing the media information acquisition task to the media demand end 101 , which is then displayed to relevant personnel by the media demand end 101 .

[0047] The media demand side 101 may include, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices may include smart speakers, smart TVs, smart air conditioners, and smart car devices. Portable wearable devices may include smart watches, smart bracelets, and head-mounted devices. The scheduling server 102 may be implemented as a standalone server or a server cluster consisting of multiple servers.

[0048] In one embodiment, FIG2 is a flow chart of a method for obtaining media information according to an embodiment of the present application, and is described by taking the method applied to the scheduling server in FIG1 as an example. The method includes the following steps:

[0049] S201 , in response to a media play request sent by a media demand end, obtaining a gateway pool of a media source corresponding to media information to be played.

[0050] In one embodiment, a media demander can be a user terminal that needs to obtain media information from a media source, such as a mobile phone, computer, or tablet computer. The present invention does not limit the type of user terminal. A media source can be a device that generates media information, such as an audio player or video player. The present invention also does not limit the type of device. Optionally, each media source corresponds to a gateway pool, which contains one or more gateways.

[0051] Furthermore, the media information play request may be a request input by a user through a media demand side for executing a media information acquisition task. The media information to be played may be information carried in the media information play request and required to be acquired by the media demand side from a media source.

[0052] In one embodiment, when a media information playback request is received from a media demand end and a media information playback task in the media information playback request needs to be executed, a gateway pool of a corresponding media source is selected according to the media information to be played carried in the media information playback request.

[0053] It should be noted that the media in the embodiments of the present application can be live broadcast, video, news, etc. In the case of live broadcast, the media demand end is the live broadcast demand end, the corresponding media source is the live broadcast source, the media information playback request is the live broadcast information playback request, and the media information to be played is the live broadcast information to be played.

[0054] S202: Select a target gateway from the gateway pool according to the total usage of the gateway pool.

[0055] In one embodiment, the total utilization rate may be the ratio of the number of used gateways in the gateway pool to the total number of gateways in the gateway pool; in one embodiment, the total utilization rate changes dynamically over time. The target gateway may be the optimal gateway dynamically selected from the gateway pool of the media source.

[0056] Furthermore, since the target gateway is dynamically selected from the gateway pool as the total utilization rate changes, it is necessary to select the optimal gateway as the target gateway based on the dynamic changes in the total utilization rate to ensure the optimization of the target gateway. In one embodiment, when the total utilization rate of the gateway pool is less than or equal to a first threshold, the gateway in the gateway pool closest to the media demand end is selected as the target gateway; when the total utilization rate is greater than the first threshold and the total utilization rate is less than a second threshold, the target gateway is selected from the gateway pool based on the indicator value of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0057] For example, the first and second thresholds are preset to be 25% and 50% respectively. When the total utilization rate of the gateway pool is less than or equal to 25%, the distance between each gateway in the gateway pool and the media demand end is determined, and the gateway in the gateway pool with the smallest distance to the media demand end is selected as the target gateway. When the total utilization rate of the gateway pool is greater than 25% and less than 50%, it is necessary to combine the comprehensive index values ​​of each gateway in the gateway pool under various communication indicators and select the gateway with the best comprehensive index value from the gateway pool as the target gateway.

[0058] Furthermore, when the total usage rate of the gateway pool is greater than 50%, the target gateway selection is not performed, and the media information acquisition method is restarted.

[0059] S203: Feedback the gateway information of the target gateway to the media demand side.

[0060] The gateway information may be identification information of the gateway, which is used to accurately locate the gateway. In the embodiment of the present application, the gateway information is used by the media demand end to locate the target gateway, so as to obtain the media information to be played through the target gateway.

[0061] Specifically, after determining the target gateway, the gateway information of the target gateway is sent to the media demand end, and the media demand end locates the target gateway according to the gateway information, and obtains the to-be-played media information of the media source through the target gateway for playback.

[0062] In the above-mentioned media information acquisition method, by responding to a media information playback request sent by a media demand side, a gateway pool of the media source corresponding to the media information to be played is obtained, and a target gateway is selected from the gateway pool based on the total usage rate of the gateway pool. Then, the gateway information of the target gateway is fed back to the media demand side, so that the media demand side can locate the target gateway and obtain the media information to be played through the target gateway. In the media information acquisition method of the present application, the target gateway is dynamically selected from the gateway pool based on the changing indicator of the total usage rate of the gateway pool, which can always schedule the playback of media to the optimal gateway, thereby always providing users with a high-level playback experience.

[0063] Based on the above embodiment, the steps of selecting a target gateway from the gateway pool are decomposed and refined through Figure 3. In one embodiment, as shown in Figure 3, the following implementation process is included:

[0064] S301 , performing weighted calculation on the indicator value of each gateway in the gateway pool under the communication indicator according to the weight of the communication indicator, to obtain the weighted value of each gateway in the gateway pool.

[0065] In one embodiment, when the medium is live broadcast, the communication indicator in the embodiment of the present application includes at least one of latency, bandwidth consumption, computing power consumption, packet loss, and multicast multiplexing rate. The communication indicator in the embodiment of the present application can also be other indicators, such as bit rate, time division multiplexing rate, code division multiplexing rate, etc. The embodiment of the present application does not limit the type of communication indicator.

[0066] Furthermore, the latency represents the average response time of each media demand end to the media information when the gateway obtains the media information for each media demand end. Packet loss represents the average packet loss rate of each media demand end when the gateway obtains the media information for the media demand end, such as UDP (User Datagram Protocol) packet loss. Bandwidth consumption represents the bandwidth consumed by the media source, including southbound bandwidth (i.e., total unicast stream bandwidth) and northbound bandwidth (i.e., multicast stream bandwidth); due to the different locations of gateway deployment, the closer to the media demand end, the smaller its bandwidth consumption; in order to reduce the computational complexity of bandwidth consumption, gateways are divided into three categories: backbone core gateways, metropolitan area aggregation gateways, and edge gateways; when calculating bandwidth consumption, it is necessary to multiply the actual bandwidth consumption by coefficients of 1, 0.6, and 0.4, respectively, to obtain the bandwidth consumption of the three types of gateways. Computing power consumption represents the computing power consumed by the media source. To simplify the computing power model, this application only calculates the computing power consumption of the CPU (Central Processing Unit). The multicast multiplexing rate represents the inverse of the number of media demand ends that obtain the same media information on the gateway.

[0067] Specifically, for each gateway in the gateway pool, the gateway's weight for each communication indicator and the indicator value of each communication indicator are weighted and summed to obtain the gateway's weighted value. This process is repeated to obtain the weighted value of each gateway in the gateway pool. For example, if a gateway includes three communication indicators, and the weights of the three communication indicators are 20%, 30%, and 50%, respectively, and the indicator values ​​of the three communication indicators are 1, 2, and 3, respectively, then the gateway's weighted value is 20% * 1 + 30% * 2 + 50% * 3 = 2.3.

[0068] S302: The gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

[0069] Specifically, after obtaining the weighted values ​​of the gateways in the gateway pool, the weighted values ​​of the gateways in the gateway pool are sorted, and then the gateway corresponding to the minimum weighted value is used as the target gateway.

[0070] It can be understood that this embodiment provides a method for determining the target gateway by solving the weighted values ​​of each gateway in the gateway pool and using the gateway corresponding to the minimum weighted value as the target gateway, thereby laying the foundation for the subsequent process of obtaining media information.

[0071] Based on the above embodiment, the steps of building a gateway pool are decomposed and refined through Figure 4. In one embodiment, as shown in Figure 4, the following implementation process is included:

[0072] S401: Select a backup gateway set from multiple optional gateways.

[0073] In one embodiment, because the coverage of the gateways included in the optional gateways may or may not cover the media source, in order to ensure that the coverage of the determined gateway covers the media source, it is necessary to select a gateway from the multiple optional gateways. Specifically, a first gateway covering the media source and a second gateway other than the first gateway are selected from the multiple optional gateways; a second preset number of third gateways are selected from the second gateways with the first gateway as the center; and the set of the first and third gateways is used as a backup gateway set. For example, two first gateways covering the media source are selected from the multiple optional gateways: first gateway 1 and first gateway 2; a second preset number of third gateways are selected from the second gateways other than the first gateway, each of which is centered on first gateway 1 and first gateway 2 and has a radius of a preset length; and the set of the first and third gateways is used as a backup gateway set. In one embodiment, the second preset number is a multiple of the number of first gateways.

[0074] It should be noted that the coverage of the selected third gateway also needs to cover the media source.

[0075] S402 : Select a first preset number of gateways from the backup gateway set according to the indicator value of each gateway in the backup gateway set under the communication indicator to build a gateway pool.

[0076] Specifically, after obtaining the backup gateway set, a first preset number of gateways are selected from the backup gateway set in combination with the Pareto optimal solution algorithm and QoS (Quality of Service) requirements to construct a gateway pool. The expressions of the Pareto optimal solution algorithm and QoS requirements are shown in the following equations (1) and (2), respectively: min F(X) = [f1(X), f2(X), f3(X), f4(X), f5(X)]; (1) f i (X) <= QoS i (X),i=1,2,3,4,5; (2) X={x1,x2,……,x n}; X∈Ω

[0077] Among them, f i (X) represents the indicator value of the gateway under the i-th communication indicator; the value of i ranges from 1 to 5, corresponding to latency, bandwidth consumption, computing power consumption, packet loss, and multicast multiplexing rate, respectively; X represents a set of Pareto optimal gateways that meet QoS requirements, x1, x2, ..., x n is an element in the Pareto optimal gateway set, representing any optimal gateway; Ω represents multiple optional gateways.

[0078] It should be noted that the gateway pool of the media source can be updated as needed. For example, when a gateway pool update event is detected, the constructed gateway pool is updated. The detection of a gateway pool update event can be the detection of high usage thresholds and low usage thresholds, gateway failure, low-quality alarms, etc. For example, when the high and low usage thresholds are detected, the total usage of the gateways in the constructed gateway pool is detected at preset time intervals. If the total usage of the gateways in the gateway pool is higher than the high usage threshold, the gateway pool is expanded and updated; if the total usage of the gateways in the gateway pool is lower than the low usage threshold, the gateway pool is reduced and updated.

[0079] It can be understood that this embodiment provides a possible way to build a gateway pool based on the Pareto optimal solution algorithm and QoS requirements, provides conditions for selecting a target gateway from the gateway pool, and lays the foundation for the subsequent process of obtaining media information.

[0080] In one embodiment, FIG5 shows a flow chart of a method for obtaining media information in another embodiment. In conjunction with FIG5 , each stage specifically includes the following implementation process:

[0081] S501, the live broadcast source sends a live broadcast notification to the scheduling server.

[0082] S502: The scheduling server builds a gateway pool for the live broadcast source.

[0083] S503, the live broadcast demand end sends a live broadcast information playback request to the scheduling server.

[0084] In one embodiment, the scheduling server obtains the gateway pool of the live broadcast source according to the live broadcast information carried in the live broadcast information playback request.

[0085] S504: The scheduling server determines a scheduling method according to a relationship between the total usage rate of the gateway pool and the first threshold, and selects a target gateway from the gateway pool using the scheduling method.

[0086] In one embodiment, when the total usage rate of the gateway pool is less than a first threshold, a proximity scheduling method is selected to select a target gateway from the gateway pool; when the total usage rate of the gateway pool is greater than the first threshold, a multi-target scheduling method is selected to select a target gateway from the gateway pool.

[0087] S505: The scheduling server feeds back the gateway information of the target gateway to the media demand side.

[0088] In one embodiment, the gateway information is used by the media demand side to locate the target gateway, so as to obtain the to-be-played media information through the target gateway.

[0089] S506: The media demand end obtains the to-be-played media information from the target gateway based on the gateway information and plays the media.

[0090] The specific process of the above S501-S506 can be found in the description of the above method embodiment. The implementation principles and technical effects are similar and will not be repeated here.

[0091] In one embodiment, FIG6 shows a structural block diagram of a scheduling server in one embodiment. As shown in FIG6 , the scheduling server includes a playback scheduling server 601 and a dynamic gateway scheduling server 602 .

[0092] In one embodiment, it is executed by the dynamic gateway scheduling server 602.

[0093] Furthermore, the playback scheduling server 601 and the dynamic gateway scheduling server 602 are interconnected via interfaces 1 and 2. A media demander sends a media playback request to the playback scheduling server 601, which forwards it to the dynamic gateway scheduling server 602. The dynamic gateway scheduling server 602 retrieves the gateway pool of the media source corresponding to the media information to be played, selects a target gateway from the gateway pool based on the total usage rate of the gateway pool, and sends the gateway information of the target gateway to the playback scheduling server 601. The playback scheduling server 601 then sends the gateway information to the media demander. The media demander can then retrieve the media information to be played based on the gateway information.

[0094] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0095] Based on the same inventive concept, embodiments of the present application also provide a media information acquisition device for implementing the aforementioned media information acquisition method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the media information acquisition device provided below can be found in the aforementioned limitations of the media information acquisition method and will not be further elaborated here.

[0096] In one embodiment, a structural block diagram of a media information acquisition device in one embodiment is shown in FIG7 . As shown in FIG7 , a media information acquisition device 7 is provided, which includes: an acquisition module 70, a selection module 71, and a feedback module 72, wherein:

[0097] The acquisition module 70 is used to respond to the media information playing request sent by the media demand end and obtain the gateway pool of the media source corresponding to the media information to be played;

[0098] The selection module 71 is used to select a target gateway from the gateway pool according to the total usage rate of the gateway pool;

[0099] The feedback module 72 is used to feed back the gateway information of the target gateway to the media demand end; wherein the gateway information is used for the media demand end to locate the target gateway so as to obtain the media information to be played through the target gateway.

[0100] The above-mentioned media information acquisition device obtains the gateway pool of the media source corresponding to the media information to be played by responding to the media information playback request sent by the media demand side, selects a target gateway from the gateway pool based on the total usage rate of the gateway pool, and then feeds back the gateway information of the target gateway to the media demand side, so that the media demand side can locate the target gateway and obtain the media information to be played through the target gateway. The media information acquisition method of the present application dynamically selects the target gateway from the gateway pool based on the changing indicator of the total usage rate of the gateway pool, which can always schedule the playback of media to the optimal gateway, thereby consistently providing users with a high-level playback experience.

[0101] In one embodiment, the selection module 71 is specifically configured to:

[0102] When the total utilization rate of the gateway pool is less than or equal to the first threshold, the gateway in the gateway pool that is closest to the media demand end is selected as the target gateway; when the total utilization rate is greater than the first threshold and the total utilization rate is less than the second threshold, the target gateway is selected from the gateway pool based on the indicator values ​​of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0103] In one embodiment, the selection module 71 is specifically configured to:

[0104] According to the weight of the communication indicator, the indicator value of each gateway in the gateway pool under the communication indicator is weighted and calculated to obtain the weighted value of each gateway in the gateway pool; the gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

[0105] In one embodiment, the device 7 further comprises:

[0106] A second selection module is used to select a backup gateway set from a plurality of optional gateways;

[0107] The third selection module is configured to select a first preset number of gateways from the backup gateway set according to the indicator value of each gateway in the backup gateway set under the communication indicator, so as to construct a gateway pool of the media source.

[0108] In one embodiment, the second selection module is specifically configured to:

[0109] From multiple optional gateways, select a first gateway covering the media source and a second gateway other than the first gateway; with the first gateway as the center, select a second preset number of third gateways from the second gateways; and use the set of the first gateway and the third gateway as a backup gateway set.

[0110] In one embodiment, the device 7 further comprises:

[0111] The update module is used to update the constructed gateway pool when a gateway pool update event is detected.

[0112] In one embodiment, the communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

[0113] Each module in the aforementioned media information acquisition device may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor within a computer device in the form of hardware, or may be stored in a memory within the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0114] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in FIG8 . The computer device includes a processor, a memory, a network interface, and a transceiver connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The transceiver of the computer device is used to perform operations of receiving or sending data under the control of the processor. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as sample data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for obtaining media information is implemented.

[0115] Those skilled in the art will understand that the structure shown in FIG8 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0117] In response to a media information playing request sent by a media demand end, obtaining a gateway pool of a media source corresponding to the media information to be played;

[0118] Select a target gateway from the gateway pool based on the total usage of the gateway pool;

[0119] Feedback the gateway information of the target gateway to the media demand side; wherein the gateway information is used for the media demand side to locate the target gateway, so as to obtain the media information to be played through the target gateway.

[0120] In one embodiment, when the processor executes the logic of selecting a target gateway from the gateway pool based on the total usage of the gateway pool in the computer program, the following steps are specifically implemented:

[0121] When the total utilization rate of the gateway pool is less than or equal to the first threshold, the gateway in the gateway pool that is closest to the media demand end is selected as the target gateway; when the total utilization rate is greater than the first threshold and the total utilization rate is less than the second threshold, the target gateway is selected from the gateway pool based on the indicator values ​​of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0122] In one embodiment, when the processor executes the logic of the computer program for selecting a target gateway from the gateway pool based on the indicator value of each gateway in the gateway pool under the communication indicator, the following steps are specifically implemented:

[0123] According to the weight of the communication indicator, the indicator value of each gateway in the gateway pool under the communication indicator is weighted and calculated to obtain the weighted value of each gateway in the gateway pool; the gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

[0124] In one embodiment, when the processor executes the logic in the computer program, it further specifically implements the following steps:

[0125] A backup gateway set is selected from a plurality of optional gateways; and a first preset number of gateways are selected from the backup gateway set according to the indicator value of each gateway under the communication indicator in the backup gateway set to construct a gateway pool of the media source.

[0126] In one embodiment, when the processor executes the logic of selecting a backup gateway set from a plurality of optional gateways in the computer program, the processor further specifically implements the following:

[0127] From multiple optional gateways, select a first gateway covering the media source and a second gateway other than the first gateway; with the first gateway as the center, select a second preset number of third gateways from the second gateways; and use the set of the first gateway and the third gateway as a backup gateway set.

[0128] In one embodiment, when the processor executes the logic in the computer program, the following steps are specifically implemented:

[0129] When a gateway pool update event is detected, the constructed gateway pool is updated.

[0130] In one embodiment, the communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

[0131] The principles and specific processes of implementing the computer device provided above in each embodiment can be found in the description of the media information acquisition method embodiment in the aforementioned embodiment, and will not be repeated here.

[0132] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are performed:

[0133] In response to a media information playing request sent by a media demand end, obtaining a gateway pool of a media source corresponding to the media information to be played;

[0134] Select a target gateway from the gateway pool based on the total usage of the gateway pool;

[0135] Feedback the gateway information of the target gateway to the media demand side; wherein the gateway information is used for the media demand side to locate the target gateway, so as to obtain the media information to be played through the target gateway.

[0136] In one embodiment, when the logic of selecting a target gateway from a gateway pool based on the total usage rate of the gateway pool in the computer program is executed by a processor, the following steps are specifically implemented:

[0137] When the total utilization rate of the gateway pool is less than or equal to the first threshold, the gateway in the gateway pool that is closest to the media demand end is selected as the target gateway; when the total utilization rate is greater than the first threshold and the total utilization rate is less than the second threshold, the target gateway is selected from the gateway pool based on the indicator values ​​of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0138] In one embodiment, when the logic of selecting a target gateway from a gateway pool based on the indicator value of each gateway in the gateway pool under the communication indicator is executed by the processor, the computer program further specifically implements the following steps:

[0139] According to the weight of the communication indicator, the indicator value of each gateway in the gateway pool under the communication indicator is weighted and calculated to obtain the weighted value of each gateway in the gateway pool; the gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

[0140] In one embodiment, when the logic in the computer program is executed by a processor, the following steps are further specifically implemented:

[0141] A backup gateway set is selected from a plurality of optional gateways; and a first preset number of gateways are selected from the backup gateway set according to the indicator value of each gateway under the communication indicator in the backup gateway set to construct a gateway pool of the media source.

[0142] In one embodiment, when the logic of selecting a backup gateway set from a plurality of optional gateways in the computer program is executed by a processor, the following contents are further specifically implemented:

[0143] From multiple optional gateways, select a first gateway covering the media source and a second gateway other than the first gateway; with the first gateway as the center, select a second preset number of third gateways from the second gateways; and use the set of the first gateway and the third gateway as a backup gateway set.

[0144] In one embodiment, when the logic in the computer program is executed by a processor, the following steps are further specifically implemented:

[0145] When a gateway pool update event is detected, the constructed gateway pool is updated.

[0146] In one embodiment, the communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

[0147] The principles and specific processes of the computer-readable storage medium provided above in implementing each embodiment can be found in the description of the media information acquisition method embodiment in the aforementioned embodiment, and will not be repeated here.

[0148] The principles and specific processes of the computer-readable storage medium provided above in implementing each embodiment can be found in the description of the target detection method embodiment in the aforementioned embodiment, and will not be repeated here.

[0149] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0150] In response to a media information playing request sent by a media demand end, obtaining a gateway pool of a media source corresponding to the media information to be played;

[0151] Select a target gateway from the gateway pool based on the total usage of the gateway pool;

[0152] Feedback the gateway information of the target gateway to the media demand side; wherein the gateway information is used for the media demand side to locate the target gateway, so as to obtain the media information to be played through the target gateway.

[0153] In one embodiment, when the logic of selecting a target gateway from a gateway pool based on the total usage rate of the gateway pool in the computer program is executed by a processor, the following steps are specifically implemented:

[0154] When the total utilization rate of the gateway pool is less than or equal to the first threshold, the gateway in the gateway pool that is closest to the media demand end is selected as the target gateway; when the total utilization rate is greater than the first threshold and the total utilization rate is less than the second threshold, the target gateway is selected from the gateway pool based on the indicator values ​​of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

[0155] In one embodiment, when the logic of selecting a target gateway from a gateway pool based on the indicator value of each gateway in the gateway pool under the communication indicator is executed by the processor, the computer program further specifically implements the following steps:

[0156] According to the weight of the communication indicator, the indicator value of each gateway in the gateway pool under the communication indicator is weighted and calculated to obtain the weighted value of each gateway in the gateway pool; the gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

[0157] In one embodiment, when the logic in the computer program is executed by a processor, the following steps are further specifically implemented:

[0158] A backup gateway set is selected from a plurality of optional gateways; and a first preset number of gateways are selected from the backup gateway set according to the indicator value of each gateway under the communication indicator in the backup gateway set to construct a gateway pool of the media source.

[0159] In one embodiment, when the logic of selecting a backup gateway set from a plurality of optional gateways in the computer program is executed by a processor, the following contents are further specifically implemented:

[0160] From multiple optional gateways, select a first gateway covering the media source and a second gateway other than the first gateway; with the first gateway as the center, select a second preset number of third gateways from the second gateways; and use the set of the first gateway and the third gateway as a backup gateway set.

[0161] In one embodiment, when the logic in the computer program is executed by a processor, the following steps are further specifically implemented:

[0162] When a gateway pool update event is detected, the constructed gateway pool is updated.

[0163] In one embodiment, the communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

[0164] The principles and specific processes of the computer program products provided above in implementing each embodiment can be found in the description of the target detection method embodiment in the aforementioned embodiment, and will not be repeated here.

[0165] It should be noted that the information involved in this application (including but not limited to information in the process of obtaining media information, such as media information to be played, etc.) is data that has been fully authorized by all parties.

[0166] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0167] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0168] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for obtaining media information, comprising: In response to a media information playing request sent by a media demand end, a gateway pool of a media source corresponding to the media information to be played is obtained; Selecting a target gateway from the gateway pool according to the total usage rate of the gateway pool; Feedback the gateway information of the target gateway to the media demand end; wherein the gateway information is used by the media demand end to locate the target gateway, so as to obtain the to-be-played media information through the target gateway.

2. The method according to claim 1, wherein: The selecting a target gateway from the gateway pool according to the total usage rate of the gateway pool includes: When the total usage rate of the gateway pool is less than or equal to a first threshold, taking the gateway in the gateway pool that is closest to the media demand end as the target gateway; When the total usage rate is greater than the first threshold and the total usage rate is less than a second threshold, a target gateway is selected from the gateway pool according to the indicator value of each gateway in the gateway pool under the communication indicator; wherein the second threshold is greater than the first threshold.

3. The method according to claim 2, wherein: The selecting a target gateway from the gateway pool according to the indicator value of each gateway in the gateway pool under the communication indicator includes: According to the weight of the communication indicator, weighted calculation is performed on the indicator value of each gateway in the gateway pool under the communication indicator to obtain the weighted value of each gateway in the gateway pool; The gateway corresponding to the minimum weighted value in the gateway pool is used as the target gateway.

4. The method according to claim 1, further comprising: Selecting a backup gateway set from a plurality of selectable gateways; According to the indicator value of each gateway in the standby gateway set under the communication indicator, a first preset number of gateways are selected from the standby gateway set to construct the gateway pool.

5. The method according to claim 4, wherein: The step of selecting a backup gateway set from a plurality of optional gateways comprises: Selecting a first gateway covering the media source and a second gateway other than the first gateway from a plurality of optional gateways; Taking the first gateway as the center, selecting a second preset number of third gateways from the second gateways; The set of the first gateway and the third gateway is used as a backup gateway set.

6. The method according to claim 4, further comprising: When a gateway pool update event is detected, the constructed gateway pool is updated.

7. The method according to claim 6, wherein: When a gateway pool update event is detected, updating the constructed gateway pool includes: Detecting the gateway pool update event is detecting the occurrence of a high usage threshold and a low usage threshold; Detecting the total usage rate of the gateways in the constructed gateway pool at a preset time interval; When the total usage rate of the gateways in the gateway pool is higher than the high usage rate threshold, expanding and updating the gateway pool; When the total usage rate of the gateways in the gateway pool is lower than the low usage rate threshold, the gateway pool is scaled down and updated.

8. The method according to claim 1, wherein: The step of obtaining a gateway pool of a media source corresponding to the media information to be played in response to a media information playing request sent by the media demand end includes: Receiving the media information playing request sent by the media demand end; When executing the media information playing task in the media information playing request, the gateway pool of the corresponding media source is obtained according to the to-be-played media information carried in the media information playing request.

9. The method according to claim 1, wherein: The feeding back the gateway information of the target gateway to the media demand end includes: Sending gateway information of the target gateway to the media demand end; According to the gateway information, the target gateway is located via the media demand end; The target gateway obtains the to-be-played media information of the media source for playing.

10. The method according to any one of claims 1 to 9, wherein: The communication indicator includes at least one of latency, bandwidth consumption, computing power consumption, number of packet losses, and multicast multiplexing rate.

11. A media information acquisition device, comprising: An acquisition module, used to respond to a media information playing request sent by a media demand end and acquire a gateway pool of a media source corresponding to the media information to be played; A selection module, configured to select a target gateway from the gateway pool according to a total usage rate of the gateway pool; A feedback module is used to feed back the gateway information of the target gateway to the media demand end; wherein the gateway information is used for the media demand end to locate the target gateway so as to obtain the to-be-played media information through the target gateway.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

14. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Distributed load balancing method and device based on streaming media

    CN109600624A

  • Live broadcast state data sending method, device and system and storage medium

    CN111262864A

  • Server scheduling method, device and system, storage medium and computer equipment

    CN111491013A

  • Streaming media server load balancing method and system, computer equipment and terminal

    CN113141317A

  • Medium information acquisition method and device, computer equipment and storage medium

    CN117135161A