Video freeze detection method and device based on HTTP and P2P transmission

By analyzing the video transmission log, it is determined whether there is lag in the video during the playback period in the HTTP and P2P transmission scenarios, which solves the problem of difficulty in accurately detecting video lag in the prior art, and achieves efficient and accurate lag detection.

CN116095056BActive Publication Date: 2025-04-08XINYANG BRANCH HENAN CO LTD OF CHINA MOBILE COMM CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111304273.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2025-04-08
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

The prior art is difficult to detect video stuttering in user experience efficiently and accurately, especially in HTTP and P2P transmission scenarios.

Method used

By obtaining the transmission log of the video to be detected, including shard information, HTTP shard video acquisition request information and P2P shard video transmission data volume, the playback period of the target shard video is determined, and the transmitted P2P shard video data volume is compared with the data volume of the target shard video. If it is less than, it is judged that the video is stuck in the playback period.

Benefits of technology

The video stutter detection based on transmission log is realized, which improves the accuracy of stutter judgment, avoids consuming user bandwidth and affecting the experience of other network services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095056B_ABST
    Figure CN116095056B_ABST
Patent Text Reader

Abstract

The present invention discloses a video freeze detection method and device based on HTTP and P2P transmission, which is used to efficiently and accurately detect the video freeze experienced by the user, including: obtaining the transmission log of the video to be detected; determining the playback time period of the target segmented video according to the transmission log, the start time of the playback time period of the target segmented video is determined according to the HTTP segmented video acquisition request of the target segmented video; determining the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback time period of the target segmented video according to the transmission log; if the amount of P2P segmented video transmission data that has been transmitted is less than the amount of data of the target segmented video, it is determined that the video to be detected freezes during the playback time period of the target segmented video. This solution can determine the real experience of the user watching the video according to the transmission log analysis, determine whether the video playback has freezes based on the amount of data transmitted, effectively improve the accuracy of freeze judgment, and avoid affecting the user's experience of other network services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method and device for detecting video freeze based on HTTP and P2P transmission. Background Art

[0002] With the popularization of home broadband, home broadband Internet access has become increasingly important in residents' daily lives, and many Internet users watch online videos through home broadband. In actual applications, video freezes may occur due to reasons such as transmission speed, while indicators such as network delay and packet loss can only indirectly reflect the data transmission situation, but cannot directly reflect the user's real experience.

[0003] How to efficiently and accurately detect the video freeze experienced by the user is a technical problem to be solved by this application. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and device for detecting video freeze based on HTTP and P2P transmission, so as to efficiently and accurately detect the video freeze experienced by the user.

[0005] In a first aspect, a method for detecting video freeze based on HTTP and P2P transmission is provided, comprising:

[0006] Obtain a transmission log of the video to be detected, wherein the transmission log includes segmentation information of the video to be detected, HTTP segmentation video acquisition request information, and P2P segmentation video transmission data volume, wherein the segmentation information includes the data volume and playback duration of multiple segmentation videos in the video to be detected;

[0007] Determine a playback period of the target segmented video according to the transmission log, wherein a start time of the playback period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video;

[0008] Determine the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video according to the transmission log;

[0009] If the amount of data transmitted by the transmitted P2P segmented video is less than the amount of data of the target segmented video, it is determined that the video to be detected is stuck during the playback period of the target segmented video.

[0010] In a second aspect, a video freeze detection device based on HTTP and P2P transmission is provided, comprising:

[0011] An acquisition module is used to acquire a transmission log of a video to be detected, wherein the transmission log includes fragment information of the video to be detected, HTTP fragment video acquisition request information, and P2P fragment video transmission data volume, wherein the fragment information includes data volume and playback duration of multiple fragment videos in the video to be detected;

[0012] A first determination module determines a play period of a target segmented video according to the transmission log, wherein a start time of the play period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video;

[0013] A second determination module determines, according to the transmission log, the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video;

[0014] The third determination module determines that the video to be detected is stuck during the playback period of the target segmented video if the transmission data volume of the transmitted P2P segmented video is less than the data volume of the target segmented video.

[0015] According to a third aspect, an electronic device is provided. The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method according to the first aspect are implemented.

[0016] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method according to the first aspect are implemented.

[0017] In an embodiment of the present application, by obtaining the transmission log of the video to be detected, the transmission log includes the fragmentation information of the video to be detected, the HTTP fragmentation video acquisition request information and the P2P fragmentation video transmission data volume, and the fragmentation information includes the data volume and playback duration of multiple fragmentation videos in the video to be detected; the playback period of the target fragmentation video is determined according to the transmission log, and the starting time of the playback period of the target fragmentation video is determined according to the HTTP fragmentation video acquisition request of the target fragmentation video; the P2P fragmentation video transmission data volume that has been transmitted before the end time of the playback period of the target fragmentation video is determined according to the transmission log; if the P2P fragmentation video transmission data volume that has been transmitted is less than the data volume of the target fragmentation video, it is determined that the video to be detected is stuck during the playback period of the target fragmentation video. In this scheme, the data volume of the target fragmentation video is compared with the data volume that has been transmitted. If the data volume that has been transmitted has not reached the data volume of the target fragmentation video after the playback period of the target fragmentation video ends, it can be determined that the target fragmentation video has not been fully transmitted within the expected playback period, and then it can be determined that the actual playback has been stuck. Through the solution provided by this application, the real experience of users watching videos can be determined based on the transmission log analysis, and whether the video playback is stuck can be determined based on the amount of data transmitted, effectively improving the accuracy of the stuck judgment. Moreover, this solution can determine whether the video playback is stuck based on the transmission log, avoiding occupying the user's bandwidth and affecting the user's experience of other network services. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1a It is a schematic diagram of an application scenario of a video freeze detection method based on HTTP and P2P transmission according to an embodiment of the present invention.

[0020] Figure 1b is based on Figure 1a Schematic diagram of the internal structure of BRAS in the scenario shown.

[0021] Figure 1c is based on Figure 1a Schematic diagram of the internal structure of the analysis server for the scenario shown.

[0022] Figure 1d This is one of the flow charts of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0023] Figure 2This is the second flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0024] Figure 3 This is the third flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0025] Figure 4 This is a fourth flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0026] Figure 5 This is the fifth flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0027] Figure 6 This is the sixth flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0028] Figure 7 This is the seventh flow chart of a method for detecting video freeze based on HTTP and P2P transmission according to an embodiment of the present invention.

[0029] Figure 8 It is a structural schematic diagram of a video freeze detection device based on HTTP and P2P transmission according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. The figure numbers in this application are only used to distinguish the various steps in the scheme, and are not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.

[0031] In the scenario of online video playback, if the video playback is stuck, it will affect the user experience. In order to detect the situation of the previous video being stuck, it can be achieved by analyzing the stuck characteristics of the signaling message during the viewing process.

[0032] Specifically, during the video viewing process, two signaling messages, namely, the start of the freeze and the end of the freeze, are generated. The signaling messages are obtained by simulating freeze analysis by watching the video in real time, and the freeze duration is the difference between the timestamps of the two signaling messages.

[0033] The signaling messages in this solution are not standardized, and the detection accuracy is highly dependent on the specific video application. The characteristics of each application are different, and once the characteristics in the video application signaling message change, the jam detection will fail, and there will be great difficulties in collection and maintenance.

[0034] In addition to the above solution, the video application provider can also collect information about the freeze of the client watching the video through the content source server. This solution cannot guarantee the coverage of home broadband users. For example, the A video application software can collect the freeze of all terminals playing videos through the A video application through its own application data server, but it is impossible to guarantee that all families in the same community use the A video application to watch videos. Moreover, the relevant logs are not standardized records, and there are differences in the log records of different video providers, making it difficult to normalize and analyze actual use.

[0035] Moreover, it is often difficult to detect freezes in videos transmitted in P2P mode, and the detection results often do not match the actual viewing experience of users.

[0036] In order to solve the problems existing in the prior art, the embodiment of the present application provides a video freeze detection method based on HTTP and P2P transmission, which can be applied to home broadband networks or other scenarios of playing online videos. In the home broadband network scenario, it can be used to identify users with poor home broadband quality, and then through active operation and maintenance, improve the operator's user satisfaction, reduce user churn, and improve the operator's reputation.

[0037] In this embodiment, the present application scheme is applied to a home broadband network for further explanation. Figure 1a The application scenario of this solution is shown. Among them, the Broadband Remote Access Server (BRAS) is a new access gateway for broadband network applications. The analysis server is a device in the network that supports home broadband video freeze detection and analysis. Figure 1b The internal structure diagram of BRAS is shown. Figure 1c A schematic diagram of the internal structure of the analysis server is shown.

[0038] The present application embodiment provides a video freeze detection method based on HTTP and P2P transmission, such as Figure 1d As shown, this program includes:

[0039] S11: Obtain the transmission log of the video to be detected, wherein the transmission log includes the fragmentation information of the video to be detected, HTTP fragmentation video acquisition request information and P2P fragmentation video transmission data volume, and the fragmentation information includes the data volume and playback duration of multiple fragmentation videos in the video to be detected.

[0040] In the embodiment of the present application, based on Figure 1a In the application scenario shown, the execution subject of this solution can be an analysis server. In actual application, the transmission log of the video to be detected can be obtained by BRAS using a packet capture tool and transmitted to the analysis server so that the analysis server can perform subsequent processing and analysis on the transmission log.

[0041] The online video in this solution is played based on Hyper Text Transfer Protocol (HTTP) technology and peer-to-peer (P2P) technology.

[0042] The online video in this solution is played online through the HLS (HTTP Live Streaming) video request method. HLS is a streaming network transmission protocol based on HTTP. Its working principle is to divide the entire stream into small HTTP-based files for download, and only download a few at a time. Specifically, it includes an m3u (8) index file, TS (Transport Stream) media segment file and key encryption string file.

[0043] The above-mentioned P2P is a distributed network, in which participants of the network share a part of their hardware resources. These shared resources need to be provided with services and content by the network and can be directly accessed by other peer nodes (peers) without going through an intermediate entity.

[0044] In this step, the transmission log of the video to be detected is obtained, which may include the above-mentioned m3u (8) index file, which can be used to determine the video resource address and request to obtain the segmented video. The transmission log may also include a TS media segment file, and the segment information of the video to be detected can be determined by parsing the TS media segment file, specifically including the data volume and playback duration of multiple segmented videos in the video to be detected.

[0045] In actual applications, the BRAS program component can record the playlist information, the playing time of each segment video, the requested URL, the data volume contentlength, and the segment video sequence number sd. Among them, contentlength and sd are cumulative values, and the number of the currently playing segment video can be obtained by conversion.

[0046] When users watch online videos, the user terminal will request video files in HTTP mode. After a certain amount of requests, it will stop requesting video files in HTTP mode. At this time, there are no video file request and response messages from the packet capture tool. However, packet analysis shows a large amount of UDP (User Datagram Protocol) protocol transmission, with a large number of uplink and downlink packets and bandwidth occupancy. This UDP transmission protocol can be identified by the DPI device as the transmission data volume of online videos watched through P2P transmission through playback.

[0047] S12: Determine a play period of the target segmented video according to the transmission log, and a start time of the play period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video.

[0048] Based on the above transmission log, the video to be detected that the user wants to watch online, the segment information of the video to be detected, the transmitted HTTP request, and the data volume of P2P transmission can be determined. Among them, the total number of segments of the video to be detected and the data volume of each segment are unchanged. They can be obtained according to the m3u8 list or the relevant information of the video to be detected.

[0049] In this step, for the target segmented video in the video to be detected, the video playing length of the target segmented video is determined, that is, how long it takes for the user to actually watch the target segmented video. The moment when the user starts playing the target segmented video can be inferred based on the HTTP request, and then the playing period of the target segmented video is determined.

[0050] In practical applications, in order to determine the playback period of the target segmented video, a video node can be established to simulate the process of users watching videos and improve the accuracy of detecting video freezes. The video node can record the playback time and file request size of each video segment.

[0051] S13: Determine the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video according to the transmission log.

[0052] In this step, the amount of transmitted P2P segmented video transmission data refers to the amount of downlink data of the target segmented video that has been transmitted in a P2P manner.

[0053] In practical applications, if you want a video to be played smoothly without lag, you need to preload at least part of the video before playing it. In other words, the amount of data of the loaded video should be greater than the amount of data of the already played video, so as to ensure that the video is not stuck.

[0054] In this step, the amount of P2P segmented video transmission data transmitted before the end time of the target segmented video playback period is obtained. If the video watched by the user is played smoothly, then at the above end time, the amount of P2P segmented video transmission data transmitted must be greater than the target segmented video, that is, the download of this target segmented video is completed before the target segmented video is played.

[0055] S14: If the amount of data transmitted by the transmitted P2P segmented video is less than the amount of data of the target segmented video, it is determined that the video to be detected is stuck during the playback period of the target segmented video.

[0056] In this step, the amount of data transmitted through the P2P method is compared with the amount of data of the target segment video. If the amount of data transmitted does not reach the amount of data of the target segment video at the estimated end time of the target segment video playback, it can be determined that the target segment video has not been completely transmitted before the above end time. In other words, a freeze occurs during the estimated playback period of the target segment video.

[0057] In an embodiment of the present application, by obtaining the transmission log of the video to be detected, the transmission log includes the fragmentation information of the video to be detected, the HTTP fragmentation video acquisition request information and the P2P fragmentation video transmission data volume, and the fragmentation information includes the data volume and playback duration of multiple fragmentation videos in the video to be detected; the playback period of the target fragmentation video is determined according to the transmission log, and the starting time of the playback period of the target fragmentation video is determined according to the HTTP fragmentation video acquisition request of the target fragmentation video; the P2P fragmentation video transmission data volume that has been transmitted before the end time of the playback period of the target fragmentation video is determined according to the transmission log; if the P2P fragmentation video transmission data volume that has been transmitted is less than the data volume of the target fragmentation video, it is determined that the video to be detected is stuck during the playback period of the target fragmentation video. In this scheme, the data volume of the target fragmentation video is compared with the data volume that has been transmitted. If the data volume that has been transmitted has not reached the data volume of the target fragmentation video after the playback period of the target fragmentation video ends, it can be determined that the target fragmentation video has not been fully transmitted within the expected playback period, and then it can be determined that the actual playback has been stuck. Through the solution provided by this application, the real experience of users watching videos can be determined based on the transmission log analysis, and whether the video playback is stuck can be determined based on the amount of data transmitted, effectively improving the accuracy of the stuck judgment. Moreover, this solution can determine whether the video playback is stuck based on the transmission log, avoiding occupying the user's bandwidth and affecting the user's experience of other network services.

[0058] Based on the solution provided in the above embodiment, optionally, Figure 2 As shown, the above step S13 includes:

[0059] S21: parsing the transmission log to obtain the UDP protocol transmission data volume and the corresponding timestamp;

[0060] S22: Determine the transmitted P2P segmented video transmission data volume according to the UDP protocol transmission data volume whose timestamp is before the end time of the playback period of the target segmented video as the transmitted P2P segmented video transmission data volume.

[0061] In the solution provided in the embodiment of the present application, the transmission log is parsed to obtain the data volume and corresponding timestamp transmitted by the UDP protocol, so as to determine the data volume that has been transmitted through the P2P method. Optionally, the HTTP request and response can also be combined to assist in improving the accuracy of the determined P2P segmented video transmission data volume that has been transmitted.

[0062] Based on the solution provided in the above embodiment, optionally, Figure 3 As shown, after the above step S14, it also includes:

[0063] S31: Determine the duration of the freeze of the video to be detected during the playback period of the target segmented video based on the data volume of the target segmented video, the playback duration of the target segmented video, and the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video.

[0064] In the solution provided in the embodiment of the present application, after determining that the target segment video has a freeze during the playback period, the freeze duration can be further estimated. The freeze duration can be used to assist in optimizing the online video playback service and the user experience.

[0065] For example, assuming that the target segmented video data volume of the video to be detected is 1821720 (bytes), the target segmented video playback duration is 9s, and the P2P data volume requested during the playback time period corresponding to the target segmented video is 1300480 (bytes). Since the amount of data transmitted, 1300480 (bytes), is less than the amount of data of the target segmented video, 1821720 (bytes), it can be determined that the target segmented video has been stuck during playback. The duration of playback can be calculated based on the ratio of the amount of data downloaded to the amount of data of the target segmented video and the product of the playback duration of this segmented video, and then the duration of the unplayed video can be determined. The duration of this unplayed video is the duration of the stuck within 9s of the target segmented playback period.

[0066] Based on the solution provided in the above embodiment, optionally, Figure 4 As shown, the above step S31 includes:

[0067] S41: When the cache duration before the start time of the playback period of the target segmented video is a positive value, the freeze duration of the target segmented video is determined according to the following formula:

[0068] The duration of the freeze during the playback period of the target segmented video = the playback period of the target segmented video × (1-the amount of P2P segmented video transmission data transmitted during the playback period of the target segmented video / the amount of data of the target segmented video)-the cache duration before the start time of the playback period of the target segmented video.

[0069] In the embodiment of the present application, the cache duration is the difference between the total duration of the playback of the historical segmented videos before the start time of the playback period of the target segmented video and the total duration of the historical segmented videos transmitted by the P2P segmented video.

[0070] For example, through the above steps, it is determined that the first HTTP request segment video playback time in the video playlist of the video to be detected is 9 seconds. A video node is established based on the video to be detected to simulate the process of users watching videos while downloading. Assuming that the download time of the first segment video is only 8 seconds, the video node playback cache time is 1 second. The data of the second segment video can continue to be loaded during this cache time.

[0071] Assume that the data volume of the second segment video is 1821720 (bytes), the playback duration of the second segment video is 9 seconds, and the amount of P2P data requested during the 9-second playback period is 1270 kB. Since the amount of downloaded data is less than the amount of data of the second segment video, it can be determined that a freeze event occurred in this video segment.

[0072] The duration of the jamming is determined by the solution provided in the embodiment of the present application as follows:

[0073] Segmented video playback duration*(1-(P2P data volume*1024) / segmented video expected data volume)-video node playback cache time=1.575s

[0074] In this step, 1270 kB is multiplied by 1024 and converted into bytes to match the measurement unit of the amount of data downloaded.

[0075] Through the solution provided by the embodiment of the present application, after determining that the video is stuck, the length of time that the stuck occurs during the target segment playback period can be calculated. Since the solution determines the stuck duration based on the amount of data actually transmitted by the user network, it can accurately reflect the user's real viewing experience.

[0076] Based on the solution provided in the above embodiment, optionally, Figure 5 As shown, the method also includes:

[0077] S51: If the amount of data transmitted by the P2P segmented video during the playback period of the target segmented video is greater than or equal to the amount of data of the target segmented video, determining that the video to be detected is not stuck during the playback period of the target segmented video;

[0078] S52: Determine the playback cache duration of the video node according to the playback duration of the target segmented video and the download duration of the target segmented video.

[0079] Based on the above embodiment, if within the second segmented video, i.e. within 9 seconds, the amount of data requested by P2P is equal to the size of the segmented video in the playlist, it indicates that the second segmented video has been transmitted before it is played, thereby determining that there is no lag in the second segmented video during playback.

[0080] Since the download of this segmented video has been completed before the second segmented video is played, the difference between the download time and the playback time can be used to transmit the subsequent segmented video, so the above time difference (segmented video playback time - P2P data download time) can be accumulated as the playback cache time. The playback cache time can be used to determine whether the subsequent segmented video is stuck.

[0081] Based on the solution provided in the above embodiment, optionally, Figure 6 As shown, the transmission log includes HTTP segmented video acquisition request information in a compressed state;

[0082] After the above step S11, the method further includes:

[0083] S61: decompressing the compressed HTTP segmented video acquisition request information in the transmission log;

[0084] S62: Establishing a video node corresponding to the video to be detected according to the decompressed HTTP segmented video acquisition request information;

[0085] Wherein, the above step S12 includes:

[0086] S63: Determine the start time of the play period of the target segmented video according to the HTTP segmented video acquisition request information, and simulate the play of the target segmented video according to the video node to determine the play period of the target segmented video.

[0087] In actual applications, HTTP request data is often chunked and compressed in gzip format. Through the embodiments of the present application, the data can be reorganized and decompressed to restore the data, thereby establishing a video node that matches the video to be detected and executing a subsequent judgment on video playback freezes.

[0088] Based on the solution provided in the above embodiment, optionally, Figure 7 As shown, the above step S11 includes:

[0089] S71: If an access action to the video to be detected is monitored, the network transmission log is monitored to obtain the transmission log of the video to be detected.

[0090] The solution provided by the embodiment of the present application can be executed after the user actively triggers the action of playing online videos. By monitoring the video access action, it can be timely and accurately detected that the user wants to watch online videos. Then, the network transmission log is monitored in time to achieve real-time detection of the user's online video viewing. If it is detected that the user frequently freezes when watching online videos, the home bandwidth where the video freezes can be optimized to optimize the user experience.

[0091] Through the solution provided by the embodiment of the present application, the accurate identification of video application traffic and the simulation of the playback of general streaming media videos can accurately identify the video freeze of home broadband users in the mixed HTTP+P2P scenario, helping operators to timely identify users with poor experience in the network. Operators can use this data as a basis to take active care of users with poor experience, reduce customer churn, and improve their own reputation.

[0092] By applying the solution provided in the embodiment of the present application, it is also possible to analyze specific popular video applications with more freezes based on the video freeze data of the entire network, and introduce video resources into the network in a targeted manner, such as adding video servers, providing popular application caches, etc., which has certain guiding significance for the operator's resource investment.

[0093] In order to solve the problems existing in the prior art, the embodiment of the present application further provides a video freeze detection device 80 based on HTTP and P2P transmission, such as Figure 8 As shown, including:

[0094] An acquisition module 81 acquires a transmission log of a video to be detected, wherein the transmission log includes segmentation information of the video to be detected, HTTP segmentation video acquisition request information, and P2P segmentation video transmission data volume, wherein the segmentation information includes data volume and playback duration of multiple segmentation videos in the video to be detected;

[0095] A first determining module 82 determines a play period of a target segmented video according to the transmission log, wherein a start time of the play period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video;

[0096] A second determination module 83 determines the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video according to the transmission log;

[0097] The third determination module 84 determines that the video to be detected is stuck during the playback period of the target segmented video if the transmission data volume of the transmitted P2P segmented video is less than the data volume of the target segmented video.

[0098] The device provided by the embodiment of the present application obtains the transmission log of the video to be detected, the transmission log includes the fragmentation information of the video to be detected, the HTTP fragmentation video acquisition request information and the P2P fragmentation video transmission data volume, and the fragmentation information includes the data volume and playback duration of multiple fragmentation videos in the video to be detected; the playback period of the target fragmentation video is determined according to the transmission log, and the starting time of the playback period of the target fragmentation video is determined according to the HTTP fragmentation video acquisition request of the target fragmentation video; the P2P fragmentation video transmission data volume that has been transmitted before the end time of the playback period of the target fragmentation video is determined according to the transmission log; if the P2P fragmentation video transmission data volume that has been transmitted is less than the data volume of the target fragmentation video, it is determined that the video to be detected is stuck during the playback period of the target fragmentation video. In this scheme, the data volume of the target fragmentation video is compared with the data volume that has been transmitted. If the data volume that has been transmitted has not reached the data volume of the target fragmentation video after the playback period of the target fragmentation video ends, it can be determined that the target fragmentation video has not been fully transmitted within the expected playback period, and then it can be determined that the actual playback has been stuck. Through the solution provided by this application, the real experience of users watching videos can be determined based on the transmission log analysis, and whether the video playback is stuck can be determined based on the amount of data transmitted, effectively improving the accuracy of the stuck judgment. Moreover, this solution can determine whether the video playback is stuck based on the transmission log, avoiding occupying the user's bandwidth and affecting the user's experience of other network services.

[0099] Preferably, an embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned embodiment of the video freeze detection method based on HTTP and P2P transmission are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0100] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned video freeze detection method embodiment based on HTTP and P2P transmission is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0101] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0103] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A video freeze detection method based on HTTP and P2P transmission, characterized in that: Analysis servers used in home broadband networks include: Obtaining a transmission log of the video to be detected, wherein the transmission log includes the fragment information of the video to be detected, HTTP fragment video acquisition request information, and P2P fragment video transmission data volume, wherein the fragment information includes the data volume and playback duration of multiple fragment videos in the video to be detected, and the transmission log is obtained by a broadband access server BRAS in a home broadband network using a packet capture tool and transmitted to an analysis server; Determine a playback period of the target segmented video according to the transmission log, wherein a start time of the playback period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video; Determine the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video according to the transmission log; If the amount of data transmitted by the transmitted P2P segmented video is less than the amount of data of the target segmented video, determining that the video to be detected is stuck during the playback period of the target segmented video; When the cache duration before the start time of the playback period of the target segmented video is a positive value, the freeze duration of the target segmented video is determined according to the following formula; The duration of the freeze in the playback period of the target segmented video = the playback period of the target segmented video × (1-the amount of P2P segmented video transmission data transmitted in the playback period of the target segmented video / the amount of data of the target segmented video)-the cache duration before the start time of the playback period of the target segmented video; The cache duration is the difference between the total duration of the playback of the historical segmented videos before the start time of the playback period of the target segmented video and the total duration of the historical segmented videos transmitted by the P2P segmented video.

2. The method according to claim 1, characterized in that Determining the amount of P2P segmented video transmission data transmitted before the end time of the playback period of the target segmented video according to the transmission log includes: Parse the transmission log to obtain the UDP protocol transmission data volume and the corresponding timestamp; The transmitted P2P segmented video transmission data volume is determined according to the UDP protocol transmission data volume whose timestamp is before the end time of the playback period of the target segmented video.

3. The method according to claim 1, characterized in that The method further comprises: If the amount of P2P segmented video transmission data during the playback period of the target segmented video is greater than or equal to the amount of data of the target segmented video, then determining that the video to be detected is not stuck during the playback period of the target segmented video; The playback cache duration of the video node is determined according to the playback duration of the target segmented video and the download duration of the target segmented video.

4. The method according to any one of claims 1 to 3, characterized in that: The transmission log includes HTTP segmented video acquisition request information in a compressed state; After obtaining the transmission log of the video to be detected, the following steps are also included: Decompressing the compressed HTTP segmented video acquisition request information in the transmission log; Establish a video node corresponding to the video to be detected according to the decompressed HTTP segmented video acquisition request information; Wherein, determining the playback period of the target segmented video according to the transmission log includes: The starting time of the play period of the target segmented video is determined according to the HTTP segmented video acquisition request information, and the play period of the target segmented video is determined by simulating the play of the target segmented video according to the video node.

5. The method according to any one of claims 1 to 3, characterized in that: Get the transmission log of the video to be detected, including: If an access action to the video to be detected is monitored, the network transmission log is monitored to obtain the transmission log of the video to be detected.

6. A video freeze detection device based on HTTP and P2P transmission, characterized in that: Analysis servers used in home broadband networks include: An acquisition module is used to acquire a transmission log of a video to be detected, wherein the transmission log includes the fragment information of the video to be detected, HTTP fragment video acquisition request information, and P2P fragment video transmission data volume, wherein the fragment information includes the data volume and playback duration of multiple fragment videos in the video to be detected, and the transmission log is acquired by a broadband access server BRAS in a home broadband network using a packet capture tool and transmitted to an analysis server; A first determination module determines a play period of a target segmented video according to the transmission log, wherein a start time of the play period of the target segmented video is determined according to an HTTP segmented video acquisition request of the target segmented video; A second determination module determines, according to the transmission log, the amount of P2P segmented video transmission data that has been transmitted before the end time of the playback period of the target segmented video; The third determination module determines that the video to be detected is stuck during the playback period of the target segmented video if the amount of data transmitted by the transmitted P2P segmented video is less than the amount of data of the target segmented video. The third determination module is further configured to determine the freeze duration of the target segmented video according to the following formula when the cache duration before the start time of the playback period of the target segmented video is a positive value: The duration of the freeze in the playback period of the target segmented video = the playback period of the target segmented video × (1-the amount of P2P segmented video transmission data transmitted in the playback period of the target segmented video / the amount of data of the target segmented video)-the cache duration before the start time of the playback period of the target segmented video; The cache duration is the difference between the total duration of the playback of the historical segmented videos before the start time of the playback period of the target segmented video and the total duration of the historical segmented videos transmitted by the P2P segmented video.

7. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method according to any one of claims 1 to 5 when executed by the processor.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Video buffering determination method and device

    CN109587521A