+

CN114449340B - A video bit rate identification method for encrypted video, a video playback index estimation method and device - Google Patents

A video bit rate identification method for encrypted video, a video playback index estimation method and device Download PDF

Info

Publication number
CN114449340B
CN114449340B CN202011200144.3A CN202011200144A CN114449340B CN 114449340 B CN114449340 B CN 114449340B CN 202011200144 A CN202011200144 A CN 202011200144A CN 114449340 B CN114449340 B CN 114449340B
Authority
CN
China
Prior art keywords
video
request
download
time
granularity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011200144.3A
Other languages
Chinese (zh)
Other versions
CN114449340A (en
Inventor
金宁迪
关凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing ZTE New Software Co Ltd
Original Assignee
Nanjing ZTE New Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN202011200144.3A priority Critical patent/CN114449340B/en
Publication of CN114449340A publication Critical patent/CN114449340A/en
Application granted granted Critical
Publication of CN114449340B publication Critical patent/CN114449340B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明涉及一种加密视频的视频码率识别方法、视频播放指标估计方法及装置,所述视频播放指标估计方法包括S1、由抓取的视频传输数据包经统计生成实际下载积分曲线;S2、基于Request粒度、Extremum粒度、时间窗粒度这三种粒度聚合抓取的视频传输数据包,并判断出下载模式;S3、在时间窗内估计视频码率,S4、生成理论播放积分曲线;S5、估计实际播放积分曲线;S6、计算各种视频播放指标。采用本发明方法和装置对于加密视频能够准确识别出视频正常播放或出现卡顿,能够准确估计视频的实时码率,并且能估计各种卡顿指标,包括视频时长、初始缓冲时长、卡顿时间点、卡顿恢复时间点、卡顿时长等。

The present invention relates to a video bit rate identification method, a video playback index estimation method and a device for encrypted video, wherein the video playback index estimation method comprises S1, generating an actual download integral curve by statistics of captured video transmission data packets; S2, aggregating captured video transmission data packets based on three granularities, namely, request granularity, extremum granularity, and time window granularity, and determining the download mode; S3, estimating the video bit rate within the time window, S4, generating a theoretical playback integral curve; S5, estimating the actual playback integral curve; S6, calculating various video playback indicators. The method and device of the present invention can accurately identify whether the encrypted video is playing normally or is stuck, can accurately estimate the real-time bit rate of the video, and can estimate various stuck indicators, including video duration, initial buffering duration, stuck time point, stuck recovery time point, stuck duration, etc.

Description

Video code rate identification method of encrypted video, video playing index estimation method and device
Technical Field
The invention belongs to the technical field of mobile communication networks, and particularly relates to a video code rate identification method of an encrypted video, a video playing index estimation method and a device.
Background
Video playing fluency is a key factor for evaluating the quality of a mobile network, and to evaluate the video fluency, a video code rate needs to be acquired first, and the video code rate can be generally acquired from a media description in a video streaming header file by adopting a depth message detection (DPI, deep Packet insertion) technology. However, when the video is transmitted by adopting an encryption protocol, information such as the code rate of the video slicing cannot be obtained from the media description. The video service quality evaluation key index needs to be calculated based on the video code rate. In order to calculate the video playing index under the condition of unknown code rate, a common solution in the industry is to set the code rate to a default fixed value. The video traffic index calculated based on this fixed code rate is obviously not accurate enough.
There have also been some studies in the industry on encrypted video evaluation. One type is to extract a feature training model from tag data by using a supervised learning method, and a large amount of training data is required, so that the estimation accuracy is directly related to the amount of training data and coverage scenes. The second type is a service-based method, but it is obviously unreasonable to use video parameters as a priori information, such as video rate, video duration, etc. The third type is an unsupervised and apriori mode based on service, but only aims at a single normal smooth downloading mode, the video book is not an important point for video playing index identification, and the important point is whether the clamping can be identified or not, and whether the clamping degree can be identified and described or not.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a video code rate identification method, a video playing index estimation method and a video playing index estimation device for an encrypted video.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
The technical scheme is as follows:
a video code rate identification method for encrypted video comprises the following steps of
Aggregating the captured video transmission data packets based on the three granularities of the Request granularity, the Extremum granularity and the time window granularity, and judging a downloading mode;
Aiming at the downloading mode, estimating the video code rate in a time window to obtain a reference code rate R B of the video;
further, the method for aggregating the grabbed video transmission data packets based on the Request granularity, extremum granularity and the time window granularity comprises the following steps:
s21, aggregation and statistics of Request granularity data packets are carried out
S22, extremum granularity data packet aggregation and statistics
S23, identifying a downloading mode.
Further, in S21, the specific method for aggregation and statistics of the Request granularity data packet is as follows:
Counting the grabbed video transmission data packets, defining two uplink downloading Request data packets and a downlink data packet in the period of the two uplink downloading Request data packets as a Request counting granularity, and acquiring counting characteristics of the Request granularity;
In S22, the Extremum granularity packet aggregation and statistics method is as follows:
S221, identifying the minimum value of the Request;
S222, carrying out Extremum granularity polymerization on the basis of the Request granularity;
In S23, the method of identifying the download mode is;
s231, identifying a valid Request;
S232, accumulating a section of video data which meets the requirement that the total time length of the effective requests is greater than or equal to 3×T 0 seconds to form a set R, and calculating the download time duty ratio R d in the set R and the duty ratio R s of the effective requests with the time length of the requests being greater than T 0;
S233, judging a downloading mode based on a downloading time duty ratio r d and a duty ratio r s of an effective Request with the time length of the Request being longer than T 0;
where T 0 is the video block duration.
Further, in S231, the minimum value of the Request needs to satisfy the following conditions:
1) The download data volume of the Request is smaller than that of the previous Request;
2) The downloaded data volume of the Request is smaller than the downloaded data volume of the subsequent Request;
3) The downloaded data amount of the Request is less than 250kB.
Further, in S222, extremum granularity aggregation is performed by defining all requests between two Request minima as one Extremum granularity and obtaining a statistical feature of Extremum granularity.
Further, the statistical features of Extremum granularity include:
1) Initiating an extremum Request;
2) Terminating the extremum Request;
3) The Request sequence List < Request > from start to end;
4) Total amount of Request download data in Extremum granularity.
Further, in S231, the valid Request satisfies the following conditions at the same time:
1) The amount of data downloaded by the Request is more than 10kB;
2) The non-downloading time length of the Request is less than T 0/2;
where T 0 is the video block duration.
Further, the statistical features of the Request granularity include:
1) A start Request timestamp t start;
2) Terminating the Request timestamp t end;
3) Download completion timestamp t download_over in Request;
4) The amount of download data in the Request.
Further, in S232, the calculation formula of the download time duty cycle r d is as follows: wherein R is a set of valid requests;
the calculation formula of the duty ratio r s of the effective Request with the Request time length larger than T 0 is as follows:
wherein, The number of valid requests with the Request time length being longer than T 0 in the set R;
the total number of valid requests in set R.
Further, in S233, based on the download time duty ratio r d and the duty ratio r s of the effective Request with the Request time longer than T 0, the method for determining the download mode is as follows:
Firstly, judging the downloading time duty ratio r d, and judging a smooth downloading mode when r d is smaller than a threshold th 1;
When r d is more than or equal to a threshold th 1, judging a ratio r s of the Request time length to be larger than T 0, and when r s is less than the threshold th 2, judging a balanced downloading mode;
And when r s is more than or equal to a threshold th 2, judging that the mode is a cartoon downloading mode.
Further, the method for aggregating the grabbed video transmission data packets based on the Request granularity, extremum granularity and the time window granularity further comprises the step of S24, aggregating and counting the data packets with the time window granularity.
Further, in S24, the method for aggregation and statistics of the time window granularity data packet is as follows:
s241, identifying valid Extremum;
s242, polymerizing the time window granularity on the basis of Extremum granularity;
Further, in S241, the requirement of the effective Extremum satisfies the following conditions:
1) Extremum the total amount of downloaded data is more than 250kB;
2) When a chunking download mode or a balanced download mode has been determined, the Extremum download time duty cycle should be greater than 0.8.
Further, in S242, the length of the aggregation time window is smaller than the smaller value of th n valid Extremum time lengths and the time length threshold th t.
Further, for the download mode, the method for estimating the video code rate in the time window comprises the following steps:
1) When the downloading mode is a periodic downloading mode, the real-time code rate estimation is carried out by adopting a real-time code rate estimation method under the periodic downloading mode, wherein the periodic downloading mode comprises a smooth downloading mode and a cartoon downloading mode.
2) When the downloading mode is the non-periodic downloading mode, firstly, calculating the size variation coefficients c v of all valid requests in the time window;
wherein sigma is the standard deviation of the size of the Request, and mu is the average value of the size of the Request;
Then, setting a threshold th cv, when c v>thcv, estimating the code rate by using a real-time code rate estimation method in a periodic download mode, and when c v≤thcv, continuously estimating the real-time code rate by using a real-time code rate estimation method in an aperiodic download mode;
The aperiodic download mode includes a balanced download mode.
Further, the real-time code rate estimation method in the period downloading mode is that the real-time code rate is estimated based on Extremum granularity in a time window.
Further, the real-time code rate estimation method in the period downloading mode specifically comprises the steps of in the period downloading mode, calculating the data size of all effective Extremum in a time window, taking the median of the effective Extremum as a reference value V 0 of the video segment size, and calculating the reference code rate R B=V0/T0 in the time window;
where T 0 is the video block duration.
Further, the real-time code rate estimation method in the non-periodic downloading mode is that the real-time code rate is estimated based on the Request granularity in a time window.
Further, calculating the data size of all effective requests in a time window, taking the median of the effective requests as a reference value V 0 of the video clip size, and a reference code rate R B=V0/T0 in the time window;
where T 0 is the video block duration.
Further, the method for obtaining the video block duration T 0 includes the steps of observing captured video transmission data, determining the size of an audio block and a preset audio sampling rate, estimating the video block duration, setting the size of the audio block to be H, and setting the audio sampling rate to be M, wherein the video block duration T 0 =h/M, and H/M is an integer.
The second technical scheme is as follows:
a method for estimating encrypted video playing index includes
The captured video transmission data packet is subjected to statistics to generate an actual downloading integral curve;
Identifying the video code rate by adopting the video code rate identification method of the encrypted video;
generating a theoretical play integral curve;
Estimating an actual playing integral curve;
various video playing indexes are calculated.
The method comprises the steps of accumulating the sizes of data packets which are downloaded before each time point in time sequence, and drawing by taking the downloading time as an abscissa and the total amount of the sizes of the data packets which are downloaded before each time point as an ordinate to form a downloaded data amount integrating curve.
Further, the drawing method of the theoretical playing integral curve comprises the following steps:
s41, assuming that video is played without any clip, in a time window, drawing by taking video playing time as an abscissa and taking a reference code rate in the time window as a slope to form a theoretical playing integral curve, wherein the ordinate is the total number of data amounts accumulated and played until the current video playing time;
s42, connecting the theoretical playing integral curves of each time window drawn in the S41 in time sequence to form a theoretical playing integral curve of the whole video.
Further, the estimation of the actual playing integral curve is performed based on the theoretical playing integral curve and the downloaded integral curve.
Further, the method for estimating the actual playing integral curve comprises the following steps:
S51, setting a buffer time length t buf parameter,
S52, moving the theoretical playing curve to the right, placing the theoretical playing curve under the actual downloading integral curve, and ensuring that the downloading curve is larger than the playing curve by the video data amount corresponding to the buffer time t buf at the time point of initial playing and katon recovery, so that the actual playing integral curve can be obtained.
Further, the video playing index includes video duration, initial buffer duration, a pause time point, a pause recovery time point and a pause duration.
Further, the calculation of the video playing index is performed based on an actual playing curve.
Further, 1) video duration, i.e., the theoretical playback curve end time point;
2) The initial buffer time length is the time point of the video data volume of the first download time length t buf on the actual playing curve;
3) A cartoon time point, namely a time point corresponding to an intersection point of an actual playing curve and an actual downloading curve, namely an actual downloading data amount = actual playing data amount time point;
4) A stuck recovery time point, namely a time point of downloading the video data amount with the time length t buf after being stuck on an actual playing curve;
5) The blocking duration is obtained from the blocking recovery time point of the time and the blocking time point of the time.
The technical scheme is as follows:
A video code rate recognition device for encrypted video comprises
The data packet aggregation and statistics module is used for aggregating the grabbed video transmission data packets based on the three granularities of the Request granularity, the Extremum granularity and the time window granularity, and judging a downloading mode;
And the video code rate estimation module is used for estimating the video code rate of videos in different downloading modes in a time window.
Further, the data packet aggregation and statistics module is used for aggregating and counting the data packets with the Request granularity, aggregating and counting the data packets with the Extremum granularity, identifying a downloading mode, and aggregating and counting the data packets with the time window granularity.
Further, the video code rate estimation module is used for estimating the real-time code rate based on Extremum granularity in a periodic downloading mode and estimating the real-time code rate based on Request granularity in an aperiodic downloading mode.
The technical scheme is as follows:
an encrypted video playing index estimation device comprises
The download integral curve generating module is used for generating an actual download integral curve by counting the grabbed video transmission data packets;
The video code rate recognition device of the encrypted video as described above;
The theoretical playing integral curve generating module is used for generating a theoretical playing integral curve according to the estimated video code rate in the time window;
And the video playing index estimation module is used for estimating the actual playing integral curve based on the actual downloading integral curve and the theoretical playing integral curve and calculating the video playing index.
Compared with the prior art, the invention has the beneficial effects that:
According to the invention, for video transmission data packet capturing, an actual downloading integral curve is generated by statistics of the captured data packets, the captured data packets are aggregated based on three granularities of Request granularity, extremum granularity and time window granularity, the video code rate is estimated in the time window, a theoretical playing integral curve is generated, and finally the actual playing integral curve and various video playing indexes are estimated; the method and the device can accurately identify the normal play or the occurrence of the jamming of the video for the encrypted video, accurately estimate the real-time code rate of the video, and estimate various jamming indexes including video duration, initial buffer duration, jamming time point, jamming recovery time point, jamming duration and the like.
Drawings
FIG. 1 is a flowchart of a method for estimating an encrypted video playback indicator according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an actual download integration curve in one embodiment of the invention;
FIG. 3 is a flow chart of a method for aggregating data packets based on three granularity, a Request granularity, a Extremum granularity, and a time window granularity, according to one embodiment of the invention;
FIG. 4 is a schematic diagram of a normal download mode in one embodiment of the invention;
FIG. 5 is a schematic diagram of a cartoon download mode in an embodiment of the invention;
FIG. 6 is a diagram illustrating a balanced download mode in accordance with one embodiment of the present invention;
FIG. 7 is a schematic diagram of a download pattern recognition binary tree in one embodiment of the present invention;
FIG. 8 is a flow chart of estimating video bitrate over a time window according to one embodiment of the invention;
Fig. 9 is a flowchart of a method for identifying video code rate according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a video playback index calculation method according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an actual playback integration curve in an embodiment of the invention;
fig. 12 is a block diagram showing the structure of an encrypted video playback index estimation apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, mechanically connected, electrically connected, directly connected, indirectly connected via an intervening medium, or in communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The present invention will be described in further detail with reference to the accompanying drawings.
An embodiment of a video playback index estimation method according to the present invention as shown in fig. 1, 3,7, 8 includes
S1, generating an actual download integral curve by statistics of captured video transmission data packets;
The sizes of the data packets which are downloaded before each time point are accumulated in time sequence, and the downloading time is plotted by taking the total size (unit: bytes) of the data packets which are downloaded before each time point as an ordinate, and a downloaded data amount integrating curve is formed as shown in fig. 2. In the figure, the slope of the tangent to each point represents the real-time rate of the current time data download.
S2, aggregating the captured video transmission data packets based on three granularities, namely a Request granularity, a Extremum granularity and a time window granularity, and judging a downloading mode;
s21, aggregation and statistics of Request granularity data packets are carried out
Specifically, the terminal applies for downloading the video clip and needs to send a downloading request in an uplink mode, then the video data is transmitted in a downlink mode, and after the video transmission is completed, the next video clip is downloaded in the uplink sending request. Counting the grabbed video transmission data packets, defining the data packets of the two uplink downloading requests and the downlink data packets during the data packets of the two uplink downloading requests as a Request counting granularity, and acquiring counting characteristics of the Request granularity;
The statistical features of the Request granularity include:
1) A start Request timestamp t start;
2) Terminating the Request timestamp t end;
3) Download completion timestamp t download_over in Request;
4) The amount of download data (bytes) in the Request;
Wherein the ending Request timestamp t end is the starting Request timestamp t start of the next Request granularity;
s22, extremum granularity data packet aggregation and statistics
S221, identifying the minimum value of the Request,
The minimum value of the Request needs to simultaneously meet the following conditions:
1) The Request is smaller than the previous Request;
2) The Request is smaller than the latter Request;
3) The Request is less than 250kB (about 144P video 10s video size).
S222, carrying out Extremum granularity polymerization on the basis of the Request granularity;
the sizes of the requests show a periodic variation rule, extremum granularity aggregation is that all requests between two minimum values of the requests are defined as one Extremum granularity on the basis of the granularity of the requests, and statistical characteristics of Extremum granularity are obtained;
The statistical features of Extremum granularity include:
1) Initiating an extremum Request;
2) Terminating the extremum Request;
3) The Request sequence List < Request > from start to end;
4) The total amount of data downloaded by the Request (with the starting extremum Request and the ending extremum Request) in Extremum granularity.
To clearly reveal the above statistical features, it is now expressed in terms of a histogram:
Specifically, the captured video transmission data packet is drawn into a histogram of data block downloading according to the statistical characteristics of the Request granularity, as shown in fig. 4-6, wherein each column is a data block and corresponds to the Request, the upper edge of the column is the beginning downloading time of the data block, namely, the beginning Request time stamp t start, the lower edge of the column is the ending downloading time of the data block, namely, the downloading completion time stamp t download_over in the Request, the column width represents the actual downloading time of the data block, and the column height represents the size of the data block, namely, the downloading data amount (bytes) in the Request;
By observing the download histogram of the different video transport data blocks, the encrypted video download mode is defined as 3 classes, namely a fluent download mode, a cartoon download mode and a balanced download mode.
In the smooth downloading mode, video playing is smooth, video and audio transmission is alternately performed in the video transmission process, the size of a Request presents a periodic variation rule, and in fig. 4, the Request is presented as a large data block and a small data block alternate transmission, the size of the data block presents a periodic variation rule, and the period is usually 5s or 10s. Typically, large data blocks are video data blocks and small data blocks are audio data blocks. The downloading duty ratio is very small, the bandwidth can fully meet the video downloading requirement, and the video is smoothly played. 3 requests outlined by box a (solid line box) in fig. 4 are aggregated into one Extremum;
In the churning download mode, the video playing is churning, which is shown in fig. 5, that is, large data blocks and small data blocks are alternately transmitted, the size of the data blocks shows a periodic variation rule (the periodic size is not constant, usually greater than 10s and is related to the bandwidth limitation degree), the audio and the video are transmitted in the large data blocks, and the small data blocks only transmit request messages. The download duty cycle is very large, the bandwidth becomes the bottleneck of video transmission, and video playing is blocked.
In the balanced download mode, as shown in fig. 6, the data block size does not show a significant periodic rule (the data block interval is usually 5s to 10 s), and one data block corresponds to one video block and one audio block of a time slice. The downloading rate is equal to the video playing rate, the downloading duty ratio is large, and the video playing is normal.
S23, identifying a downloading mode.
The download mode identification is based on the statistics of the download data packet of a certain time to determine that the download data packet belongs to one of the three download modes. The downloading mode is determined to at least require that the data accumulation meets the requirement that the effective Request total duration is not less than 3×T 0 seconds, and a set R is formed, wherein T 0 is the video block duration.
S231, a valid Request is identified,
The effective Request satisfies the following conditions simultaneously:
1) The amount of data downloaded by the Request is more than 10kB;
2) The non-downloading time length of the Request is less than T 0/2;
where T 0 is the duration of the video block.
S232, accumulating a section of video data which meets the requirement that the total time length of the effective requests is greater than or equal to 3×T 0 seconds to form a set R, and calculating the download time duty ratio R d in the set R and the duty ratio R s of the effective requests with the time length of the requests being greater than T 0;
1) The downloading time duty ratio R d is the duty ratio of the total time length of effective Request downloading to the total time length of the Request in the set R;
The calculation formula is as follows: wherein R is a set of valid requests;
2) The ratio R s of the effective requests with the time length of the requests being longer than T 0 is the ratio of the number of the effective requests with the time length of the requests being longer than T 0 in the collection R in the total number of the requests in the statistical time;
The calculation formula is as follows:
wherein, The number of valid requests with the Request time length being longer than T 0 in the set R;
for the total number of valid requests in set R,
Wherein T 0 is the video block downloading time length and is a configurable parameter;
The method for acquiring the video block downloading time length T 0 comprises the steps of observing the grabbed video transmission data, determining the size of an audio block and a preset audio sampling rate, estimating the video block downloading time length T 0, setting the size of the audio block as H, and setting the audio sampling rate as M, wherein the video block time length T 0 =H/M, and H/M is an integer.
The method for obtaining the video block download duration T 0 is described in the following by a specific example, from the overall consideration of the video playing index estimation problem, knowing the download data amount, and the video duration must be estimated first when the playing rate is to be found. In the smooth download mode, video blocks and audio blocks can be distinguished, the video block size varies greatly with sharpness, but the sampling rate of audio is usually not very different. The video duration can thus be estimated by the size of the audio block and the preset audio sample rate. Taking a Youtube Android platform as an example, setting an audio sampling rate m=128 kbps=16 kBps, observing from data to find that the size of an audio block is generally about h=161 kB, the video duration is about T 0 =h/m=161/16+.10s, namely t0=10s, and the video block duration is also 10s in a katon downloading mode and a balanced downloading mode, so that the video block duration 10s is used as a precondition of downloading mode judgment and code rate estimation later.
S233, judging the downloading mode based on the downloading time duty ratio r d and the duty ratio r s of the effective Request with the longer Request time than T 0.
The three download modes may be classified using a binary tree based on the two features extracted above, as shown in figure 7,
Firstly, judging the duty ratio rd of the downloading time, and judging a smooth downloading mode when rd is smaller than a threshold th 1;
When r d is more than or equal to a threshold th 1, judging a ratio r s of the Request time length to be larger than T 0, and when r s is less than the threshold th 2, judging a balanced downloading mode;
when r s is more than or equal to a threshold th 2, judging that the card is in a downloading mode;
Wherein th 1 and th 2 are configurable parameters, and usually, th 1=0.8,th2 =0.1 is taken.
S24, aggregation and statistics of the time window granularity data packets.
S241, identification is valid Extremum
The requirement of an effective Extremum satisfies the following conditions at the same time:
1) The total amount of Extremum downloaded data is more than 250kB;
2) The Extremum download time duty cycle should be greater than 0.8 when either the chunking download mode or the balanced download mode has been determined.
Wherein Extremum download time duty cycle refers to the duty cycle of the total duration of Extremum for the duration of download in Extremum.
S242, polymerizing the time window granularity on the basis of Extremum granularity;
The aggregate time window is of length to take the smaller of th n (usually th n =5) valid Extremum time lengths, and the time length threshold th t (usually th t =150)
In order to clearly explain the definition of valid Extremum, the following presents the identification result of valid Extremum according to the three download modes shown in fig. 4-6,
The fluent download mode, as shown in fig. 4, is outlined by box B (dashed box) as a window of time. This time window includes 5 valid Extremum and 1 invalid Extremum (the amount of downloaded data does not satisfy condition 1)
The cartoon download mode, as shown in fig. 5, is outlined by box C (dashed box) as a time window. This time window includes 2 valid Extremum and a plurality of invalid Extremum (condition 1 is not satisfied at box D (solid line circle), and condition 2 is not satisfied at box E (dashed line circle).
The balanced download mode, as shown in fig. 6, has a video download duration of 115m seconds, 2 valid Extremum and 1 invalid Extremum (condition 2 is not satisfied at box F (dashed box), the extremum download time duty cycle should be greater than 0.8), and only 1 time window is shown in fig. 6 in the video download.
S3, aiming at the downloading mode, estimating the video code rate in a time window to obtain a reference code rate R B of the video;
the video download duration T 0 has been estimated in the foregoing, where the foregoing three download modes, i.e., the smooth download mode and the caton download mode may be unified into a periodic download mode, where each period corresponds to one Extremum, and one video block of duration T 0 is downloaded, and the caton download mode corresponds to a non-periodic download mode, and each Request (corresponds to downloading one video block of duration T 0. The periodic and non-periodic download modes employ different play rate estimation methods.
1) When the downloading mode is a periodic downloading mode, the real-time code rate estimation is carried out by adopting a real-time code rate estimation method under the periodic downloading mode, wherein the periodic downloading mode comprises a smooth downloading mode and a cartoon downloading mode.
The real-time code rate estimation method in the period downloading mode comprises estimating the real-time code rate based on Extremum granularity in a time window;
Specifically, in the period downloading mode, a plurality of effective Extremum are arranged in a time window, the data size of all effective Extremum in the time window is calculated, the median of the size of the effective Extremum is taken as a reference value V 0 of the video clip size, the video duration is also taken as T 0, the same as the video block duration, and the reference code rate R B=V0/T0 in the time window;
The method for obtaining the size median of the valid Extremum includes that in all valid Extremum, valid Extremum is ordered according to data size, when the number of valid Extremum is odd, the size median of the valid Extremum is the data size value of valid Extremum at the most middle position, and when the number of valid Extremum is even, the size median of the valid Extremum is the average value of the data size values of 2 valid Extremum at the most middle position.
2) When the downloading mode is the non-periodic downloading mode, firstly, calculating the size variation coefficient c v of all effective requests in the time window, wherein the variation coefficient represents the degree of data dispersion, and the larger the variation coefficient is, the more the representative data dispersion is.
Wherein sigma is the standard deviation of the size of the Request, and mu is the average value of the size of the Request;
Then, setting a threshold th cv (usually taking th cv =0.5), and when c v>thcv, estimating the code rate by using a real-time code rate estimation method in a periodic download mode, and when c v≤thcv, continuously estimating the real-time code rate by using a real-time code rate estimation method in an aperiodic download mode;
The aperiodic download mode includes a balanced download mode.
The real-time code rate estimation method under the non-periodic downloading mode comprises estimating the real-time code rate based on the Request granularity in a time window;
specifically, the data size of all effective requests in a time window is calculated, and the median of the effective requests is taken as a reference value V 0 of the video clip size in all the effective requests, wherein the video duration is also taken as T 0, the same as the video block duration and the reference code rate R B=V0/T0 in the time window;
the method for obtaining the size median of the effective requests comprises the steps of sequencing the effective requests according to the data size in all the effective requests, wherein the size median of the effective requests is the data size value of the effective requests at the most middle position when the number of the effective requests is odd, and the size median of the effective requests is the average value of the data size values of the 2 effective requests at the most middle position when the number of the effective requests is even.
S4, generating a theoretical playing integral curve;
s41, assuming that video is played without any clip, in a time window, drawing by taking video playing time as an abscissa and taking a reference code rate in the time window as a slope to form a theoretical playing integral curve, wherein the ordinate is the total number of data amounts accumulated and played until the current video playing time;
s42, connecting the theoretical playing integral curves of each time window drawn in the S41 in time sequence to form a theoretical playing integral curve of the whole video.
S5, estimating an actual playing integral curve;
The estimation of the actual playing integral curve is carried out based on the theoretical playing integral curve and the downloading integral curve;
s51, a buffer duration t buf parameter is set, (t buf =5s is usually taken). When the video is initially buffered, the video is required to be loaded with enough t buf video and then played, and when the video is blocked, the video is required to be loaded with enough t buf video and then blocked and restored.
S52, as shown in FIG. 10, the theoretical playing integral curve is shifted to the right and placed under the actual downloading integral curve, and the downloading curve is ensured to be larger than the playing curve by the video data amount corresponding to the buffer time t buf at the time point of initial playing and the stopping recovery, so that the actual playing integral curve can be obtained. h 0 is the size of the time length data of the initial buffer t buf of the video, and h 1 is the size of the time length data of t buf which needs to be buffered after the video is played and is blocked at the moment t 1.
Specifically, S521 is drawn through the bottommost end of the theoretical playing integral curve, i.e. the initial point, drawing a line segment X parallel to the X axis, where the end point X 'of the line segment X is the data size corresponding to the buffer t buf duration when the distance from the actual downloading curve corresponds to the initial playing or the pause, then moving the theoretical playing curve to the right of the end point X' of the line segment X, i.e. completing the right movement of the theoretical playing curve once, S522, when the theoretical playing integral curve after the right movement still has a cross with the actual downloading integral curve, intercepting the part above the actual downloading integral curve at the cross point X ", repeating step S521 until all the theoretical integral curve after the right movement is moved to the lower part of the actual playing curve, which is to connect the multi-segment theoretical playing curve after the right movement with the line segment X, and then obtaining the actual playing integral curve as shown in fig. 10-11.
S6, calculating various video playing indexes.
The video playing index is calculated based on an actual playing curve.
1) Video duration, i.e., theoretical playback curve end time point (e.g., t v in fig. 10);
2) Initial buffer duration, i.e., the time point (such as t 0 in fig. 10) of the video data amount (h 0) of the first download duration t buf on the actual playing curve;
3) A click time point, namely a time point corresponding to an intersection point of the actual playing curve and the actual downloading curve, namely an actual downloading data amount=an actual playing data amount time point (such as t 1、t3、t5、t7 in fig. 10);
4) A time point of the pause recovery, i.e. a time point of downloading the video data amount of the time period t buf after the pause on the actual playing curve (such as t 2、t4、t6、t8 in fig. 10);
5) The blocking duration is obtained from the blocking recovery time point of the time and the blocking time point of the time.
In the above-mentioned encrypted video playing index estimation, S2 is used for aggregating the captured video transmission data packets based on three granularities of Request granularity, extremum granularity and time window granularity and judging a downloading mode, S3 is used for estimating the video code rate in the time window according to the downloading mode to obtain the reference code rate R B of the video, and the method is a flow of the video code rate identification method of the encrypted video.
In order to implement the above method, as shown in fig. 12, the present invention also provides an encrypted video playing index estimation device,
The download integral curve generating module 1 is used for generating an actual download integral curve by statistics of the captured video transmission data packets;
The data packet aggregation and statistics module 2 is used for aggregating the grabbed video transmission data packets based on the three granularities of the Request granularity, the Extremum granularity and the time window granularity, and judging a downloading mode;
and the video code rate estimation module 3 is used for estimating the video code rate in a time window for videos in different downloading modes.
The theoretical playing integral curve generating module 4 is used for generating a theoretical playing integral curve according to the estimated video code rate in the time window;
and the video playing index estimation module 5 is used for estimating the actual playing integral curve based on the actual downloading integral curve and the theoretical playing integral curve and calculating the video playing index.
Wherein the data packet aggregation and statistics module and the video code rate estimation module are video code rate estimation devices of the encrypted video,
Specifically, the data packet aggregation and statistics module 2 is configured to aggregate and count Request granularity data packets, aggregate and count Extremum granularity data packets, identify a download mode, and aggregate and count time window granularity data packets.
The video code rate estimation module 3 is used for estimating the real-time code rate based on Extremum granularity in a periodic downloading mode and estimating the real-time code rate based on Request granularity in an aperiodic downloading mode.
The above described embodiments are only preferred examples of the invention and are not exhaustive of the possible implementations of the invention. Any obvious modifications thereof, which would be apparent to those skilled in the art without departing from the principles and spirit of the present invention, should be considered to be included within the scope of the appended claims.

Claims (27)

1.一种加密视频的视频码率识别方法,其特征在于,包括1. A method for identifying the video bit rate of an encrypted video, comprising: 基于Request粒度、Extremum粒度、时间窗粒度这三种粒度聚合抓取的视频传输数据包,并判断出下载模式;Aggregate the captured video transmission data packets based on the three granularities of request granularity, extremum granularity, and time window granularity, and determine the download mode; 针对下载模式,在时间窗内估计视频码率,获得视频的基准码率RBFor the download mode, estimate the video bit rate within the time window and obtain the video reference bit rate RB ; 基于Request粒度、Extremum粒度、时间窗粒度对抓取的视频传输数据包进行聚合的方法为:The method for aggregating captured video transmission data packets based on request granularity, extremum granularity, and time window granularity is as follows: S21、进行Request粒度数据包的聚合和统计;S21, aggregate and count the request-sized data packets; S22、Extremum粒度数据包聚合和统计;S22, Extremum granularity packet aggregation and statistics; S23、下载模式的识别;S23, identification of download mode; 在S21中,进行Request粒度数据包的聚合和统计具体方法为:In S21, the specific method for aggregating and counting request-sized data packets is as follows: 对抓取的视频传输数据包进行统计,将两次上行下载请求数据包,及两次上行下载请求数据包期间的下行数据包定义为一个Request统计粒度,并获取所述Request粒度的统计特征;Statistics are collected on captured video transmission data packets, two uplink download request data packets and downlink data packets during the two uplink download request data packets are defined as a request statistical granularity, and statistical features of the request granularity are obtained; 在S22中,Extremum粒度数据包聚合和统计方法为:In S22, the Extremum granularity packet aggregation and statistics method is: S221、识别Request的极小值;S221, identifying the minimum value of Request; S222、在Request粒度的基础上,进行Extremum粒度聚合;S222, based on the Request granularity, perform Extremum granularity aggregation; 在S23中,下载模式的识别的方法为;In S23, the method of identifying the download mode is: S231、识别有效Request;S231, identifying a valid Request; S232、取数据累积满足有效Request总时长大于等于3×T0秒的一段视频数据,构成集合R,并计算集合R内的下载时间占空比rd和Request时长大于T0的有效Request的占比rsS232, take a segment of video data that meets the requirement that the total duration of valid requests is greater than or equal to 3×T 0 seconds, form a set R, and calculate the download time duty ratio r d and the proportion r s of valid requests with a duration greater than T 0 in the set R; S233、基于下载时间占空比rd和Request时长大于T0的有效Request的占比rs,判定下载模式;S233, determining the download mode based on the download time duty cycle r d and the proportion r s of valid requests with a request duration greater than T 0 ; 其中,T0为视频块时长;Where T 0 is the duration of the video block; 针对下载模式,在时间窗内估计视频码率的方法为:For download mode, the method to estimate the video bitrate within the time window is: 1)当下载模式为周期下载模式时,采用周期下载模式下实时码率的估计方法进行实时码率估算;所述周期下载模式包括流畅下载模式和卡顿下载模式;1) When the download mode is a periodic download mode, the real-time bit rate is estimated by using a real-time bit rate estimation method in the periodic download mode; the periodic download mode includes a smooth download mode and a stuck download mode; 2)当下载模式为非周期下载模式时,首先,计算时间窗内的所有有效Request的大小变异系数cv2) When the download mode is non-periodic download mode, first, calculate the size variation coefficient c v of all valid requests in the time window, 其中,σ为Request大小标准差,μ为Request大小均值;Among them, σ is the standard deviation of request size, μ is the mean of request size; 然后,设置门限值thcv,当cv>thcv时,改用周期下载模式下实时码率估计方法估算码率;当cv≤thcv时,继续采用非周期下载模式下实时码率估计方法估算实时码率;Then, a threshold value th cv is set. When c v >th cv , the real-time bit rate estimation method in the periodic download mode is used to estimate the bit rate. When c v ≤th cv , the real-time bit rate estimation method in the non-periodic download mode is used to estimate the real-time bit rate. 所述非周期下载模式包括平衡下载模式;The non-periodic download mode includes a balanced download mode; 所述周期下载模式下实时码率的估计方法为:在时间窗内,基于Extremum粒度估计实时码率;The method for estimating the real-time bit rate in the periodic download mode is as follows: within the time window, the real-time bit rate is estimated based on the Extremum granularity; 所述非周期下载模式下实时码率的估计方法为:在时间窗内,基于Request粒度估计实时码率。The method for estimating the real-time bit rate in the non-periodic download mode is: estimating the real-time bit rate based on the Request granularity within the time window. 2.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,所述Extremum粒度的统计特征包括:2. A method for identifying video bit rate of encrypted video according to claim 1, characterized in that the statistical features of the Extremum granularity include: 1)起始极值Request;1) Initial extreme value Request; 2)终止极值Request;2) Terminate the extreme value Request; 3)从起始到终止的Request序列List<Request>;3) List<Request>, the request sequence from start to end; 4)Extremum粒度中Request下载数据总量。4) Total amount of Request download data in Extremum granularity. 3.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,所述Request粒度的统计特征包括:3. The video bit rate identification method of an encrypted video according to claim 1, wherein the statistical features of the request granularity include: 1)、起始Request时间戳tstart1) Start Request timestamp t start ; 2)、终止Request时间戳tend2) End Request timestamp t end ; 3)、Request中的下载完成时间戳tdownload_over3) The download completion timestamp t download_over in the Request; 4)、Request中的下载数据量。4) The amount of downloaded data in the Request. 4.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,4. The method for identifying the video bit rate of an encrypted video according to claim 1, characterized in that: 在S231中,所述Request极小值需同时满足如下条件:In S231, the minimum Request value must satisfy the following conditions at the same time: 1)所述Request的下载数据量比前一个Request的下载数据量小;1) The download data amount of the Request is smaller than the download data amount of the previous Request; 2)所述Request的下载数据量比后一个Request的下载数据量小;2) The download data volume of the Request is smaller than the download data volume of the next Request; 3)所述Request的下载数据量小于250kB。3) The download data size of the Request is less than 250kB. 5.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,在S222中,进行Extremum粒度聚合的方法为:将两个Request极小值间的所有Request定义为一个Extremum粒度,获取Extremum粒度的统计特征。5. A video bit rate identification method for encrypted video according to claim 1, characterized in that, in S222, the method for performing Extremum granularity aggregation is: defining all Requests between two Request minimum values as an Extremum granularity, and obtaining statistical characteristics of the Extremum granularity. 6.根据权利要求3所述的一种加密视频的视频码率识别方法,其特征在于,6. The method for identifying the video bit rate of an encrypted video according to claim 3, characterized in that: 在S231中,所述有效Request为同时满足如下条件:In S231, the valid Request satisfies the following conditions at the same time: 1)Request下载数据量大于10kB;1) The amount of data downloaded by the request is greater than 10kB; 2)Request非下载时长小于T0/2;2) The non-downloading time of Request is less than T 0 /2; 其中,T0为视频块时长。Wherein, T 0 is the duration of the video block. 7.根据权利要求6所述的一种加密视频的视频码率识别方法,其特征在于,7. The method for identifying the video bit rate of an encrypted video according to claim 6, characterized in that: 在S232中,所述下载时间占空比rd的计算公式为:In S232, the calculation formula of the download time duty cycle r d is: 其中R为有效Request的集合; Where R is the set of valid Requests; 所述Request时长大于T0的有效Request的占比rs的计算公式为:The calculation formula for the proportion of valid requests with a request duration greater than T 0 is: 其中,为集合R内,Request时长大于T0的有效Request的个数;in, is the number of valid requests in set R whose request duration is greater than T 0 ; 为集合R内,有效Request总个数。 The total number of valid Requests in set R. 8.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,8. The method for identifying the video bit rate of an encrypted video according to claim 1, characterized in that: 在S233中,基于下载时间占空比rd和Request时长大于T0的有效Request的占比rs,判定下载模式的方法为:In S233, based on the download time duty cycle r d and the ratio of valid Requests with a Request duration greater than T 0 r s , the method for determining the download mode is: 首先判定下载时间占空比rd,当rd<门限阈值th1时,即判定为流畅下载模式;First, the download time duty cycle r d is determined. When r d < threshold th 1 , it is determined to be a smooth download mode. 当rd≥门限阈值th1时,对Request时长大于T0的比例rs进行判定,当rs<门限阈值th2时,即判定为平衡下载模式;When r d ≥ threshold th 1 , the proportion r s of the request duration greater than T 0 is determined. When r s <threshold th 2 , it is determined to be a balanced download mode; 当rs≥门限阈值th2时,即判定为卡顿下载模式。When r s ≥ threshold th 2 , it is determined to be a stuck download mode. 9.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,9. The method for identifying the video bit rate of an encrypted video according to claim 1, characterized in that: 基于Request粒度、Extremum粒度、时间窗粒度对抓取的视频传输数据包进行聚合的方法,还包括S24、时间窗粒度数据包聚合和统计。The method for aggregating captured video transmission data packets based on request granularity, extremum granularity, and time window granularity also includes S24, time window granularity data packet aggregation and statistics. 10.根据权利要求9所述的一种加密视频的视频码率识别方法,其特征在于,10. The method for identifying the video bit rate of an encrypted video according to claim 9, characterized in that: 在S24中,时间窗粒度数据包聚合和统计的方法为:In S24, the method for aggregating and counting packets at the time window granularity is: S241、识别有效Extremum;S241, Identify effective Extremum; S242、在Extremum粒度基础上,对时间窗粒度进行聚合。S242: Based on the Extremum granularity, aggregate the time window granularity. 11.根据权利要求10所述的一种加密视频的视频码率识别方法,其特征在于,11. The method for identifying the video bit rate of an encrypted video according to claim 10, characterized in that: 在S241中,所述有效Extremum的需同时满足如下条件:In S241, the effective Extremum must meet the following conditions at the same time: 1)Extremum下载数据总量大于250kB;1) The total amount of Extremum downloaded data is greater than 250kB; 2)当已经判定为卡顿下载模式或平衡下载模式时,Extremum下载时间占空比应大于0.8。2) When the download mode is determined to be the jamming download mode or the balanced download mode, the Extremum download time duty cycle should be greater than 0.8. 12.根据权利要求10所述的一种加密视频的视频码率识别方法,其特征在于,12. The method for identifying the video bit rate of an encrypted video according to claim 10, characterized in that: 在S242中,聚合时间窗的长度为取thn个有效Extremum时间长度,和时间长度门限tht中的较小值。In S242, the length of the aggregation time window is a smaller value of the th n valid Extremum time lengths and the time length threshold th t . 13.根据权利要求10所述的一种加密视频的视频码率识别方法,其特征在于,13. The method for identifying the video bit rate of an encrypted video according to claim 10, characterized in that: 所述周期下载模式下实时码率的估计方法具体为:在周期下载模式下,在时间窗内有多个有效Extremum,计算时间窗内所有有效Extremum的数据量的大小,取有效Extremum大小的中位数,为一个视频片段大小的基准值V0;时间窗内的基准码率RB=V0/T0The method for estimating the real-time bit rate in the periodic download mode is as follows: in the periodic download mode, there are multiple valid extremums in the time window, the data size of all valid extremums in the time window is calculated, and the median of the valid extremum size is taken as a reference value V 0 of the size of a video segment; the reference bit rate RB in the time window = V 0 /T 0 ; 其中,T0为视频块时长。Wherein, T 0 is the duration of the video block. 14.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,14. The method for identifying the video bit rate of an encrypted video according to claim 1, characterized in that: 计算时间窗内所有有效Request的数据量的大小,取有效Request大小的中位数,为一个视频片段大小的基准值V0;时间窗内的基准码率RB=V0/T0Calculate the data size of all valid requests in the time window, take the median of the valid request size as the reference value V 0 of the video segment size; the reference bit rate RB in the time window = V 0 /T 0 ; 其中,T0为视频块时长。Wherein, T 0 is the duration of the video block. 15.根据权利要求1所述的一种加密视频的视频码率识别方法,其特征在于,15. The method for identifying the video bit rate of an encrypted video according to claim 1, characterized in that: 所述视频块时长T0的获得方法为:对抓取的视频传输数据进行观察,确定音频块的大小和预设音频采样率,并估计视频块时长,设音频块的大小为H,音频采样率为M,则视频块时长T0=H/M,其中H/M为整数。The method for obtaining the video block duration T 0 is as follows: observing the captured video transmission data, determining the size of the audio block and the preset audio sampling rate, and estimating the video block duration. Assuming the size of the audio block is H and the audio sampling rate is M, the video block duration T 0 =H/M, where H/M is an integer. 16.一种加密视频播放指标估计的方法,其特征在于,包括16. A method for estimating encrypted video playback indicators, characterized in that it includes: 由抓取的视频传输数据包经统计生成实际下载积分曲线;An actual download integral curve is generated by statistics of captured video transmission data packets; 采用如权利要求1至15任一项所述的加密视频的视频码率识别方法识别视频码率;Identify the video bit rate using the video bit rate identification method for encrypted video according to any one of claims 1 to 15; 生成理论播放积分曲线;Generate theoretical playback integral curve; 估计实际播放积分曲线;Estimate the actual playback integral curve; 计算各种视频播放指标。Calculate various video playback metrics. 17.根据权利要求16所述的一种加密视频播放指标估计的方法,其特征在于,17. A method for estimating encrypted video playback index according to claim 16, characterized in that: 由抓取的视频传输数据包经统计生成实际下载积分曲线的具体方法为:按时间顺序,将每个时间点以前下载完成的数据包大小累加,并以下载时间为横坐标,以每个时间点以前下载完成的数据包大小总量为纵坐标,作图,形成下载数据量积分曲线。The specific method of generating the actual download integral curve by statistics of the captured video transmission data packets is as follows: in chronological order, the sizes of the data packets downloaded before each time point are accumulated, and a graph is drawn with the download time as the horizontal axis and the total size of the data packets downloaded before each time point as the vertical axis to form a download data volume integral curve. 18.根据权利要求17所述的一种加密视频播放指标估计的方法,其特征在于,18. A method for estimating encrypted video playback index according to claim 17, characterized in that: 所述理论播放积分曲线的绘制方法为:The method for drawing the theoretical playback integral curve is: S41、假设视频无卡顿播放,在时间窗内,以视频播放时刻为横坐标,以所述时间窗内的基准码率为斜率,作图,形成理论播放积分曲线;纵坐标即为到当前视频播放时刻累积播放的数据量总数;S41, assuming that the video is played without interruption, within the time window, the video playback time is used as the horizontal axis and the reference bit rate within the time window is used as the slope to form a theoretical playback integral curve; the vertical axis is the total amount of data accumulated up to the current video playback time; S42、将S41中绘制的每一个时间窗的理论播放积分曲线按时间顺序连接,形成整个视频的理论播放积分曲线。S42, connecting the theoretical playback integral curve of each time window drawn in S41 in chronological order to form a theoretical playback integral curve of the entire video. 19.根据权利要求16所述的一种加密视频播放指标估计的方法,其特征在于,19. The method for estimating encrypted video playback index according to claim 16, characterized in that: 估计实际播放积分曲线,是基于理论播放积分曲线和下载积分曲线进行的。The actual playback integral curve is estimated based on the theoretical playback integral curve and the download integral curve. 20.根据权利要求19所述的一种加密视频播放指标估计的方法,其特征在于,20. The method for estimating encrypted video playback index according to claim 19, characterized in that: 估计实际播放积分曲线的方法为:The method to estimate the actual playback integral curve is: S51、设置缓冲时长tbuf参数,S51, set the buffering time t buf parameter, S5.2、将理论播放曲线右移,并置于实际下载积分曲线之下,并且保证在初始播放、卡顿恢复时间点,下载曲线比播放曲线大缓冲时长tbuf所对应的视频数据量,即可获得实际播放积分曲线。S5.2. Shift the theoretical playback curve to the right and place it below the actual download integral curve, and ensure that at the initial playback and freeze recovery time points, the download curve is larger than the playback curve by the amount of video data corresponding to the buffering time tbuf , so that the actual playback integral curve can be obtained. 21.根据权利要求16所述的一种加密视频播放指标估计的方法,其特征在于,21. The method for estimating encrypted video playback index according to claim 16, characterized in that: 所述视频播放指标包括视频时长、初始缓冲时长、卡顿时间点、卡顿恢复时间点、卡顿时长。The video playback indicators include video duration, initial buffering duration, freeze time point, freeze recovery time point, and freeze duration. 22.根据权利要求21所述的一种加密视频播放指标估计的方法,其特征在于,22. A method for estimating encrypted video playback indicators according to claim 21, characterized in that: 所述视频播放指标的计算是基于实际播放曲线进行的。The calculation of the video playback index is performed based on the actual playback curve. 23.根据权利要求21所述的一种加密视频播放指标估计的方法,其特征在于,23. A method for estimating encrypted video playback indicators according to claim 21, characterized in that: 1)视频时长:即理论播放曲线结束时间点;1) Video duration: the end time of the theoretical playback curve; 2)初始缓冲时长:即实际播放曲线上,首次下载时长tbuf视频数据量的时间点;2) Initial buffering duration: the time point on the actual playback curve when the video data is first downloaded for a duration of tbuf ; 3)卡顿时间点:即实际播放曲线与实际下载曲线的交点所对应的时间点,也即实际下载数据量=实际播放数据量时间点;3) Freeze time point: the time point corresponding to the intersection of the actual playback curve and the actual download curve, that is, the time point when the actual download data volume = the actual playback data volume; 4)卡顿恢复时间点:即实际播放曲线上,卡顿后下载时长tbuf视频数据量时间点;4) The time point of recovery from freeze: that is, the time point of the download time t buf video data after freeze on the actual playback curve; 5)卡顿时长:每次卡顿时长由该次的卡顿恢复时间点-该次的卡顿时间点,即可获得。5) Freeze duration: The freeze duration of each freeze is calculated by dividing the freeze recovery time point by the freeze time point. 24.一种加密视频的视频码率识别装置,其特征在于,包括24. A video bit rate identification device for encrypted video, characterized in that it includes 数据包聚合和统计模块,用于基于Request粒度、Extremum粒度、时间窗粒度这三种粒度聚合抓取的视频传输数据包,并判断出下载模式;The data packet aggregation and statistics module is used to aggregate the captured video transmission data packets based on the three granularities of request granularity, extremum granularity, and time window granularity, and determine the download mode; 视频码率估计模块,用于对不同下载模式下视频,在时间窗内估计视频码率基于Request粒度、Extremum粒度、时间窗粒度对抓取的视频传输数据包进行聚合的方法为:The video bitrate estimation module is used to estimate the video bitrate of videos in different download modes within the time window. The method of aggregating the captured video transmission data packets based on the request granularity, the extremum granularity, and the time window granularity is as follows: S21、进行Request粒度数据包的聚合和统计;S21, aggregate and count the request-sized data packets; S22、Extremum粒度数据包聚合和统计;S22, Extremum granularity packet aggregation and statistics; S23、下载模式的识别;S23, identification of download mode; 在S21中,进行Request粒度数据包的聚合和统计具体方法为:In S21, the specific method for aggregating and counting request-sized data packets is as follows: 对抓取的视频传输数据包进行统计,将两次上行下载请求数据包,及两次上行下载请求数据包期间的下行数据包定义为一个Request统计粒度,并获取所述Request粒度的统计特征;Statistics are collected on captured video transmission data packets, two uplink download request data packets and downlink data packets during the two uplink download request data packets are defined as a request statistical granularity, and statistical features of the request granularity are obtained; 在S22中,Extremum粒度数据包聚合和统计方法为:In S22, the Extremum granularity packet aggregation and statistics method is: S221、识别Request的极小值;S221, identifying the minimum value of Request; S222、在Request粒度的基础上,进行Extremum粒度聚合;S222, based on the Request granularity, perform Extremum granularity aggregation; 在S23中,下载模式的识别的方法为;In S23, the method of identifying the download mode is: S231、识别有效Request;S231, identifying a valid Request; S232、取数据累积满足有效Request总时长大于等于3×T0秒的一段视频数据,构成集合R,并计算集合R内的下载时间占空比rd和Request时长大于T0的有效Request的占比rsS232, take a segment of video data that meets the requirement that the total duration of valid requests is greater than or equal to 3×T 0 seconds, form a set R, and calculate the download time duty ratio r d and the proportion r s of valid requests with a duration greater than T 0 in the set R; S233、基于下载时间占空比rd和Request时长大于T0的有效Request的占比rs,判定下载模式;S233, determining the download mode based on the download time duty cycle r d and the proportion r s of valid requests with a request duration greater than T 0 ; 其中,T0为视频块时长;Where T 0 is the duration of the video block; 1)当下载模式为周期下载模式时,采用周期下载模式下实时码率的估计方法进行实时码率估算;所述周期下载模式包括流畅下载模式和卡顿下载模式;1) When the download mode is a periodic download mode, the real-time bit rate is estimated by using a real-time bit rate estimation method in the periodic download mode; the periodic download mode includes a smooth download mode and a stuck download mode; 2)当下载模式为非周期下载模式时,首先,计算时间窗内的所有有效Request的大小变异系数cv2) When the download mode is non-periodic download mode, first, calculate the size variation coefficient c v of all valid requests in the time window, 其中,σ为Request大小标准差,μ为Request大小均值;Among them, σ is the standard deviation of request size, μ is the mean of request size; 然后,设置门限值thcv,当cv>thcv时,改用周期下载模式下实时码率估计方法估算码率;当cv≤thcv时,继续采用非周期下载模式下实时码率估计方法估算实时码率;Then, a threshold value th cv is set. When c v >th cv , the real-time bit rate estimation method in the periodic download mode is used to estimate the bit rate. When c v ≤th cv , the real-time bit rate estimation method in the non-periodic download mode is used to estimate the real-time bit rate. 所述非周期下载模式包括平衡下载模式;The non-periodic download mode includes a balanced download mode; 所述周期下载模式下实时码率的估计方法为:在时间窗内,基于Extremum粒度估计实时码率;The method for estimating the real-time bit rate in the periodic download mode is as follows: within the time window, the real-time bit rate is estimated based on the Extremum granularity; 所述非周期下载模式下实时码率的估计方法为:在时间窗内,基于Request粒度估计实时码率。The method for estimating the real-time bit rate in the non-periodic download mode is: estimating the real-time bit rate based on the Request granularity within the time window. 25.根据权利要求24所述的一种加密视频的视频码率识别装置,其特征在于,25. The video bit rate identification device for encrypted video according to claim 24, characterized in that: 所述数据包聚合和统计模块,用于Request粒度数据包聚合和统计,Extremum粒度数据包聚合和统计,下载模式识别,时间窗粒度数据包聚合和统计。The data packet aggregation and statistics module is used for request granularity data packet aggregation and statistics, extreme granularity data packet aggregation and statistics, download mode recognition, and time window granularity data packet aggregation and statistics. 26.根据权利要求24所述的一种加密视频的视频码率识别装置,其特征在于,26. The video bit rate identification device for encrypted video according to claim 24, characterized in that: 所述视频码率估计模块,用于周期下载模式,基于Extremum粒度估计实时码率;用于在非周期下载模式,基于Request粒度估计实时码率。The video bit rate estimation module is used in the periodic download mode to estimate the real-time bit rate based on the Extremum granularity; and is used in the non-periodic download mode to estimate the real-time bit rate based on the Request granularity. 27.一种加密视频播放指标估计装置,其特征在于,包括27. An encrypted video playback index estimation device, characterized in that it includes 下载积分曲线生成模块,用于由抓取的视频传输数据包经统计生成实际下载积分曲线;A download integral curve generating module, used for generating an actual download integral curve by statistics from captured video transmission data packets; 如权利要求24~26任一项所述的加密视频的视频码率识别装置;The video bit rate identification device for encrypted video according to any one of claims 24 to 26; 理论播放积分曲线生成模块,用于根据时间窗内估计的视频码率生成理论播放积分曲线;A theoretical playback integral curve generation module, used to generate a theoretical playback integral curve according to the video bit rate estimated within the time window; 视频播放指标估计模块:用于基于实际下载积分曲线和理论播放积分曲线估计实际播放积分曲线,并计算视频播放指标。Video playback index estimation module: used to estimate the actual playback integral curve based on the actual download integral curve and the theoretical playback integral curve, and calculate the video playback index.
CN202011200144.3A 2020-10-30 2020-10-30 A video bit rate identification method for encrypted video, a video playback index estimation method and device Active CN114449340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011200144.3A CN114449340B (en) 2020-10-30 2020-10-30 A video bit rate identification method for encrypted video, a video playback index estimation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011200144.3A CN114449340B (en) 2020-10-30 2020-10-30 A video bit rate identification method for encrypted video, a video playback index estimation method and device

Publications (2)

Publication Number Publication Date
CN114449340A CN114449340A (en) 2022-05-06
CN114449340B true CN114449340B (en) 2025-04-15

Family

ID=81357388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011200144.3A Active CN114449340B (en) 2020-10-30 2020-10-30 A video bit rate identification method for encrypted video, a video playback index estimation method and device

Country Status (1)

Country Link
CN (1) CN114449340B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664600B (en) * 2022-12-22 2023-03-21 广州市天奕信息技术股份有限公司 Data remote interaction detection and management system based on data analysis

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412572A (en) * 2016-10-14 2017-02-15 中国传媒大学 Video stream encoding quality evaluation method based on motion characteristics
CN106911926A (en) * 2015-12-23 2017-06-30 华为技术服务有限公司 A kind of video code rate recognition methods and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941630A (en) * 2016-01-05 2017-07-11 中国移动通信集团公司 A kind of method and apparatus for the code check for obtaining video slicing
WO2018058587A1 (en) * 2016-09-30 2018-04-05 华为技术有限公司 Video quality evaluation method, evaluation device and system
CN108882020B (en) * 2017-05-15 2021-01-01 北京大学 Video information processing method, device and system
CN109275045B (en) * 2018-09-06 2020-12-25 东南大学 DFI-based mobile terminal encrypted video advertisement traffic identification method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911926A (en) * 2015-12-23 2017-06-30 华为技术服务有限公司 A kind of video code rate recognition methods and device
CN106412572A (en) * 2016-10-14 2017-02-15 中国传媒大学 Video stream encoding quality evaluation method based on motion characteristics

Also Published As

Publication number Publication date
CN114449340A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN103888846B (en) Wireless video streaming service self-adaption rate control method based on QoE
US8135856B2 (en) Data streaming through time-varying transport media
CN103379360B (en) Assessment method and device for video quality
US8001260B2 (en) Flow-rate adaptation for a connection of time-varying capacity
US20100284295A1 (en) Video quality estimation apparatus, method, and program
Zhang et al. Modeling and analyzing the influence of chunk size variation on bitrate adaptation in DASH
CN111010617B (en) A transmission quality detection method, system and device
US10063922B2 (en) Performance metrics for downloads of encrypted video
KR101399509B1 (en) Data streaming through time-varying transport media
CN109511011B (en) YouTube DASH encrypted video-oriented fingerprint database construction method
EP2166700A1 (en) Method and system for detecting qos abnormal
CN102160305A (en) System for measuring the transmission bandwidth for multimedia streaming and method for same
CN111031403B (en) Method, system and equipment for detecting stuck
WO2009155814A1 (en) Method, device and system for evaluating video quality
EP2347599A1 (en) Method and system for determining a quality value of a video stream
JP4802209B2 (en) Video quality estimation method, apparatus and program
US20140119214A1 (en) Transmitting and receiving side terminals and method of monitoring network using the same
CN114449340B (en) A video bit rate identification method for encrypted video, a video playback index estimation method and device
CN105451099A (en) Method and device for adjusting video code rate
CN118158471A (en) Wireless local area network transmission method and system for real-time video monitoring
CN113727198A (en) Slice video pause identification method, network equipment and storage medium
CN114401253B (en) A video transmission method in simulated networks based on WebRTC
US7894363B2 (en) Data transfer rate variance measurement method, apparatus, system, and storage medium for storing program
Chen et al. Deeprophet: Improving http adaptive streaming for low latency live video by meticulous bandwidth prediction
CN102611676A (en) Method and device for ensuring QoE (quality of experience)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载