Search

CN-122027826-A - Video stream transmission method and device, storage medium and electronic equipment

CN122027826ACN 122027826 ACN122027826 ACN 122027826ACN-122027826-A

Abstract

The application discloses a video stream transmission method, a device, a storage medium and an electronic device, wherein the application receives a multi-layer video stream aiming at target video content sent from a video release end through a server, the video resolutions of at least two layers of video streams are different, determines a video subscription end for receiving the target video content, determines the downlink bandwidths of the server and all video subscription ends, determining the transmission bit rate corresponding to each layer of video stream respectively, determining a target video stream aiming at each video subscriber terminal from the multi-layer video streams based on the downlink bandwidth and the transmission bit rate corresponding to each layer of video stream respectively, and sending the corresponding target video stream to each video subscriber terminal so as to play the target video content. The application can ensure the continuity of video stream transmission by collecting the multi-layer video stream aiming at the target video sent by the video sending end and sending the target video to the video subscribing end by adapting the video stream with corresponding bit rate according to the network bandwidth condition of the video subscribing end.

Inventors

  • LIU PENGKUN
  • LI MIN
  • LIU YANQING
  • LIU XIANQI

Assignees

  • 北京三六零智领科技有限公司

Dates

Publication Date
20260512
Application Date
20241111

Claims (10)

  1. 1. A video streaming method, applied to a server, comprising: Receiving a plurality of layers of video streams aiming at target video content and sent from a video release end, wherein the video resolutions of at least two layers of video streams are different; determining a video subscription end for receiving the target video content, determining downlink bandwidths of the server and all the video subscription ends, and determining transmission bit rates corresponding to each layer of video streams respectively; And determining a target video stream aiming at each video subscriber terminal from the video streams of multiple layers based on the downlink bandwidth and the transmission bit rate respectively corresponding to the video streams of each layer, and sending the corresponding target video stream to each video subscriber terminal so as to play the target video content.
  2. 2. The method according to claim 1, wherein determining a target video stream for each video subscriber from the multiple layers of video streams based on the downstream bandwidth and the transmission bit rate respectively corresponding to each layer of the video streams comprises: determining video stream pushing modes for all video subscribers based on the multiple layers of video streams; determining the transmission occupied bandwidth of the video stream pushing mode according to the transmission bit rate corresponding to each layer of the video stream respectively; selecting at least one candidate video stream push mode with the transmission occupied bandwidth smaller than or equal to the downlink bandwidth; And determining the target video stream pushing mode from the candidate video stream pushing modes, and determining a target video stream for each video subscriber terminal based on the target video stream pushing mode.
  3. 3. The method according to claim 2, wherein the determining the transmission occupied bandwidth of the video stream push mode according to the transmission bit rate corresponding to each layer of the video stream respectively comprises: And determining the transmission occupied bandwidth of the video stream pushing mode based on the distributed video stream corresponding to each video subscription terminal in the video stream pushing mode and the transmission bit rate corresponding to the distributed video stream.
  4. 4. The method of claim 2, wherein the determining the target video stream push mode from the candidate video stream push modes comprises: calculating the sum of transmission bit rates corresponding to all video subscription ends in each candidate video stream pushing mode to obtain the total transmission bit rate corresponding to each candidate video stream pushing mode; And selecting a candidate video stream pushing mode corresponding to the maximum total transmission bit rate as the target video stream pushing mode.
  5. 5. The method of claim 2, wherein the determining the target video stream push mode from the candidate video stream push modes comprises: Selecting a preset video stream pushing mode of a preset mode type from the candidate video stream pushing modes, wherein each video subscription end in the preset mode type video stream pushing mode has the same distributed video stream; And selecting a preset video stream pushing mode corresponding to the maximum transmission bit rate as the target video stream pushing mode.
  6. 6. The method of claim 1, wherein said determining the downstream bandwidth of the video subscribers to all of the target video content comprises: And acquiring the predicted bandwidth information of the video subscribers of all the target video contents, and determining the downlink bandwidth of the video subscribers of all the target video contents based on the predicted bandwidth information.
  7. 7. The method according to claim 1, wherein the method further comprises: Monitoring the current downlink bandwidths of the server and all the video subscription terminals; determining a next target video stream corresponding to each video transmitting end from the multiple layers of video streams based on the current downlink bandwidth and the transmission bit rate; And when the next key frame in the target next video stream sent by the video sending end is detected, carrying out video stream switching processing on the video subscription end based on the next target video stream.
  8. 8. A video streaming apparatus, comprising: The receiving module is used for receiving the multi-layer video streams aiming at the target video content and sent from the video release end, and the video resolutions of at least two layers of video streams are different; The determining module is used for determining a video subscription end for receiving the target video content, determining downlink bandwidths of the server and all the video subscription ends, and determining transmission bit rates corresponding to each layer of video streams respectively; And the sending module is used for determining a target video stream aiming at each video subscriber terminal from the video streams of multiple layers based on the downlink bandwidth and the transmission bit rate corresponding to each video stream, and sending the corresponding target video stream to each video subscriber terminal so as to play the target video content.
  9. 9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when run on a computer, causes the computer to perform the video streaming method according to any of claims 1 to 7.
  10. 10. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to perform the video streaming method of any of claims 1 to 7 by invoking the computer program.

Description

Video stream transmission method and device, storage medium and electronic equipment Technical Field The present application relates to the field of communications technologies, and in particular, to a video streaming transmission method, a device, a storage medium, and an electronic apparatus. Background Currently, real-time video streaming is often required to be performed in a variety of network environments, including fixed broadband, mobile 4G/5G, wi-Fi, and the like. The bandwidth, delay and stability of these network environments vary, and present challenges for the transmission of audio and video streams. In the real-time audio and video field, not all users have fast enough network quality to receive high-quality video streams, especially when a "slow" user joins a conference, the user may suffer from a large number of data packet losses due to insufficient bandwidth, seriously affecting the video quality, and making the continuity of video stream transmission worse. Disclosure of Invention The embodiment of the application provides a video stream transmission method, a device, a storage medium and electronic equipment, which can ensure the continuity of video stream transmission and avoid the phenomenon of black screen or blocking. In a first aspect, an embodiment of the present application provides a video streaming method, including: Receiving a plurality of layers of video streams aiming at target video content and sent from a video release end, wherein the video resolutions of at least two layers of video streams are different; determining a video subscription end for receiving the target video content, determining downlink bandwidths of the server and all the video subscription ends, and determining transmission bit rates corresponding to each layer of video streams respectively; And determining a target video stream aiming at each video subscriber terminal from the video streams of multiple layers based on the downlink bandwidth and the transmission bit rate respectively corresponding to the video streams of each layer, and sending the corresponding target video stream to each video subscriber terminal so as to play the target video content. In one possible implementation manner, the determining, based on the downstream bandwidth and the transmission bit rate corresponding to each layer of the video stream, a target video stream for each video subscriber from multiple layers of the video streams includes: determining video stream pushing modes for all video subscribers based on the multiple layers of video streams; determining the transmission occupied bandwidth of the video stream pushing mode according to the transmission bit rate corresponding to each layer of the video stream respectively; selecting at least one candidate video stream push mode with the transmission occupied bandwidth smaller than or equal to the downlink bandwidth; And determining the target video stream pushing mode from the candidate video stream pushing modes, and determining a target video stream for each video subscriber terminal based on the target video stream pushing mode. In one possible implementation manner, the determining, according to the transmission bit rate corresponding to each layer of the video stream, the transmission occupied bandwidth of the video stream push mode includes: And determining the transmission occupied bandwidth of the video stream pushing mode based on the distributed video stream corresponding to each video subscription terminal in the video stream pushing mode and the transmission bit rate corresponding to the distributed video stream. In one possible implementation, the determining the target video stream push mode from the candidate video stream push modes includes: calculating the sum of transmission bit rates corresponding to all video subscription ends in each candidate video stream pushing mode to obtain the total transmission bit rate corresponding to each candidate video stream pushing mode; And selecting a candidate video stream pushing mode corresponding to the maximum total transmission bit rate as the target video stream pushing mode. In one possible implementation, the determining the target video stream push mode from the candidate video stream push modes includes: Selecting a preset video stream pushing mode of a preset mode type from the candidate video stream pushing modes, wherein each video subscription end in the preset mode type video stream pushing mode has the same distributed video stream; And selecting a preset video stream pushing mode corresponding to the maximum transmission bit rate as the target video stream pushing mode. In one possible implementation manner, the determining the downlink bandwidth of the video subscription end with all the target video contents includes: And acquiring the predicted bandwidth information of the video subscribers of all the target video contents, and determining the downlink bandwidth of the video subscribers of all the