Video Coding Compression Method Based on Bandwidth Adaptation

By predicting video bandwidth and dividing image area blocks, adaptively adjusting video coding, it solves image quality problems caused by bandwidth fluctuations in video transmission, and achieves stable and high-quality video transmission under different bandwidths.

CN118368433BActive Publication Date: 2024-09-17SANLI VIDEO FREQUENCY SCI & TECH SHENZHEN
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410797227.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-17
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

In the existing technology, during video transmission, network bandwidth fluctuations make it difficult to control the video image quality. Frequent switching of image quality or partial image quality loss affects the quality of video encoding and compression.

Method used

By predicting the video prediction bandwidth of the current time period, the video image is divided into multiple area blocks, and the degree of compression loss of each frame of video image in each area block is determined based on the complexity of the grayscale information of each frame of video image and the lossless compression situation. Adaptively adjust encoding and compression to achieve stable video transmission and improved quality.

Benefits of technology

It improves the stability and quality of video transmission, ensures that videos can be transmitted smoothly under different network bandwidths, avoids frequent switching of image quality, and enhances the adaptability and effectiveness of video encoding and compression.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118368433B
    Figure CN118368433B
Patent Text Reader

Abstract

The present invention relates to the technical field of video coding transmission, and in particular to a method for video coding compression based on bandwidth adaptation. The method obtains a predicted bandwidth based on the network bandwidth of a historical time period before the current time period; based on the predicted bandwidth, according to the lossless compression loss of the video in the current time period and the number of video frames, the compression requirement of each frame of the video image is obtained; by the grayscale complexity of the image area blocks divided by the video image between different frames of the video image, combined with the compression requirement and lossless compression of each frame of the video image, the compression loss degree is determined for the video of the current time period, and the transmission video is adaptively coded and compressed. The present invention considers bandwidth fluctuations to obtain a more reliable predicted bandwidth, and adjusts the compression loss degree in each frame of the video image in combination with local area analysis, adaptively adjusts the video coding, and improves the quality of the transmitted video while ensuring smooth video transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video coding transmission, and in particular to a video coding compression method based on bandwidth adaptation. Background Art

[0002] Network bandwidth refers to the measurement of network transmission rate, which indicates the amount of data that can be transmitted over a network within a specific period of time. It is usually measured in bits or bytes transmitted per second, in units of bits per second or bytes per second. Network bandwidth determines the speed and efficiency of network transmission. When the network bandwidth is large, more data can be transmitted faster over the network. When using the network to transmit video, the network may fluctuate at different time periods. In order to ensure smooth transmission of the video, it is necessary to dynamically adjust the size of the transmitted video according to the real-time bandwidth of the network to ensure that the video can still be transmitted smoothly under different network bandwidths.

[0003] In the existing technology, in order to ensure the normal transmission of the video, when the network bandwidth changes, the video will also adjust the video transmission bit rate according to the current bandwidth to adapt to the different network bandwidth speeds for effective transmission of the video. However, when the existing method changes the video compression coding, due to the fluctuation of the network bandwidth, in order to ensure the smoothness of the transmission, the image quality of the video transmission is difficult to effectively control, and the video quality will be frequently switched or the quality of part of the video will be significantly lost, resulting in a low quality of the video coding compression changed for the applicable bandwidth, which affects the quality of video transmission. Summary of the invention

[0004] In order to solve the technical problem that the quality of video coding compression for adapting to bandwidth changes in the prior art is low and affects the quality of video transmission, the purpose of the present invention is to provide a video coding compression method based on bandwidth adaptation, and the technical solution adopted is as follows:

[0005] According to one aspect of an embodiment of the present invention, a video coding compression method based on bandwidth adaptation is provided.

[0006] A video coding compression method based on bandwidth adaptation, comprising:

[0007] Based on the network bandwidths of the videos corresponding to the multiple historical time periods, the predicted bandwidth of the videos in the current time period is predicted;

[0008] Determine the compression requirement of each frame of the video in the current time period based on the predicted bandwidth of the current time period and the lossless compression status of the video in the current time period;

[0009] In the video of the current time period, each frame of video image is divided into multiple image area blocks in the same manner; according to the complexity of the grayscale information of each image area block between different frames of video images, combined with the compression requirements and lossless compression conditions of each frame of video image, the compression loss degree of each frame of video image in each image area block is determined;

[0010] The video of the current time period is encoded and compressed according to the compression loss degree.

[0011] In the above scheme, the influence of network bandwidth fluctuation on transmission quality is considered. According to the fluctuation of the previous network bandwidth in the time period, the network bandwidth is predicted to obtain the predicted bandwidth, which is conducive to the subsequent more accurate analysis of the adjustment requirements of video transmission and the improvement of the stability of video transmission. Based on the predicted bandwidth, the loss required for the compression of the video in the current time period can be analyzed and allocated to each frame of the video image to obtain the compression requirement of each frame of the video image. From this, the degree to which each frame of the video image should be compressed is analyzed to ensure the smooth transmission of the video. However, considering the different importance of the picture representation of different areas in the video image, the video image is divided into image area blocks. Through the grayscale complexity of the image area blocks between different frames of the video image, combined with the compression requirement and lossless compression of each frame of the video image, the compression loss degree of each frame of the video image in each image area block is determined, thereby adjusting the compression loss of different areas in the video image, and then realizing the adaptive coding compression of each frame of the video image in the video, and the transmission video that meets the transmission of the next time period can be obtained. The present invention obtains a more reliable predicted bandwidth based on historical bandwidth fluctuations, adjusts the degree of compression loss in each frame of a video in combination with local area analysis, and adaptively adjusts video encoding to improve the quality of transmitted video while ensuring smooth video transmission.

[0012] Furthermore, the method for obtaining the predicted bandwidth includes:

[0013] In chronological order, the bandwidth evaluation degree of each time period is determined according to the numerical distribution and fluctuation stability of the network bandwidth of the local historical time period before each time period; the predicted bandwidth of the current time slot is obtained according to the network bandwidth and bandwidth evaluation degree of the current time period and the previous local historical time period.

[0014] In the above scheme, the bandwidth evaluation degree of each time period is obtained according to the fluctuation of the previous network bandwidth in each time period, thereby evaluating the quality of the change of the network bandwidth value, and then combining the network bandwidth value of the local historical time period before the current time period to obtain a more reliable predicted bandwidth, thereby improving the credibility of the predicted bandwidth.

[0015] Furthermore, the method for obtaining the bandwidth evaluation degree includes:

[0016] For any historical time period, in time sequence, a preset first number of historical time periods before the time period are used as local historical time periods of the time period;

[0017] According to the change disorder of the network bandwidth of all local historical time periods corresponding to the time period, the disorder fluctuation index of the time period is obtained;

[0018] In the local historical time period of the time period, a preset second number of historical time periods closest to the time period in time are used as adjacent historical time periods of the time period; the preset first number is greater than the preset second number;

[0019] According to the degree of deviation of the values ​​of the network bandwidth between the neighboring historical time periods and the local historical time periods in the time period, the value distribution index of the time period is obtained;

[0020] The bandwidth evaluation degree of the time period is determined by combining the numerical distribution index and the chaotic fluctuation index of the time period; the numerical distribution index is positively correlated with the bandwidth evaluation degree, and the chaotic fluctuation index is negatively correlated with the bandwidth evaluation degree.

[0021] In the above scheme, the distribution change of network bandwidth before each time period is considered, and the quality of bandwidth of each time period is evaluated. According to the chaotic change of network bandwidth in local historical time periods, the chaotic fluctuation index is obtained, which reflects the stability of network bandwidth before the time period. The larger the chaotic fluctuation index, the more unstable the change of network bandwidth. At the same time, considering the characteristic that the higher the network bandwidth, the more stable the transmission, the adjacent historical time periods are further screened to analyze the distribution deviation of the numerical value, and obtain the numerical distribution index, thereby judging the quality of network bandwidth in the adjacent time periods before the time period. Finally, the bandwidth evaluation degree is comprehensively obtained to improve the accuracy of subsequent prediction of network bandwidth for the next time period based on the bandwidth evaluation degree.

[0022] Furthermore, the method for obtaining the numerical distribution index includes:

[0023] The average of the network bandwidth of all neighbor historical time periods in the time period is used as the neighbor bandwidth distribution index of the time period;

[0024] The average of the network bandwidth of all local historical time periods in the time period is used as the local bandwidth distribution index of the time period;

[0025] The ratio of the inter-neighbor bandwidth distribution index to the local bandwidth distribution index in the time period is used as the numerical distribution index of the time period.

[0026] In the above scheme, the numerical distribution of the network bandwidth that is closer to the time period is reflected in the form of a ratio of the mean. When the numerical distribution index is higher, it means that the network bandwidth quality before the time period is changing in a better direction, which can better reflect the change quality of the network bandwidth in the time period, making the analyzed bandwidth evaluation more reliable.

[0027] Furthermore, obtaining the predicted bandwidth of the current time slot according to the network bandwidth and bandwidth evaluation degree of the current time period and the previous local historical time period includes:

[0028] Determine the bandwidth estimation value of each time period by combining the network bandwidth and bandwidth evaluation degree of each time period;

[0029] According to the deviation between the bandwidth estimation value of each local historical time period of the current time period and the network bandwidth of the next time period of each local historical time period, the evaluation error of each local historical time period of the current time period is obtained; the error adjustment value at the current moment is obtained by combining the evaluation errors of all local historical time periods of the current time period;

[0030] The bandwidth estimate and error adjustment value at the current moment are combined to obtain the predicted bandwidth at the current moment.

[0031] In the above scheme, the subsequent bandwidth value can be estimated by combining the network bandwidth and the bandwidth evaluation value. The error of the subsequent network bandwidth prediction directly for the current time period is considered. The error analysis is performed through the difference between the local time period estimation of the current time period and the actual network bandwidth. The estimation of the current time period is adjusted to obtain a more accurate predicted bandwidth, so that the compression required for the subsequent analysis of the video is more accurate, and the smoothness of the video transmission is guaranteed as much as possible.

[0032] Furthermore, the method for obtaining the compression requirement includes:

[0033] Get the volume of the video in the current time period after lossless compression and the number of frames of the video in the current time period;

[0034] When the volume is larger than the predicted bandwidth, the compression requirement for each frame of the video in the current time period is determined according to the number of frames of the video in the current time period and the difference between the volume and the predicted bandwidth in the current time period.

[0035] In the above scheme, the volume excess degree produced by lossless compression is used to analyze the volume reduction required for each frame of video image in the current time period, so as to facilitate the subsequent regional adjustment during compression analysis within the frame.

[0036] Furthermore, the method for obtaining the degree of compression loss includes:

[0037] Grayscale each frame of video image to obtain a grayscale image of each frame of video;

[0038] In each image region block, the importance of each image region block is obtained according to the difference in grayscale distribution between each two frames of video grayscale images;

[0039] Determine the local requirement of each frame of video image in each image region block according to the compression requirement of each frame of video image and the importance of each image region block;

[0040] The compression loss degree of each frame of video image in each image region block is determined by combining the volume of lossless compression of each frame of video image in each image region block and the local demand degree of each frame of video image in each image region block.

[0041] In the above scheme, considering that the part with greater changes between frames requires less compression, the importance of the position of each image region block is analyzed based on the change of grayscale information to obtain the importance representation degree, thereby reflecting the degree of compression loss of each image region block. The image region block with higher importance representation degree has lower compression loss. Since the content in each frame of video image is changing, in each frame of video image, the importance representation degree of each image region block is combined with the compression requirement of each frame of video image to obtain the local requirement degree for each image region block of each frame of video image, thereby reflecting the need for compression of each image region block in each frame of video image. Finally, the local requirement degree is combined with the volume of lossless compression in each image region block of each frame of video image, and the degree of compression loss in each image region block of each frame of video image is adaptively obtained, so as to realize the analysis of the local compression loss requirement of each frame of video image, so as to better ensure the stability and quality of the image quality in the compressed video.

[0042] Furthermore, the method for obtaining the importance representation degree includes:

[0043] Taking each image area block as a target block in turn; obtaining a grayscale histogram of each frame of the video grayscale image in the target block;

[0044] According to the difference in the number of grayscale distributions of each two frames of video grayscale images in the target block in the grayscale histogram, the difference in the information level of each two frames of video grayscale images of the target block is obtained;

[0045] Obtaining a grayscale histogram curve of each frame of video grayscale image in the target block; obtaining the information content difference between each two frames of video grayscale image in the target block according to the change difference between each two frames of video grayscale image in the target block on the grayscale histogram curve;

[0046] Combining the information level difference and information content difference of the target block in each two frames of video grayscale images, the representation degree of the target block in each two frames of video grayscale images is obtained;

[0047] According to the representation degree of the target block between all pairwise video grayscale images in the current time period, the important representation degree of the target block is determined.

[0048] In the above scheme, the difference in the number of gray levels reflects the overall difference in gray information between each two frames of video gray images, and the difference in the histogram curve of gray level distribution reflects the difference in gray information change between each two frames of video gray images. The difference in information level and information content is combined to reflect the difference in information between two frames of video gray images, and the representation degree is obtained. The representation degree of the image area block between any two frames of video gray images is integrated to obtain a more reliable and important representation degree, thereby improving the rationality of the subsequent compression adjustment of each frame of video image in each image area block.

[0049] Furthermore, encoding and compressing the video in the current time period according to the compression loss degree includes:

[0050] Based on the compression loss degree of each frame of video image in each image region block, determine the quantization parameter of ROI encoding in each image region block of each frame of video image;

[0051] Based on the quantization parameters of each image region block of each frame of the video in the current time period, ROI coding compression is performed to obtain the transmission video of the current time period.

[0052] Further, the step of determining the quantization parameter of the ROI encoding in each image region block of each frame of the video image based on the compression loss degree of each image region block of each frame of the video image includes:

[0053] The product of the compression loss degree of each frame of video image in each image region block and the preset conversion coefficient is used as the quantization parameter of each frame of video image in each image region block.

[0054] According to another aspect of the embodiments of the present invention, a bandwidth-adaptive video coding compression system is provided.

[0055] A video coding compression system based on bandwidth adaptation, comprising:

[0056] A bandwidth prediction module, used to predict the predicted bandwidth of the video in the current time period based on the network bandwidth of the videos corresponding to multiple historical time periods;

[0057] A compression requirement analysis module, used to determine the compression requirement of each frame of video image in the video of the current time period based on the predicted bandwidth of the current time period and the lossless compression status of the video of the current time period;

[0058] The region block compression analysis module is used to obtain multiple image region blocks by performing the same division on each frame of video images in the current time period; according to the complexity of the grayscale information of each image region block between different frames of video images, combined with the compression requirements and lossless compression conditions of each frame of video images, determine the compression loss degree of each frame of video images in each image region block;

[0059] The video encoding module is used to encode and compress the video of the current time period according to the compression loss degree.

[0060] According to yet another aspect of an embodiment of the present invention, a computer device is provided.

[0061] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned bandwidth-adaptive video coding compression method when executed by the processor.

[0062] According to yet another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0063] A computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor to enable the at least one processor to perform the steps of the above-mentioned bandwidth-adaptive video coding compression method. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 A flow chart of a video coding compression method based on bandwidth adaptation provided by one embodiment of the present invention;

[0066] Figure 2 A flow chart of a method for obtaining bandwidth evaluation provided by an embodiment of the present invention;

[0067] Figure 3 A flow chart of a method for obtaining predicted bandwidth provided by an embodiment of the present invention;

[0068] Figure 4 A flow chart of a method for obtaining the degree of compression loss provided by an embodiment of the present invention;

[0069] Figure 5 A flow chart of a method for obtaining an important characterization degree provided by an embodiment of the present invention;

[0070] Figure 6 A structural diagram of a bandwidth-adaptive video coding compression system provided by an embodiment of the present invention;

[0071] Figure 7 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a bandwidth-adaptive video coding compression method proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0073] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0074] The specific scheme of a bandwidth adaptive video coding compression method provided by the present invention is described in detail below with reference to the accompanying drawings.

[0075] See also Figure 1 , which shows a flow chart of a bandwidth-adaptive video coding compression method provided by an embodiment of the present invention, the method comprising the following steps:

[0076] S1: Obtain the network bandwidth of the video corresponding to each time period.

[0077] When transmitting video, the network bandwidth may fluctuate over time due to the access and use of other devices or system applications. In order to ensure that the video has a certain degree of smoothness during network transmission, it is necessary to adjust the video encoding level based on the bandwidth change. Therefore, in order to facilitate the analysis of network bandwidth changes, the network bandwidth of each time period over a period of time is obtained.

[0078] In a specific implementation of an embodiment of the present invention, each time period is a time interval per second, reflecting a specific time interval, and the historical time length is set to 3 minutes before the current moment, that is, each second within 3 minutes represents a historical time period, and the second before the current moment is recorded as the current time period, which is used to analyze changes in network bandwidth. The specific values ​​can be adjusted by the implementers themselves.

[0079] S2: In chronological order, the bandwidth evaluation degree of each time period is determined according to the numerical distribution and fluctuation stability of the network bandwidth of the local historical time period before each time period; the predicted bandwidth of the current time period is obtained according to the network bandwidth and bandwidth evaluation degree of the current time period and the previous local historical time period.

[0080] When transmitting video, when the network bandwidth is stable and relatively high, the video can be transmitted at a higher bit rate, that is, the number of bits transmitted per second. At this time, the transmitted video quality is higher, making the picture clearer and more detailed, and also better presenting the smoothness of the movement in the video. When the network bandwidth fluctuates significantly and the network bandwidth is low, it is necessary to reduce the video quality and reduce the volume occupied by the video during transmission, so as to ensure that the video can still be transmitted stably and smoothly in the case of poor network bandwidth environment. Therefore, it is necessary to evaluate the network bandwidth of the time period, and then predict the theoretical network bandwidth of the next time period based on the evaluation of the current time period, so as to realize reliable compression of the video according to the prediction.

[0081] Preferably, in some possible implementations of the embodiments of the present invention, the method for obtaining the bandwidth evaluation degree can be found in Figure 2 , which shows a flow chart of a method for obtaining bandwidth evaluation provided by an embodiment of the present invention, the method comprising the following steps:

[0082] S201: For any historical time period, in time sequence, a first number of historical time periods preset before the time period are used as local historical time periods of the time period; and a chaos fluctuation index of the time period is obtained according to the change chaos of the network bandwidth of all local historical time periods corresponding to the time period.

[0083] By determining the fluctuation and chaos of the local network bandwidth before each time period, the stability of the network bandwidth in each time period can be analyzed first. When the local network bandwidth chaos is lower, it means that the change is more stable and the current network bandwidth is better.

[0084] As an example, the method of obtaining the Chaos Wave indicator includes:

[0085] For any time period, the variance of the network bandwidth of all local historical time periods corresponding to the time period is used as the chaotic fluctuation index of the time period.

[0086] The larger the variance, the more chaotic the change of network bandwidth, and the lower the stability of network bandwidth before this time period. The variance calculation reflects the chaotic change of network bandwidth. In other embodiments of the present invention, the chaotic fluctuation index can also be obtained by calculating the standard deviation or coefficient of variation of network bandwidth in all local historical time periods, reflecting the chaotic change of values, which will not be elaborated here.

[0087] In a specific implementation of an embodiment of the present invention, the preset first number is set to 15, that is, the first 15 historical time periods of each time period in the time sequence are used as the local historical time period of each time period. The specific value can be adjusted according to the specific implementation scenario and is not limited here.

[0088] S202: In the local historical time period of the time period, a preset second number of historical time periods that are closest to the time period in time are used as adjacent historical time periods of the time period; the preset first number is greater than the preset second number; and according to the degree of deviation of the numerical values ​​of the adjacent historical time periods of the time period and the local historical time period in the network bandwidth, a numerical distribution index of the time period is obtained.

[0089] Further considering the characteristic that the higher the network bandwidth, the more stable the transmission, when the network bandwidth changes closer to the time period, the higher the value, the improvement of the network bandwidth is positive improvement, and the network bandwidth quality of the time period is better. Therefore, we can select more similar time periods to analyze the distribution deviation of the value size, obtain the value distribution index, and judge the change of the network bandwidth value before the time period.

[0090] Preferably, the method for obtaining the numerical distribution index includes:

[0091] The average of the network bandwidths of all neighbor historical time periods in the time period is used as the neighbor bandwidth distribution index of the time period; the average of the network bandwidths of all local historical time periods in the time period is used as the local bandwidth distribution index of the time period; the ratio of the neighbor bandwidth distribution index to the local bandwidth distribution index in the time period is used as the numerical distribution index of the time period.

[0092] The ratio of the mean value reflects the change in the numerical distribution of the network bandwidth that is closer to the time period. When the numerical distribution index is higher, it means that the overall network bandwidth before the time period is changing in a higher direction, and the bandwidth quality is changing in a better direction. It can better reflect the change in the network bandwidth in the time period, making the analyzed bandwidth evaluation more reliable.

[0093] In a specific implementation of an embodiment of the present invention, the preset second number is set to 5, that is, the first 5 historical time periods of each time period in the time sequence are used as the adjacent historical time periods of each time period. Since it is necessary to reflect the changes in the numerical distribution of network bandwidth in a more adjacent range within the local historical time period, the preset first number must be greater than the preset second number, and the implementer can adjust the specific value by himself.

[0094] S203: Determine the bandwidth evaluation degree of the time period by combining the numerical distribution index and the chaotic fluctuation index of the time period; the numerical distribution index is positively correlated with the bandwidth evaluation degree, and the chaotic fluctuation index is negatively correlated with the bandwidth evaluation degree.

[0095] By analyzing the stability and quality changes of network bandwidth, the bandwidth evaluation degree at each time period is comprehensively obtained, reflecting the degree to which the subsequent network bandwidth should be adjusted in each time period. When the numerical distribution index is larger, it means that the change direction of the network bandwidth before the time period is better. When the chaotic fluctuation index is smaller, it means that the change of the network bandwidth before the time period is more stable, which reflects that the bandwidth evaluation degree of the time period is higher and the network bandwidth required for subsequent time periods is smaller.

[0096] In some implementations of the embodiments of the present invention, the method for obtaining the bandwidth evaluation degree includes:

[0097] The chaotic fluctuation index of the time period is negatively correlated and normalized to obtain the stable fluctuation index of the time period; the product of the stable fluctuation index of the time period and the numerical distribution index is normalized to obtain the bandwidth evaluation degree of the time period.

[0098] As an example, the bandwidth evaluation degree is expressed as: ; In the formula, Expressed as The bandwidth evaluation degree of each time period, Expressed as The local bandwidth distribution index of each time period, Expressed as The bandwidth distribution index between neighbors in a time period, Expressed as The total number of local historical time periods for time periods, Expressed as The time period The network bandwidth of a local historical time period, Expressed as an exponential function with a natural constant as base, It is represented as a normalization processing function. It should be noted that normalization is a technical means well known to those skilled in the art. The normalization function can be linear normalization or standard normalization, etc. The specific normalization method is not limited here.

[0099] in, Expressed as The numerical distribution index of each time period, Expressed as The chaotic volatility index for the time period, Expressed as The stable fluctuation index of a time period is reflected in the form of negative exponential power, and the chaotic fluctuation index is negatively correlated with the bandwidth evaluation degree and normalized. In other embodiments of the present invention, other negative correlation mapping methods and normalization processing can also be selected, which are technical means well known to technicians in this field and will not be described in detail here.

[0100] Preferably, in some possible implementations of the embodiments of the present invention, the method for obtaining the predicted bandwidth can be found in Figure 3 , which shows a flow chart of a method for obtaining predicted bandwidth provided by an embodiment of the present invention, the method comprising the following steps:

[0101] S211: Determine the bandwidth estimation value of each time period by combining the network bandwidth and the bandwidth evaluation degree of each time period.

[0102] The network bandwidth and bandwidth evaluation degree of each time period can be used to estimate the subsequent network bandwidth of each time period, that is, the bandwidth estimation value of each time period represents the estimated situation of the network bandwidth of the next time period of each time period.

[0103] In some implementations of the embodiments of the present invention, the method for obtaining the bandwidth estimation value includes: taking the product of the network bandwidth of each time period and the bandwidth evaluation degree as the bandwidth estimation value of each time period.

[0104] The larger the network bandwidth in each time period, the higher the bandwidth evaluation degree, which means that the network bandwidth in the time period is better, and thus the obtained bandwidth estimation value is better.

[0105] S212: Obtain an evaluation error for each local historical time period of the current time period based on the deviation between the bandwidth estimation value of each local historical time period of the current time period and the network bandwidth of the next time period of each local historical time period; obtain an error adjustment value at the current moment by combining the evaluation errors of all local historical time periods of the current time period.

[0106] However, when further considering directly predicting the subsequent network bandwidth for the current time period, there is a certain degree of error, which needs to be adjusted in combination with the error situation of the historical time period. Therefore, the error analysis is performed through the difference between the bandwidth estimation value of each local historical time period and the actual network bandwidth, and the evaluation error of each local historical time period in the current time period is obtained, and then the error adjustment value is obtained by combining the evaluation errors of all local historical time periods.

[0107] In some implementations of the embodiments of the present invention, a method for obtaining an error adjustment value includes:

[0108] The difference between the network bandwidth of the next time period of each local historical time period and the bandwidth estimation value of each local historical time period is used as the evaluation error of each local historical time period. The average of the evaluation errors of all local historical time periods in the current time period is used as the error adjustment value at the current moment.

[0109] The deviation between the actual network bandwidth and the estimated bandwidth reflects the adjustment degree of the actual network bandwidth on the estimated bandwidth. Then, all local historical time periods are analyzed as a whole, and the error adjustment degree is obtained through the average.

[0110] S213: Combining the bandwidth estimation value and the error adjustment value at the current moment, obtain the predicted bandwidth at the current moment.

[0111] By adjusting the error adjustment value at the current moment, a more accurate predicted bandwidth can be obtained, so that the compression required for subsequent analysis of the video can be more accurate, and the smoothness of video transmission can be guaranteed as much as possible, which is helpful for subsequent analysis of video quality transmission.

[0112] In some implementations of the embodiments of the present invention, the method for obtaining the error adjustment value includes: taking the sum of the bandwidth estimation value and the error adjustment value at the current moment as the predicted bandwidth at the current moment.

[0113] At this point, the analysis of network bandwidth changes before the current time period is completed, and the predicted bandwidth for subsequent network bandwidth is obtained.

[0114] S3: Based on the predicted bandwidth of the current time period and the lossless compression status of the video in the current time period, determine the compression requirement of each frame of the video image in the video in the current time period.

[0115] For the video transmitted in the current time period, the video transmission is usually transmitted at a rate of multiple frames. Therefore, during transmission, it is analyzed whether the predicted bandwidth can meet the transmission requirements of multiple frames of video images. The compression requirements are analyzed by judging the volume generated by lossless compression and the predicted bandwidth.

[0116] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the compression requirement includes:

[0117] Get the volume of the video in the current time period after lossless compression and the number of frames of the video in the current time period; when the volume is greater than the predicted bandwidth, determine the compression requirement for each frame of the video in the current time period based on the number of frames of the video in the current time period and the difference between the volume and the predicted bandwidth of the current time period.

[0118] When the volume after lossless compression is larger than the predicted bandwidth, it means that the subsequent transmission needs to reduce the image quality to ensure smooth and stable transmission. The degree to which each frame of the video image needs to be losslessly compressed is obtained through the deviation between the number of video frames and the volume after compression and the prediction. It should be noted that when the volume after lossless compression is less than or equal to the predicted bandwidth, it means that the video can be transmitted with the best image quality and no further lossy encoding compression is required.

[0119] In some implementations of the embodiments of the present invention, the compression requirement is expressed as: ; In the formula, It is expressed as the compression requirement of each frame of video image in the current time period. Indicates the volume of the video in the current time period after lossless compression. It is expressed as the predicted bandwidth of the current time period, Represents the number of frames of the video in the current time period. Expressed as a compression ratio for lossless compression.

[0120] pass Reflected in the compression ratio of lossless compression, the compressed volume of the video needs to be reduced to meet the predicted bandwidth. Reflects the compression volume that needs to be reduced in each frame of the video image in the current time period. The greater the deviation between the lossless compression and the predicted bandwidth, the higher the compression requirement, and the higher the lossy situation that each frame needs to share.

[0121] In a specific implementation of an embodiment of the present invention, the video is transmitted at a rate of 60 frames per image, that is, the number of frames in the current time period is 60, and the video in the current time period contains 60 frames of video images, and its value is obtained according to the specific implementation scenario. The lossless compression method is a technical means well known to those skilled in the art, such as using the RLE run encoding algorithm or using a zip compression tool, etc., which will not be elaborated here. And the compression ratio of lossless compression is adjusted according to the actual scenario, and the optional compression ratio is 1:3 or 1:5, etc., which is not limited here.

[0122] S4: In the video of the current time period, each frame of video image is equally divided to obtain multiple image area blocks; according to the complexity of the grayscale information of each image area block between different frames of video images, combined with the compression requirements and lossless compression conditions of each frame of video image, the compression loss degree of each frame of video image in each image area block is determined.

[0123] During the encoding and compression process, because there may be differences between different video images, such as background and content, when performing lossy compression on more important areas, the higher their importance, the smaller the degree of image quality loss needs to be, and they should be retained as much as possible. For less important areas such as the background, the degree of image quality loss can be relatively large. In this way, although lossy compression reduces the image quality, it can still display the content details in the video to the greatest extent, thereby improving the quality of the video after lossy compression.

[0124] Therefore, it is necessary to conduct a specific analysis of the local area conditions in the video of the current time period. First, each frame of the video image is divided in the same way to obtain an image area block. In a specific implementation method of an embodiment of the present invention, each frame of the video image is evenly divided into a preset number of image area blocks. The preset number of divisions can be set to 100, and the implementer can adjust it by himself, and there is no restriction here.

[0125] Preferably, in some possible implementations of the embodiments of the present invention, the method for obtaining the compression loss degree can be found in Figure 4 , which shows a flow chart of a method for obtaining the degree of compression loss provided by an embodiment of the present invention, the method comprising the following steps:

[0126] S401: grayscale each frame of video image to obtain each frame of video grayscale image; in each image area block, obtain the importance representation degree of each image area block according to the difference in grayscale distribution changes between every two frames of video grayscale images.

[0127] Considering that the parts with greater changes between frames require less compression, the importance of the position of each image area block is analyzed based on the change of grayscale information to obtain the importance representation degree, which reflects the degree of compression loss of each image area block. The higher the importance representation degree of the image area block, the lower the compression loss.

[0128] Therefore, each frame of video image needs to be grayscaled to obtain a grayscale image of each frame of video. It should be noted that the grayscale method is a technical means well known to those skilled in the art and will not be described in detail here.

[0129] Further, in some possible implementations of the embodiments of the present invention, the method for obtaining the important representation degree can be found in Figure 5 , which shows a flow chart of a method for obtaining an important characterization degree provided by an embodiment of the present invention, the method comprising the following steps:

[0130] S4011: taking each image area block as a target block in turn; obtaining a grayscale histogram of each frame of video grayscale image in the target block.

[0131] Each image area block is analyzed as a target block in turn. In order to analyze the change of grayscale information of the video grayscale image in the target block, the grayscale information is represented by obtaining the grayscale histogram in the target block. When there is a change in the corresponding position of the target block, different video grayscale images are represented differently in the grayscale histogram of the target block. It should be noted that the method of obtaining the grayscale histogram is a technical means well known to those skilled in the art and will not be described in detail here.

[0132] S4012: Obtain the information level difference between every two frames of video grayscale images of the target block according to the difference in the grayscale distribution quantity in the grayscale histogram between every two frames of video grayscale images in the target block.

[0133] The difference in the number of grayscale distributions reflects the overall difference in grayscale information between every two frames of video grayscale images, and the information level difference is obtained.

[0134] In some implementations of the embodiments of the present invention, the method for obtaining the information level difference includes:

[0135] The number of gray levels in the grayscale histogram of each frame of video grayscale image in the target block is counted as the number of gray levels of the target block in each frame of video grayscale image; for any two frames of video grayscale image, the difference in the number of gray levels is taken as the difference in information level of the target block in the two frames of video grayscale image.

[0136] Wherein, every two video grayscale images are represented as any two different video grayscale images in the current time period. The information difference of the target block position is reflected by the difference in the number of grayscale distributions of every two video grayscale images in the target block.

[0137] In other embodiments of the present invention, for any frame of video grayscale image, the number of pixels corresponding to each grayscale level in the grayscale histogram of the video grayscale image in the target block is counted as the number of pixels of each grayscale level in the video grayscale image of the target block. In the grayscale histogram of any two frames of video grayscale image of the target block, the difference in the number of pixels corresponding to each grayscale level is calculated, and the cumulative value is calculated to obtain the difference in information level of the target block in the two frames of video grayscale image. The overall deviation of the number of pixels corresponding to the grayscale level reflects the information difference.

[0138] S4013: Obtain a grayscale histogram curve of each frame of video grayscale image in the target block; obtain the information content difference between each two frames of video grayscale image in the target block according to the change difference between each two frames of video grayscale image in the target block on the grayscale histogram curve.

[0139] The differences are further analyzed from the details of the grayscale information representation content, and the change correlation analysis is performed by obtaining the grayscale histogram curve. It should be noted that the acquisition of the grayscale histogram curve is a technical means well known to those skilled in the art and will not be described in detail here.

[0140] The difference in the grayscale information between each two frames of video grayscale images is reflected by the difference in the histogram curve of the grayscale distribution, and the difference in information content is obtained.

[0141] In some implementations of the embodiments of the present invention, the method for obtaining the information content difference includes:

[0142] For any two frames of video grayscale images in the target block, the DTW value between the grayscale histogram curves is calculated to obtain the difference in information content of the target block in the two frames of video grayscale images. The DTW value is obtained through the dynamic time warping algorithm, which reflects the difference between the curves. The larger the DTW value, the worse the shape similarity between the curves, and the more significant the difference, which reflects the difference in content details of the grayscale information between the video grayscale images.

[0143] In other embodiments of the present invention, the Manhattan distance between the grayscale histogram curves can also be used as the information content difference to reflect the difference between the curves. Or the Pearson correlation coefficient between the grayscale histogram curves is negatively correlated to obtain the information content difference. Both the Manhattan distance and the Pearson correlation coefficient can reflect the changing relationship between the curves. It should be noted that the dynamic time warping algorithm to obtain the DTW value, the Manhattan distance and the Pearson correlation coefficient are all technical means well known to those skilled in the art, and will not be elaborated here.

[0144] S4014: Combining the information level difference and information content difference of the target block in every two frames of video grayscale images, obtain the representation degree of the target block in every two frames of video grayscale images; according to the representation degree of the target block between all pairwise video grayscale images in the current time period, determine the important representation degree of the target block.

[0145] The information magnitude difference and information content difference are combined to reflect the information difference between two frames of video grayscale images to obtain the representation degree. The representation degree of the image area block between any two frames of video grayscale images is integrated to obtain a more reliable and important representation degree, thereby improving the rationality of the subsequent compression adjustment of each image area block of each frame of video image.

[0146] In some implementations of the embodiments of the present invention, the method for obtaining the importance representation degree includes:

[0147] For any frame of video grayscale image, multiply the information magnitude difference and information content difference between the video grayscale image in the target block and each other frame of video grayscale image to obtain the representation degree of the video grayscale image in the target block and each other frame of video grayscale image. The average value of the representation degree of the video grayscale image in the target block and all other video grayscale images is taken as the average representation degree of the video grayscale image in the target block, and the average value of the average representation degrees of all video grayscale images in the target block is calculated and normalized to obtain the important representation degree of the target block.

[0148] The representation degree is obtained by combining the difference between each two frames. The greater the difference, that is, the greater the representation degree, the more changes have occurred in the image content in the area, and the higher the importance of the area. Then, the important representation degree is obtained by combining the representation degrees between all two frames of video grayscale images in the target block, reflecting the importance of the image area block. As an example, the expression of the important representation degree is: ; In the formula, Expressed as The important representation of the image area block, Represents the number of frames of the video in the current time period. Expressed as In the image area block Frame video grayscale image and other The difference in information content between grayscale images of frame video, Expressed as In the image area block Frame video grayscale image and other The difference in information level between frame video grayscale images, It is expressed as a normalized processing function. Expressed as In the image area block Frame video grayscale image and other The representation degree between frame video grayscale images, Expressed as In the image area block The average representation of the grayscale image in the frame video.

[0149] At this point, the acquisition of the importance of each image block area is completed.

[0150] S402: Determine the local requirement of each frame of video image in each image region block according to the compression requirement of each frame of video image and the importance representation degree of each image region block.

[0151] Since the content in each frame of video image changes, in each frame of video image, the local demand degree is obtained for each image area block of each frame of video image by combining the importance representation degree of each image area block with the compression requirement of each frame of video image, thereby reflecting the situation that each image area block in each frame of video image needs to be compressed.

[0152] In some implementations of the embodiments of the present invention, the method for obtaining the local demand degree includes:

[0153] The importance representation of each image region block is negatively correlated to obtain the compression representation of each image region block; the ratio of the compression representation of each image region block to the cumulative value of the compression representation of all image region blocks is used as the compression requirement weight of each image region block. The compression requirement of each frame of video image is multiplied by the compression requirement weight of each image region block to obtain the local requirement of each frame of video image in each image region block.

[0154] For image area blocks with greater importance representation, the smaller the degree of lossy compression demand is allocated, that is, the smaller the compression representation is, and considering the uniformity of compression allocation, normalization is performed in the form of a ratio with all compression representations so that the degree of lossy compression allocation does not exceed or fall short, and the compression demand weight is obtained. Finally, image area blocks with higher compression demand weights have lower representation importance, and more compression demands are given in the compression demand of each frame of video image to obtain the local demand degree.

[0155] S403: Determine the compression loss degree of each frame of video image in each image region block by combining the lossless compression volume of each frame of video image in each image region block and the local demand degree of each frame of video image in each image region block.

[0156] The final local demand degree is combined with the volume of lossless compression of each frame of video image in each image area block, and the compression loss degree of each frame of video image in each image area block is adaptively obtained, thereby realizing the local compression loss demand analysis of each frame of video image, so as to better ensure the stability and quality of the image quality in the compressed video.

[0157] In some implementations of the embodiments of the present invention, the method for obtaining the degree of compression loss includes:

[0158] The ratio between the local demand degree of each frame of video image in each image area block and the volume of each frame of video image losslessly compressed in each image area block is taken as the compression loss degree of each frame of video image in each image area block, representing the loss ratio of the lost part of each frame of video image in each image area block under lossless compression.

[0159] S5: Encode and compress the video of the current time period according to the degree of compression loss.

[0160] The encoding degree is adaptively adjusted by the compression loss degree in each image area block of each frame of video image. Preferably, ROI encoding algorithm is used for encoding compression, and different areas in the image can be adaptively encoded. The compression loss degree reflects the interest level of different areas in the ROI encoding algorithm.

[0161] Furthermore, in some implementations of the embodiments of the present invention, based on the degree of compression loss in each image area block of each frame of video image, the quantization parameter of ROI encoding in each image area block of each frame of video image is determined. The quantization parameter is an important parameter in ROI encoding, and the quality of regional encoding is controlled by the quantization parameter.

[0162] As an example, the product of the compression loss degree of each frame of video image in each image region block and the preset conversion coefficient is used as the quantization parameter of each frame of video image in each image region block. When the compression loss degree is greater, it means that the proportion of image region blocks that need to be lost is higher, and the quantization parameter is increased, the coding quality of the region is reduced, the quantization error is increased, and the image quality is reduced. Conversely, when the compression loss degree is smaller, it means that the image region blocks need to be retained to a higher degree, and the quantization parameter is reduced, and the coding quality of the region is improved to ensure the clarity of the image quality.

[0163] In a specific implementation of an embodiment of the present invention, the preset conversion coefficient is set to 1.2, which represents the conversion coefficient between the quantization parameter and the degree of image quality loss. The specific value can be adjusted by the implementer according to the implementation scenario and is not limited here.

[0164] Finally, ROI encoding compression is performed on the quantization parameters of each image area block of each frame of the video in the current time period to obtain the transmission video of the current time period, and adaptive encoding of each frame of the video in the video based on bandwidth analysis is implemented to obtain the transmission video for the next time period, thereby ensuring smooth transmission and improving the quality of video quality.

[0165] It should be noted that, in order to facilitate calculation, all indicator data involved in the calculation in the embodiment of the present invention are preprocessed to eliminate the dimension effect. The specific means of eliminating the dimension effect are technical means well known to those skilled in the art and are not limited here.

[0166] In summary, the present invention considers the impact of network bandwidth fluctuations on transmission quality, obtains the bandwidth evaluation degree of each time period according to the situation of each time period being affected by the previous network bandwidth fluctuation, thereby evaluating the quality of network bandwidth changes, and then combining the network bandwidth of the local historical time period before the current time period to obtain a more reliable predicted bandwidth, which is conducive to the subsequent more accurate analysis of the adjustment requirements of video transmission and improves the stability of video transmission. Based on the predicted bandwidth, the loss required for compression of the video in the current time period can be analyzed, and distributed to each frame of video image to obtain the compression requirement of each frame of video image, thereby analyzing the degree to which each frame of video image should be compressed to ensure smooth transmission of the video. However, considering the different importance of picture representation in different areas of the video image, the video image is divided to obtain image area blocks, and the grayscale complexity of the image area blocks between different frames of video images is combined with the compression requirement and lossless compression of each frame of video image to determine the compression loss degree of each frame of video image in each image area block, thereby adjusting the compression loss of different areas in the video image, and then realizing the adaptive encoding of each frame of video image in the video to obtain the transmission video that meets the transmission of the next time period. The present invention obtains a more reliable predicted bandwidth based on bandwidth fluctuations, adjusts the degree of compression loss in each frame of a video in combination with local area analysis, and adaptively adjusts video encoding, thereby improving the quality of transmitted video while ensuring smooth video transmission.

[0167] The embodiment of the present invention provides a video coding compression system based on bandwidth adaptation. Figure 6 , which shows a structural diagram of a bandwidth-adaptive video coding compression system provided by an embodiment of the present invention. The system 700 includes: a bandwidth prediction module 701, a compression demand analysis module 702, a region block compression analysis module 703 and a video coding module 704.

[0168] The bandwidth prediction module 701 is used to predict the predicted bandwidth of the video in the current time period based on the network bandwidths of the videos corresponding to the multiple historical time periods.

[0169] The compression requirement analysis module 702 is used to determine the compression requirement of each frame of the video in the current time period based on the predicted bandwidth of the current time period and the lossless compression status of the video in the current time period.

[0170] The region block compression analysis module 703 is used to obtain multiple image region blocks by performing the same division on each frame of video in the video of the current time period; and determine the degree of compression loss of each frame of video in each image region block according to the complexity of the grayscale information between different frames of video images, combined with the compression requirements and lossless compression conditions of each frame of video images.

[0171] The video encoding module 704 is used to encode and compress the video in the current time period according to the compression loss degree.

[0172] It should be noted that the system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. Since the specific implementation process of a bandwidth-adaptive video coding compression system in this embodiment is the same as the specific implementation process of a bandwidth-adaptive video coding compression method described above, it will not be described in detail here.

[0173] The present invention also provides a computer device, see Figure 7 , which shows a schematic diagram of the structure of a computer device provided by an embodiment of the present invention, the computer device 800 at least includes, but is not limited to, a memory 801, a processor 802 and a communication interface 803 that can be interconnected and communicated via a bus 810.

[0174] The memory 801 may include a large-capacity memory for data or instructions, including at least one type of computer-readable storage medium, the readable storage medium including a flash memory, a hard disk, a read-only memory, a magnetic disk or an optical disk, etc. The memory 801 may be inside or outside the computer device. In an embodiment of the present invention, the memory 801 may be a read-only memory for storing computer program instructions.

[0175] The processor 802 may include one or more integrated circuits for controlling the overall operation of the computer device 800. In the embodiment of the present invention, the processor 802 reads and executes computer program instructions stored in the memory 801 to implement Figure 1 The steps of a bandwidth adaptive video coding compression method in the illustrated embodiment.

[0176] The communication interface 803 is used to establish a communication connection between the computer device 800 and other electronic devices. In an embodiment of the present invention, the communication interface 803 is used to connect the computer device 800 to an external terminal through a network, establish a video data transmission channel between the computer device 800 and the external terminal, etc.

[0177] The embodiment of the present invention also provides a computer-readable storage medium, such as a flash memory, a hard disk, an optical disk or a server, etc., on which computer program instructions are stored, and the program instructions are executed by a processor to implement corresponding functions. The computer-readable storage medium in the embodiment of the present invention is used to store computer program instructions of a video coding compression method based on bandwidth adaptation, and the processor executes the steps of the above-mentioned video coding compression method based on bandwidth adaptation.

[0178] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0179] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A video coding compression method based on bandwidth adaptation, characterized in that: The method comprises: Based on the network bandwidths of the videos corresponding to the multiple historical time periods, the predicted bandwidth of the videos in the current time period is predicted; Determine the compression requirement of each frame of the video in the current time period based on the predicted bandwidth of the current time period and the lossless compression status of the video in the current time period; In the video of the current time period, each frame of video image is divided into multiple image area blocks in the same manner; according to the complexity of the grayscale information of each image area block between different frames of video images, combined with the compression requirements and lossless compression conditions of each frame of video image, the compression loss degree of each frame of video image in each image area block is determined; Encoding and compressing the video of the current time period according to the compression loss degree; The method for obtaining the compression loss degree includes: Grayscale each frame of video image to obtain a grayscale image of each frame of video; In each image region block, the importance of each image region block is obtained according to the difference in grayscale distribution between each two frames of video grayscale images; Determine the local requirement of each frame of video image in each image region block according to the compression requirement of each frame of video image and the importance of each image region block; Determine the compression loss degree of each frame of video image in each image region block by combining the volume of each frame of video image losslessly compressed in each image region block and the local demand degree of each frame of video image in each image region block; The method for obtaining the importance representation degree includes: Taking each image area block as a target block in turn; obtaining a grayscale histogram of each frame of the video grayscale image in the target block; According to the difference in the number of grayscale distributions of each two frames of video grayscale images in the target block in the grayscale histogram, the difference in the information level of each two frames of video grayscale images of the target block is obtained; Obtaining a grayscale histogram curve of each frame of video grayscale image in the target block; obtaining the information content difference between each two frames of video grayscale image in the target block according to the change difference between each two frames of video grayscale image in the target block on the grayscale histogram curve; Combining the information level difference and information content difference of the target block in each two frames of video grayscale images, the representation degree of the target block in each two frames of video grayscale images is obtained; According to the representation degree of the target block between all pairwise video grayscale images in the current time period, the important representation degree of the target block is determined.

2. The method for video coding compression based on bandwidth adaptation according to claim 1, characterized in that: The predicting of the predicted bandwidth of the video in the current time period based on the network bandwidths of the videos corresponding to the multiple historical time periods includes: In chronological order, the bandwidth evaluation degree of each time period is determined according to the numerical distribution and fluctuation stability of the network bandwidth of the local historical time period before each time period; the predicted bandwidth of the current time period is obtained according to the network bandwidth and bandwidth evaluation degree of the current time period and the local historical time period before the current time period.

3. The method for video coding compression based on bandwidth adaptation according to claim 2, characterized in that: The method for obtaining the bandwidth evaluation degree includes: For any time period, in time sequence, a preset first number of historical time periods before the time period are used as local historical time periods of the time period; According to the change disorder of the network bandwidth of all local historical time periods corresponding to the time period, the disorder fluctuation index of the time period is obtained; In the local historical time period of the time period, a preset second number of historical time periods closest to the time period in time are used as adjacent historical time periods of the time period; the preset first number is greater than the preset second number; According to the degree of deviation of the values ​​of the network bandwidth between the neighboring historical time periods and the local historical time periods in the time period, the value distribution index of the time period is obtained; The bandwidth evaluation degree of the time period is determined by combining the numerical distribution index and the chaotic fluctuation index of the time period; the numerical distribution index is positively correlated with the bandwidth evaluation degree, and the chaotic fluctuation index is negatively correlated with the bandwidth evaluation degree.

4. The method for video coding compression based on bandwidth adaptation according to claim 3, characterized in that: The method for obtaining the numerical distribution index includes: The average of the network bandwidth of all neighbor historical time periods in the time period is used as the neighbor bandwidth distribution index of the time period; The average of the network bandwidth of all local historical time periods in the time period is used as the local bandwidth distribution index of the time period; The ratio of the inter-neighbor bandwidth distribution index to the local bandwidth distribution index in the time period is used as the numerical distribution index of the time period.

5. The method for video coding compression based on bandwidth adaptation according to claim 2, characterized in that: The method of obtaining the predicted bandwidth of the current time period according to the network bandwidth and bandwidth evaluation degree of the current time period and the local historical time period before the current time period includes: Determine the bandwidth estimation value of each time period by combining the network bandwidth and bandwidth evaluation degree of each time period; According to the deviation between the bandwidth estimation value of each local historical time period of the current time period and the network bandwidth of the next time period of each local historical time period, the evaluation error of each local historical time period of the current time period is obtained; the error adjustment value at the current moment is obtained by combining the evaluation errors of all local historical time periods of the current time period; The bandwidth estimate and error adjustment value at the current moment are combined to obtain the predicted bandwidth at the current moment.

6. The method for video coding compression based on bandwidth adaptation according to claim 1, characterized in that: The step of determining the compression requirement of each frame of the video in the current time period based on the predicted bandwidth of the current time period and the lossless compression status of the video in the current time period includes: Get the volume of the video in the current time period after lossless compression and the number of frames of the video in the current time period; When the volume is larger than the predicted bandwidth, the compression requirement for each frame of the video in the current time period is determined according to the number of frames of the video in the current time period and the difference between the volume and the predicted bandwidth in the current time period.

7. The method for video coding compression based on bandwidth adaptation according to claim 1, characterized in that: The encoding and compressing of the video in the current time period according to the compression loss degree includes: Based on the compression loss degree of each frame of video image in each image region block, determine the quantization parameter of ROI encoding in each image region block of each frame of video image; Based on the quantization parameters of each image region block of each frame of the video in the current time period, ROI coding compression is performed to obtain the transmission video of the current time period.

8. The method for video coding compression based on bandwidth adaptation according to claim 7, characterized in that: The step of determining the quantization parameter of the ROI encoding in each image region block of each frame of the video image based on the compression loss degree of each image region block of each frame of the video image comprises: The product of the compression loss degree of each frame of video image in each image region block and the preset conversion coefficient is used as the quantization parameter of each frame of video image in each image region block.

Citation Information

Patent Citations

  • Video coding method and device

    CN111200734A

  • Lossless processing method for video data

    CN114339263A

  • Video processing method and device, computer equipment and computer readable storage medium

    CN116074547A

  • Ship remote monitoring video efficient transmission method based on image feature matching

    CN117692649A

  • Video transmission method and device, equipment and storage medium

    CN118175356A