CN113347138B - Transmission method, device, computer equipment and storage medium for transcoding data stream - Google Patents
Transmission method, device, computer equipment and storage medium for transcoding data stream Download PDFInfo
- Publication number
- CN113347138B CN113347138B CN202010136399.1A CN202010136399A CN113347138B CN 113347138 B CN113347138 B CN 113347138B CN 202010136399 A CN202010136399 A CN 202010136399A CN 113347138 B CN113347138 B CN 113347138B
- Authority
- CN
- China
- Prior art keywords
- data stream
- transcoding
- target
- network
- code rate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000005540 biological transmission Effects 0.000 title claims abstract description 29
- 239000000284 extract Substances 0.000 claims abstract description 8
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 6
- 238000000605 extraction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/40—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a transmission method, a device, computer equipment and a storage medium for transcoding data streams. The method comprises the following steps: the method comprises the steps that a dispatching center obtains a plurality of pushing networks corresponding to a target data stream, and a transcoding network is determined in each pushing network; the scheduling center receives a transcoding data stream acquisition request corresponding to the target data stream and sent by a target push network, and extracts a target code rate in the transcoding data stream acquisition request; and the dispatching center acquires the stream pulling address of the transcoding network and feeds back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network. The embodiment of the invention can reduce the transcoding cost of the data stream.
Description
Technical Field
Embodiments of the present invention relate to the field of networks, and in particular, to a method, an apparatus, a computer device, and a storage medium for transmitting a transcoded data stream.
Background
In the process of data transmission in the form of streams, a content delivery network (Content Delivery Network, CDN) is generally used for delivery, and finally the data is sent to a terminal device.
Different users want to acquire and select data streams with different code rates due to different requirements of users on the quality of the data streams. The user can send out a request to the network which distributes the data stream to the upper level through the terminal equipment so as to pull the data streams with different code rates. Typically, the network directly transcodes the received data stream and transmits the transcoded data stream to the terminal device.
In fact, the above method may cause a plurality of networks to perform transcoding respectively, resulting in repeated transcoding operations, and uneven quality of the transcoded data stream.
Disclosure of Invention
The embodiment of the invention provides a transmission method, a transmission device, computer equipment and a storage medium for transcoding data streams, which can reduce the transcoding cost of the data streams.
In a first aspect, an embodiment of the present invention provides a method for transmitting a transcoded data stream, including:
The method comprises the steps that a dispatching center obtains a plurality of pushing networks corresponding to a target data stream, and a transcoding network is determined in each pushing network;
the scheduling center receives a transcoding data stream acquisition request corresponding to the target data stream and sent by a target push network, and extracts a target code rate in the transcoding data stream acquisition request;
And the dispatching center acquires the stream pulling address of the transcoding network and feeds back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
In a second aspect, an embodiment of the present invention provides a method for transmitting a transcoded data stream, including:
The push network provides a target data stream with a first code rate for at least one terminal device;
the push network constructs a transcoding data stream acquisition request and sends the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate according to a stream pulling request of the target data stream of the second code rate of target terminal equipment;
The transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network;
and the push network acquires the target data stream with the second code rate from the pull stream address fed back by the dispatching center and forwards the target data stream to the target terminal equipment.
In a third aspect, an embodiment of the present invention further provides a transmission apparatus for transcoding a data stream, configured in a scheduling center, including:
The transcoding network configuration module is used for acquiring a plurality of pushing networks corresponding to the target data stream and determining a transcoding network in each pushing network;
The transcoding request receiving module is used for receiving a transcoding data stream acquisition request corresponding to the target data stream sent by a target push network and extracting a target code rate in the transcoding data stream acquisition request;
and the stream pulling address feedback module is used for acquiring the stream pulling address of the transcoding network and feeding back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
In a fourth aspect, an embodiment of the present invention further provides a device for transmitting a transcoded data stream, configured in a push network, including:
The first code rate data stream providing module is used for providing a target data stream of a first code rate for at least one terminal device;
the second code rate data stream request module is used for constructing a transcoding data stream acquisition request and sending the transcoding data stream acquisition request to the dispatching center by taking the second code rate as a target code rate according to a stream pulling request of a target data stream of a second code rate of target terminal equipment; the transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network;
And the second code rate data stream acquisition module is used for acquiring the target data stream of the second code rate from the pull stream address fed back by the dispatching center and forwarding the target data stream to the target terminal equipment.
In a fifth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement a method for transmitting a transcoded data stream according to any one of the embodiments of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for transmitting a transcoded data stream according to any of the embodiments of the present invention.
According to the embodiment of the invention, the unified transcoding network is appointed in the plurality of pushing networks corresponding to the target data stream through the dispatching center, and when the pushing networks need to acquire the transcoding data stream, the pulling addresses of the transcoding networks are fed back to the pushing networks, so that the pushing networks acquire the data stream with the target code rate from the transcoding networks, the problem of high transcoding cost caused by repeated transcoding operations due to the fact that users in different areas request the transcoding data stream and the networks in different areas perform transcoding respectively in the prior art is solved, repeated transcoding of the plurality of pushing networks can be avoided, the transcoding times are greatly reduced, and the transcoding cost is reduced.
Drawings
Fig. 1 is a flowchart of a method for transmitting a transcoded data stream according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for transmitting a transcoded data stream according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of an application scenario to which an embodiment of the present invention is applied;
fig. 4 is a schematic structural diagram of a transmission device for transcoding a data stream according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a transmission device for transcoding a data stream according to a fifth embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a computer device in a sixth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic diagram of a flow chart of a method for transmitting a transcoded data stream according to a first embodiment of the present invention, where the scheduling center is configured to configure a unified transcoded network for the data stream when transcoding the data stream, and each push network may directly obtain the transcoded data stream from the transcoded network. As shown in fig. 1, the method in this embodiment specifically includes:
S110, the dispatching center acquires a plurality of pushing networks corresponding to the target data stream, and determines a transcoding network in each pushing network.
The dispatch center is in communication with the plurality of push networks for managing the push networks. In the embodiment of the present invention, the push network is a CDN. Wherein each push network may include a plurality of nodes, and the node distribution and function of each push network may refer to the distribution and function of the existing CDN nodes. The performing operation of the push network may be performed by any at least one node in the push network or at least one node designated in the push network, which is not particularly limited in the embodiment of the present invention. The dispatching center provides an HTTP interface, which can be used for push authentication, controlling the corresponding pull stream distribution points of different push networks, and the like, wherein the HTTP interface can be used for inquiring the push network address corresponding to the data stream, any node address in the more detailed push network, and the like.
A data stream refers to data transmitted in a stream format, and specifically, is a continuous collection of data.
The push network is used for receiving the data stream, pushing the data stream to other push networks and finally distributing the data stream to the terminal equipment.
The transcoding network is used for performing code rate conversion on the data stream, wherein the transcoding network can specify any at least one node in the transcoding network to perform code rate transcoding operation, and the specific implementation mode of the code rate conversion of the transcoding network can be set according to actual conditions, so that the embodiment of the invention is not particularly limited.
Determining a transcoding network from a plurality of push networks, specifically screening an optimal network from the push networks according to a preset scheduling policy as the transcoding network, for example, the push networks may be evaluated according to attribute parameters, where the attribute parameters include at least one of the following: packet loss rate, delay, distance from the data source, and transcoding quality, etc. In general, a push network with low packet loss rate, low delay and a short distance from a data source is used as a transcoding network. The packet loss rate is used for evaluating the quantity of the data packets which are not received by the data receiver in the process that the data transmitter transmits the data packets to the data receiver in unit time, the delay is used for evaluating the duration from the data transmitter to the data receiver, the distance between the data transmitter and the data source is used for evaluating the distance between the data source and the push network, and the transcoding quality is used for evaluating the quality (such as the degree of data loss and the like) of the data stream after the push network transcodes the data stream. In a CDN, a push network closest to a data source is generally configured to obtain source data, and distribute the source data downward to a push network closest to a terminal device, where the push network closest to the terminal device pushes the data distributed in the CDN to the terminal device, so that a distance between the push network and the data source is used to screen the push network. Specifically, the evaluation value may be determined by counting each node in the push network and calculating an average value or a weighted value. In addition, the scheduling policy may be other situations, and for this reason, may be set according to actual situations, which is not specifically limited in the embodiment of the present invention.
Generally, a unified at least one transcoding network can be selected from a plurality of corresponding push networks for a target data stream, so that other push networks can directly acquire the data stream transcoded by the transcoding network, and the steps and cost of self-transcoding are saved. The number of the transcoding networks is at least one and is less than the number of the pushing networks corresponding to the target data stream.
In addition, if the transcoding network is abnormal (such as disconnection), the dispatching center can reselect one pushing network from a plurality of pushing networks corresponding to the target data stream as the transcoding network, flexibly configure the unified transcoding network, and improve the stability and reliability of the data stream transmission network system.
S120, the dispatching center receives a transcoding data stream acquisition request corresponding to the target data stream, which is sent by a target push network, and extracts a target code rate in the transcoding data stream acquisition request.
The target push network is typically a push network of a non-transcoding network of the networks. The transcoded data stream obtaining request is used for requesting to obtain the target data stream with the target code rate, specifically, is used for pushing the network to request the dispatch center for the address of the target data stream capable of obtaining the target code rate, and in addition, the transcoded data stream obtaining request can be a back source request. The code rate may refer to the number of data bits transmitted per unit time at the time of data transmission. Specifically, the code rate in audio and video generally refers to how many bits are needed to represent each second of audio and video data after compression encoding, and in general, the more bits in a unit time, the closer the file obtained by compression processing is to the original file, that is, the higher the quality of sound quality or image quality.
The code rate of the data stream may be converted. Each push network can have the function of converting the data stream code rate. The transcoded data stream acquisition request includes identification information of the target data stream, the target code rate and the like.
S130, the dispatching center acquires the stream pulling address of the transcoding network and feeds the stream pulling address back to the target pushing network, so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
The pull stream address may refer to an internet protocol address (Internet Protocol, IP). The pull address of the transcoding network is used to access the transcoding network. The target push network may obtain a target data stream of a target code rate from a pull stream address of the transcoding network. More specifically, the pull stream address of the transcoding network is used to point to a pre-designated node in the transcoding network, and the node may directly provide the target data stream with the target code rate, or call any node in the transcoding network to obtain the target data stream with the target code rate, etc., which may be set according to the actual situation.
Optionally, the scheduling center obtains a pull stream address of the transcoding network and feeds back to the target push network, including: the dispatching center inquires the domain name of the transcoding network corresponding to the target data stream and calls a transmission protocol domain name interface to acquire the pulling address of the transcoding network; and the dispatching center returns the pull stream address of the transcoding network to the target push network in a redirection mode.
In general, different push networks are different CDNs, management manners of the different CDNs are different, for example, IP libraries are different or partially different, and IP addresses of nodes in the push networks may often change. Therefore, the domain name of the push network can be directly stored, and the IP address of the push network can be obtained according to the domain name.
The dispatching center stores the domain name of the push network and the corresponding relation between the target data stream and the push network, and can determine the target data stream data according to the transcoding data stream acquisition request, further determine the corresponding push network and determine the transcoding network and the domain name of the transcoding network from the push network. The method specifically may be to call a transport protocol domain name (HTTP DNS) interface to obtain a pull stream address of the transcoding network.
The dispatch center may return the pull stream address to the target push network in a redirection manner to enable the target push network to directly jump to access the pull stream address and pull the target data stream. Optionally, the redirection is a temporary jump (302) to the address of the feedback. Because the transcoding network can be updated according to network conditions or other conditions such as network quality, the selective temporary jump (302) can adapt to the condition that the transcoding network is not fixed, thereby improving the stability and flexibility of transcoding of the data stream system.
The dispatching center acquires the pulling address of the transcoding network according to the domain name of the transcoding network, so that the situation that the pulling address of the transcoding network is adjusted to not acquire an accurate pulling address can be avoided, the accuracy of the pulling address of the transcoding network is improved, meanwhile, the pulling address can be accurately fed back to the pushing network in a redirecting mode, and the pushing network can acquire the transcoding data stream from the transcoding network is ensured.
Optionally, after determining the transcoding network in each push network, before receiving the transcoded data stream acquisition request corresponding to the target data stream sent by the target push network, the method further includes: the scheduling center constructs a corresponding relation between code rate and transcoding identification information according to the relation between a target push network and the transcoding network, and sends the corresponding relation to target terminal equipment matched with the target push network, so that the target terminal equipment determines corresponding target transcoding identification information according to a target code rate input by a user aiming at a code rate selection item, and generates a pull stream request; the target push network is used for providing the target data stream for the target terminal equipment, the transcoding identification information comprises non-self-transcoding information or self-transcoding information, and a stream pulling request generated according to the self-transcoding information is used for triggering the target push network to send the transcoding data stream acquisition request to the dispatching center.
The relation between the target push network and the transcoding network is used for determining whether the target push network is the same as any transcoding network, including that the target push network is the same as any transcoding network or that the target push network is different from any transcoding network. The transcoding identification information is used for determining whether the data stream is transcoded by any node in the current push network, and specifically may include non-self-transcoding information or self-transcoding information, where the self-transcoding information indicates that the data stream is transcoded by the current push network; the non-transcoding information indicates that the data stream is not transcoded by the current push network, i.e. the push network needs to obtain the transcoded data stream from the transcoding network. The target push network is used for providing the target data stream to the target terminal device, and the target terminal device is used for pulling the target data stream from the target push network. The code rate selection item is used for displaying the code rate information to the user on the terminal equipment and determining code rate information selected by the user according to a trigger instruction input by the user, in addition, one code rate selection item corresponds to at least one pull stream address, one pull stream address points to one push network, namely, the code rate selection item can also be used for determining the pull stream address selected by the user.
For terminal equipment which directly pulls a stream from a transcoding network to obtain a data stream, the converted data stream with any code rate can be directly obtained from the transcoding network. However, for terminal equipment that directly pulls a data stream from a push network of a non-transcoding network, the data stream with any code rate is obtained from the push network as well, wherein the push network can directly provide the data stream with a certain code rate, and the push network cannot directly obtain the data stream with other code rates by self code rate conversion and can only pull the data stream with any code rate through the transcoding network. Therefore, the terminal equipment needs to distinguish whether the code rate of the pulled data stream can be obtained by directly transcoding by the push network. Correspondingly, the dispatching center configures transcoding identification information for distinguishing whether transcoding operation of the data stream is executed by the push network directly providing the data stream or not.
The scheduling center constructs the corresponding relation between the code rate and the transcoding identification information and transmits the corresponding relation in the terminal equipment. When a user selects a certain code rate, the terminal equipment determines transcoding identification information corresponding to the code rate, generates a streaming request based on the code rate and the corresponding transcoding identification information, and directly sends the streaming request to a matched push network. The pull request is used to pull the target data stream from the pointed network. And the pushing network determines whether a target data stream with a target code rate needs to be requested to the transcoding network according to the target transcoding identification information and the target code rate in the streaming request. In fact, if the target code rate is the same as any code rate of the target data stream which is pulled in advance, the target data stream which is pulled in advance can be directly provided to the terminal device; if the target code rate is different from all code rates of the target data stream which is pulled in advance and the target transcoding identification information is autorotation information, the push network can transcode according to the target data stream which is pulled in advance to obtain the target data stream with the target code rate and provide the target data stream with the target code rate for the terminal equipment; if the target code rate is different from all code rates of the target data stream which is pulled in advance and the target transcoding identification information is non-self-transcoding information, the pushing network generates a transcoding data stream acquisition request according to the non-self-transcoding information, the target code rate and the target data stream and sends the transcoding data stream acquisition request to the dispatching center, the dispatching center feeds back a pulling stream address of the transcoding network corresponding to the target data stream, and then the target data stream of the target code rate which is transcoded by the transcoding network is pulled from the pulling stream address and provided for the terminal equipment.
Specifically, the push network matched with each terminal device can be determined according to each terminal device acquiring the target data stream, and the terminal devices matched with the transcoding network and the terminal devices matched with the non-transcoding network are distinguished. And constructing a corresponding relation between all code rates and the self-transcoding information aiming at terminal equipment matched with the transcoding network. Aiming at the terminal equipment matched with the non-transcoding network, the corresponding relation of all code rates corresponding to the non-transcoding information and the self-transcoding information is constructed, in addition, other corresponding relations can be constructed, the setting can be carried out according to the actual situation, and the embodiment of the invention is not particularly limited.
The user aims at the target code rate input by the code rate selection item, a plurality of different code rate selection items are displayed on the terminal equipment, the different code rate selection items correspond to different code rates, the user triggers (such as clicking, touching or setting gestures) the code rate selection item, and the terminal equipment determines that the code rate corresponding to the code rate selection item is the target code rate input by the user. And determining target transcoding identification information corresponding to the target code rate according to the corresponding relation between the code rate and the transcoding identification information, which is obtained from the scheduling center in advance, and generating a streaming request. The scheduling center can update the corresponding relation between the code rate and the transcoding identification information in real time.
Optionally, the data stream includes a live data stream pushed by the anchor end, and the terminal device includes a viewer end. Accordingly, the code rate selection item may refer to a line selection item in the live broadcast room, or a resolution of the live broadcast room, etc.
By constructing code rate and transcoding identification information and issuing the code rate and transcoding identification information to terminal equipment, the terminal equipment triggers to generate a pulling stream request according to a user triggering instruction, and further triggers a push network to send a transcoding data stream acquisition request, whether code rate conversion operation of a target data stream is completed by a current push network can be flexibly adjusted, sources of the transcoded data stream can be timely adjusted, fault tolerance and stability of a transmission system of the transcoded data stream are improved, cost of transcoding operation is reduced, and acquisition instantaneity of the transcoded data stream is guaranteed.
According to the embodiment of the invention, the unified transcoding network is appointed in the plurality of pushing networks corresponding to the target data stream through the dispatching center, and when the pushing networks need to acquire the transcoding data stream, the pulling addresses of the transcoding networks are fed back to the pushing networks, so that the pushing networks acquire the data stream with the target code rate from the transcoding networks, the problem that in the prior art, the transcoding cost is high due to the fact that the transcoding operation is repeatedly performed by users in different areas is solved, the problem that the transcoding cost is high due to the fact that the transcoding operation is repeatedly performed by the networks in different areas is solved, the repeated transcoding of the plurality of pushing networks is avoided, the transcoding times are greatly reduced, and the transcoding cost is reduced.
Example two
Fig. 2 is a flowchart of a method for transmitting a transcoded data stream according to a second embodiment of the present invention, where the push network may directly obtain a transcoded data stream from a preconfigured unified transcoding network when transcoding the data stream, and the method may be performed by a device for transmitting a transcoded data stream according to the second embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, and may be generally integrated into a computer device, and may specifically be a server cluster, for example, a content distribution network. As shown in fig. 2, the method in this embodiment specifically includes:
s210, the push network provides a target data stream with a first code rate for at least one terminal device.
The push network receives a target data stream of a first code rate distributed by a previous level network and provides the target data stream to a plurality of terminal devices. Typically, the push network provides the target data stream to the terminal device upon receiving a pull request from the terminal device.
Reference may be made to the description of any of the above embodiments for what has not been described in detail in this embodiment.
S220, the push network constructs a transcoding data stream acquisition request and sends the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate according to a stream pulling request of the target data stream of the second code rate of target terminal equipment; the transcoding data stream acquisition request is used for indicating a scheduling center to request a predetermined transcoding network for a pulling address of the target data stream with the target code rate.
The first code rate and the second code rate may be the same or may be different. The push network may cache the target data stream distributed by the previous level network. The push network provides a target data stream of a first code rate to at least one terminal device, indicating that the push network has cached the target data stream of the first code rate.
If the first code rate is the same as the second code rate, when receiving a stream pulling request of a target data stream of the second code rate of the target terminal device, the push network discovers that the target data stream of the first code rate of the local cache is outdated or does not exist, and at the moment, the constructed transcoded data stream acquisition request is actually a source returning request of the target data stream of the first code rate.
If the first code rate and the second code rate are different, the first code rate may refer to a code rate of a target data stream that is buffered or has been received by the push network, and the second code rate may refer to a code rate of a target data stream that is not buffered and has not been received by the push network.
And S230, the push network acquires the target data stream with the second code rate from the pull stream address fed back by the dispatching center and forwards the target data stream to the target terminal equipment.
Optionally, the pushing network constructs a transcoded data stream acquisition request according to a pulling request of a target data stream of a second code rate of the target terminal device, and sends the transcoded data stream acquisition request to a dispatching center by taking the second code rate as the target code rate, and the method includes: the push network receives a stream pulling request sent by target terminal equipment, and extracts second code rate and transcoding identification information from the stream pulling request; if the transcoding identification information is determined to be non-self-transcoding information, the push network constructs a transcoding data stream acquisition request by taking the second code rate as a target code rate and sends the transcoding data stream acquisition request to a dispatching center.
Specifically, when the push network determines that the target data stream with the second code rate does not exist locally, whether the transcoding identification information is non-self-transcoding information or not can be judged; if the transcoding identification information is the autorotation identification information, the push network can directly transcode the target data stream with the first code rate to form a target data stream with the second code rate in a self-running way; if the transcoding identification information is non-self-transcoding identification information, the push network constructs a transcoding data stream acquisition request by taking the second code rate as a target code rate, and sends the transcoding data stream acquisition request to a dispatching center so as to acquire a stream pulling address of the transcoding network which is fed back, thereby acquiring the target data stream of the second code rate obtained by transcoding of the transcoding network from the stream pulling address.
By configuring the transcoding identification information to distinguish whether the transcoding operation of the data stream is directly executed by the push network, the source of the transcoded data stream can be adjusted in time, and the cost of the transcoding operation is reduced.
Optionally, the method for transmitting the transcoded data stream further includes: if the stream pulling from the transcoding network fails and the retry failure times exceed a set time threshold, the pushing network converts the target data stream with the first code rate into the target data stream with the second code rate and forwards the target data stream to the target terminal equipment.
An anomaly in communication between the push network and the transcoding network may occur, for example, a dropped transcoding network, etc. If the push network cannot acquire the transmitted transcoded target data stream from the transcoding network for multiple times, in order to ensure that the target data stream with the second code rate is quickly transmitted to the terminal equipment, the push network can select to perform transcoding by itself and transmit the transcoded target data stream with the second code rate to the terminal equipment, so that the terminal equipment can be ensured to quickly acquire the target data stream with the second code rate.
The number of times threshold is used to determine whether the push network is unable to communicate with the transcoding network. The number of times threshold may be 3 times, and may be another number of times, for example, 5 times, which may be set according to practical situations, which is not limited in the embodiment of the present invention.
When the result of the push network obtaining the target data stream with the second code rate from the transcoding network is that the push network fails for a plurality of times, the push network can directly and automatically execute the transcoding operation, and timely generate the target data stream with the second code rate and send the target data stream to the target terminal equipment, so that the target terminal equipment can obtain the target data stream with the second code rate.
Optionally, the method for transmitting the transcoded data stream includes: the data stream comprises a live data stream pushed by a main broadcasting end, and the terminal equipment comprises a spectator end.
The method comprises the steps that a main broadcasting end and a spectator end are both terminal devices, the main broadcasting end is used for collecting audio and video data of a main broadcasting, forming a live broadcast data stream and pushing the live broadcast data stream into a CDN, and the spectator end is used for pulling the live broadcast data stream of the main broadcasting from a pushing network in the CDN, displaying and playing the live broadcast data stream.
By configuring a unified transcoding network in the live broadcast scene, the transcoding cost in the live broadcast data stream transmission process can be greatly reduced, and the transcoding resources of the CDN are saved.
When receiving a pulling request of a target data stream with a second code rate different from a first code rate received in advance, the pushing network constructs a transcoding data stream request and sends the transcoding data stream request to the dispatching center so as to acquire a pulling address of a unified transcoding network configured by the dispatching center for the target data stream, so that the pushing network can acquire the target data stream with the second code rate from the pulling address of the transcoding network, the transcoding operation of the target data stream is set to be executed uniformly by the transcoding network, repeated transcoding of a plurality of pushing networks can be avoided, the transcoding times are greatly reduced, and the transcoding cost is reduced.
Example III
Fig. 3 is a schematic diagram of an application scenario in a third embodiment of the present invention. Specifically, as shown in fig. 3, the transmission system of the live data stream in the embodiment of the present invention includes: a main cast end 310, a first push network 320, a dispatch center 330, a second push network 340, a third push network 350, and a viewer end 360. Wherein the first push network 320 belongs to a first CDN, the second push network 340 belongs to a second CDN, and the third push network 350 belongs to a third CDN, and the first CDN, the second CDN, and the third CDN are different. Furthermore, a CDN may also include multiple push networks, not all of which are shown in fig. 3, but only one CDN is represented by a network.
The transmission process of the live data stream specifically comprises the following steps:
The anchor 310 plays to begin collecting live data and forms a live data stream to push to the first push network 320. The first push network 320 requests the dispatch center 330 for a push list, while the dispatch center 330 determines a transcoding network for the live data stream according to a dispatch policy, e.g., using the first push network 320 as the transcoding network. Wherein the push list is used by the first push network 320 to determine push objects.
The first push network 320 pushes the live data stream to each push network in the push list. Wherein the push list comprises a second push network 340 and a third push network 350.
After the second push network 340 and the third push network 350 receive the live data stream pushed by the first push network 320, they send a successful push message to the dispatch center 330. The dispatch center 330 determines the corresponding pull distribution point of the viewer end 360 according to the successful push message, that is, the second push network 340 and the third push network 350 that directly provide the live data stream to the viewer end 360. The dispatch center 330 may issue a pull stream address to the live room and the viewer end 360 entering the live room may select the rate of the live data stream by selecting the viewing route (i.e., rate selection item) and push network of the pull stream. Specifically, the viewer end 360 obtains the live data stream with the code rate matched with the viewing route from the pointed push network according to the pulling address matched with the viewing route. Illustratively, the second push network 340 corresponds to viewing line 1 and the third push network 350 corresponds to viewing line 2.
The viewer end 360 plays the live data stream at the first rate from the viewing line 1 in the live room, triggering the second push network 340 to request the pull address of the live data stream at the first rate back to the dispatch center 330. In addition, the recording request may trigger the second push network 340 to request the pull stream address of the live data stream with the first code rate from the dispatch center 330. The source-back refers to that the current push network cannot locally acquire the live data stream with the first code rate, and only can acquire the live data stream with the first code rate from the source station, and the quality of the source-back directly determines the quality of the live data stream that can be acquired by the downstream viewer terminal 360 of the current push network.
The dispatch center 330 predetermines the transcoding network of the live data stream to be the first push network 320. The second push network 340 and the third push network 350 acquire the pull stream address of the first push network 320 by calling the HTTP interface provided by the dispatch center 330.
Dispatch center 330 obtains the pull address of first push network 320 from the domain name of first push network 320 by invoking HTTPDNS interface and returns in 302. Illustratively, the pull stream address is used to obtain a live data stream of a first code rate and encoding format (h 264/h 265). The pull stream address is obtained by calling HTTPDNS interfaces, which is mainly used for avoiding the problem that the IP libraries of the CNDs are inconsistent.
The second push network 340 acquires the live data stream with the first code rate, and sends the live data stream to the audience terminal 360 through the content distribution network to which the second push network belongs.
When a problem occurs in the source-back first push network 320 of each CDN or the source-back connection is disconnected, each CDN needs to automatically attempt to resume the pull stream. If multiple retries still fail, transcoding is performed by itself at the CDN (while also supporting manual shutdown of the source-return function), and after shutdown, transcoding is performed by itself at each CDN, so as to solve a single point problem that may exist at the source-return station.
Experiments show that if 4 viewable lines exist in the live broadcasting room, 75% of transcoding can be saved theoretically, and about 30% to 50% of transcoding resources of each CDN are saved in practice on average by considering necessary guarantees such as back source pull flow abnormality and stability-based optimization.
The live data stream is generated through the anchor end and pushed to the first pushing network, the scheduling center configures the first pushing network as a transcoding network, and when receiving a source returning request sent by other pushing networks, the pulling address of the transcoding network is fed back, so that the pushing network directly obtains the data stream with the target code rate, repeated transcoding of a plurality of pushing networks is avoided, transcoding times are greatly reduced, and transcoding cost is reduced.
Example IV
Fig. 4 is a schematic diagram of a transmission device for transcoding a data stream according to a fourth embodiment of the present invention. The fourth embodiment is a corresponding apparatus for implementing the method for transmitting a transcoded data stream according to the first embodiment of the present invention, where the apparatus may be implemented in software and/or hardware, and may be generally integrated into a computer device, and specifically configured in a scheduling center.
Accordingly, the apparatus of this embodiment may include:
a transcoding network configuration module 410, configured to obtain a plurality of push networks corresponding to a target data stream, and determine a transcoding network in each of the push networks;
a transcoding request receiving module 420, configured to receive a transcoding data stream acquisition request corresponding to the target data stream sent by a target push network, and extract a target code rate in the transcoding data stream acquisition request;
and the pulling address feedback module 430 is configured to obtain a pulling address of the transcoding network, and feed back the pulling address to the target push network, so that the target push network pulls the target data stream with the target code rate from the pulling address of the transcoding network.
According to the embodiment of the invention, the unified transcoding network is appointed in the plurality of pushing networks corresponding to the target data stream through the dispatching center, and when the pushing networks need to acquire the transcoding data stream, the pulling addresses of the transcoding networks are fed back to the pushing networks, so that the pushing networks acquire the data stream with the target code rate from the transcoding networks, the problem of high transcoding cost caused by repeated transcoding operations due to the fact that users in different areas request the transcoding data stream and the networks in different areas perform transcoding respectively in the prior art is solved, repeated transcoding of the plurality of pushing networks can be avoided, the transcoding times are greatly reduced, and the transcoding cost is reduced.
Further, the transmission device of the transcoded data stream further includes: the code rate and transcoding identification corresponding relation issuing module is used for constructing a corresponding relation between a code rate and transcoding identification information according to the relation between a target push network and the transcoding network before receiving a transcoding data stream acquisition request corresponding to the target data stream sent by a target push network after determining the transcoding network in each push network, and sending the corresponding relation to target terminal equipment matched with the target push network, so that the target terminal equipment determines corresponding target transcoding identification information according to a target code rate input by a user aiming at a code rate selection item and generates a pulling stream request; the target push network is configured to provide the target data stream to the target terminal device, the transcoding identification information includes non-self-transcoding information or self-transcoding information, and a pull stream request generated according to the self-transcoding information is configured to trigger the target push network to send the transcoded data stream acquisition request to the scheduling center.
Further, the pull stream address feedback module 430 includes: the pulling stream address inquiring unit is used for inquiring the domain name of the transcoding network corresponding to the target data stream and calling a transmission protocol domain name interface to acquire the pulling stream address of the transcoding network; and returning the pull stream address of the transcoding network to the target push network in a redirection mode.
The device can execute the method provided by the first embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 is a schematic diagram of a transmission device for transcoding a data stream according to a fifth embodiment of the present invention. The fifth embodiment is a corresponding device for implementing the method for transmitting a transcoded data stream according to the second embodiment of the present invention, where the device may be implemented in software and/or hardware, and may be generally integrated into a computer device, and specifically configured in a push network.
Accordingly, the apparatus of this embodiment may include:
A first code rate data stream providing module 510, configured to provide a target data stream of a first code rate to at least one terminal device;
A second code rate data stream request module 520, configured to construct a transcoded data stream acquisition request and send the transcoded data stream acquisition request to a scheduling center according to a pulling request of a target data stream of a second code rate of a target terminal device; the transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network;
And the second code rate data stream obtaining module 530 is configured to obtain the target data stream of the second code rate from the pull stream address fed back by the scheduling center, and forward the target data stream to the target terminal device.
When receiving a pulling request of a target data stream with a second code rate different from a first code rate received in advance, the pushing network constructs a transcoding data stream request and sends the transcoding data stream request to the dispatching center so as to acquire a pulling address of a unified transcoding network configured by the dispatching center for the target data stream, so that the pushing network can acquire the target data stream with the second code rate from the pulling address of the transcoding network, the transcoding operation of the target data stream is set to be executed uniformly by the transcoding network, repeated transcoding of a plurality of pushing networks can be avoided, the transcoding times are greatly reduced, and the transcoding cost is reduced.
Further, the second rate data stream request module 520 includes: the transcoding identification information extraction unit is used for receiving a streaming request sent by target terminal equipment and extracting second code rate and transcoding identification information from the streaming request; if the transcoding identification information is determined to be non-self-transcoding information, constructing a transcoding data stream acquisition request and sending the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate.
Further, the transmission device of the transcoded data stream further includes: and the pull loss module is used for converting the target data stream with the first code rate into the target data stream with the second code rate and forwarding the target data stream to the target terminal equipment if the pull from the transcoding network fails and the retry failure frequency exceeds a set frequency threshold.
Further, the data stream comprises a live data stream pushed by a main broadcasting end, and the terminal equipment comprises a spectator end.
The device can execute the method provided by the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 6, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16. Computer device 12 may be a device that is attached to a bus.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (PERIPHERAL ComponentInterconnect, PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a compact disk Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may be via an Input/Output (I/O) interface 22. The computer device 12 may also communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN)) via the network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that, although not shown in FIG. 6, other hardware and/or software modules may be used in connection with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive array (Redundant Arrays of Inexpensive Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing, such as the methods provided by any of the embodiments of the present invention, by running programs stored in the system memory 28.
Example seven
A seventh embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for transmitting a transcoded data stream as provided in all embodiments of the present application:
That is, the program, when executed by the processor, implements: the method comprises the steps that a dispatching center obtains a plurality of pushing networks corresponding to a target data stream, and a transcoding network is determined in each pushing network; the scheduling center receives a transcoding data stream acquisition request corresponding to the target data stream and sent by a target push network, and extracts a target code rate in the transcoding data stream acquisition request; and the dispatching center acquires the stream pulling address of the transcoding network and feeds back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
Or the program when executed by a processor: the push network provides a target data stream with a first code rate for at least one terminal device; the push network constructs a transcoding data stream acquisition request and sends the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate according to a stream pulling request of the target data stream of the second code rate of target terminal equipment; the transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network; and the push network acquires the target data stream with the second code rate from the pull stream address fed back by the dispatching center and forwards the target data stream to the target terminal equipment.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio frequency (RadioFrequency, RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user computer through any kind of network, including a LAN or WAN, or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (12)
1. A method of transmitting a transcoded data stream, comprising:
the method comprises the steps that a dispatching center obtains a plurality of pushing networks corresponding to a target data stream, and a transcoding network is determined in each pushing network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
the scheduling center receives a transcoding data stream acquisition request corresponding to the target data stream and sent by a target push network, and extracts a target code rate in the transcoding data stream acquisition request;
And the dispatching center acquires the stream pulling address of the transcoding network and feeds back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
2. The method of claim 1, further comprising, after determining the transcoding network in each of the push networks, before receiving a transcoded data stream acquisition request corresponding to the target data stream sent by a target push network:
The scheduling center constructs a corresponding relation between code rate and transcoding identification information according to the relation between a target push network and the transcoding network, and sends the corresponding relation to target terminal equipment matched with the target push network, so that the target terminal equipment determines corresponding target transcoding identification information according to a target code rate input by a user aiming at a code rate selection item, and generates a pull stream request;
The target push network is used for providing the target data stream for the target terminal equipment, the transcoding identification information comprises non-self-transcoding information or self-transcoding information, and a stream pulling request generated according to the non-self-transcoding information is used for triggering the target push network to send the transcoding data stream acquisition request to the dispatching center; the self-transcoding information indicates that the data stream is transcoded by the current push network; the non-self transcoding information indicates that the data stream is not transcoded by the current push network.
3. The method of claim 1, wherein the dispatch center obtains a pull stream address of the transcoding network and feeds back to the target push network, comprising:
The dispatching center inquires the domain name of the transcoding network corresponding to the target data stream and calls a transmission protocol domain name interface to acquire the pulling address of the transcoding network;
And the dispatching center returns the pull stream address of the transcoding network to the target push network in a redirection mode.
4. A method of transmitting a transcoded data stream, comprising:
The push network provides a target data stream with a first code rate for at least one terminal device;
the push network constructs a transcoding data stream acquisition request and sends the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate according to a stream pulling request of the target data stream of the second code rate of target terminal equipment;
The transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
The pushing network acquires the target data stream with the second code rate from the pulling stream address fed back by the dispatching center and forwards the target data stream to the target terminal equipment;
the push network constructs a transcoding data stream acquisition request to be sent to a dispatching center according to a stream pulling request of a target data stream of a second code rate of target terminal equipment by taking the second code rate as the target code rate, and the method comprises the following steps:
the push network receives a stream pulling request sent by target terminal equipment, and extracts second code rate and transcoding identification information from the stream pulling request;
if the transcoding identification information is determined to be non-self-transcoding information, the push network constructs a transcoding data stream acquisition request by taking the second code rate as a target code rate and sends the transcoding data stream acquisition request to a dispatching center;
the non-self transcoding information indicates that the data stream is not transcoded by the current push network.
5. The method as recited in claim 4, further comprising:
If the stream pulling from the transcoding network fails and the retry failure times exceed a set time threshold, the pushing network converts the target data stream with the first code rate into the target data stream with the second code rate and forwards the target data stream to the target terminal equipment.
6. The method of claim 4, wherein the data stream comprises a live data stream pushed by a main cast end and the terminal device comprises a viewer end.
7. A method of transmitting a transcoded data stream, comprising:
The push network provides a target data stream with a first code rate for at least one terminal device;
the push network constructs a transcoding data stream acquisition request and sends the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate according to a stream pulling request of the target data stream of the second code rate of target terminal equipment;
The transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
The pushing network acquires the target data stream with the second code rate from the pulling stream address fed back by the dispatching center and forwards the target data stream to the target terminal equipment;
If the stream pulling from the transcoding network fails and the retry failure times exceed a set time threshold, the pushing network converts the target data stream with the first code rate into the target data stream with the second code rate and forwards the target data stream to the target terminal equipment.
8. A transmission device for transcoding a data stream, the transmission device being configured in a dispatch center and comprising:
the transcoding network configuration module is used for acquiring a plurality of pushing networks corresponding to the target data stream and determining a transcoding network in each pushing network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
The transcoding request receiving module is used for receiving a transcoding data stream acquisition request corresponding to the target data stream sent by a target push network and extracting a target code rate in the transcoding data stream acquisition request;
and the stream pulling address feedback module is used for acquiring the stream pulling address of the transcoding network and feeding back the stream pulling address to the target pushing network so that the target pushing network pulls the target data stream with the target code rate from the stream pulling address of the transcoding network.
9. A transmission device for transcoding a data stream, configured in a push network, comprising:
The first code rate data stream providing module is used for providing a target data stream of a first code rate for at least one terminal device;
The second code rate data stream request module is used for constructing a transcoding data stream acquisition request and sending the transcoding data stream acquisition request to the dispatching center by taking the second code rate as a target code rate according to a stream pulling request of a target data stream of a second code rate of target terminal equipment; the transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
The second code rate data stream acquisition module is used for acquiring the target data stream of the second code rate from the pulling stream address fed back by the dispatching center and forwarding the target data stream to the target terminal equipment;
The second code rate data stream request module comprises: the transcoding identification information extraction unit is used for receiving a streaming request sent by target terminal equipment and extracting second code rate and transcoding identification information from the streaming request; if the transcoding identification information is determined to be non-self-transcoding information, constructing a transcoding data stream acquisition request and sending the transcoding data stream acquisition request to a dispatching center by taking the second code rate as a target code rate;
the non-self transcoding information indicates that the data stream is not transcoded by the current push network.
10. A transmission device for transcoding a data stream, configured in a push network, comprising:
The first code rate data stream providing module is used for providing a target data stream of a first code rate for at least one terminal device;
The second code rate data stream request module is used for constructing a transcoding data stream acquisition request and sending the transcoding data stream acquisition request to the dispatching center by taking the second code rate as a target code rate according to a stream pulling request of a target data stream of a second code rate of target terminal equipment; the transcoding data stream acquisition request is used for indicating a scheduling center to request a streaming address of a target data stream with the target code rate from a predetermined transcoding network; the transcoding network is used for performing code rate conversion on the data stream; the number of the transcoding networks is at least one and is less than the number of push networks corresponding to the target data stream;
The second code rate data stream acquisition module is used for acquiring the target data stream of the second code rate from the pulling stream address fed back by the dispatching center and forwarding the target data stream to the target terminal equipment;
The transmission device of the transcoded data stream further comprises: and the pull loss module is used for converting the target data stream with the first code rate into the target data stream with the second code rate and forwarding the target data stream to the target terminal equipment if the pull from the transcoding network fails and the retry failure frequency exceeds a set frequency threshold.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a method of transmission of a transcoded data stream according to any one of claims 1-7 when executing the program.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of transmission of a transcoded data stream according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010136399.1A CN113347138B (en) | 2020-03-02 | 2020-03-02 | Transmission method, device, computer equipment and storage medium for transcoding data stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010136399.1A CN113347138B (en) | 2020-03-02 | 2020-03-02 | Transmission method, device, computer equipment and storage medium for transcoding data stream |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113347138A CN113347138A (en) | 2021-09-03 |
CN113347138B true CN113347138B (en) | 2024-04-26 |
Family
ID=77467303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010136399.1A Active CN113347138B (en) | 2020-03-02 | 2020-03-02 | Transmission method, device, computer equipment and storage medium for transcoding data stream |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113347138B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116132717A (en) * | 2021-11-12 | 2023-05-16 | 中兴通讯股份有限公司 | Inward code stream code rate acquisition method, stream receiving processing method, electronic equipment and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581228A (en) * | 2015-01-06 | 2015-04-29 | 南京爱布谷网络科技有限公司 | Bandwidth self-adaptation streaming media system serving various terminals |
CN108259979A (en) * | 2018-04-13 | 2018-07-06 | 中山大学 | A kind of cloud live streaming based on multiple data centers uploads optimization of rate method |
CN108712343A (en) * | 2018-05-14 | 2018-10-26 | 网宿科技股份有限公司 | Distribution method, system, fringe node and the central dispatching system of streaming media resource |
CN109618187A (en) * | 2018-11-15 | 2019-04-12 | 网宿科技股份有限公司 | A kind of acquisition methods and device of video data |
CN109963199A (en) * | 2019-04-23 | 2019-07-02 | 中国联合网络通信集团有限公司 | Content distributing network and its distribution method |
CN109963169A (en) * | 2019-04-04 | 2019-07-02 | 网宿科技股份有限公司 | A kind of code-transferring method, server and computer readable storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9548874B2 (en) * | 2012-12-07 | 2017-01-17 | Verizon Patent And Licensing Inc. | Selecting a content delivery network |
US10645140B2 (en) * | 2018-04-09 | 2020-05-05 | Wangsu Science & Technology Co., Ltd. | Method for processing transcoding task, system and task management server |
-
2020
- 2020-03-02 CN CN202010136399.1A patent/CN113347138B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581228A (en) * | 2015-01-06 | 2015-04-29 | 南京爱布谷网络科技有限公司 | Bandwidth self-adaptation streaming media system serving various terminals |
CN108259979A (en) * | 2018-04-13 | 2018-07-06 | 中山大学 | A kind of cloud live streaming based on multiple data centers uploads optimization of rate method |
CN108712343A (en) * | 2018-05-14 | 2018-10-26 | 网宿科技股份有限公司 | Distribution method, system, fringe node and the central dispatching system of streaming media resource |
CN109618187A (en) * | 2018-11-15 | 2019-04-12 | 网宿科技股份有限公司 | A kind of acquisition methods and device of video data |
CN109963169A (en) * | 2019-04-04 | 2019-07-02 | 网宿科技股份有限公司 | A kind of code-transferring method, server and computer readable storage medium |
CN109963199A (en) * | 2019-04-23 | 2019-07-02 | 中国联合网络通信集团有限公司 | Content distributing network and its distribution method |
Also Published As
Publication number | Publication date |
---|---|
CN113347138A (en) | 2021-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240275859A1 (en) | Delivering Notification Information | |
US10764623B2 (en) | Method and system for media adaption | |
US10063612B2 (en) | Request-based encoding for streaming content portions | |
US10164860B2 (en) | Modified content delivery based on network conditions | |
US9015335B1 (en) | Server side stream switching | |
US11356493B2 (en) | Systems and methods for cloud storage direct streaming | |
KR20200092249A (en) | Method, apparatus and system for slicing live streaming | |
US9294791B2 (en) | Method and system for utilizing switched digital video (SDV) for delivering dynamically encoded video content | |
CN107734350B (en) | Live broadcasting system and live broadcasting method | |
EP3497909B1 (en) | Improved adaptive bit rate streaming of live content with manifest update push notification or long poll | |
US8601115B2 (en) | Providing state information and remote command execution in a managed media device | |
US20170332115A1 (en) | Video source access method and device | |
CN114040232B (en) | Screen projection system, screen projection method, electronic equipment and storage medium | |
EP3497831B1 (en) | Improved adaptive bit rate streaming of live content | |
KR20110112199A (en) | Method and apparatus for receiving non-real time content included in real time broadcasting signal | |
CN113347138B (en) | Transmission method, device, computer equipment and storage medium for transcoding data stream | |
EP3509310A1 (en) | Delivery device, delivery method, receiver, receiving method, program, and content delivery system | |
CN112752111B (en) | Live stream processing method and device, computer readable storage medium and electronic equipment | |
US11777871B2 (en) | Delivery of multimedia components according to user activity | |
CN108540820B (en) | Stream data management method, device and computer readable storage medium | |
CN101621545A (en) | Device and method for pulling down media resource towards terminal device | |
CN114077409A (en) | Screen projection method and device, electronic equipment and computer readable medium | |
CN113347137B (en) | Patch method and device for data stream slice, computer equipment and storage medium | |
US11979447B2 (en) | Method and system for monitoring streaming | |
US20240112564A1 (en) | Delivering and monitoring emergency alert system (eas) media files via router computing devices using redirection responses |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |