CN-121644809-B - High-definition wireless video stream data compression method based on self-adaptive code rate
Abstract
The invention provides a high-definition wireless video stream data compression method based on a self-adaptive code rate, which is oriented to the situation that a wireless client cannot acquire the channel state of a physical layer and has no cooperation of a server, and the selection of files is carried out on a slicing boundary only according to the time consumption of slicing downloading and the buffer margin. The method comprises the steps of introducing a gear correction time-consuming residual as a confusion removal judgment quantity, combining a buffer state to generate a tolerance threshold value and a separation threshold value, determining a section drop point, defining a residual ambiguity region between the two threshold values, maintaining continuous ambiguity count and ambiguity grade in the section, updating a locking grade when evidence is insufficient, and gating target code rate gear jump. The slicing boundary gating state structure is used for uniformly bearing the judgment quantity, the threshold value, the interval and the locking state information, so that the error gear shifting and the early gear shifting are restrained, the gear fluctuation is reduced, and the gear selecting stability is improved.
Inventors
- Shi Yuansong
Assignees
- 上海正项信息科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260205
Claims (10)
- 1. The high-definition wireless video stream data compression method based on the self-adaptive code rate is characterized in that the following steps are executed at each slicing boundary: S101, acquiring downloading feedback information and fragment boundary buffer status information, obtaining downloading time consumption and target code rate gear of two adjacent fragments according to the downloading feedback information, executing gear correction on the fragment downloading time consumption to strip the influence of fragment volume change caused by target code rate gear change to obtain a gear correction time consumption residual error, determining a tolerance threshold by combining the fragment boundary buffer status information and the recent fluctuation strength of the gear correction time consumption residual error, determining a separation threshold based on the tolerance threshold and a threshold interval item changing along with the fragment boundary buffer status information, comparing the gear correction time consumption residual error with the tolerance threshold and the separation threshold to determine interval drop points, and indicating that the current fragment boundary is in one of a residual tolerance zone, a residual significant degradation zone or a residual fuzzy zone; S102, initializing a locking level to be in an unlocking state, maintaining continuous fuzzy counting in a preset sliding window when an interval falling point indication is in a residual fuzzy region, and determining a ambiguity level based on the relative positions of a gear correction time-consuming residual error, a tolerance threshold and a separation threshold; And S103, determining and outputting a candidate next target code rate gear according to the download feedback information and the fragment boundary buffer status information under the constraint of the locking level, wherein when the locking level is in the locking status, the next target code rate gear is limited not to be higher than the current target code rate gear.
- 2. The method for compressing high-definition wireless video stream data based on adaptive code rate according to claim 1, wherein the download feedback information at least comprises download time consumption of two adjacent time slices and a target code rate gear, when media time durations of two adjacent time slices are inconsistent, the download feedback information also comprises media time durations of two adjacent time slices, a gear correction time consumption residual is obtained by performing target code rate gear ratio correction on download time consumption ratio of two adjacent time slices, and the media time duration ratio is incorporated into ratio correction when the media time durations are inconsistent, and the slice boundary buffer state information is used for providing buffer margin at a slice boundary.
- 3. The adaptive code rate-based high definition wireless video stream data compression method according to claim 1, wherein the interval drop point is determined according to the rule that when a gear correction time-consuming residual is not greater than a tolerance threshold, the interval drop point indicates to be in a residual tolerance zone, when the gear correction time-consuming residual is not less than a separation threshold, the interval drop point indicates to be in a residual significant degradation zone, when the gear correction time-consuming residual is greater than the tolerance threshold and less than the separation threshold, the interval drop point indicates to be in a residual blurring zone, and the separation threshold is higher than the tolerance threshold.
- 4. The adaptive code rate-based high-definition wireless video stream data compression method according to claim 1, wherein the recent fluctuation intensity is obtained according to the rule that a time-consuming residual sequence is corrected by converging gears on a plurality of continuous slices covered by a preset sliding window, fluctuation measurement is calculated based on the residual sequence, the preset sliding window length is an integer not smaller than 2, and the fluctuation measurement is at least one of standard deviation, mean square error and mean absolute deviation.
- 5. The method for compressing high-definition wireless video stream data based on adaptive code rate according to claim 1, wherein the threshold interval term is determined by an interval reference value and a buffer adjustment coefficient together, the buffer adjustment coefficient obtains a buffer adjustment interval identifier by comparing a buffer margin with a preset buffer safety threshold and a preset buffer risk threshold, and is selected from a plurality of discrete buffer adjustment coefficient candidate values according to the buffer adjustment interval identifier, wherein the preset buffer safety threshold is higher than the preset buffer risk threshold, and the buffer adjustment coefficient selected when the buffer adjustment interval is a risk interval is not smaller than the buffer adjustment coefficient selected when the buffer adjustment interval is a safety interval.
- 6. The adaptive bitrate-based high definition wireless video stream data compression method according to claim 1, wherein the preset sliding window for maintaining the continuous blurring count is consistent with the sliding window for calculating the recent fluctuation intensity, and the continuous blurring count is maintained according to the rule that the interval drop point indicates that the continuous blurring count is updated incrementally when the interval drop point indicates that the continuous blurring count is in a residual tolerance area or a residual significant degradation area, and the interval drop point indicates that the continuous blurring count is cleared when the interval drop point indicates that the residual blurring area is in a residual tolerance area or a residual significant degradation area.
- 7. The adaptive bitrate-based high definition wireless video stream data compression method of claim 1, wherein the evidence deficiency is used for representing a slight but continuous residual ambiguity working condition and triggering a locking level update to gate a target bitrate gear jump, and the evidence deficiency is determined according to the rule that the continuous ambiguity count is larger than a frequency threshold and the evidence deficiency is determined when the ambiguity level is lower than a level threshold.
- 8. The adaptive code rate-based high-definition wireless video stream data compression method according to claim 7, wherein the grade threshold value is obtained by comparing a buffer margin with a preset buffer safety threshold value and a preset buffer risk threshold value, and is selected from a plurality of discrete grade threshold candidate values according to the grade threshold value interval identification, the grade threshold value selected when the grade threshold value interval is a risk interval is not smaller than the grade threshold value selected when the grade threshold value interval is a safety interval, the frequency threshold value is obtained by comparing the buffer margin with the preset buffer safety threshold value and the preset buffer risk threshold value, and is selected from a plurality of discrete frequency candidate values according to the buffer state interval identification, and the frequency candidate value selected when the buffer margin is reduced is not greater than the frequency candidate value selected when the buffer margin is increased.
- 9. The method for compressing high-definition wireless video stream data based on adaptive code rate according to claim 1, wherein the ambiguity level is determined by determining a relative position based on a ratio of a magnitude of a gear correction time-consuming residual error exceeding a tolerance threshold to a separation threshold spacing, and comparing the relative position with a plurality of classification thresholds to determine a plurality of discrete levels, the plurality of classification thresholds being arranged in increasing size, the relative position increase indicating that the gear correction time-consuming residual error is closer to the separation threshold boundary within a residual error ambiguity region.
- 10. The method for compressing high-definition wireless video stream data based on self-adaptive code rates according to claim 1 is characterized in that candidate next-slice target code rate gears are determined according to the following rule, throughput capacity representation values are obtained based on download feedback information, safety coefficient constraint is applied to the throughput capacity representation values in combination with buffer margin, the highest gear which does not exceed the upper limit of the throughput capacity representation values after the safety coefficient constraint is selected from a target code rate gear set to serve as the candidate next-slice target code rate gears, the safety coefficient is positive and smaller than 1, the target code rate gear set is a discrete gear list, and when the locking level is in a locking state and the candidate next-slice target code rate gears are higher than the current target code rate gears, the current target code rate gears are output.
Description
High-definition wireless video stream data compression method based on self-adaptive code rate Technical Field The invention relates to the technical field of audio and video transmission and adaptive code rate control, in particular to a high-definition wireless video stream data compression method based on an adaptive code rate. Background The audio/video transmission and self-adaptive code rate control technology is widely applied to a segmented streaming media transmission scene under a wireless network, and a wireless client side generally needs to determine a target code rate gear of the next segment based on the network and a buffer state at a segment boundary. The existing self-adaptive code rate method generally only utilizes the feedback of an application layer such as time consumption of fragment downloading, buffer allowance and the like to estimate the available throughput capacity, and combines a buffer threshold value and a hysteresis rule to complete up-down gear control. The prior art has the following defects: The prior art has the common problems that on one hand, the time consumption of downloading is influenced by network fluctuation and target code rate gear change, the slow down factor of downloading is difficult to distinguish, and the error down shift or the early up shift is easy to be caused by single observation and traction, and on the other hand, continuous state accumulation and gating constraint on evidence insufficient working conditions are lacked, and the unnecessary jump is difficult to be stably restrained and the gear selecting caliber is kept consistent. Therefore, under the above observation limitation conditions, how to defrobulate the download cause at the slicing boundary and suppress the misjudgment of single observation trigger becomes a problem to be solved by those skilled in the art. The present invention proposes a solution to the above-mentioned problems. Disclosure of Invention In order to overcome the above-mentioned drawbacks of the prior art, an embodiment of the present invention provides a high-definition wireless video stream data compression method based on an adaptive code rate, so as to solve the problems set forth in the above-mentioned background art. In order to achieve the above purpose, the present invention provides the following technical solutions: the high-definition wireless video stream data compression method based on the self-adaptive code rate comprises the following steps of: S101, acquiring downloading feedback information and fragment boundary buffer status information, obtaining downloading time consumption and target code rate gear of two adjacent fragments according to the downloading feedback information, executing gear correction on the fragment downloading time consumption to strip the influence of fragment volume change caused by target code rate gear change to obtain a gear correction time consumption residual error, determining a tolerance threshold by combining the fragment boundary buffer status information and the recent fluctuation strength of the gear correction time consumption residual error, determining a separation threshold based on the tolerance threshold and a threshold interval item changing along with the fragment boundary buffer status information, comparing the gear correction time consumption residual error with the tolerance threshold and the separation threshold to determine interval drop points, and indicating that the current fragment boundary is in one of a residual tolerance zone, a residual significant degradation zone or a residual fuzzy zone; S102, initializing a locking level to be in an unlocking state, maintaining continuous fuzzy counting in a preset sliding window when an interval falling point indication is in a residual fuzzy region, and determining a ambiguity level based on the relative positions of a gear correction time-consuming residual error, a tolerance threshold and a separation threshold; And S103, determining and outputting a candidate next target code rate gear according to the download feedback information and the fragment boundary buffer status information under the constraint of the locking level, wherein when the locking level is in the locking status, the next target code rate gear is limited not to be higher than the current target code rate gear. In a preferred embodiment, the download feedback information at least comprises download time consumption of two adjacent time slices and a target code rate gear, when media time durations of two adjacent time slices are inconsistent, the download feedback information also comprises media time durations of two adjacent time slices, a gear correction time consumption residual is obtained by performing target code rate gear ratio correction on download time consumption ratio of two adjacent time slices, and the media time duration ratio is integrated into ratio correction when the media time durations are inconsistent, and the slic