CN117478934A - Video stream data transmission method and system - Google Patents

Video stream data transmission method and system Download PDF

Info

Publication number
CN117478934A
CN117478934A CN202311800706.1A CN202311800706A CN117478934A CN 117478934 A CN117478934 A CN 117478934A CN 202311800706 A CN202311800706 A CN 202311800706A CN 117478934 A CN117478934 A CN 117478934A
Authority
CN
China
Prior art keywords
video stream
stream data
transmission
bandwidth
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311800706.1A
Other languages
Chinese (zh)
Other versions
CN117478934B (en
Inventor
施建强
连峰
徐梦溪
王丹华
邱晓健
杨雨枝
邱正锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanchang Hang Tian Guang Xin Technology Co ltd
Nanjing Institute of Technology
Original Assignee
Nanchang Hang Tian Guang Xin Technology Co ltd
Nanjing Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanchang Hang Tian Guang Xin Technology Co ltd, Nanjing Institute of Technology filed Critical Nanchang Hang Tian Guang Xin Technology Co ltd
Priority to CN202311800706.1A priority Critical patent/CN117478934B/en
Publication of CN117478934A publication Critical patent/CN117478934A/en
Application granted granted Critical
Publication of CN117478934B publication Critical patent/CN117478934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2385Channel allocation; Bandwidth allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234363Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the spatial resolution, e.g. for clients with a lower screen resolution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video stream data transmission method and a system, wherein the method comprises the steps of determining the residual transmission space of a wireless transmission network based on the data characteristics of video stream data; transmitting video stream data to a waiting area of a wireless transmission network based on the residual transmission space and a preset transmission strategy; optimizing the bandwidth weight, and distributing corresponding transmission bandwidth for each video stream data based on the optimized bandwidth weight; determining a transmission state grade based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and performing self-adaptive compression on the video stream data based on the transmission state grade; the invention optimizes the bandwidth of the video stream data, can improve the transmission speed and efficiency of the video stream data, and simultaneously carries out self-adaptive compression on the video stream data so as to achieve the purpose of minimizing transmission delay and further shorten the data transmission delay.

Description

一种视频流数据传输方法及系统A video stream data transmission method and system

技术领域Technical field

本发明属于视频流传输的技术领域,具体地涉及一种视频流数据传输方法及系统。The invention belongs to the technical field of video stream transmission, and specifically relates to a video stream data transmission method and system.

背景技术Background technique

视频流是指视频数据的传输,它能够被作为一个稳定的和连续的流通过网络处理,因为流动,客户机浏览器或插件能够在整个文件被传输完成前显示多媒体数据。Video streaming refers to the transmission of video data that can be processed as a steady and continuous stream over the network. Because of the flow, the client browser or plug-in can display the multimedia data before the entire file has been transferred.

在现有的视频流数据传输过程中,存在带宽分配不合理的问题,进而导致多个视频流数据在共享同一传输路径时,容易存在拥堵的情况,进而影响视频流数据的传输速度与效率,同时现有技术中因视频流数据过大、可用带宽低、带宽波动幅度大的问题,进而影响视频流数据传输的过程,导致传输时延增加,影响传输效率。In the existing video stream data transmission process, there is a problem of unreasonable bandwidth allocation, which leads to congestion when multiple video stream data share the same transmission path, thus affecting the transmission speed and efficiency of video stream data. At the same time, problems in the existing technology include excessive video stream data, low available bandwidth, and large bandwidth fluctuations, which further affect the video stream data transmission process, resulting in an increase in transmission delay and affecting transmission efficiency.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供了一种视频流数据传输方法及系统,用于解决现有技术中的技术问题。In order to solve the above technical problems, the present invention provides a video stream data transmission method and system to solve the technical problems in the existing technology.

一方面,本发明提供以下技术方案,一种视频流数据传输方法,包括:On the one hand, the present invention provides the following technical solution, a video stream data transmission method, including:

获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;Obtain the video stream data to be transmitted sent by the sender, and determine the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data;

基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;Transmit the video stream data to the waiting area of the wireless transmission network based on the remaining transmission space and the preset transmission strategy;

为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;Pre-allocate a bandwidth weight to each of the video stream data and optimize the bandwidth weight to obtain an optimized bandwidth weight, and allocate a corresponding transmission bandwidth to each of the video stream data based on the optimized bandwidth weight;

基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;Determine a transmission status level based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and adaptively compress the video stream data based on the transmission status level to obtain compressed video stream data;

根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方;Update the definition of the compressed video stream data according to the remaining receiving capacity of the receiver, and transmit the updated compressed video stream data in the waiting area to the receiver based on the transmission bandwidth of the video stream data;

其中,所述基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间的步骤包括:Wherein, the step of determining the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data includes:

采用第一预设公式并基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间,其中,第一预设公式为:Using a first preset formula and determining the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data , where the first preset formula is:

;

式中,为仍在传输的数据包数量,/>为比例因子,/>为发送方到无线传输网络的传输时延,/>为平均到达间隔时间。In the formula, is the number of packets still being transmitted,/> is the scaling factor,/> is the transmission delay from the sender to the wireless transmission network,/> is the average inter-arrival time.

相比现有技术,本发明的有益效果为:本发明首先获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;之后基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;而后为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;然后基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;最后根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方,本发明通过对视频流数据的带宽进行优化,使得每个视频流数据对应匹配合理的带宽,以提升视频流数据的传输速度与效率,同时本发明根据带宽对视频流数据进行自适应压缩,以达到最小化传输时延的目的,进一步缩短数据传输时延。Compared with the existing technology, the beneficial effects of the present invention are: the present invention first obtains the video stream data sent by the sender to be transmitted, and determines the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data; and then based on the The remaining transmission space and the preset transmission strategy are used to transmit the video stream data to the storage area of the wireless transmission network; and then a bandwidth weight is pre-allocated for each video stream data and the bandwidth weight is optimized, so as to Obtain the optimized bandwidth weight, allocate corresponding transmission bandwidth to each video stream data based on the optimized bandwidth weight; then determine the transmission status level based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and determine the transmission status level based on the transmission bandwidth. The state level performs adaptive compression on the video stream data to obtain compressed video stream data; finally, the definition of the compressed video stream data is updated according to the remaining receiving capacity of the receiver, based on the transmission of the video stream data Bandwidth transmits the updated compressed video stream data in the waiting area to the receiver. The present invention optimizes the bandwidth of the video stream data so that each video stream data matches a reasonable bandwidth to improve the video stream data. The transmission speed and efficiency are high. At the same time, the present invention adaptively compresses the video stream data according to the bandwidth to achieve the purpose of minimizing the transmission delay and further shortening the data transmission delay.

较佳的,所述基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域的步骤包括:Preferably, the step of transmitting the video stream data to the waiting area of the wireless transmission network based on the remaining transmission space and a preset transmission strategy includes:

计算所述视频流数据的传输所占空间Calculate the space occupied by the transmission of the video stream data :

;

式中,为视频流数据中最后一个视频帧的长度,/>为增量系数,/>为视频流数据的帧率,/>为发送方到无线传输网络的传输时延;In the formula, is the length of the last video frame in the video stream data,/> is the increment coefficient,/> is the frame rate of video stream data,/> is the transmission delay from the sender to the wireless transmission network;

判断所述视频流数据的传输所占空间是否小于无线传输网络的剩余传输空间Determine the space occupied by the transmission of the video stream data Is it less than the remaining transmission space of the wireless transmission network? ;

若所述视频流数据的传输所占空间小于无线传输网络的剩余传输空间/>,则判断排队时延差值/>是否小于判断阈值/>,若排队时延差值/>小于判断阈值/>,则提升所述视频流数据的视频质量,若排队时延差值/>不小于判断阈值/>,则维持所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域;If the space occupied by the transmission of the video stream data Less than the remaining transmission space of the wireless transmission network/> , then determine the queuing delay difference/> Is it less than the judgment threshold/> , if the queuing delay difference/> Less than the judgment threshold/> , then the video quality of the video stream data is improved. If the queuing delay difference/> Not less than the judgment threshold/> , then maintain the video quality of the video stream data to transmit the video stream data to the storage area of the wireless transmission network;

若所述视频流数据的传输所占空间不小于无线传输网络的剩余传输空间/>,则降低所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域。If the space occupied by the transmission of the video stream data Not less than the remaining transmission space of the wireless transmission network/> , then the video quality of the video stream data is reduced to transmit the video stream data to the storage area of the wireless transmission network.

较佳的,所述为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽的步骤包括:Preferably, the bandwidth weight is pre-allocated to each of the video stream data and the bandwidth weight is optimized to obtain an optimized bandwidth weight, and a corresponding bandwidth weight is allocated to each of the video stream data based on the optimized bandwidth weight. The steps to transfer bandwidth include:

为每个所述视频流数据预先分配对应的带宽权重,通过第一预设算法对视频流数据进行比特率决策,以得到第一特征信息;Pre-allocate a corresponding bandwidth weight to each of the video stream data, and make a bit rate decision on the video stream data through a first preset algorithm to obtain the first feature information;

计算每个所述视频流数据的第二特征信息Calculate second feature information of each video stream data :

;

式中,、/>表示第/>个、第/>个视频流数据的感知质量,/>为第/>个视频流数据重新缓冲时间,/>为第一惩罚系数,/>为第二惩罚系数;In the formula, ,/> Indicates the first/> No., No./> The perceived quality of video stream data,/> For the first/> video stream data rebuffering time,/> is the first penalty coefficient,/> is the second penalty coefficient;

通过第二预设算法并根据所述第一特征信息与所述第二特征信息对所述带宽权重进行优化,以得到优化带宽权重;Optimize the bandwidth weight through a second preset algorithm and according to the first feature information and the second feature information to obtain an optimized bandwidth weight;

使用拥塞控制算法为每个所述视频流数据分配对应的传输带宽。A congestion control algorithm is used to allocate corresponding transmission bandwidth to each video stream data.

较佳的,所述基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据的步骤包括:Preferably, the transmission status level is determined based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and the video stream data is adaptively compressed based on the transmission status level to obtain the compressed video stream data. Steps include:

确定所述无线传输网络的传输链路数量,并基于所述传输链路数量/>计算接收方的可用带宽/>Determine the number of transmission links of the wireless transmission network , and based on the number of transmission links/> Calculate the available bandwidth at the receiver/> :

,/> ,/> ;

式中,为第/>个传输链路的传输开始时间,/>为第/>个传输链路的传输终止时间,/>为第/>个传输链路的总传输量;In the formula, For the first/> The transmission start time of each transmission link,/> For the first/> The transmission termination time of a transmission link,/> For the first/> The total transmission volume of each transmission link;

基于所述视频流数据的传输带宽与接收方的可用带宽/>计算带宽差值/>Transmission bandwidth based on the video stream data available bandwidth with the receiver/> Calculate bandwidth difference/> :

;

,则以第一压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第二压缩率为固定压缩量对所述视频流数据进行压缩,若,则以第三压缩率为固定压缩量对所述视频流数据进行压缩,若,则以第四压缩率为固定压缩量对所述视频流数据进行压缩,若,则以第五压缩率为固定压缩量对所述视频流数据进行压缩,其中,为带宽均值。like , then the video stream data is compressed with a fixed compression amount at the first compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the second compression rate, if , then the video stream data is compressed with a fixed compression amount at the third compression rate, if , then the video stream data is compressed with a fixed compression amount at the fourth compression rate, if , then the video stream data is compressed with a fixed compression amount at the fifth compression rate, where, is the bandwidth average.

较佳的,所述根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方的步骤包括:Preferably, the definition of the compressed video stream data is updated according to the remaining receiving capacity of the receiver, and the updated compressed video stream data in the waiting area is transmitted based on the transmission bandwidth of the video stream data. The steps to the recipient include:

将最大清晰度等级的压缩视频流数据存入第一视频组中,将其余压缩视频流数据存入第二视频组中;Store the compressed video stream data of the maximum definition level in the first video group, and store the remaining compressed video stream data in the second video group;

将所述第二视频组中的压缩视频流数据进行预传输,并更新所述接收方的剩余接受容量与计算能力/>,以得到第一剩余接受容量/>与第一计算能力/>Pre-transmit the compressed video stream data in the second video group, and update the remaining receiving capacity of the receiver and computing power/> , to get the first remaining acceptance capacity/> with first computing power/> ;

判断第一剩余接受容量是否大于容量阈值并生成判断结果,基于所述判断结果对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。Determine the first remaining acceptance capacity Whether it is greater than the capacity threshold and generate a judgment result, perform a definition update on the compressed video stream data based on the judgment result, and transmit the updated compressed video stream data in the waiting area to the storage area based on the transmission bandwidth of the video stream data. the recipient.

较佳的,所述判断第一剩余接受容量是否大于容量阈值并生成判断结果,基于所述判断结果对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方的步骤包括:Preferably, the judgment of the first remaining accepting capacity is Whether it is greater than the capacity threshold and generate a judgment result, perform a definition update on the compressed video stream data based on the judgment result, and transmit the updated compressed video stream data in the waiting area to the storage area based on the transmission bandwidth of the video stream data. The steps on the receiving side include:

若第一剩余接受容量大于容量阈值,则在所述第二视频组中选取第一改变压缩视频流数据,并对所述第一改变压缩视频流数据进行迭代升级处理,并迭代更新第一剩余接受容量/>与第一计算能力/>If the first remaining acceptance capacity is greater than the capacity threshold, select the first changed compressed video stream data from the second video group, perform an iterative upgrade process on the first changed compressed video stream data, and iteratively update the first remaining accepted capacity/> with first computing power/> ;

判断所述第一改变压缩视频流数据是否达到最大清晰度等级,若所述第一改变压缩视频流数据达到最大清晰度等级,则将第一改变压缩视频流数据移入第一视频组中,直至第一剩余接受容量不大于容量阈值;Determine whether the first changed compressed video stream data reaches the maximum definition level, and if the first changed compressed video stream data reaches the maximum definition level, then move the first changed compressed video stream data into the first video group until First remaining receiving capacity Not greater than the capacity threshold;

若第一剩余接受容量不大于容量阈值,则判断迭代更新后第一计算能力/>是否大于计算阈值;If the first remaining acceptance capacity is not greater than the capacity threshold, then determine the first computing capability after iterative update/> Whether it is greater than the calculation threshold;

若迭代更新后第一计算能力不大于计算阈值,则在所述第二视频组中选取第二改变压缩视频流数据,并对所述第二改变压缩视频流数据进行迭代降级处理,并重复迭代更新第一计算能力/>,直至第一计算能力/>大于计算阈值;If the first computing power after iterative update is not greater than the calculation threshold, then select the second changed compressed video stream data in the second video group, perform iterative degradation processing on the second changed compressed video stream data, and repeatedly iteratively update the first computing capability/> , up to the first computing power/> greater than the calculation threshold;

当所述第二视频组中压缩视频流数据更新完毕后,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。After the compressed video stream data in the second video group is updated, the updated compressed video stream data in the waiting area is transmitted to the receiver based on the transmission bandwidth of the video stream data.

第二方面,本发明提供以下技术方案,一种视频流数据传输系统,所述系统包括:In a second aspect, the present invention provides the following technical solution, a video stream data transmission system, the system includes:

数据获取模块,用于获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;A data acquisition module, used to acquire the video stream data to be transmitted sent by the sender, and determine the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data;

传输空间确定模块,用于基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;A transmission space determination module, configured to transmit the video stream data to the waiting area of the wireless transmission network based on the remaining transmission space and a preset transmission strategy;

带宽优化模块,用于为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;A bandwidth optimization module, configured to pre-allocate a bandwidth weight to each of the video stream data and optimize the bandwidth weight to obtain an optimized bandwidth weight, and allocate a corresponding bandwidth to each of the video stream data based on the optimized bandwidth weight. transmission bandwidth;

数据压缩模块,用于基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;A data compression module, configured to determine a transmission status level based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and adaptively compress the video stream data based on the transmission status level to obtain compressed video stream data;

数据传输模块,用于根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。A data transmission module, configured to update the definition of the compressed video stream data according to the remaining receiving capacity of the receiver, and transmit the updated compressed video stream data in the waiting area based on the transmission bandwidth of the video stream data. to the recipient.

第三方面,本发明提供以下技术方案,一种计算机,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述的视频流数据传输方法。In a third aspect, the present invention provides the following technical solution: a computer, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program Implement the video stream data transmission method as described above.

第四方面,本发明提供以下技术方案,一种存储介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的视频流数据传输方法。In a fourth aspect, the present invention provides the following technical solution, a storage medium, a computer program is stored on the storage medium, and when the computer program is executed by a processor, the above video stream data transmission method is implemented.

附图说明Description of the drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings in the following description are only illustrative of the present invention. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1为本发明实施例一提供的视频流数据传输方法的流程图;Figure 1 is a flow chart of a video stream data transmission method provided by Embodiment 1 of the present invention;

图2为本发明实施例一提供的视频流数据传输方法中步骤S2的详细流程图;Figure 2 is a detailed flow chart of step S2 in the video stream data transmission method provided by Embodiment 1 of the present invention;

图3为本发明实施例一提供的视频流数据传输方法中步骤S3的详细流程图;Figure 3 is a detailed flow chart of step S3 in the video stream data transmission method provided by Embodiment 1 of the present invention;

图4为本发明实施例一提供的视频流数据传输方法中步骤S4的详细流程图;Figure 4 is a detailed flow chart of step S4 in the video stream data transmission method provided by Embodiment 1 of the present invention;

图5为本发明实施例一提供的视频流数据传输方法中步骤S5的详细流程图;Figure 5 is a detailed flow chart of step S5 in the video stream data transmission method provided by Embodiment 1 of the present invention;

图6为本发明实施例一提供的视频流数据传输方法中步骤S53的详细流程图;Figure 6 is a detailed flow chart of step S53 in the video stream data transmission method provided by Embodiment 1 of the present invention;

图7为本发明实施例二提供的视频流数据传输系统的结构框图;Figure 7 is a structural block diagram of a video stream data transmission system provided by Embodiment 2 of the present invention;

图8为本发明另一实施例提供的计算机的硬件结构示意图。FIG. 8 is a schematic diagram of the hardware structure of a computer provided by another embodiment of the present invention.

以下将结合附图对本发明实施例作进一步说明。The embodiments of the present invention will be further described below with reference to the accompanying drawings.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明的实施例,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary and are intended to explain the embodiments of the present invention and are not to be construed as limitations of the present invention.

在本发明实施例的描述中,需要理解的是,术语“长度”、“宽度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明实施例和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the embodiments of the present invention, it should be understood that the terms "length", "width", "upper", "lower", "front", "back", "left", "right", "vertical" ", "horizontal", "top", "bottom", "inner", "outer", etc. indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for convenience and simplicity in describing the embodiments of the present invention. The description does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore is not to be construed as a limitation of the invention.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明实施例的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present invention, "plurality" means two or more than two, unless otherwise explicitly and specifically limited.

在本发明实施例中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明实施例中的具体含义。In the embodiments of the present invention, unless otherwise expressly stipulated and limited, the terms "installation", "connection", "connection", "fixing" and other terms should be understood in a broad sense. For example, it can be a fixed connection or a removable connection. Disassembly and connection, or integration; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be an internal connection between two elements or an interaction between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present invention can be understood according to specific circumstances.

实施例一Embodiment 1

在本发明的实施例一中,如图1所示,一种视频流数据传输方法,包括:In Embodiment 1 of the present invention, as shown in Figure 1, a video stream data transmission method includes:

S1、获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;S1. Obtain the video stream data to be transmitted sent by the sender, and determine the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data;

具体的,待传输的视频流数据是一连串的视频数据,可具体拆解为一个完整视频分帧处理后得到的一连串带有帧间顺序的视频帧数据组,无线传输网络具体为无线局域网,此处的剩余传输空间为无线传输网络的总传输空间减去仍在传输的视频流数据所占传输空间的差值;Specifically, the video stream data to be transmitted is a series of video data, which can be specifically disassembled into a series of video frame data groups with inter-frame sequence obtained after a complete video frame processing. The wireless transmission network is specifically a wireless local area network. The remaining transmission space at is the difference between the total transmission space of the wireless transmission network minus the transmission space occupied by the video stream data that is still being transmitted;

其中,所述步骤S1具体包括:Among them, the step S1 specifically includes:

采用第一预设公式并基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间,其中,第一预设公式为:Using a first preset formula and determining the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data , where the first preset formula is:

;

式中,为仍在传输的数据包数量,/>为比例因子,/>为发送方到无线传输网络的传输时延,/>为平均到达间隔时间;In the formula, is the number of packets still being transmitted,/> is the scaling factor,/> is the transmission delay from the sender to the wireless transmission network,/> is the average inter-arrival time;

具体的,此处的为每个数据包所占的字节数,因此/>为无线传输网络的总传输空间,/>为仍在传输的视频流数据所占传输空间。Specifically, here is the number of bytes occupied by each packet, so/> is the total transmission space of the wireless transmission network,/> The transmission space occupied by the video stream data that is still being transmitted.

S2、基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;S2. Transmit the video stream data to the storage area of the wireless transmission network based on the remaining transmission space and the preset transmission strategy;

如图2所示,其中,所述步骤S2具体包括:As shown in Figure 2, step S2 specifically includes:

S21、计算所述视频流数据的传输所占空间S21. Calculate the space occupied by the transmission of the video stream data :

;

式中,为视频流数据中最后一个视频帧的长度,/>为增量系数,/>为视频流数据的帧率,/>为发送方到无线传输网络的传输时延;In the formula, is the length of the last video frame in the video stream data,/> is the increment coefficient,/> is the frame rate of video stream data,/> is the transmission delay from the sender to the wireless transmission network;

其中,取值为0.2。in, The value is 0.2.

S22、判断所述视频流数据的传输所占空间是否小于无线传输网络的剩余传输空间/>S22. Determine the space occupied by the transmission of the video stream data. Is it less than the remaining transmission space of the wireless transmission network/> .

S23、若所述视频流数据的传输所占空间小于无线传输网络的剩余传输空间/>,则判断排队时延差值/>是否小于判断阈值/>,若排队时延差值/>小于判断阈值/>,则提升所述视频流数据的视频质量,若排队时延差值/>不小于判断阈值/>,则维持所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域;S23. If the space occupied by the transmission of the video stream data Less than the remaining transmission space of the wireless transmission network/> , then determine the queuing delay difference/> Is it less than the judgment threshold/> , if the queuing delay difference/> Less than the judgment threshold/> , then the video quality of the video stream data is improved. If the queuing delay difference/> Not less than the judgment threshold/> , then maintain the video quality of the video stream data to transmit the video stream data to the storage area of the wireless transmission network;

具体的,当所述视频流数据的传输所占空间小于无线传输网络的剩余传输空间/>时,则意味着无线传输网络中存在足够传输该视频流数据的传输空间,但此时可能存在数据排列的情况,因此会存在一个排队时延,而排队时延差值/>即为在排队序列中当前传输的视频流数据的排队时延与下一个传输的视频流数据的排队时延之间的差值,因此当排队时延差值/>小于判断阈值/>时,则意味着排队时延处于正常的范围内,因此可以提升视频流数据的视频质量,而当排队时延差值/>不小于判断阈值/>时,则意味着此时排队时延处于波动状态,因此需要维持所述视频流数据的视频质量,进而使得排队时延更加稳定,以便于数据传输。Specifically, when the space occupied by the transmission of the video stream data Less than the remaining transmission space of the wireless transmission network/> time, it means that there is enough transmission space to transmit the video stream data in the wireless transmission network, but there may be data arrangement at this time, so there will be a queuing delay, and the queuing delay difference/> That is, the difference between the queuing delay of the currently transmitted video stream data and the queuing delay of the next transmitted video stream data in the queuing sequence, so when the queuing delay difference/> Less than the judgment threshold/> When, it means that the queuing delay is within the normal range, so the video quality of the video stream data can be improved, and when the queuing delay difference/> Not less than the judgment threshold/> time, it means that the queuing delay is in a fluctuating state at this time, so the video quality of the video stream data needs to be maintained, thereby making the queuing delay more stable to facilitate data transmission.

S24、若所述视频流数据的传输所占空间不小于无线传输网络的剩余传输空间,则降低所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域;S24. If the space occupied by the transmission of the video stream data Not less than the remaining transmission space of the wireless transmission network , then reduce the video quality of the video stream data to transmit the video stream data to the storage area of the wireless transmission network;

具体的,若所述视频流数据的传输所占空间不小于无线传输网络的剩余传输空间/>,则意味着无线传输网络的传输空间不足够传输该视频流数据,或者剩余空间刚好够传输,因此通过降低所述视频流数据的视频质量,进而缩小该视频流传输数据所占的传输空间,以避免出现该视频流数据占满整个传输空间,直至所述视频流数据的传输所占空间/>小于无线传输网络的剩余传输空间/>Specifically, if the space occupied by the transmission of the video stream data Not less than the remaining transmission space of the wireless transmission network/> , it means that the transmission space of the wireless transmission network is not enough to transmit the video stream data, or the remaining space is just enough for transmission. Therefore, by reducing the video quality of the video stream data, the transmission space occupied by the video stream transmission data is reduced. In order to prevent the video stream data from occupying the entire transmission space until the space occupied by the transmission of the video stream data/> Less than the remaining transmission space of the wireless transmission network/> .

S3、为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;S3. Pre-allocate a bandwidth weight to each of the video stream data and optimize the bandwidth weight to obtain an optimized bandwidth weight, and allocate a corresponding transmission bandwidth to each of the video stream data based on the optimized bandwidth weight;

如图3所示,其中,所述步骤S3包括:As shown in Figure 3, step S3 includes:

S31、为每个所述视频流数据预先分配对应的带宽权重,通过第一预设算法对视频流数据进行比特率决策,以得到第一特征信息;S31. Pre-allocate a corresponding bandwidth weight to each of the video stream data, and make a bit rate decision on the video stream data through the first preset algorithm to obtain the first feature information;

具体的,此处预先分配的带宽权重可通过拥塞控制协议为每个视频流数据分配对应的带宽权重,之后通过部署在无线传输网络上的ABS算法对视频流数据进行比特率决策,以得到视频流数据的观察值,即第一特征信息。Specifically, the pre-allocated bandwidth weight here can allocate the corresponding bandwidth weight to each video stream data through the congestion control protocol, and then make a bit rate decision on the video stream data through the ABS algorithm deployed on the wireless transmission network to obtain the video The observation value of the flow data is the first characteristic information.

S32、计算每个所述视频流数据的第二特征信息S32. Calculate the second characteristic information of each video stream data :

;

式中,、/>表示第/>个、第/>个视频流数据的感知质量,/>为第/>个视频流数据重新缓冲时间,/>为第一惩罚系数,/>为第二惩罚系数;In the formula, ,/> Indicates the first/> No., No./> The perceived quality of video stream data,/> For the first/> video stream data rebuffering time,/> is the first penalty coefficient,/> is the second penalty coefficient;

具体的,第二特征信息表示视频流数据的公平度,其用于表示每个视频流数据的顺序与视频特征信息。Specifically, the second feature information represents the fairness of the video stream data, which is used to represent the order and video feature information of each video stream data.

S33、通过第二预设算法并根据所述第一特征信息与所述第二特征信息对所述带宽权重进行优化,以得到优化带宽权重;S33. Optimize the bandwidth weight through the second preset algorithm and according to the first feature information and the second feature information to obtain the optimized bandwidth weight;

具体的,第二预设算法具体为多智能体深度强化学习算法(DRL算法),通过深度强化学习算法并根据所述第一特征信息与所述第二特征信息便可对所述带宽权重进行优化,即可得到一个新的优化带宽权重。Specifically, the second preset algorithm is a multi-agent deep reinforcement learning algorithm (DRL algorithm). The bandwidth weight can be calculated through the deep reinforcement learning algorithm and based on the first feature information and the second feature information. Optimize to get a new optimized bandwidth weight.

S34、使用拥塞控制算法为每个所述视频流数据分配对应的传输带宽;S34. Use a congestion control algorithm to allocate corresponding transmission bandwidth to each video stream data;

具体的,在得到优化带宽权重之后,便可根据拥塞控制算法为每个视频流数据分配对应的传输带宽。Specifically, after obtaining the optimized bandwidth weight, the corresponding transmission bandwidth can be allocated to each video stream data according to the congestion control algorithm.

S4、基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;S4. Determine the transmission status level based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and adaptively compress the video stream data based on the transmission status level to obtain compressed video stream data;

如图4所示,其中,所述步骤S4包括:As shown in Figure 4, step S4 includes:

S41、确定所述无线传输网络的传输链路数量,并基于所述传输链路数量/>计算接收方的可用带宽/>S41. Determine the number of transmission links of the wireless transmission network , and based on the number of transmission links/> Calculate the available bandwidth at the receiver/> :

,/> ,/> ;

式中,为第/>个传输链路的传输开始时间,/>为第/>个传输链路的传输终止时间,/>为第/>个传输链路的总传输量;In the formula, For the first/> The transmission start time of each transmission link,/> For the first/> The transmission termination time of a transmission link,/> For the first/> The total transmission volume of each transmission link;

具体的,在实际的视频流数据传输过程中,通过若干传输链路将视频流数据进行链式传输,因此接收方的可用带宽可通过第/>个传输链路的总传输量与第/>个传输链路完成传输所需总时间的比值确定。Specifically, in the actual video stream data transmission process, the video stream data is chain-transmitted through several transmission links, so the available bandwidth of the receiver Available via page/> The total transmission volume of the transmission link is the same as the The ratio of the total time required for each transmission link to complete transmission is determined.

S42、基于所述视频流数据的传输带宽与接收方的可用带宽/>计算带宽差值S42. Transmission bandwidth based on the video stream data available bandwidth with the receiver/> Calculate bandwidth difference :

.

S43、若,则以第一压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第二压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第三压缩率为固定压缩量对所述视频流数据进行压缩,若,则以第四压缩率为固定压缩量对所述视频流数据进行压缩,若,则以第五压缩率为固定压缩量对所述视频流数据进行压缩,其中,为带宽均值;S43. If , then the video stream data is compressed with a fixed compression amount at the first compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the second compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the third compression rate, if , then the video stream data is compressed with a fixed compression amount at the fourth compression rate, if , then the video stream data is compressed with a fixed compression amount at the fifth compression rate, where, is the bandwidth average;

具体的,当若时,此时传输网络处于满载状态,因此采用第一压缩率为固定压缩量对所述视频流数据进行压缩,此处的第一压缩量为视频流数据中的最大压缩率,若/>,此时传输网络处于重载状态,因此第二压缩率为固定压缩量对所述视频流数据进行压缩,此处的第二压缩率为1.2倍的压缩率均值,若,此时传输网络处于中载状态,则以第三压缩率为固定压缩量对所述视频流数据进行压缩,此处的第三压缩量为0.6倍的压缩量均值,若/>,此时传输网络处于轻载状态,则以第四压缩率为固定压缩量对所述视频流数据进行压缩,此处的第四压缩量为0.2倍的压缩量均值,若/>,此时传输网络处于空闲状态,则以第五压缩率为固定压缩量对所述视频流数据进行压缩,此处的第五压缩量为任意压缩率;Specific, if At this time, the transmission network is in a full load state, so the video stream data is compressed using a first compression rate and a fixed compression amount. The first compression amount here is the maximum compression rate in the video stream data. If/> , the transmission network is in an overloaded state at this time, so the video stream data is compressed with a fixed compression amount at the second compression rate. The second compression rate here is 1.2 times the average compression rate. If , at this time the transmission network is in a medium load state, then the video stream data is compressed with a third compression rate and a fixed compression amount, where the third compression amount is 0.6 times the average compression amount, if/> , at this time the transmission network is in a light load state, then the video stream data is compressed with a fourth compression rate and a fixed compression amount, where the fourth compression amount is 0.2 times the average compression amount, if/> , when the transmission network is in an idle state, the video stream data is compressed with a fifth compression rate and a fixed compression amount, where the fifth compression amount is an arbitrary compression rate;

需要说明的是,此处的压缩具体针对视频流数据的分辨率、网格尺寸。It should be noted that the compression here specifically targets the resolution and grid size of the video stream data.

S5、根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方;S5. Update the definition of the compressed video stream data according to the remaining receiving capacity of the receiver, and transmit the updated compressed video stream data in the waiting area to the receiver based on the transmission bandwidth of the video stream data. square;

如图5所示,其中,所述步骤S5包括:As shown in Figure 5, step S5 includes:

S51、将最大清晰度等级的压缩视频流数据存入第一视频组中,将其余压缩视频流数据存入第二视频组中;S51. Store the compressed video stream data of the maximum definition level into the first video group, and store the remaining compressed video stream data into the second video group;

具体的,第一视频组中存储着最大清晰度级别的压缩视频流数据,而第二视频组中存储着非最大清晰度级别的压缩视频流数据。Specifically, the first video group stores compressed video stream data with a maximum definition level, and the second video group stores compressed video stream data with a non-maximum definition level.

S52、将所述第二视频组中的压缩视频流数据进行预传输,并更新所述接收方的剩余接受容量与计算能力/>,以得到第一剩余接受容量/>与第一计算能力/>S52. Pre-transmit the compressed video stream data in the second video group, and update the remaining receiving capacity of the receiver. and computing power/> , to get the first remaining acceptance capacity/> with first computing power/> ;

具体的,第一剩余接受容量为接收方的剩余接受容量,而第一计算能力/>为接收方的计算能力,当第二视频组中的数据进行预传输之后,接收方的剩余接受容量/>与计算能力/>会对应发生改变,因此在对所述第二视频组中的压缩视频流数据进行预传输之后,需要对剩余接受容量/>与计算能力/>进行更新,便可得到第一剩余接受容量/>与第一计算能力/>Specifically, the first remaining acceptance capacity is the remaining receiving capacity of the receiver, and the first computing capability/> It is the computing power of the receiver. After the data in the second video group is pre-transmitted, the remaining receiving capacity of the receiver/> and computing power/> will change accordingly, so after pre-transmitting the compressed video stream data in the second video group, the remaining receiving capacity needs to be adjusted/> and computing power/> Update to get the first remaining acceptable capacity/> with first computing power/> .

S53、判断第一剩余接受容量是否大于容量阈值并生成判断结果,基于所述判断结果对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方;S53. Determine the first remaining accepting capacity Whether it is greater than the capacity threshold and generate a judgment result, perform a definition update on the compressed video stream data based on the judgment result, and transmit the updated compressed video stream data in the waiting area to the storage area based on the transmission bandwidth of the video stream data. the receiving party;

如图6所示,其中,所述步骤S53包括:As shown in Figure 6, step S53 includes:

S531、若第一剩余接受容量大于容量阈值,则在所述第二视频组中选取第一改变压缩视频流数据,并对所述第一改变压缩视频流数据进行迭代升级处理,并迭代更新第一剩余接受容量/>与第一计算能力/>S531. If the first remaining acceptable capacity is greater than the capacity threshold, select the first changed compressed video stream data from the second video group, perform an iterative upgrade process on the first changed compressed video stream data, and iteratively update the first remaining accepted capacity/> with first computing power/> ;

具体的,此处的容量阈值为0,当第一剩余接受容量大于0之后,此时意味着接收方可以继续接受视频流数据,因此可在所述第二视频组中选取第一改变压缩视频流数据,而第一改变压缩视频流数据选择方法为:Specifically, the capacity threshold here is 0. When the first remaining accepted capacity After it is greater than 0, it means that the receiver can continue to accept video stream data, so the first changed compressed video stream data can be selected in the second video group, and the first changed compressed video stream data selection method is:

;

式中,为第一改变压缩视频流数据,/>为第二视频组,/>为第/>个压缩视频流数据的优先度,/>为第/>个压缩视频流数据留存度,/>表示第/>个压缩视频流数据的比特率等级为/>,/>表示第/>个压缩视频流数据的比特率等级为/>In the formula, To first change the compressed video stream data,/> For the second video group,/> For the first/> The priority of compressed video stream data,/> For the first/> Compressed video stream data retention,/> Indicates the first/> The bitrate level of a compressed video stream data is/> ,/> Indicates the first/> The bitrate level of a compressed video stream data is/> ;

具体的,当确定第一改变压缩视频流数据之后,便可将第一改变压缩视频流数据进行升级处理,同时更新第一剩余接受容量与第一计算能力/>,此处更新后的第一剩余接受容量为/>,更新后的第一计算能力为,其中,/>为将第一改变压缩视频流数据的比特率等级转换为/>级的代价,/>为第一改变压缩视频流数据的比特率等级转换为/>级的代价,表示第一改变压缩视频流数据的比特率等级为/>,/>表示第一改变压缩视频流数据的比特率等级为/>Specifically, after the first changed compressed video stream data is determined, the first changed compressed video stream data can be upgraded and the first remaining accepted capacity can be updated at the same time. with first computing power/> , the updated first remaining accepted capacity is/> , the updated first computing power is , where,/> To convert the bitrate level of the first changed compressed video stream data to/> The price of level,/> For the first change the bitrate level of the compressed video stream data is converted to/> level price, Indicates that the bit rate level of the first changed compressed video stream data is/> ,/> Indicates that the bit rate level of the first changed compressed video stream data is/> .

S532、判断所述第一改变压缩视频流数据是否达到最大清晰度等级,若所述第一改变压缩视频流数据达到最大清晰度等级,则将第一改变压缩视频流数据移入第一视频组中,直至第一剩余接受容量不大于容量阈值;S532. Determine whether the first changed compressed video stream data reaches the maximum definition level. If the first changed compressed video stream data reaches the maximum definition level, move the first changed compressed video stream data into the first video group. , until the first remaining accepting capacity Not greater than the capacity threshold;

具体的,当第一改变压缩视频流数据达到最大清晰度等级,之后便可将第一改变压缩视频流数据从第二视频组中移除,将其移入第一视频组中,直至第一剩余接受容量不大于0。Specifically, when the first changed compressed video stream data reaches the maximum definition level, then the first changed compressed video stream data can be removed from the second video group and moved into the first video group until the first remaining Accept capacity Not greater than 0.

S533、若第一剩余接受容量不大于容量阈值,则判断迭代更新后第一计算能力是否大于计算阈值;S533. If the first remaining acceptable capacity is not greater than the capacity threshold, then determine the first computing capability after iterative update Whether it is greater than the calculation threshold;

具体的,此处的计算阈值为0;Specifically, the calculation threshold here is 0;

S534、若迭代更新后第一计算能力不大于计算阈值,则在所述第二视频组中选取第二改变压缩视频流数据,并对所述第二改变压缩视频流数据进行迭代降级处理,并重复迭代更新第一计算能力/>,直至第一计算能力/>大于计算阈值;S534. If the first computing power after iterative update is not greater than the calculation threshold, then select the second changed compressed video stream data in the second video group, perform iterative degradation processing on the second changed compressed video stream data, and repeatedly iteratively update the first computing capability/> , up to the first computing power/> Greater than the calculation threshold;

具体的,当第二改变压缩视频流数据确定之后,便可对所述第二改变压缩视频流数据进行迭代降级处理,其中,第二改变压缩视频流数据选择方法为:Specifically, after the second changed compressed video stream data is determined, the second changed compressed video stream data can be iteratively degraded, wherein the second changed compressed video stream data selection method is:

;

其中,表示第/>个压缩视频流数据的比特率等级为/>in, Indicates the first/> The bitrate level of a compressed video stream data is/> ;

之后对第二改变压缩视频流数据进行迭代降级处理,并对第一计算能力进行更新,且更新后的第一计算能力为/>,同时也需要对第一剩余接受容量/>进行更新,更新后的第一剩余接受容量为/>,之后继续判断第一计算能力/>是否小于0,若小于,则重复S534步骤,直至第一计算能力/>大于计算阈值,其中,/>为将第二改变压缩视频流数据的比特率等级转换为/>级的代价,为第二改变压缩视频流数据的比特率等级转换为/>级的代价,/>表示第二改变压缩视频流数据的比特率等级为/>,/>表示第二改变压缩视频流数据的比特率等级为/>Afterwards, iterative degradation processing is performed on the second changed compressed video stream data, and the first computing power Update is performed, and the updated first computing power is/> , and also need to accept the first remaining capacity/> Update is performed, and the first remaining accepted capacity after the update is/> , and then continue to judge the first computing ability/> Is it less than 0? If less, repeat step S534 until the first computing power/> is greater than the calculation threshold, where,/> To convert the bit rate level of the second changed compressed video stream data to/> level price, For a second change the bitrate level of the compressed video stream data is converted to/> The price of level,/> Indicates that the bit rate level of the second changed compressed video stream data is/> ,/> Indicates that the bit rate level of the second changed compressed video stream data is/> ;

S535、当所述第二视频组中压缩视频流数据更新完毕后,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。S535. After the compressed video stream data in the second video group is updated, transmit the updated compressed video stream data in the waiting area to the receiver based on the transmission bandwidth of the video stream data.

本发明实施例一提供的视频流数据传输方法,首先获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;之后基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;而后为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;然后基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;最后根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方,本发明通过对视频流数据的带宽进行优化,使得每个视频流数据对应匹配合理的带宽,以提升视频流数据的传输速度与效率,同时本发明根据带宽对视频流数据进行自适应压缩,以达到最小化传输时延的目的,进一步缩短数据传输时延。The video stream data transmission method provided in Embodiment 1 of the present invention first obtains the video stream data sent by the sender to be transmitted, and determines the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data; and then based on the remaining The transmission space and the preset transmission strategy transmit the video stream data to the storage area of the wireless transmission network; and then pre-allocate a bandwidth weight to each of the video stream data and optimize the bandwidth weight to obtain optimization Bandwidth weight, allocate corresponding transmission bandwidth to each video stream data based on the optimized bandwidth weight; then determine the transmission status level based on the transmission bandwidth of the video flow data and the available bandwidth of the receiver, based on the transmission status level Adaptively compress the video stream data to obtain compressed video stream data; finally update the definition of the compressed video stream data according to the remaining receiving capacity of the receiver, and update the compressed video stream data based on the transmission bandwidth of the video stream data. The updated compressed video stream data in the waiting area is transmitted to the receiver. The present invention optimizes the bandwidth of the video stream data so that each video stream data matches a reasonable bandwidth to improve the transmission of video stream data. Speed and efficiency. At the same time, the present invention adaptively compresses the video stream data according to the bandwidth to achieve the purpose of minimizing the transmission delay and further shortening the data transmission delay.

实施例二Embodiment 2

如图7所示,在本发明的实施例二提供了一种视频流数据传输系统,所述系统包括:As shown in Figure 7, a video stream data transmission system is provided in Embodiment 2 of the present invention. The system includes:

数据获取模块1,用于获取发送方发送出的待传输的视频流数据,基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间;The data acquisition module 1 is used to acquire the video stream data to be transmitted sent by the sender, and determine the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data;

传输空间确定模块2,用于基于所述剩余传输空间与预设传输策略将所述视频流数据传输至所述无线传输网络的待存区域;Transmission space determination module 2, configured to transmit the video stream data to the waiting area of the wireless transmission network based on the remaining transmission space and the preset transmission strategy;

带宽优化模块3,用于为每个所述视频流数据预先分配带宽权重并对所述带宽权重进行优化,以得到优化带宽权重,基于所述优化带宽权重为每个所述视频流数据分配对应的传输带宽;Bandwidth optimization module 3, configured to pre-allocate a bandwidth weight to each of the video stream data and optimize the bandwidth weight to obtain an optimized bandwidth weight, and allocate a corresponding bandwidth to each of the video stream data based on the optimized bandwidth weight. transmission bandwidth;

数据压缩模块4,用于基于所述视频流数据的传输带宽与接收方的可用带宽确定传输状态等级,基于所述传输状态等级对所述视频流数据进行自适应压缩,以得到压缩视频流数据;Data compression module 4, configured to determine a transmission status level based on the transmission bandwidth of the video stream data and the available bandwidth of the receiver, and perform adaptive compression on the video stream data based on the transmission status level to obtain compressed video stream data. ;

数据传输模块5,用于根据所述接收方的剩余接收容量对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。Data transmission module 5, configured to update the definition of the compressed video stream data according to the remaining receiving capacity of the receiver, and store the updated compressed video stream data in the waiting area based on the transmission bandwidth of the video stream data. transmitted to the recipient.

所述数据获取模块1具体用于:The data acquisition module 1 is specifically used for:

采用第一预设公式并基于所述视频流数据的数据特征确定无线传输网络的剩余传输空间,其中,第一预设公式为:Using a first preset formula and determining the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data , where the first preset formula is:

;

式中,为仍在传输的数据包数量,/>为比例因子,/>为发送方到无线传输网络的传输时延,/>为平均到达间隔时间。In the formula, is the number of packets still being transmitted,/> is the scaling factor,/> is the transmission delay from the sender to the wireless transmission network,/> is the average inter-arrival time.

所述传输空间确定模块2包括:The transmission space determination module 2 includes:

空间计算子模块,用于计算所述视频流数据的传输所占空间Space calculation submodule, used to calculate the space occupied by the transmission of the video stream data :

;

式中,为视频流数据中最后一个视频帧的长度,/>为增量系数,/>为视频流数据的帧率,/>为发送方到无线传输网络的传输时延;In the formula, is the length of the last video frame in the video stream data,/> is the increment coefficient,/> is the frame rate of video stream data,/> is the transmission delay from the sender to the wireless transmission network;

第一判断子模块,用于判断所述视频流数据的传输所占空间是否小于无线传输网络的剩余传输空间/>The first judgment sub-module is used to judge the space occupied by the transmission of the video stream data. Is it less than the remaining transmission space of the wireless transmission network/> ;

第一质量调整子模块,用于若所述视频流数据的传输所占空间小于无线传输网络的剩余传输空间/>,则判断排队时延差值/>是否小于判断阈值/>,若排队时延差值小于判断阈值/>,则提升所述视频流数据的视频质量,若排队时延差值/>不小于判断阈值/>,则维持所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域;The first quality adjustment sub-module is used to adjust the space occupied by the transmission of the video stream data. Less than the remaining transmission space of the wireless transmission network/> , then determine the queuing delay difference/> Is it less than the judgment threshold/> , if the queuing delay difference Less than the judgment threshold/> , then the video quality of the video stream data is improved. If the queuing delay difference/> Not less than the judgment threshold/> , then maintain the video quality of the video stream data to transmit the video stream data to the storage area of the wireless transmission network;

第二质量调整子模块,用于若所述视频流数据的传输所占空间不小于无线传输网络的剩余传输空间/>,则降低所述视频流数据的视频质量,以将所述视频流数据传输至所述无线传输网络的待存区域。The second quality adjustment sub-module is used to adjust the space occupied by the transmission of the video stream data. Not less than the remaining transmission space of the wireless transmission network/> , then the video quality of the video stream data is reduced to transmit the video stream data to the storage area of the wireless transmission network.

所述带宽优化模块3包括:The bandwidth optimization module 3 includes:

预分配子模块,用于为每个所述视频流数据预先分配对应的带宽权重,通过第一预设算法对视频流数据进行比特率决策,以得到第一特征信息;A pre-allocation sub-module, used to pre-allocate a corresponding bandwidth weight to each of the video stream data, and make a bit rate decision on the video stream data through a first preset algorithm to obtain the first feature information;

特征信息子模块,用于计算每个所述视频流数据的第二特征信息Feature information submodule, used to calculate the second feature information of each video stream data :

;

式中,、/>表示第/>个、第/>个视频流数据的感知质量,/>为第/>个视频流数据重新缓冲时间,/>为第一惩罚系数,/>为第二惩罚系数;In the formula, ,/> Indicates the first/> No., No./> The perceived quality of video stream data,/> For the first/> video stream data rebuffering time,/> is the first penalty coefficient,/> is the second penalty coefficient;

优化子模块,用于通过第二预设算法并根据所述第一特征信息与所述第二特征信息对所述带宽权重进行优化,以得到优化带宽权重;An optimization submodule configured to optimize the bandwidth weight through a second preset algorithm and according to the first feature information and the second feature information to obtain an optimized bandwidth weight;

分配子模块,用于使用拥塞控制算法为每个所述视频流数据分配对应的传输带宽。An allocation submodule is configured to use a congestion control algorithm to allocate corresponding transmission bandwidth to each of the video stream data.

所述数据压缩模块4包括:The data compression module 4 includes:

带宽确定子模块,用于确定所述无线传输网络的传输链路数量,并基于所述传输链路数量/>计算接收方的可用带宽/>Bandwidth determination submodule, used to determine the number of transmission links of the wireless transmission network , and based on the number of transmission links/> Calculate the available bandwidth at the receiver/> :

,/> ,/> ;

式中,为第/>个传输链路的传输开始时间,/>为第/>个传输链路的传输终止时间,/>为第/>个传输链路的总传输量;In the formula, For the first/> The transmission start time of each transmission link,/> For the first/> The transmission termination time of a transmission link,/> For the first/> The total transmission volume of each transmission link;

差值子模块,用于基于所述视频流数据的传输带宽与接收方的可用带宽/>计算带宽差值/>Difference submodule, used for transmission bandwidth based on the video stream data available bandwidth with the receiver/> Calculate bandwidth difference/> :

;

压缩子模块,用于若,则以第一压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第二压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第三压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第四压缩率为固定压缩量对所述视频流数据进行压缩,若/>,则以第五压缩率为固定压缩量对所述视频流数据进行压缩,其中,/>为带宽均值。Compression submodule, used if , then the video stream data is compressed with a fixed compression amount at the first compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the second compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the third compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the fourth compression rate, if/> , then the video stream data is compressed with a fixed compression amount at the fifth compression rate, where,/> is the bandwidth average.

所述数据传输模块5包括:The data transmission module 5 includes:

视频组子模块,用于将最大清晰度等级的压缩视频流数据存入第一视频组中,将其余压缩视频流数据存入第二视频组中;The video group submodule is used to store the compressed video stream data of the maximum definition level into the first video group, and store the remaining compressed video stream data into the second video group;

迭代子模块,用于将所述第二视频组中的压缩视频流数据进行预传输,并更新所述接收方的剩余接受容量与计算能力/>,以得到第一剩余接受容量/>与第一计算能力/>Iterative sub-module, used to pre-transmit the compressed video stream data in the second video group and update the remaining receiving capacity of the receiver and computing power/> , to get the first remaining acceptance capacity/> with first computing power/> ;

第二判断子模块,用于判断第一剩余接受容量是否大于容量阈值并生成判断结果,基于所述判断结果对所述压缩视频流数据进行清晰度更新,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。The second judgment sub-module is used to judge the first remaining acceptance capacity Whether it is greater than the capacity threshold and generate a judgment result, perform a definition update on the compressed video stream data based on the judgment result, and transmit the updated compressed video stream data in the waiting area to the storage area based on the transmission bandwidth of the video stream data. the recipient.

所述第二判断子模块包括:The second judgment sub-module includes:

升级单元,用于若第一剩余接受容量大于容量阈值,则在所述第二视频组中选取第一改变压缩视频流数据,并对所述第一改变压缩视频流数据进行迭代升级处理,并迭代更新第一剩余接受容量/>与第一计算能力/>Upgrade unit for if the first remaining capacity is accepted is greater than the capacity threshold, select the first changed compressed video stream data from the second video group, perform an iterative upgrade process on the first changed compressed video stream data, and iteratively update the first remaining accepted capacity/> with first computing power/> ;

第一判断单元,用于判断所述第一改变压缩视频流数据是否达到最大清晰度等级,若所述第一改变压缩视频流数据达到最大清晰度等级,则将第一改变压缩视频流数据移入第一视频组中,直至第一剩余接受容量不大于容量阈值;The first judgment unit is used to judge whether the first changed compressed video stream data reaches the maximum definition level, and if the first changed compressed video stream data reaches the maximum definition level, move the first changed compressed video stream data into The first video group, until the first remaining accepted capacity Not greater than the capacity threshold;

第二判断单元,用于若第一剩余接受容量不大于容量阈值,则判断迭代更新后第一计算能力/>是否大于计算阈值;The second judgment unit is used to determine if the first remaining acceptance capacity is not greater than the capacity threshold, then determine the first computing capability after iterative update/> Whether it is greater than the calculation threshold;

降级单元,用于若迭代更新后第一计算能力不大于计算阈值,则在所述第二视频组中选取第二改变压缩视频流数据,并对所述第二改变压缩视频流数据进行迭代降级处理,并重复迭代更新第一计算能力/>,直至第一计算能力/>大于计算阈值;Degraded unit, used for the first computing power after iterative update is not greater than the calculation threshold, then select the second changed compressed video stream data in the second video group, perform iterative degradation processing on the second changed compressed video stream data, and repeatedly iteratively update the first computing capability/> , up to the first computing power/> greater than the calculation threshold;

传输单元,用于当所述第二视频组中压缩视频流数据更新完毕后,基于所述视频流数据的传输带宽将待存区域中的更新后的压缩视频流数据传输至所述接收方。A transmission unit configured to transmit the updated compressed video stream data in the waiting area to the recipient based on the transmission bandwidth of the video stream data after the compressed video stream data in the second video group is updated.

在本发明的另一些实施例中,本发明实施例提供以下技术方案,一种计算机,包括存储器102、处理器101以及存储在所述存储器102上并可在所述处理器101上运行的计算机程序,所述处理器101执行所述计算机程序时实现如上所述的视频流数据传输方法。In other embodiments of the present invention, embodiments of the present invention provide the following technical solution: a computer including a memory 102, a processor 101, and a computer stored on the memory 102 and capable of running on the processor 101 Program, when the processor 101 executes the computer program, the video stream data transmission method as described above is implemented.

具体的,上述处理器101可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。Specifically, the above-mentioned processor 101 may include a central processing unit (CPU), or an Application Specific Integrated Circuit (ASIC for short), or may be configured to implement one or more integrated circuits according to the embodiments of the present application.

其中,存储器102可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器102可包括硬盘驱动器(Hard Disk Drive,简称为HDD)、软盘驱动器、固态驱动器(Solid State Drive,简称为SSD)、闪存、光盘、磁光盘、磁带或通用串行总线(UniversalSerial Bus,简称为USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器102可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器102可在数据处理装置的内部或外部。在特定实施例中,存储器102是非易失性(Non-Volatile)存储器。在特定实施例中,存储器102包括只读存储器(Read-Only Memory,简称为ROM)和随机存取存储器(Random Access Memory,简称为RAM)。在合适的情况下,该ROM可以是掩模编程的ROM、可编程ROM(Programmable Read-Only Memory,简称为PROM)、可擦除PROM(ErasableProgrammable Read-Only Memory,简称为EPROM)、电可擦除PROM(Electrically ErasableProgrammable Read-Only Memory,简称为EEPROM)、电可改写ROM(ElectricallyAlterable Read-Only Memory,简称为EAROM)或闪存(FLASH)或者两个或更多个以上这些的组合。在合适的情况下,该RAM可以是静态随机存取存储器(Static Random-AccessMemory,简称为SRAM)或动态随机存取存储器(Dynamic Random Access Memory,简称为DRAM),其中,DRAM可以是快速页模式动态随机存取存储器(Fast Page Mode DynamicRandom Access Memory,简称为FPMDRAM)、扩展数据输出动态随机存取存储器(ExtendedDate Out Dynamic Random Access Memory,简称为EDODRAM)、同步动态随机存取内存(Synchronous Dynamic Random-Access Memory,简称SDRAM)等。Among others, memory 102 may include mass storage for data or instructions. By way of example and not limitation, the memory 102 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial drive. Bus (UniversalSerial Bus, USB for short) driver or a combination of two or more of these. Memory 102 may include removable or non-removable (or fixed) media, where appropriate. Where appropriate, memory 102 may be internal or external to the data processing device. In certain embodiments, memory 102 is Non-Volatile memory. In a specific embodiment, the memory 102 includes read-only memory (ROM) and random access memory (Random Access Memory, RAM). Under appropriate circumstances, the ROM can be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, referred to as PROM), an erasable PROM (ErasableProgrammable Read-Only Memory, referred to as EPROM), or an electrically erasable ROM. Except for PROM (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), electrically rewritable ROM (Electrically Alterable Read-Only Memory, referred to as EAROM) or flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be static random access memory (Static Random-Access Memory, referred to as SRAM) or dynamic random access memory (Dynamic Random Access Memory, referred to as DRAM), where DRAM can be in fast page mode Dynamic random access memory (Fast Page Mode DynamicRandom Access Memory, referred to as FPMDRAM), extended data output dynamic random access memory (ExtendedDate Out Dynamic Random Access Memory, referred to as EDODRAM), synchronous dynamic random access memory (Synchronous Dynamic Random- Access Memory (SDRAM for short), etc.

存储器102可以用来存储或者缓存需要处理和/或通信使用的各种数据文件,以及处理器101所执行的可能的计算机程序指令。The memory 102 may be used to store or cache various data files required for processing and/or communication, as well as possible computer program instructions executed by the processor 101 .

处理器101通过读取并执行存储器102中存储的计算机程序指令,以实现上述视频流数据传输方法。The processor 101 reads and executes the computer program instructions stored in the memory 102 to implement the above video stream data transmission method.

在其中一些实施例中,计算机还可包括通信接口103和总线100。其中,如图8所示,处理器101、存储器102、通信接口103通过总线100连接并完成相互间的通信。In some of these embodiments, the computer may also include a communication interface 103 and a bus 100 . Among them, as shown in Figure 8, the processor 101, the memory 102, and the communication interface 103 are connected through the bus 100 and complete communication with each other.

通信接口103用于实现本申请实施例中各模块、装置、单元和/或设备之间的通信。通信接口103还可以实现与其他部件例如:外接设备、图像/数据采集设备、数据库、外部存储以及图像/数据处理工作站等之间进行数据通信。The communication interface 103 is used to implement communication between various modules, devices, units and/or equipment in the embodiments of this application. The communication interface 103 can also implement data communication with other components such as: external devices, image/data acquisition equipment, databases, external storage, image/data processing workstations, etc.

总线100包括硬件、软件或两者,将计算机设备的部件彼此耦接在一起。总线100包括但不限于以下至少之一:数据总线(Data Bus)、地址总线(Address Bus)、控制总线(Control Bus)、扩展总线(Expansion Bus)、局部总线(Local Bus)。举例来说而非限制,总线100可包括图形加速接口(Accelerated Graphics Port,简称为AGP)或其他图形总线、增强工业标准架构(Extended Industry Standard Architecture,简称为EISA)总线、前端总线(Front Side Bus,简称为FSB)、超传输(Hyper Transport,简称为HT)互连、工业标准架构(Industry Standard Architecture,简称为ISA)总线、无线带宽(InfiniBand)互连、低引脚数(Low Pin Count,简称为LPC)总线、存储器总线、微信道架构(Micro ChannelArchitecture,简称为MCA)总线、外围组件互连(Peripheral Component Interconnect,简称为PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(Serial AdvancedTechnology Attachment,简称为SATA)总线、视频电子标准协会局部(Video ElectronicsStandards Association Local Bus,简称为VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线100可包括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申请考虑任何合适的总线或互连。Bus 100 includes hardware, software, or both, coupling components of a computer device to one another. The bus 100 includes but is not limited to at least one of the following: data bus (Data Bus), address bus (Address Bus), control bus (Control Bus), expansion bus (Expansion Bus), and local bus (Local Bus). By way of example, but not limitation, the bus 100 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, or a Front Side Bus. , referred to as FSB), Hyper Transport (HT) interconnect, Industry Standard Architecture (ISA) bus, wireless bandwidth (InfiniBand) interconnect, Low Pin Count, LPC for short) bus, memory bus, Micro Channel Architecture (MCA for short) bus, Peripheral Component Interconnect (PCI for short) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (Serial Advanced Technology Attachment, referred to as SATA) bus, Video Electronics Standards Association Local Bus (referred to as VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, bus 100 may include one or more buses. Although the embodiments of this application describe and illustrate a specific bus, this application contemplates any suitable bus or interconnection.

该计算机可以基于获取到视频流数据传输系统,执行本申请的视频流数据传输方法,从而实现目标的行为识别。The computer can execute the video stream data transmission method of the present application based on the obtained video stream data transmission system, thereby achieving target behavior recognition.

在本发明的再一些实施例中,结合上述的视频流数据传输方法,本发明实施例提供以下技术方案,一种存储介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的视频流数据传输方法。In some further embodiments of the present invention, combined with the above video stream data transmission method, embodiments of the present invention provide the following technical solution, a storage medium, a computer program is stored on the storage medium, and the computer program is processed by a processor. The above video stream data transmission method is implemented during execution.

本领域技术人员可以理解,在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。It will be understood by those skilled in the art that the logic and/or steps represented in the flowchart diagrams or otherwise described herein may, for example, be considered a sequenced list of executable instructions for implementing the logical functions, which may be embodied in in any computer-readable medium for use by an instruction execution system, device, or device (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from the instruction execution system, device, or device), or Used in connection with these instruction execution systems, devices or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), only read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, and subsequently edited, interpreted, or otherwise suitable as necessary. process to obtain the program electronically and then store it in computer memory.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或它们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a gate circuit with a logic gate circuit for implementing a logic function on a data signal; Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, All should be considered to be within the scope of this manual.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims (9)

1. A video stream data transmission method, comprising:
acquiring video stream data to be transmitted sent by a sender, and determining the residual transmission space of a wireless transmission network based on the data characteristics of the video stream data;
transmitting the video stream data to a waiting area of the wireless transmission network based on the residual transmission space and a preset transmission strategy;
Pre-distributing bandwidth weight for each video stream data and optimizing the bandwidth weight to obtain optimized bandwidth weight, and distributing corresponding transmission bandwidth for each video stream data based on the optimized bandwidth weight;
determining a transmission state grade based on the transmission bandwidth of the video stream data and the available bandwidth of a receiver, and adaptively compressing the video stream data based on the transmission state grade to obtain compressed video stream data;
the definition of the compressed video stream data is updated according to the residual receiving capacity of the receiver, and the updated compressed video stream data in the waiting area is transmitted to the receiver based on the transmission bandwidth of the video stream data;
wherein the step of determining a remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data comprises:
determining the remaining transmission space of the wireless transmission network based on the data characteristics of the video stream data by using a first preset formulaThe first preset formula is as follows:
in the method, in the process of the invention,for the number of data packets still being transmitted, +.>Is a scale factor->For the transmission delay of the sender to the wireless transmission network, < > >Is the average inter-arrival time.
2. The video stream data transmission method according to claim 1, wherein the step of transmitting the video stream data to a standby area of the wireless transmission network based on the remaining transmission space and a preset transmission policy comprises:
calculating the space occupied by the transmission of the video stream data
In the method, in the process of the invention,for the length of the last video frame in the video stream data, < >>For delta coefficient>For the frame rate of the video stream data, +.>A transmission delay from a sender to a wireless transmission network;
judging the space occupied by the transmission of the video stream dataWhether or not it is smaller than the remaining transmission space of the wireless transmission network +.>
If the transmission of the video stream data takes up spaceLess than the remaining transmission space of the wireless transmission network +.>Judging the queuing delay difference value->Whether or not it is smaller than the judgment threshold->If the queuing delay is +.>Less than the judgment threshold->Improving the video quality of the video stream data, and if the queuing delay difference value is + ->Not less than the judgment threshold->Maintaining the video quality of the video stream data to transmit the video stream data to a standby area of the wireless transmission network;
if the transmission of the video stream data takes up space Not less than the remaining transmission space of the wireless transmission network->And reducing the video quality of the video stream data to transmit the video stream data to a standby area of the wireless transmission network.
3. The video stream data transmission method according to claim 1, wherein the step of pre-allocating a bandwidth weight to each of the video stream data and optimizing the bandwidth weight to obtain an optimized bandwidth weight, and allocating a corresponding transmission bandwidth to each of the video stream data based on the optimized bandwidth weight comprises:
pre-distributing corresponding bandwidth weight for each video stream data, and carrying out bit rate decision on the video stream data through a first preset algorithm to obtain first characteristic information;
calculating second characteristic information of each video stream data
In the method, in the process of the invention,、/>indicate->Person, th->Perceptual quality of the individual video stream data, +.>Is->Time of rebuffering of individual video stream data, +.>For the first penalty factor, +.>Is a second penalty coefficient;
optimizing the bandwidth weight according to the first characteristic information and the second characteristic information through a second preset algorithm to obtain an optimized bandwidth weight;
And allocating corresponding transmission bandwidth for each video stream data by using a congestion control algorithm.
4. The video stream data transmission method according to claim 1, wherein the step of determining a transmission status level based on a transmission bandwidth of the video stream data and an available bandwidth of a receiving side, adaptively compressing the video stream data based on the transmission status level, to obtain compressed video stream data comprises:
determining a number of transmission links of the wireless transmission networkAnd based on the number of transmission links +.>Calculating available bandwidth of the receiver>
,/>
In the method, in the process of the invention,is->Transmission start time of each transmission link, +.>Is->Transmission termination for individual transmission linksTime (F)>Is->Total transmission capacity of the individual transmission links;
transmission bandwidth based on the video stream dataAvailable bandwidth to the receiver->Calculating bandwidth difference +.>
If it isCompressing the video stream data with a first compression rate as a fixed compression amount, ifCompressing the video stream data with a second compression rate as a fixed compression amount, ifCompressing the video stream data with a third compression rate as a fixed compression amount, ifCompressing the video stream data with a fourth compression rate as a fixed compression amount, if Compressing the video stream data with a fifth compression rate as a fixed compression amount, wherein,is the bandwidth mean.
5. The video stream data transmission method according to claim 1, wherein the step of performing sharpness update on the compressed video stream data according to the remaining reception capacity of the receiving side, and transmitting the updated compressed video stream data in the waiting area to the receiving side based on the transmission bandwidth of the video stream data comprises:
storing the compressed video stream data of the maximum definition level into a first video group, and storing the rest of the compressed video stream data into a second video group;
pre-transmitting the compressed video stream data in the second video group and updating the residual receiving capacity of the receiverAnd computing power->To obtain a first remaining capacity +.>And first computing power->
Judging the first remaining acceptable capacityAnd whether the compressed video stream data is larger than a capacity threshold value or not is judged, a judgment result is generated, the compressed video stream data is updated in definition based on the judgment result, and the updated compressed video stream data in the to-be-stored area is transmitted to the receiver based on the transmission bandwidth of the video stream data.
6. The video stream data transmission method according to claim 5, wherein the determination of the first remaining acceptable capacityWhether the compressed video stream data is larger than a capacity threshold value or not and generating a judging result, carrying out definition update on the compressed video stream data based on the judging result, and transmitting the updated compressed video stream data in a to-be-stored area to the receiver based on the transmission bandwidth of the video stream data, wherein the step of transmitting the updated compressed video stream data in the to-be-stored area to the receiver comprises the following steps:
if the first remaining acceptable capacityIf the capacity threshold value is larger than the capacity threshold value, selecting first changed compressed video stream data from the second video group, performing iterative upgrade processing on the first changed compressed video stream data, and iteratively updating a first residual receiving capacity->And first computing power->
Judging whether the first changed compressed video stream data reaches the maximum definition level, if so, moving the first changed compressed video stream data into the first video group until the first residual receiving capacityNot greater than the capacity threshold;
if the first remaining acceptable capacityJudging the first computing capacity after iterative updating if the first computing capacity is not greater than the capacity threshold value>Whether greater than a calculated threshold;
If the first computing power is updated iterativelyIf the calculation threshold value is not greater than the calculation threshold value, selecting second changed compressed video stream data from the second video group, performing iterative degradation processing on the second changed compressed video stream data, and repeating iterative updating of the first calculation capability->Until the first computing power +.>Greater than a calculated threshold;
and after the compressed video stream data in the second video group is updated, transmitting the updated compressed video stream data in the to-be-stored area to the receiver based on the transmission bandwidth of the video stream data.
7. A video stream data transmission system, the system comprising:
the data acquisition module is used for acquiring video stream data to be transmitted sent by a sender, and determining the residual transmission space of the wireless transmission network based on the data characteristics of the video stream data;
the transmission space determining module is used for transmitting the video stream data to a waiting area of the wireless transmission network based on the residual transmission space and a preset transmission strategy;
the bandwidth optimization module is used for pre-distributing bandwidth weights for each video stream data and optimizing the bandwidth weights to obtain optimized bandwidth weights, and distributing corresponding transmission bandwidths for each video stream data based on the optimized bandwidth weights;
The data compression module is used for determining a transmission state grade based on the transmission bandwidth of the video stream data and the available bandwidth of a receiver, and carrying out self-adaptive compression on the video stream data based on the transmission state grade so as to obtain compressed video stream data;
and the data transmission module is used for carrying out definition update on the compressed video stream data according to the residual receiving capacity of the receiver and transmitting the updated compressed video stream data in the waiting area to the receiver based on the transmission bandwidth of the video stream data.
8. A computer comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the video stream data transmission method according to any one of claims 1 to 6 when executing the computer program.
9. A storage medium having stored thereon a computer program which, when executed by a processor, implements the video stream data transmission method according to any one of claims 1 to 6.
CN202311800706.1A 2023-12-26 2023-12-26 Video stream data transmission method and system Active CN117478934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311800706.1A CN117478934B (en) 2023-12-26 2023-12-26 Video stream data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311800706.1A CN117478934B (en) 2023-12-26 2023-12-26 Video stream data transmission method and system

Publications (2)

Publication Number Publication Date
CN117478934A true CN117478934A (en) 2024-01-30
CN117478934B CN117478934B (en) 2024-04-16

Family

ID=89625933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311800706.1A Active CN117478934B (en) 2023-12-26 2023-12-26 Video stream data transmission method and system

Country Status (1)

Country Link
CN (1) CN117478934B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152032A1 (en) * 2002-02-14 2003-08-14 Kddi Corporation Video information transmission system, and apparatus and program used for video information transmission system
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
KR20150035140A (en) * 2013-09-27 2015-04-06 최덕환 Method And Computer Device For Adaptive Video Streaming
WO2015200484A1 (en) * 2014-06-24 2015-12-30 Thomson Licensing Streaming and downloading of video content according to available bandwidth
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium
CN114827662A (en) * 2022-03-18 2022-07-29 百果园技术(新加坡)有限公司 Video resolution self-adaptive adjusting method, device, equipment and storage medium
EP4131892A1 (en) * 2021-08-03 2023-02-08 Quintetto S.r.l. A communication system for enabling multimedia streaming between devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030152032A1 (en) * 2002-02-14 2003-08-14 Kddi Corporation Video information transmission system, and apparatus and program used for video information transmission system
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
KR20150035140A (en) * 2013-09-27 2015-04-06 최덕환 Method And Computer Device For Adaptive Video Streaming
WO2015200484A1 (en) * 2014-06-24 2015-12-30 Thomson Licensing Streaming and downloading of video content according to available bandwidth
CN110536176A (en) * 2019-07-31 2019-12-03 深圳银澎云计算有限公司 A kind of video resolution method of adjustment, electronic equipment and storage medium
EP4131892A1 (en) * 2021-08-03 2023-02-08 Quintetto S.r.l. A communication system for enabling multimedia streaming between devices
CN114827662A (en) * 2022-03-18 2022-07-29 百果园技术(新加坡)有限公司 Video resolution self-adaptive adjusting method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈瑞;焦良葆;: "基于延迟预测的自适应媒体播放算法", 计算机工程, no. 24, 20 December 2009 (2009-12-20) *

Also Published As

Publication number Publication date
CN117478934B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
US8761012B2 (en) Packet relay apparatus and method of relaying packet
CN112752302A (en) Power service time delay optimization method and system based on edge calculation
WO1998030061A1 (en) Method and system for quality of service assessment for multimedia traffic under aggregate traffic conditions
JP5498889B2 (en) Packet relay apparatus and congestion control method
CN110557287B (en) Resource allocation method and device based on Lyapunov optimization
EP1193993A2 (en) Method for allocating radio resource, radio communication apparatus and radio communication system
CN109756536A (en) A kind of method, apparatus and system of data transmission
CN105979274A (en) Distributive cache storage method for dynamic self-adaptive video streaming media
JP7487316B2 (en) Service level configuration method and apparatus
CN110113140B (en) A computational offloading method in fog computing wireless networks
JP2018061141A (en) Communication apparatus and communication method
CN111343098A (en) Data interaction method and device, computer equipment and storage medium
US20060221959A1 (en) Data compression device and method, and program for data compression
CN107113323A (en) A kind of date storage method, device and system
CN107819853B (en) A kind of data transmission method and device
CN105900481A (en) Bandwidth selection method of wireless fidelity technology and access point (ap)
CN117478934B (en) Video stream data transmission method and system
CN111464374B (en) Network delay control method, equipment and device
CN113938431A (en) Burst data packet transmission method and device and electronic equipment
CN113422838B (en) Implementation method, device, electronic device and storage medium for data synchronization
CN110620807A (en) File transmission method, server, system, device and storage medium
CN112511702B (en) Push method, server, electronic device and storage medium of media frame
CN114501145B (en) Code rate control method, device, electronic device and storage medium for video transmission
CN111124298A (en) A Value Function-Based Cache Replacement Method for Fog Computing Network Content
CN118631773B (en) FC device adaptive rate DMA communication method and communication system based on multi-partition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant