Video transmission method and apparatus, and device and storage medium

Through multiple network channel offloading and redundant coding technology, the problem of delay and loss in video transmission during network fluctuations is solved, efficient and low-latency video transmission is achieved, and the success rate and efficiency of video transmission are ensured.

WO2024217205A1PCT designated stage expired Publication Date: 2024-10-24DOUYIN VISION CO LTD

Patent Information

Application Number
PCT/CN2024/082304
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-18
Filing Date
2024-03-18
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing video transmission methods can easily cause data packet delays or loss when the network fluctuates, resulting in video transmission taking a long time, and transmission failure when the network quality is poor, and the success rate of video transmission cannot be effectively guaranteed.

Method used

By acquiring at least two network channels, performing off-stream processing and video encoding on the video stream, and performing cross-channel allocation and redundant encoding, multiple network channels are used to transmit video data simultaneously to ensure recovery through other channels when the quality of one network channel is poor. data flow to improve transmission success rate.

Benefits of technology

Without increasing the cost of network bandwidth, it significantly improves the success rate and efficiency of video transmission, avoids retransmission operations, and ensures low-latency and high-reliability video transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082304_24102024_PF_FP_ABST
    Figure CN2024082304_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a video transmission method and apparatus, and a device and a storage medium. The method comprises: acquiring a first video stream and at least two target network channels; performing stream splitting processing on the first video stream, and determining a second video stream corresponding to each target network channel; performing video coding on the second video stream corresponding to each target network channel, and determining a coded third video stream corresponding to each target network channel; performing cross-channel distribution and redundant coding on each third video stream, and determining a target redundant data stream corresponding to each target network channel; and transmitting the corresponding third video stream and the corresponding target redundant data stream by means of each target network channel.
Need to check novelty before this filing date? Find Prior Art

Description

Video transmission method, device, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese invention patent application with application number 202310416371.7, entitled “A video transmission method, device, equipment and storage medium” and filing date April 18, 2023, and the entire application is incorporated herein by reference. Technical Field

[0003] The embodiments of the present disclosure relate to Internet technologies, and in particular to a video transmission method, apparatus, device, and storage medium. Background Art

[0004] With the rapid development of internet technology, video transmission is subject to network fluctuations, such as packet transmission delays or loss. Currently, the typical approach is to retransmit lost packets after a packet loss occurs. However, this approach results in longer video transmission times and may even result in transmission failures when network quality is poor, making it difficult to guarantee successful video transmission.

[0005] Summary of the Invention

[0006] The present disclosure provides a video transmission method, apparatus, device and storage medium, which utilize at least two network channels to transmit video and effectively improve the success rate of video transmission without increasing network bandwidth costs.

[0007] In a first aspect, an embodiment of the present disclosure provides a video transmission method, including:

[0008] Obtaining a first video stream and at least two target network channels;

[0009] Performing split processing on the first video stream to determine a second video stream corresponding to each target network channel;

[0010] Performing video encoding on the second video stream corresponding to each target network channel, and determining a third video stream corresponding to each encoded target network channel;

[0011] Performing cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel;

[0012] The corresponding third video stream and target redundant data stream are transmitted through each target network channel.

[0013] In a second aspect, an embodiment of the present disclosure further provides a video transmission device, including:

[0014] An information acquisition module, configured to acquire a first video stream and at least two target network channels;

[0015] A shunting processing module, configured to perform shunting processing on the first video stream and determine a second video stream corresponding to each target network channel;

[0016] A video stream encoding module is used to perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each target network channel after encoding;

[0017] A redundant data stream determination module is used to perform cross-channel allocation and redundant encoding on each third video stream, and determine a target redundant data stream corresponding to each target network channel;

[0018] The video stream transmission module is used to transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0019] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0020] one or more processors;

[0021] a storage device for storing one or more programs,

[0022] When the one or more programs are executed by the one or more processors, the one or more processors implement the video transmission method as described in any one of the embodiments of the present disclosure.

[0023] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to execute the video transmission method as described in any one of the embodiments of the present disclosure.

[0024] The embodiment of the present disclosure performs a diversion process on the first video stream to determine the second video stream corresponding to each target network channel, wherein the data volume of the diverted second video stream is less than the data volume of the first video stream. Video encoding is performed on each second video stream to determine the third video stream corresponding to each target network channel after encoding, and each third video stream is cross-channel allocated and redundantly encoded to determine the target redundant data stream corresponding to each target network channel. The corresponding third video stream and the target redundant data stream are transmitted through each target network channel, thereby utilizing at least two target network channels to simultaneously transmit video data. The video data transmitted by each target network channel is part of the first video stream and the target redundant data stream allocated across channels, thereby not increasing the network bandwidth cost. When the network quality of one network channel is poor, the redundant data streams sent by other network channels can also be used to restore the video stream, thereby effectively improving the success rate of video transmission, eliminating the need for retransmission, and improving the efficiency of video transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0026] FIG1 is a flow chart of a video transmission method provided by an embodiment of the present disclosure;

[0027] FIG2 is an example of encoding of a video stream involved in an embodiment of the present disclosure;

[0028] FIG3 is a flow chart of a video transmission method provided by an embodiment of the present disclosure;

[0029] FIG4 is a flow chart of a video transmission method provided by an embodiment of the present disclosure;

[0030] FIG5 is an example of a working process of a transmitting end involved in an embodiment of the present disclosure;

[0031] FIG6 is a flow chart of a video transmission method provided by an embodiment of the present disclosure;

[0032] FIG7 is an example of a working process of a receiving end involved in an embodiment of the present disclosure;

[0033] FIG8 is an example of a target video stream determined by a receiving end according to an embodiment of the present disclosure;

[0034] FIG9 is a structural diagram of a video transmission device provided by an embodiment of the present disclosure;

[0035] FIG10 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0038] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0039] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0040] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0042] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0043] Figure 1 is a flow chart of a video transmission method provided by an embodiment of the present disclosure. This embodiment of the present disclosure is applicable to encoding and transmitting generated video streams, and is particularly applicable to transmission scenarios requiring low latency, such as video on demand, live video, or video downloading. The method can be performed by a video transmission device, which can be implemented in software and / or hardware, and optionally, by an electronic device, which can be a transmitter for transmitting video.

[0044] As shown in FIG1 , the video transmission method specifically includes the following steps:

[0045] S110: Acquire a first video stream and at least two target network channels.

[0046] The first video stream may refer to an original video stream generated by a video source. The first video stream may be composed of multiple video frames. The target network channel may be a network transmission channel for transmitting video data. The number of target network channels may be at least two, so that video data can be transmitted simultaneously using at least two target network channels. For example, a Wi-Fi network or a 4G network may have two network channels.

[0047] Specifically, the transmitter can obtain a pre-generated first video stream, or can also obtain a first video stream generated in real time from a video source, so as to transmit the generated first video stream in real time. Based on the currently used transmission network, at least two target network channels are obtained. For example, each network channel included in the currently used transmission network can be used as a target network channel, so that all network channels in the transmission network can be used for video transmission.

[0048] S120: Perform stream splitting processing on the first video stream to determine a second video stream corresponding to each target network channel.

[0049] The second video stream may include some video frames in the first video stream, and the target network channel corresponds to the second video stream in a one-to-one manner.

[0050] Specifically, the transmitter can perform split processing on the first video stream based on a preset splitting method and the video frame rate corresponding to the first video stream. For example, each video frame in the first video stream can be round-robinly allocated to each target network channel to obtain a second video stream corresponding to each target network channel. It should be noted that all second video streams corresponding to all target network channels can also be merged into the first video stream.

[0051] Exemplarily, S120 may include: determining a target frame rate corresponding to each target network channel based on the video frame rate corresponding to the first video stream; performing round-robin allocation of video frames on the first video stream based on the target frame rate, and determining a second video stream corresponding to each target network channel.

[0052] The video frame rate corresponding to the first video stream is the original video frame rate. The target frame rate corresponding to each target network channel refers to the video frame rate of the second video stream corresponding to each target network channel. Since the second video stream is a substream of the first video stream, the target frame rate corresponding to each target network channel is lower than the video frame rate corresponding to the first video stream.

[0053] Specifically, the same or different target frame rates can be set for each target network channel based on business needs, and each target frame rate is smaller than the video frame rate corresponding to the first video stream. For example, the video frame rate corresponding to the first video stream can be divided by the number of target network channels, and the division result can be used as the target frame rate corresponding to each target network channel, so as to evenly distribute the first video stream. According to the target frame rate corresponding to each target network channel and the allocation order of the target network channels, each video frame in the first video stream is polled and allocated to each target network channel to obtain the second video stream corresponding to each target network channel.

[0054] For example, if the first video stream is {video frame F1, video frame F2, video frame F3, video frame F4, video frame F5, video frame F6, video frame F7, video frame F8…}, there are two target network channels, and the target frame rate corresponding to each target network channel is half of the video frame rate corresponding to the first video stream, then after polling allocation, the second video stream corresponding to target network channel 1 is {video frame F1, video frame F3, video frame F5, video frame F7…}, and the second video stream corresponding to target network channel 2 is {video frame F2, video frame F4, video frame F6, video frame F8…}.

[0055] S130: Perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each encoded target network channel.

[0056] Among them, the third video stream may refer to the video encoding stream after the second video stream is encoded. The third video stream is composed of multiple encoded frames. For example, the encoded frames may include key frames (i.e., I frames), forward predictive encoded frames (i.e., P frames), or bidirectionally predictive encoded frames (i.e., B frames). Among them, when decoding I frames, only the information of the key frames themselves needs to be used, without referring to other video frames. The interval between two I frames is relatively long. When decoding P frames, it is necessary to refer to the information of the video frame before the current frame in order to decode. If the video frame it refers to is lost, it will cause a distorted screen phenomenon. When decoding B frames, it is necessary to refer to the video frames before and after the current frame in order to decode. If the video frame it refers to is lost, it will also cause a distorted screen phenomenon.

[0057] Specifically, a video encoder can be set in each target network channel, and the encoding parameters in each video encoder can be configured. For each target network channel, the sending end can input the second video stream corresponding to the target network channel into the corresponding video encoder, and the video encoder performs video encoding based on the configured encoding parameters and outputs the encoded third video stream, thereby obtaining the third video stream corresponding to the target network channel. By independently encoding the second video stream corresponding to each target network channel, the independently encoded third video stream is obtained, so that the subsequent receiving end can also independently decode the received third video stream.

[0058] For example, Figure 2 shows an example of video stream encoding. As shown in Figure 2, the second video stream corresponding to target network channel 1 is independently encoded in the order of the video frames {video frame F1, video frame F3, video frame F5, video frame F7...}. For example, encoding video frame F3 is performed based solely on video frame F1 and not on video frame F2 from target network channel 2, thus achieving independent encoding of the second video stream.

[0059] S140: Perform cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel.

[0060] Cross-channel allocation refers to allocating the third video stream corresponding to each target network channel to other target network channels. In other words, the third video stream allocated to each target network channel is not the third video stream that originally corresponded to it. For example, if target network channel 1 corresponds to third video stream 1 and target network channel 2 corresponds to third video stream 2, then after cross-channel allocation, target network channel 1 corresponds to third video stream 2 and target network channel 2 corresponds to third video stream 1.

[0061] The redundant coding may be performed on the allocated third video stream using a redundant technology. The redundant coding method may be, but is not limited to, a forward error correction (FEC) coding method. The target redundant data stream may refer to redundant protection data of the allocated third video stream, so that the corresponding third video stream can be restored based on the target redundant data stream.

[0062] Specifically, the transmitting end may first perform cross-channel allocation on the third video stream corresponding to each target network channel, and then perform redundant encoding on each allocated third video stream to obtain a target redundant data stream corresponding to each target network channel. Alternatively, the transmitting end may first perform redundant encoding on the third video stream corresponding to each target network channel to obtain the original redundant data stream corresponding to each target network channel, and then perform cross-channel allocation on each original redundant data stream to obtain a target redundant data stream corresponding to each target network channel. This embodiment does not limit the order of cross-channel allocation and redundant encoding.

[0063] For example, as shown in Figure 2, after encoding the second video stream corresponding to target network channel 1, the resulting third video stream is {encoded frame F1, encoded frame F3, encoded frame F5, encoded frame F7…}. Correspondingly, the third video stream corresponding to target network channel 2 is {encoded frame F2, encoded frame F4, encoded frame F6, encoded frame F8…}. After cross-channel allocation, the third video stream corresponding to target network channel 1 is {encoded frame F2, encoded frame F4, encoded frame F6, encoded frame F8…}. By performing redundant encoding on each encoded frame in this third video stream, the resulting target redundant data stream corresponding to target network channel 1 is {redundant encoded frame P2, redundant encoded frame P4, redundant encoded frame P6, redundant encoded frame P8…}. Similarly, the target redundant data stream corresponding to target network channel 2 is {redundant encoded frame P1, redundant encoded frame P3, redundant encoded frame P5, redundant encoded frame P7…}.

[0064] S150: Transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0065] Specifically, the transmitting end and the receiving end are connected via each target network channel. The transmitting end can transmit the third video stream and target redundant data stream corresponding to each target network channel to the receiving end via each target network channel. For example, as shown in Figure 2, the corresponding third video stream {coded frame F1, coded frame F3, coded frame F5, coded frame F7...} and the target redundant data stream {redundant coded frame P2, redundant coded frame P4, redundant coded frame P6, redundant coded frame P8...} are transmitted via target network channel 1. The corresponding third video stream {coded frame F2, coded frame F4, coded frame F6, coded frame F8...} and the target redundant data stream {redundant coded frame P1, redundant coded frame P3, redundant coded frame P5, redundant coded frame P7...} are transmitted via target network channel 2. By sending the third video stream {coded frame F1, coded frame F3, coded frame F5, coded frame F7...} and the original redundant data stream corresponding to the third video stream {redundant coded frame P1, redundant coded frame P3, redundant coded frame P5, redundant coded frame P7...} using different target network channels, when a problem occurs in one target network channel, such as when the third video stream is lost, the third video stream can be quickly restored by using the original redundant data stream corresponding to the third video stream transmitted through another target network channel, and this cross-path transmission will not occupy the network bandwidth of the weak network channel, thereby improving the success rate of video transmission.

[0066] It should be noted that if the first video stream and the corresponding redundant data stream are directly transmitted, the bandwidth cost will increase. By splitting and transmitting across paths, the success rate of video transmission can be improved without increasing bandwidth cost.

[0067] Exemplarily, the corresponding third video stream and the target redundant data stream can be transmitted synchronously through each target network channel, so that the third video stream and the original redundant data stream corresponding to the third video stream can be received simultaneously through different target network channels, and then the third video stream can be promptly restored based on the original redundant data stream corresponding to the third video stream, thereby ensuring low latency.

[0068] The technical solution of the embodiment of the present disclosure is to determine the second video stream corresponding to each target network channel by performing a diversion process on the first video stream, and the data volume of the diverted second video stream is less than the data volume of the first video stream. Video encoding is performed on each second video stream, and the third video stream corresponding to each target network channel after encoding is determined. Each third video stream is cross-channel allocated and redundantly encoded, and the target redundant data stream corresponding to each target network channel is determined. The corresponding third video stream and the target redundant data stream are transmitted through each target network channel, thereby utilizing at least two target network channels to simultaneously transmit video data, and the video data transmitted by each target network channel is part of the first video stream and the target redundant data stream allocated across channels, thereby not increasing the network bandwidth cost, and when the network quality of one network channel is poor, the redundant data stream sent by other network channels can also be used to restore the video stream, thereby effectively improving the success rate of video transmission, and without the need for retransmission, the efficiency of video transmission is also improved.

[0069] Based on the above technical solution, "obtaining at least two target network channels" in S110 may include: obtaining the network delay duration corresponding to each candidate network channel; determining the maximum delay time difference between the two network channels based on the video frame rate corresponding to the first video stream; and determining the target network channel from multiple candidate network channels based on the network delay duration and the maximum delay time difference.

[0070] The "selected network channel" refers to a network channel that can be used to transmit data. For example, each network channel included in the currently used transmission network can be selected as a selected network channel. The network delay duration can refer to the delay duration of data transmission through the selected network channel. The maximum delay difference can refer to the maximum allowable delay difference between two network channels. The target network channel can refer to an available network channel that guarantees low latency.

[0071] Specifically, the transmitting end can detect and obtain the network delay duration of each to-be-selected network channel. The interval duration between two adjacent frames is determined based on the video frame rate corresponding to the first video stream, and twice the interval duration can be determined as the maximum allowable delay information to ensure low delay. Based on the network delay duration of each to-be-selected network channel, the network delay time difference between each two to-be-selected network channels can be determined, that is, the difference in the network delay durations corresponding to the two to-be-selected network channels. The network delay time difference between each two to-be-selected network channels is compared with the maximum delay time difference, and the target network channel is determined from all the to-be-selected network channels. The network delay time difference between any two target network channels determined is less than or equal to the maximum delay time difference, thereby ensuring low delay in video transmission. Alternatively, the two to-be-selected network channels with the smallest network delay time difference can be determined as the target network channels, so that the two best target network channels can be used for ultra-low delay transmission.

[0072] FIG3 is a flow chart illustrating a video transmission method provided by an embodiment of the present disclosure. This embodiment of the present disclosure optimizes the step of "determining a target frame rate for each target network channel based on the video frame rate corresponding to the first video stream" based on the aforementioned disclosed embodiments. Explanations of terms that are identical or corresponding to those in the aforementioned disclosed embodiments are omitted here.

[0073] As shown in FIG3 , the video transmission method specifically includes the following steps:

[0074] S210: Acquire a first video stream and at least two target network channels.

[0075] S220: Obtain available bandwidth information corresponding to each target network channel.

[0076] Specifically, the sender can detect and obtain the available bandwidth information corresponding to each target network channel. The available bandwidth information can be used to represent the amount of data that can be transmitted per second on the target network channel.

[0077] S230: Determine a target frame rate corresponding to each target network channel based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream.

[0078] The preset minimum frame rate may be a minimum frame rate pre-determined based on the fluency requirement. The target frame rate corresponding to each target network channel is greater than or equal to the preset minimum frame rate to ensure a smooth experience when displaying low-frame-rate videos. The video frame rate corresponding to the first video stream is the maximum frame rate corresponding to each target network channel. The target frame rate corresponding to each target network channel is less than the video frame rate corresponding to the first video stream.

[0079] Specifically, the sending end can determine the available frame rate range based on the preset minimum frame rate and the video frame rate corresponding to the first video stream, and based on the available bandwidth information corresponding to each target network channel, select the optimal frame rate with the highest image quality within the available frame rate range as the corresponding target frame rate.

[0080] Exemplarily, S230 may include: determining the single-frame size range allowed for transmission by each target network channel based on available bandwidth information, a preset minimum frame rate, and the video frame rate corresponding to the first video stream; determining the maximum single-frame size allowed for transmission by each target network channel based on the single-frame size range, and determining the target frame rate corresponding to each target network channel based on the maximum single-frame size and the available bandwidth information.

[0081] The single-frame size may refer to the amount of data in a single video frame. The single-frame size range may consist of a minimum single-frame size and a maximum single-frame size. The minimum single-frame size may refer to the minimum amount of data in a single video frame. The maximum single-frame size may refer to the maximum amount of data in a single video frame. The single-frame size may be used to characterize the image quality of a video frame. For example, a larger single-frame size indicates a higher quality video frame.

[0082] Specifically, the maximum single-frame size allowed to be transmitted by each target network channel can be determined based on the available bandwidth information corresponding to each target network channel and the preset minimum frame rate. The minimum single-frame size allowed to be transmitted by each target network channel can be determined based on the available bandwidth information corresponding to each target network channel and the video frame rate corresponding to the first video stream, thereby obtaining the single-frame size range allowed to be transmitted by each target network channel. The single-frame size ranges allowed to be transmitted by each target network channel are compared to determine the maximum single-frame size allowed to be transmitted by each target network channel, that is, the maximum single-frame size shared by all target network channels. The available bandwidth information corresponding to each target network channel is divided by the maximum single-frame size, and the division result is used as the target frame rate corresponding to each target network channel. By utilizing the available bandwidth information corresponding to each target network channel, the optimal frame rate allocation result under the highest image quality can be determined, thereby ensuring the image quality of video transmitted using multiple target network channels.

[0083] Exemplarily, determining a single frame size range allowed to be transmitted by each target network channel based on available bandwidth information, a preset minimum frame rate, and a video frame rate corresponding to the first video stream may include:

[0084] The current available bandwidth information corresponding to the current target network channel is divided by the preset minimum frame rate to obtain the maximum single frame size allowed to be transmitted by the current target network channel; the current available bandwidth information corresponding to the current target network channel is divided by the video frame rate corresponding to the first video stream to obtain the minimum single frame size allowed to be transmitted by the current target network channel.

[0085] Specifically, each target network channel may be used as the current target network channel, and the single frame size range allowed to be transmitted by each target network channel may be determined through the above steps.

[0086] S240: Based on the target frame rate, perform round-robin allocation of video frames on the first video stream to determine a second video stream corresponding to each target network channel.

[0087] Specifically, based on the target frame rate corresponding to each target network channel, each video frame in the first video stream may be polled and allocated to obtain a second video stream with the target frame rate corresponding to each target network channel.

[0088] For example, if there are two target network channels, the target frame rate corresponding to target network channel 1 can be divided by the target frame rate corresponding to target network channel 2 to obtain a frame rate multiplier. Each video frame in the first video stream can then be evenly polled and distributed according to this frame rate multiplier. For example, if the frame rate multiplier is 2, and the first video stream is {video frame F1, video frame F2, video frame F3, video frame F4, video frame F5, video frame F6, video frame F7, video frame F8…}, then after round-robin distribution, the second video stream corresponding to target network channel 1 is {video frame F1, video frame F2, video frame F4, video frame F5, video frame F7, video frame F8…}, and the second video stream corresponding to target network channel 2 is {video frame F3, video frame F6…}.

[0089] S250: Perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each encoded target network channel.

[0090] Specifically, the transmitter can configure the frame rate and bit rate parameters in the video encoder based on the target frame rate and available bandwidth corresponding to each target network channel, so that the video encoder in each target network channel encodes according to the configured frame rate and bit rate. To ensure consistent image quality across all target network channels, the video encoder in each target network channel can be configured with the same quantization parameter (QP) and group of pictures (GOP) size.

[0091] It should be noted that the sending end can periodically and continuously detect the available bandwidth information and network delay information in each target network channel. If the test results change significantly from the current stage, the target network bandwidth will be reset based on the currently measured network delay information, and the target frame rate corresponding to each target network channel will be re-determined based on the currently measured available bandwidth information, and the encoding parameters in the video encoder will be updated to make it more in line with the current network conditions, further ensuring the success rate and image quality of video transmission.

[0092] S260: Perform cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel.

[0093] S270: Transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0094] The technical solution of the embodiment of the present disclosure can determine the target frame rate that is suitable for the available bandwidth and has the highest image quality based on the available bandwidth information corresponding to each target network channel, the preset minimum frame rate and the video frame rate corresponding to the first video stream, thereby further improving the success rate of video transmission and the video display effect.

[0095] FIG4 is a flow chart illustrating a video transmission method provided by an embodiment of the present disclosure. Based on the aforementioned embodiments, this embodiment optimizes the step of "performing cross-channel allocation and redundant encoding of each third video stream, and determining a target redundant data stream corresponding to each target network channel." Explanations of terms identical or corresponding to those in the aforementioned embodiments are omitted here.

[0096] As shown in FIG4 , the video transmission method specifically includes the following steps:

[0097] S310: Acquire a first video stream and at least two target network channels.

[0098] S320: Perform split processing on the first video stream to determine a second video stream corresponding to each target network channel.

[0099] S330: Perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each encoded target network channel.

[0100] S340: Determine an allocated network channel corresponding to the current target network channel, wherein the allocated network channel is another target network channel except the current target network channel.

[0101] Specifically, each target network channel can be used as the current target network channel, and by executing steps S340-350, the target redundant data flow corresponding to each target network channel can be determined. For example, a cross-channel transmission allocation relationship can be established in advance based on actual scenarios and business needs, so that the allocation network channel corresponding to the current target network channel can be determined based on the pre-established cross-channel transmission allocation relationship. For example, if there are two target network channels, and the cross-channel transmission allocation relationship is: target network channel 1 corresponds to target network channel 2, and target network channel 2 corresponds to target network channel 1, then when the current target network channel is target network channel 1, the corresponding allocation network channel is target network channel 2, thereby achieving cross-channel allocation.

[0102] For another example, if there are at least three target network channels, the allocation network channel corresponding to the current target network channel may refer to all other target network channels except the current target network channel, so that the redundant data of the third video stream corresponding to all other target network channels can be transmitted through the current target network channel. Alternatively, the allocation network channel corresponding to the current target network channel may refer to one other target network channel except the current target network channel, so that only the redundant data stream of the third video stream corresponding to one other target network channel is transmitted through the current target network channel, thereby saving network bandwidth. In this case, it is necessary to ensure that the redundant data stream of the third video stream corresponding to each target network channel has one other target network channel for transmission, thereby ensuring that the redundant data stream of each third video stream is transmitted across paths. For example, if there are three target network channels, the cross-channel transmission allocation relationship is: target network channel 1 corresponds to target network channel 2, target network channel 2 corresponds to target network channel 3, and target network channel 3 corresponds to target network channel 1. Then, when the current target network channel is target network channel 2, the corresponding allocation network channel is target network channel 3, thereby achieving a single cross-channel allocation and further saving network bandwidth.

[0103] S350: Redundantly encode the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel.

[0104] Specifically, the I-frame redundancy ratio and P-frame redundancy ratio can be pre-set based on the importance of the content. Based on the I-frame redundancy ratio and the P-frame redundancy ratio, redundant encoding, such as FEC encoding, can be performed on the third video stream corresponding to the allocated network channel. The resulting redundant data stream serves as the target redundant data stream corresponding to the current target network channel. For example, the I-frame redundancy ratio can be set to 10% and the P-frame redundancy ratio can be set to 5%. This allows 10% redundant data to be generated for all I-frames in the third video stream corresponding to the allocated network channel, and 5% redundant data to be generated for all P-frames. If the amount of redundant data for a P-frame is less than one packet (e.g., 1024KB), multiple consecutive P-frames can be combined to generate redundant data, thereby providing stronger protection for the more important I-frames.

[0105] S360: Transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0106] For example, FIG5 shows an example of the working process of a sending end. As shown in FIG5 , the sending end corresponds to two target network channels, and each target network channel corresponds to a video encoder and a redundant encoder. After the sending end splits the first video stream, the obtained second video stream 1 and second video stream 2 are respectively input into the video encoder 1 and video encoder 2 for video encoding to obtain the third video stream 1 and third video stream 2. The third video stream 1 is input into the redundant encoder 2 corresponding to the target network channel 2 for redundant encoding to obtain the original redundant data stream corresponding to the third video stream 1, that is, the target redundant data stream 1. Similarly, the third video stream 2 is input into the redundant encoder 1 corresponding to the target network channel 1 for redundant encoding to obtain the original redundant data stream corresponding to the third video stream 2, that is, the target redundant data stream 1. The third video stream 1 and the target redundant data stream 2 are transmitted through the target network channel 1, and the third video stream 2 and the target redundant data stream 1 are transmitted through the target network channel 2, so that the third video stream and the corresponding original redundant data stream can be transmitted through different network channels. Then, when a problem occurs with the third video stream sent by a certain target network channel, the third video stream can be directly and quickly restored through the redundant data stream sent by another target network channel, thereby improving the success rate and efficiency of data transmission.

[0107] The technical solution of the embodiment of the present disclosure determines the allocated network channel corresponding to the current target network channel, wherein the allocated network channel is a target network channel other than the current target network channel, and redundantly encodes the third video stream corresponding to the allocated network channel to obtain the target redundant data stream corresponding to the current target network channel, so that the third video stream and the corresponding original redundant data stream can be transmitted through different network channels, thereby effectively improving the success rate and efficiency of data transmission.

[0108] Based on the above technical solution, S350 may include: obtaining the current packet loss rate corresponding to the current target network channel; based on the current packet loss rate, determining the redundant data ratio corresponding to a single video frame; based on the redundant data ratio, redundantly encoding the third video stream corresponding to the allocated network channel to obtain the target redundant data stream corresponding to the current target network channel.

[0109] Specifically, the transmitting end can detect and obtain the current packet loss rate corresponding to the current target network channel and determine the current packet loss rate as the redundant data ratio corresponding to a single video frame. Based on the redundant data ratio, redundant encoding can be performed on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream at the redundant data ratio. For example, based on the redundant data ratio, forward error correction encoding can be performed on the third video stream corresponding to the allocated network channel, and the obtained encoded data stream can be used as the target redundant data stream corresponding to the current target network channel.

[0110] Exemplarily, if the data volume of the target redundant data stream is greater than the remaining available bandwidth corresponding to the current target network channel, the redundant data ratio corresponding to the remaining available bandwidth can be determined, and redundant encoding can be performed based on the redundant data ratio, so that the data volume of the target redundant data stream after redundant encoding is equal to the remaining available bandwidth corresponding to the current target network channel, thereby dynamically adapting to the current network bandwidth, further ensuring the success rate of transmission of the target redundant data stream.

[0111] FIG6 is a flow chart of a video transmission method provided by an embodiment of the present disclosure. This embodiment, based on the aforementioned disclosed embodiments, describes in detail the process by which a receiving end determines a target video stream based on the video stream and redundant data stream received through each target network channel. Explanations of terms that are identical or corresponding to those in the aforementioned disclosed embodiments are omitted here.

[0112] As shown in FIG6 , the video transmission method specifically includes the following steps:

[0113] S410: The sending end obtains a first video stream and at least two target network channels.

[0114] S420: The transmitting end performs split processing on the first video stream to determine a second video stream corresponding to each target network channel.

[0115] S430: The transmitting end performs video encoding on the second video stream corresponding to each target network channel, and determines a third video stream corresponding to each encoded target network channel.

[0116] S440: The transmitting end performs cross-channel allocation and redundant encoding on each third video stream, and determines a target redundant data stream corresponding to each target network channel.

[0117] S450: The sending end transmits the corresponding third video stream and target redundant data stream through each target network channel.

[0118] S460: The receiving end performs reverse cross-channel distribution on the redundant data streams received through each target network channel, and determines the original redundant data stream corresponding to each target network channel.

[0119] The video stream received through each target network channel may be a complete third video stream or a partial third video stream sent by each target network channel. The redundant data stream received through each target network channel may be a complete target redundant data stream or a partial target redundant data stream sent by each target network channel. The original redundant data stream corresponding to the target network channel may refer to the redundant data stream of the video stream itself sent by the target network channel.

[0120] Specifically, a pre-established cross-channel receiving allocation relationship can be established, where the cross-channel receiving allocation relationship and the cross-channel receiving allocation relationship are opposite corresponding relationships. Based on the pre-established cross-channel receiving allocation relationship, the receiving end can perform reverse cross-channel allocation on the redundant data streams received through each target network channel to obtain the original redundant data stream corresponding to each target network channel. For example, if the cross-channel sending allocation relationship is: target network channel 1 corresponds to target network channel 2, target network channel 2 corresponds to target network channel 3, and target network channel 3 corresponds to target network channel 1, the corresponding cross-channel receiving allocation relationship is: target network channel 1 corresponds to target network channel 3, target network channel 2 corresponds to target network channel 1, and target network channel 3 corresponds to target network channel 2. Based on this cross-channel receiving allocation relationship, the redundant data stream received by target network channel 1 can be determined as the original redundant data stream corresponding to target network channel 3. The redundant data stream received by target network channel 2 can be determined as the original redundant data stream corresponding to target network channel 1. The redundant data stream received by target network channel 3 can be determined as the original redundant data stream corresponding to target network channel 2.

[0121] For example, Figure 7 illustrates an example of a receiving end's operating process. The receiving process in Figure 7 corresponds to the sending process in Figure 5 . As shown in Figure 7 , redundant data stream 2 received via target network channel 1 can be used as the original redundant data stream 2 corresponding to target network channel 2, and redundant data stream 1 received via target network channel 2 can be used as the original redundant data stream 1 corresponding to target network channel 1.

[0122] S470: The receiving end recovers and decodes the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream.

[0123] The target video stream may refer to the video stream finally received by the receiving end. The target video stream may be the first video stream, or the first video stream with a low frame rate, such as the second video stream.

[0124] Specifically, as shown in Figure 7, the receiving end recovers and decodes the video stream 1 received through the target network channel and the corresponding original redundant data stream 1 to obtain the second video stream 1 corresponding to the target network channel 1. Similarly, the second video stream 2 corresponding to the target network channel 2 is obtained. The first video stream 1 and the second video stream 2 can be merged according to a preset merging method that matches the preset diversion method to obtain the first video stream, that is, the target video stream, and the target video stream can be displayed on the receiving end, thereby ensuring the success rate of video transmission.

[0125] Exemplarily, S470 may include: determining a recovered third video stream based on the video stream received through each target network channel and the corresponding original redundant data stream, and decoding the third video stream to obtain a second video stream corresponding to each target network channel; performing confluence processing on the second video stream corresponding to each target network channel, determining a first video stream, and using the first video stream as the target video stream.

[0126] Specifically, Figure 8 gives an example of a target video stream determined by a receiving end. For the first receiving situation in Figure 8, the receiving end successfully receives the complete third video stream through each target network channel, and there is no need to recover it. Each third video stream is directly decoded to obtain the corresponding second video stream, and all the second video streams are merged to obtain the original first video stream, thereby obtaining the original video stream with a high frame rate, as indicated by the dotted arrows in Figure 8. For the second receiving situation in Figure 8, the receiving end does not successfully receive the complete third video stream through each target network channel, then the third video stream can be recovered based on the received partial third video stream and the corresponding original redundant data stream, and the recovered third video stream is decoded to obtain the corresponding second video stream, and the second video stream is merged to obtain the original first video stream, thereby also obtaining the original video stream with a high frame rate, as indicated by the solid arrows in Figure 8.

[0127] Exemplarily, S470 may further include: if based on the video stream received through each target network channel and the corresponding original redundant data stream, only part of the target network channel recovers and decodes the corresponding second video stream, then determining the target video stream based on the decoded second video stream.

[0128] Specifically, if the network quality of some target network channels is poor and these target network channels are unable to recover the corresponding third video stream, the corresponding second video stream can be recovered and decoded based on other target network channels to determine the target video stream. For example, for the third receiving situation in Figure 8, target network channel 1 is unable to recover the corresponding third video stream, and only target network channel 2 recovers the corresponding third video stream. At this time, the corresponding third video stream recovered by target network channel 2 can be directly decoded, and the obtained second video stream is used as the target video stream, so that the original video stream with a low frame rate can be obtained even when the network quality is poor, thereby avoiding the situation of video freeze and ensuring smoothness.

[0129] For another example, if there are at least two target network channels that recover and decode the corresponding second video streams, then based on the frame rate corresponding to each recovered and decoded second video stream, the second video stream with the largest frame rate is used as the target video stream, or all the recovered and decoded second video streams can be merged, and the merged video stream is used as the target video stream to further improve the frame rate of the displayed video stream, ensure the smoothness of the video display, and thereby enhance the user viewing experience.

[0130] According to the technical solution of the embodiment of the present disclosure, the receiving end performs reverse cross-channel distribution on the redundant data streams received through each target network channel, determines the original redundant data stream corresponding to each target network channel, and recovers and decodes the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream, thereby enabling rapid recovery and decoding and ensuring the success rate of video transmission.

[0131] Figure 9 is a structural diagram of a video transmission device provided by an embodiment of the present disclosure. As shown in Figure 9, the device specifically includes: an information acquisition module 510, a diversion processing module 520, a video stream encoding module 530, a redundant data stream determination module 540 and a video stream transmission module 550.

[0132] Among them, the information acquisition module 510 is used to obtain a first video stream and at least two target network channels; the diversion processing module 520 is used to perform diversion processing on the first video stream and determine the second video stream corresponding to each target network channel; the video stream encoding module 530 is used to perform video encoding on the second video stream corresponding to each target network channel and determine the third video stream corresponding to each target network channel after encoding; the redundant data stream determination module 540 is used to perform cross-channel allocation and redundant encoding on each third video stream and determine the target redundant data stream corresponding to each target network channel; the video stream transmission module 550 is used to transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0133] The technical solution of the embodiment of the present disclosure is to determine the second video stream corresponding to each target network channel by performing a diversion process on the first video stream, and the data volume of the diverted second video stream is less than the data volume of the first video stream. Video encoding is performed on each second video stream, and the third video stream corresponding to each target network channel after encoding is determined. Each third video stream is cross-channel allocated and redundantly encoded, and the target redundant data stream corresponding to each target network channel is determined. The corresponding third video stream and the target redundant data stream are transmitted through each target network channel, thereby utilizing at least two target network channels to simultaneously transmit video data, and the video data transmitted by each target network channel is part of the first video stream and the target redundant data stream allocated across channels, thereby not increasing the network bandwidth cost, and when the network quality of one network channel is poor, the redundant data stream sent by other network channels can also be used to restore the video stream, thereby effectively improving the success rate of video transmission, and without the need for retransmission, the efficiency of video transmission is also improved.

[0134] Based on the above technical solution, the information acquisition module 510 is specifically used to:

[0135] Obtain the network delay duration corresponding to each candidate network channel; determine the maximum delay time difference between the two network channels based on the video frame rate corresponding to the first video stream; and determine the target network channel from multiple candidate network channels based on the network delay duration and the maximum delay time difference.

[0136] Based on the above technical solutions, the traffic diversion processing module 520 includes:

[0137] a target frame rate determination submodule, configured to determine a target frame rate corresponding to each target network channel based on the video frame rate corresponding to the first video stream;

[0138] The second video stream determination submodule is used to perform round-robin allocation of video frames on the first video stream based on the target frame rate, and determine the second video stream corresponding to each target network channel.

[0139] Based on the above technical solutions, the target frame rate determination submodule includes:

[0140] An available bandwidth information acquisition unit, configured to acquire available bandwidth information corresponding to each target network channel;

[0141] The target frame rate determining unit is configured to determine a target frame rate corresponding to each target network channel based on the available bandwidth information, a preset minimum frame rate, and a video frame rate corresponding to the first video stream.

[0142] Based on the above technical solutions, the target frame rate determination unit includes:

[0143] a single frame size range determining subunit, configured to determine a single frame size range allowed to be transmitted by each target network channel based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream;

[0144] The target frame rate determination subunit is used to determine the maximum single frame size allowed to be transmitted by each target network channel based on the single frame size range, and determine the target frame rate corresponding to each target network channel based on the maximum single frame size and the available bandwidth information.

[0145] Based on the above technical solutions, the single frame size range determination subunit is specifically used to:

[0146] The current available bandwidth information corresponding to the current target network channel is divided by the preset minimum frame rate to obtain the maximum single frame size allowed to be transmitted by the current target network channel; the current available bandwidth information corresponding to the current target network channel is divided by the video frame rate corresponding to the first video stream to obtain the minimum single frame size allowed to be transmitted by the current target network channel.

[0147] Based on the above technical solutions, the redundant data flow determination module 540 includes:

[0148] The allocation network channel determination submodule is used to determine the allocation network channel corresponding to the current target network channel, wherein the allocation network channel is other target network channels except the current target network channel;

[0149] The redundant data stream determining submodule is configured to perform redundant encoding on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel.

[0150] Based on the above technical solutions, the redundant data flow determination submodule includes:

[0151] A current packet loss rate acquisition unit is used to obtain the current packet loss rate corresponding to the current target network channel;

[0152] a redundant data ratio determining unit, configured to determine a redundant data ratio corresponding to a single video frame based on the current packet loss rate;

[0153] The redundant data stream determining unit is configured to perform redundant encoding on the third video stream corresponding to the allocated network channel based on the redundant data ratio to obtain a target redundant data stream corresponding to the current target network channel.

[0154] Based on the above technical solutions, the redundant data flow determination unit is specifically configured to:

[0155] Based on the redundant data ratio, forward error correction coding is performed on the third video stream corresponding to the allocated network channel, and the obtained coded data stream is used as the target redundant data stream corresponding to the current target network channel.

[0156] On the basis of the above technical solutions, the device also includes:

[0157] The original redundant data flow determination module is used to perform reverse cross-channel distribution on the redundant data flow received through each target network channel to determine the original redundant data flow corresponding to each target network channel;

[0158] The target video stream determination module is used to recover and decode the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream.

[0159] Based on the above technical solutions, the target video stream determination module is specifically used to:

[0160] Based on the video stream received through each target network channel and the corresponding original redundant data stream, a recovered third video stream is determined, and the third video stream is decoded to obtain a second video stream corresponding to each target network channel; the second video stream corresponding to each target network channel is merged to determine a first video stream, and the first video stream is used as the target video stream.

[0161] On the basis of the above technical solutions, the target video stream determination module is further specifically used to:

[0162] If, based on the video streams received through each target network channel and the corresponding original redundant data streams, only part of the target network channels recover and decode the corresponding second video streams, the target video stream is determined based on the decoded second video streams.

[0163] The video transmission device provided in the embodiments of the present disclosure can execute the video transmission method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the video transmission method.

[0164] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0165] Figure 10 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to Figure 10 below, it shows a schematic diagram of the structure of an electronic device (such as the terminal device or server in Figure 10) 500 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in Figure 10 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.

[0166] As shown in FIG10 , the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the electronic device 500 are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0167] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although FIG10 illustrates the electronic device 500 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0168] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0169] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0170] The electronic device provided by the embodiment of the present disclosure and the video transmission method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0171] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the video transmission method provided in the above embodiment is implemented.

[0172] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0173] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0174] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0175] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a first video stream and at least two target network channels; performs shunting processing on the first video stream to determine the second video stream corresponding to each target network channel; performs video encoding on the second video stream corresponding to each target network channel to determine the third video stream corresponding to each encoded target network channel; performs cross-channel allocation and redundant encoding on each third video stream to determine the target redundant data stream corresponding to each target network channel; and transmits the corresponding third video stream and target redundant data stream through each target network channel.

[0176] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0177] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0178] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0179] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0180] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0181] According to one or more embodiments of the present disclosure, [Example 1] provides a video transmission method, including:

[0182] Obtaining a first video stream and at least two target network channels;

[0183] Performing split processing on the first video stream to determine a second video stream corresponding to each target network channel;

[0184] Performing video encoding on the second video stream corresponding to each target network channel, and determining a third video stream corresponding to each encoded target network channel;

[0185] Performing cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel;

[0186] The corresponding third video stream and target redundant data stream are transmitted through each target network channel.

[0187] According to one or more embodiments of the present disclosure, [Example 2] provides a video transmission method, further comprising:

[0188] Optionally, obtain at least two target network channels, including:

[0189] Get the network delay duration corresponding to each candidate network channel;

[0190] Determining a maximum delay time difference between two network channels based on a video frame rate corresponding to the first video stream;

[0191] Based on the network delay duration and the maximum delay time difference, a target network channel is determined from a plurality of candidate network channels.

[0192] According to one or more embodiments of the present disclosure, [Example 3] provides a video transmission method, further comprising:

[0193] Optionally, the performing splitting processing on the first video stream to determine the second video stream corresponding to each target network channel includes:

[0194] Determining a target frame rate corresponding to each target network channel based on a video frame rate corresponding to the first video stream;

[0195] Based on the target frame rate, the first video stream is polled and allocated with video frames to determine the second video stream corresponding to each target network channel.

[0196] According to one or more embodiments of the present disclosure, [Example 4] provides a video transmission method, further comprising:

[0197] Optionally, determining a target frame rate corresponding to each target network channel based on a video frame rate corresponding to the first video stream includes:

[0198] Get the available bandwidth information corresponding to each target network channel;

[0199] Based on the available bandwidth information, the preset minimum frame rate and the video frame rate corresponding to the first video stream, a target frame rate corresponding to each target network channel is determined.

[0200] According to one or more embodiments of the present disclosure, [Example 5] provides a video transmission method, further comprising:

[0201] Optionally, determining a target frame rate corresponding to each target network channel based on the available bandwidth information, a preset minimum frame rate, and a video frame rate corresponding to the first video stream includes:

[0202] Determining a single frame size range allowed to be transmitted by each target network channel based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream;

[0203] Based on the single frame size range, a maximum single frame size allowed to be transmitted by each target network channel is determined, and based on the maximum single frame size and the available bandwidth information, a target frame rate corresponding to each target network channel is determined.

[0204] According to one or more embodiments of the present disclosure, [Example 6] provides a video transmission method, further comprising:

[0205] Optionally, determining a single frame size range allowed to be transmitted by each target network channel based on the available bandwidth information, a preset minimum frame rate, and a video frame rate corresponding to the first video stream includes:

[0206] Divide the current available bandwidth information corresponding to the current target network channel by the preset minimum frame rate to obtain the maximum single frame size allowed to be transmitted by the current target network channel;

[0207] The current available bandwidth information corresponding to the current target network channel is divided by the video frame rate corresponding to the first video stream to obtain the minimum single frame size allowed to be transmitted by the current target network channel.

[0208] According to one or more embodiments of the present disclosure, [Example 7] provides a video transmission method, further comprising:

[0209] Optionally, performing cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel includes:

[0210] Determine an allocation network channel corresponding to the current target network channel, wherein the allocation network channel is another target network channel except the current target network channel;

[0211] Redundant encoding is performed on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel.

[0212] According to one or more embodiments of the present disclosure, [Example 8] provides a video transmission method, further comprising:

[0213] Optionally, performing redundant encoding on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel includes:

[0214] Get the current packet loss rate corresponding to the current target network channel;

[0215] Determining a redundant data ratio corresponding to a single video frame based on the current packet loss rate;

[0216] Based on the redundant data ratio, redundant encoding is performed on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel.

[0217] According to one or more embodiments of the present disclosure, [Example 9] provides a video transmission method, further comprising:

[0218] Optionally, performing redundant encoding on the third video stream corresponding to the allocated network channel based on the redundant data ratio to obtain a target redundant data stream corresponding to the current target network channel includes:

[0219] Based on the redundant data ratio, forward error correction coding is performed on the third video stream corresponding to the allocated network channel, and the obtained coded data stream is used as the target redundant data stream corresponding to the current target network channel.

[0220] According to one or more embodiments of the present disclosure, [Example 10] provides a video transmission method, further comprising:

[0221] Optionally, after transmitting the corresponding third video stream and the target redundant data stream through each target network channel, the method further includes:

[0222] Reversely distribute the redundant data streams received through each target network channel across channels to determine the original redundant data streams corresponding to each target network channel;

[0223] The video stream received through each target network channel and the corresponding original redundant data stream are restored and decoded to determine the target video stream.

[0224] According to one or more embodiments of the present disclosure, [Example 11] provides a video transmission method, further comprising:

[0225] Optionally, recovering and decoding the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream includes:

[0226] Determining a restored third video stream based on the video stream received through each target network channel and the corresponding original redundant data stream, and decoding the third video stream to obtain a second video stream corresponding to each target network channel;

[0227] The second video stream corresponding to each target network channel is combined to determine the first video stream, and the first video stream is used as the target video stream.

[0228] According to one or more embodiments of the present disclosure, [Example 12] provides a video transmission method, further comprising:

[0229] Optionally, the recovering and decoding the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream further includes:

[0230] If, based on the video streams received through each target network channel and the corresponding original redundant data streams, only part of the target network channels recover and decode the corresponding second video streams, the target video stream is determined based on the decoded second video streams.

[0231] According to one or more embodiments of the present disclosure, [Example 13] provides a video transmission device, including:

[0232] An information acquisition module, configured to acquire a first video stream and at least two target network channels;

[0233] A shunting processing module, configured to perform shunting processing on the first video stream and determine a second video stream corresponding to each target network channel;

[0234] A video stream encoding module is used to perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each target network channel after encoding;

[0235] A redundant data stream determination module is used to perform cross-channel allocation and redundant encoding on each third video stream, and determine a target redundant data stream corresponding to each target network channel;

[0236] The video stream transmission module is used to transmit the corresponding third video stream and target redundant data stream through each target network channel.

[0237] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0238] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0239] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A video transmission method, comprising: Obtaining a first video stream and at least two target network channels; Performing split processing on the first video stream to determine a second video stream corresponding to each target network channel; Performing video encoding on the second video stream corresponding to each target network channel, and determining a third video stream corresponding to each encoded target network channel; Perform cross-channel allocation and redundant encoding on each third video stream, and determine a target redundant data stream corresponding to each target network channel; The corresponding third video stream and the target redundant data stream are transmitted through each target network channel.

2. The video transmission method according to claim 1, wherein: Obtain at least two target network channels, including: Get the network delay duration corresponding to each candidate network channel; Determine a maximum delay time difference between two network channels based on a video frame rate corresponding to the first video stream; Based on the network delay duration and the maximum delay time difference, a target network channel is determined from a plurality of candidate network channels.

3. The video transmission method according to claim 1, wherein: The splitting process of the first video stream to determine the second video stream corresponding to each target network channel includes: Determine a target frame rate corresponding to each target network channel based on a video frame rate corresponding to the first video stream; Based on the target frame rate, the first video stream is polled and allocated with video frames to determine each The second video stream corresponding to the target network channel.

4. The video transmission method according to claim 3, wherein: The determining, based on the video frame rate corresponding to the first video stream, a target frame rate corresponding to each target network channel includes: Get the available bandwidth information corresponding to each target network channel; Based on the available bandwidth information, the preset minimum frame rate and the video frame rate corresponding to the first video stream, a target frame rate corresponding to each target network channel is determined.

5. The video transmission method according to claim 4, wherein: The determining, based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream, a target frame rate corresponding to each target network channel includes: Determine a single frame size range allowed to be transmitted by each target network channel based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream; Based on the single frame size range, a maximum single frame size allowed to be transmitted by each target network channel is determined, and based on the maximum single frame size and the available bandwidth information, a target frame rate corresponding to each target network channel is determined.

6. The video transmission method according to claim 5, wherein: The determining, based on the available bandwidth information, the preset minimum frame rate, and the video frame rate corresponding to the first video stream, a single frame size range allowed to be transmitted by each target network channel includes: Divide the current available bandwidth information corresponding to the current target network channel by the preset minimum frame rate to obtain the maximum single frame size allowed to be transmitted by the current target network channel; The current available bandwidth information corresponding to the current target network channel is divided by the video frame rate corresponding to the first video stream to obtain the minimum single frame size allowed to be transmitted by the current target network channel.

7. The video transmission method according to claim 1, wherein: The step of performing cross-channel allocation and redundant encoding on each third video stream to determine a target redundant data stream corresponding to each target network channel includes: Determine an allocation network channel corresponding to the current target network channel, wherein the allocation network channel is another target network channel except the current target network channel; The third video stream corresponding to the allocated network channel is redundantly encoded to obtain a target redundant data stream corresponding to the current target network channel.

8. The video transmission method according to claim 7, wherein: The redundant encoding of the third video stream corresponding to the distribution network channel to obtain a target redundant data stream corresponding to the current target network channel includes: Get the current packet loss rate corresponding to the current target network channel; Based on the current packet loss rate, determining a redundant data ratio corresponding to a single video frame; Based on the redundant data ratio, redundant encoding is performed on the third video stream corresponding to the allocated network channel to obtain a target redundant data stream corresponding to the current target network channel.

9. The video transmission method according to claim 8, wherein: The method of performing redundant encoding on the third video stream corresponding to the allocated network channel based on the redundant data ratio to obtain a target redundant data stream corresponding to the current target network channel includes: Based on the redundant data ratio, forward error correction coding is performed on the third video stream corresponding to the allocated network channel, and the obtained coded data stream is used as the target redundant data stream corresponding to the current target network channel.

10. The video transmission method according to any one of claims 1 to 9, wherein: After transmitting the corresponding third video stream and the target redundant data stream through each target network channel, the method further comprises: Reversely distribute the redundant data streams received through each target network channel across channels to determine the original redundant data streams corresponding to each target network channel; The video stream received through each target network channel and the corresponding original redundant data stream are restored and decoded to determine the target video stream.

11. The video transmission method according to claim 10, wherein: The method of recovering and decoding the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream includes: Determine a restored third video stream based on the video stream received through each target network channel and the corresponding original redundant data stream, and decode the third video stream to obtain a second video stream corresponding to each target network channel; The second video stream corresponding to each target network channel is combined to determine the first video stream, and the first video stream is used as the target video stream.

12. The video transmission method according to claim 10, wherein: The method of recovering and decoding the video stream received through each target network channel and the corresponding original redundant data stream to determine the target video stream also includes: If, based on the video stream received through each target network channel and the corresponding original redundant data stream, only part of the target network channels recover and decode the corresponding second video stream, the target video stream is determined based on the decoded second video stream.

13. A video transmission device, comprising: An information acquisition module, used to acquire a first video stream and at least two target network channels; A shunting processing module, used for performing shunting processing on the first video stream to determine a second video stream corresponding to each target network channel; A video stream encoding module, used to perform video encoding on the second video stream corresponding to each target network channel, and determine a third video stream corresponding to each target network channel after encoding; A redundant data stream determination module, used to perform cross-channel allocation and redundant encoding on each third video stream, and determine a target redundant data stream corresponding to each target network channel; The video stream transmission module is used to transmit the corresponding third video stream and the target redundant data stream through each target network channel.

14. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the video transmission method as described in any one of claims 1-12.

15. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to perform the video transmission method according to any one of claims 1 to 12 when executed by a computer processor.

Citation Information

Patent Citations

  • Live broadcasting instruction method, client and system

    CN104954633A

  • Real-time video transmission system and method based on multi-channel parallel transmission technology

    CN108322708A

  • Video encoding and decoding processing method

    CN109618164A

  • Multi-link network transmission method and system

    CN115580379A

  • Video transmission method and device, equipment and storage medium

    CN116405716A

Cited By

  • Coding parameter adjusting method and electronic equipment

    CN119653093A