CN106982368A - video response speed detection method and system - Google Patents

video response speed detection method and system Download PDF

Info

Publication number
CN106982368A
CN106982368A CN201610035908.5A CN201610035908A CN106982368A CN 106982368 A CN106982368 A CN 106982368A CN 201610035908 A CN201610035908 A CN 201610035908A CN 106982368 A CN106982368 A CN 106982368A
Authority
CN
China
Prior art keywords
video
screenshot capture
vision operation
key frame
response speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610035908.5A
Other languages
Chinese (zh)
Other versions
CN106982368B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610035908.5A priority Critical patent/CN106982368B/en
Publication of CN106982368A publication Critical patent/CN106982368A/en
Application granted granted Critical
Publication of CN106982368B publication Critical patent/CN106982368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream

Abstract

A kind of video response speed detection method, including:Obtain the vision operation instruction of current video;Record the vision operation and instruct corresponding present system time;Start screenshot capture function;The screenshot capture is stored to picture library with default frequency acquisition screenshot capture and with default form;Obtain the current video with the corresponding key frame of vision operation instruction;Search and whether there is target screenshot capture corresponding with the key frame in the picture library;When there is the target screenshot capture in the picture library, the time difference of the corresponding system time of the target screenshot capture and the present system time is obtained, and determines according to the time difference response time of video.The present invention also provides a kind of video response speed detection system.The detection method and system can automatically and with high accuracy obtain the response time of video.

Description

Video response speed detection method and system
Technical field
The present invention relates to video technique field, more particularly to a kind of video response speed detection method and system.
Background technology
Mobile terminal device, has been widely used in the production and life of people such as smart mobile phone, tablet personal computer In work, in order to meet various demands of the people in terms of work, life, amusement, increasing application It is developed in the operating system and application software of mobile terminal device.These mobile terminal device functions are got over Come abundanter, interface also increasingly hommization, but due to by factors such as mobile terminal chip process performances Influence, can be slower playing video speed using the browser on mobile terminal device.
For the consideration to Consumer's Experience, and browser supplier is to the demand of browser testing performance, needs The response speed of browser video is tested.Existing method of testing has three kinds, and first method is led to Manual test is crossed, for example recording browser video by stopwatch clicks on the initial time started and the first frame picture The time of appearance, when then calculating the difference for the time that the initial time and the first frame picture occur as response Between, the response speed of video is assessed by the response time, but this precision of method is not high, error Than larger, time and manpower are expended, in addition for different browsers testing player, it is necessary to put into different Manpower.Second method is recorded a video by playing the process of video to browser, then passes through people's work point Each frame picture that analysis video recording is obtained draws the time that initial time and the first frame picture occur, calculate starting and Time difference between first frame picture, this method was using video recording analysis frame, the picture of video recording as the response time Face definition is not high, simultaneously because picture file is relatively more, human eye analysis is very hard, also due to needing hand Work is tested, and more time-consuming, sampled point is few, and the degree of accuracy is inadequate.
The content of the invention
Based on this, it is necessary to provide the video response speed detection method that a kind of accuracy is high, can realize automatically And system.
A kind of video response speed detection method, including:
Obtain the vision operation instruction of current video;
Record the vision operation and instruct corresponding present system time;
Start screenshot capture function;
The screenshot capture is stored to picture with default frequency acquisition screenshot capture and with default form Storehouse;
Obtain the current video with the corresponding key frame of vision operation instruction;
Search and whether there is target screenshot capture corresponding with the key frame in the picture library;
When there is the target screenshot capture in the picture library, the target screenshot capture correspondence is obtained System time and the present system time time difference;And
The response time of the video is determined according to the time difference.
A kind of video response speed detection system, including:
Operational order acquisition module, the vision operation for obtaining current video is instructed;
Logging modle, corresponding present system time is instructed for recording the vision operation;
Screenshotss starting module, for starting screenshot capture function;
Screen capture module, for storing the screen with default frequency acquisition screenshot capture and with default form Curtain sectional drawing is to picture library;
Key frame acquisition module, for obtaining the corresponding with vision operation instruction of the current video Key frame;
Searching modul, target screen corresponding with the key frame is whether there is for searching in the picture library Curtain sectional drawing;
Computing module is responded, for when there is the target screenshot capture in the picture library, obtaining institute The time difference of the corresponding system time of target screenshot capture and the present system time is stated, and according to described Time difference determines the response time of the video.
Above-mentioned video response speed detection method and system, can by calculate the system time of screenshot capture with Vision operation instructs the time difference between corresponding present system time and obtains response time of the video, uses In judging whether the video response speed meets the requirements, wherein obtain screenshot capture corresponding with operational order and The corresponding present system time of operational order is automatically obtained, and detection process needs not rely on people's participation, Human cost is saved, and with preferable accuracy.
Brief description of the drawings
Fig. 1 is the schematic internal view of terminal in one embodiment of the invention;
The flow chart for the video response time detecting method that Fig. 2 is provided by one embodiment of the invention;
Fig. 3 is provided the flow chart of video response time detecting method by second embodiment of the invention;
Fig. 4 is provided the flow chart of video response time detecting method by third embodiment of the invention;
Fig. 5 is provided the flow chart of video response time detecting method by fourth embodiment of the invention;
The structural representation for the video response time detecting system that Fig. 6 is provided by another embodiment of the present invention;
The structural representation for the video response time detecting system that Fig. 7 is provided by second embodiment of the invention;
The structural representation for the video response time detecting system that Fig. 8 is provided by third embodiment of the invention;
The structural representation for the video response time detecting system that Fig. 9 is provided by fourth embodiment of the invention;
Figure 10 is the timing diagram of video response time detecting system progress screen response detection in an embodiment;
Figure 11 is the schematic diagram of acquisition vision operation instruction in an embodiment;
Figure 12 is the schematic diagram of startup browser in an embodiment;
Figure 13 commences play out the schematic diagram of button position coordinate to be obtained in an embodiment;
Figure 14 is the schematic diagram in an embodiment by screenshot capture software acquisition screenshot capture;
Figure 15 is the schematic diagram of the first frame picture of acquisition in an embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below in conjunction with accompanying drawing and reality Example is applied, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only To explain the present invention, it is not intended to limit the present invention.
Unless otherwise defined, technology of all of technologies and scientific terms used here by the article with belonging to the present invention The implication that the technical staff in field is generally understood that is identical.Art used in the description of the invention herein Language is intended merely to describe the purpose of specific embodiment, it is not intended that in the limitation present invention.It is used herein Term " and/or " include the arbitrary and all combination of one or more related Listed Items.
The video response detection method that the embodiment of the present invention is provided can be applied in the terminal shown in Fig. 1, should Terminal 100 is preferably mobile terminal.As shown in figure 1, terminal 100 includes the place connected by system bus Manage device, non-volatile memory medium, built-in storage, network interface and display screen.Processor, which has, to be calculated Function and the function of control terminal work, the processor are configured as performing a kind of video response velocity measuring side Method.Non-volatile memory medium is included in magnetic storage medium, optical storage media and flash memory type storage medium extremely Few one kind, non-volatile memory medium is stored with operating system and video response speed detection system.The video Response speed detecting system is used to realize the video response speed detection method to terminal player.Network interface For being connected to server, for being communicated with server, the resource for carrying out automatic network is received.
As shown in Fig. 2 there is provided a kind of video response speed detection method, this method in one embodiment It can be applied in terminal 100 as shown in Figure 1, specifically include following steps.
Step 201, the vision operation instruction of current video is obtained.
Generally, vision operation instruction includes commencing play out the instruction of video or the instruction of moving schedule bar.When Preceding video refers to the video played out by the browser player or other video players of terminal.
Step 203, record vision operation instructs corresponding present system time.
Vision operation instructs corresponding present system time to refer to the time for sending vision operation instruction.Pass through Automatic record gets present system time during vision operation instruction, is used as sending that the vision operation is instructed Time.Specifically, when it is to commence play out the instruction of video that vision operation, which is instructed, record clicks on player The time of button is commenced play out as the corresponding present system time of vision operation instruction;When vision operation instruction For moving schedule bar instruction when, record moving schedule bar operating time as vision operation instruct it is corresponding Present system time.
Step 205, screenshot capture function is started.Starting screenshot capture function can be by calling screenshot capture soft Part is realized.Screenshot capture software is called to refer to by calling existing screenshot capture software application DLL (API) or function (function) and realize increase the screenshot capture software function.
It is preferred that, it is while the vision operation instruction of current video is obtained to start screenshot capture function.Tool Body implement when, the startup screenshot capture function can also be obtain current video operational order before or Afterwards, if it is after vision operation instruction is obtained to start screenshot capture function, it should be ensured that be in video behaviour Instruct before corresponding key frame occurs, so as to guarantee to be truncated to and vision operation instruction institute Screenshot capture when corresponding key frame occurs.
Step 206, with default screenshotss frequency acquisition screenshot capture and with default form storage screenshot capture extremely Picture library.
By starting screenshot capture, a number of screenshot capture is persistently intercepted with default screenshotss frequency, and The screenshot capture obtained is stored according to default form respectively.Wherein, the speed of screenshot capture can Can be needed for being inputted after starting screenshot capture function to be adjusted by changing default screenshotss frequency The screenshotss frequency of setting, such as be 50 milliseconds when setting screenshotss frequency, then the screenshot capture obtained in one second Quantity is 20;When setting screenshotss frequency to be 40 milliseconds, then the quantity of the screenshot capture obtained in one second is 25.Default form refers to the name form or picture format during default screenshot capture storage, passes through spy Fixed name form or picture format so that can conveniently obtain these screenshot captures after screenshot capture storage Corresponding system time when each intercepting.
Step 207, obtain current video with the corresponding key frame of vision operation instruction.
Refer to instruct the pointed picture shown by vision operation with the corresponding key frame of vision operation instruction Frame.Such as, when vision operation is instructed to commence play out the instruction of video, the instruction that this commences play out video is signified Be to commence play out the first frame picture for occurring after button from clicking on to the picture frame of display, i.e. the head of current video Frame, that is to say, that frame headed by key frame corresponding with the instruction that this commences play out video;When vision operation refers to When making as the instruction of moving schedule bar, the picture frame of the pointed display of instruction of the moving schedule bar is progress bar The image frame that the timing node of residing current video is played after movement, specifically, if progress bar is moved To the 00 of current video:20:At 10, the timing node of residing current video is played after progress bar movement Picture frame is current video 00:20:The picture frame played when 10, that is to say, that with the moving schedule The corresponding key frame of instruction of the bar picture frame that residing timing node is played after being moved by progress bar.
The key frame for obtaining current video can be by calling multimedia video handling implement to realize.Multimedia video Frequency handling implement be it is a set of can be for record, converted digital audio, video, and stream can be translated into Increase income computer program.It can also be by calling existing multimedia video to call multimedia video handling implement Handling implement application programming interface (API) or function (function) and realize increase the multimedia video The function of frequency handling implement.Any required pass of current video can be obtained by multimedia video handling implement Key frame.
Step 209, search and whether there is target screenshot capture corresponding with key frame in picture library.
Using with the corresponding key frame of vision operation instruction as references object, by screen acquired in step 205 Curtain sectional drawing carries out similarity-rough set with the key frame respectively, searches whether exist and the key frame identical screen Sectional drawing or found out from picture library and first screenshot capture of key frame similarity highest, the phase Same first screenshot capture of screenshot capture or the similarity highest is target screen corresponding with the key frame Curtain sectional drawing.Generally, reach that more than 90% screenshot capture can be used as meeting lookup with the similarity of the key frame It is required that target screenshot capture.Wherein, searching picture library progress similarity-rough set can be cross-platform by calling Computer vision storehouse is realized, i.e., realize increasing by the Program Interfaces for calling cross-platform computer vision library Plus the function of the cross-platform computer vision library image procossing.Because screenshot capture is with default screenshotss frequency Terminal screen is carried out to intercept what is obtained, it is understood that there may be occur from phase with the key frame identical screenshot capture Situation between adjacent screen printing sectional drawing twice, thus can by with the key frame similarity highest first Screenshot capture is used as target screenshot capture corresponding with the key frame.When existing, multiple similarities are satisfactory During target screenshot capture, first screenshot capture is that finger is relatively early according to the corresponding system time of screenshot capture Target screenshot capture.
Step 210, when there is target screenshot capture in picture library, the corresponding system of target screenshot capture is obtained Time and the time difference of present system time.
Step 212, the response time of the video is determined according to the time difference.
After target screenshot capture corresponding with the key frame is found, obtain target screenshot capture correspondence and cut System time when taking, and it is corresponding with vision operation instruction to calculate the corresponding system time of target screenshot capture Present system time time difference, be used as the response time of current video.
In the present embodiment, by being operated to current video, current system when record corresponding operating is sent Time, and some screenshot captures are intercepted by starting screenshot capture function with predeterminated frequency, and from screenshot capture Middle determination target screenshot capture corresponding with the pointed picture frame occurred of corresponding operating, so as to calculate mesh The time difference between screenshot capture and present system time is marked, that is, detects that obtain video is issued to from corresponding operating The response time of completion, to judge whether video response speed meets the requirements.Wherein obtain and operational order pair The corresponding present system time of screenshot capture and operational order answered is automatically obtained, and detection process is not required to To be participated in by people, save human cost, and with preferable accuracy.
As shown in figure 3, in one embodiment, step 201, obtaining the step of the vision operation instruction of current video Suddenly include:Step 2015, the vision operation instruction clicked on and commenced play out is obtained.
Step 207, including the step of instructing corresponding key frame with vision operation for current video is obtained:Step 2075, obtain the first frame picture corresponding with the vision operation instruction that click is commenced play out of current video.
The vision operation commenced play out instruction is clicked on by obtaining respectively and with clicking on the vision operation commenced play out Corresponding first frame picture is instructed, to detect response time that video commences play out as will be to video response speed Detection.In the detection process of video response speed, detect that the response speed of the operational order commenced play out can To reduce the quantity needed for screenshot capture, it can be lifted and search the efficiency of target screenshot capture accordingly to be lifted The efficiency of video response speed detection method.
In another embodiment, step 201, before the step of vision operation for obtaining current video is instructed, also Including:Step 2011, browser enabled instruction is obtained;
Step 2012, according to browser enabled instruction opening browser, current video opens in lookup browser Beginning plays the position coordinates of knob;
Step 2013, the click event to starting broadcast button is sent according to the position coordinates.
In the present embodiment, the video response speed of preferred pair browser player is detected.With increasingly Many operating systems and application software applied to mobile terminal device are developed, mobile terminal device Function is increasingly enriched, and the performance test results of all kinds of browser players are how user's selection selects to browse The important references index of device.Wherein, browser enabled instruction is obtained, including application interface point is passed through by user The instruction of browser is opened in impact, or selection is detected the instruction of browser when running the detection method.Root Browser is opened according to browser enabled instruction, including video page is opened while opening browser or is beaten Open the mode for opening video page in browser after browser again.
The instruction for being detected browser is selected to be sent out by user by software application interface during the operation detection method Rise, specifically, selection can be provided by software application interface and be detected browser button or other press Button initiates browser enabled instruction, by obtaining the enabled instruction of browser to be detected, opens browser and root Click event is sent according to the position of video player button on browser, can be completely real to video response speed Existing automatic detection, testing result is not completely by interference from human factor, and testing result is more accurate, and detection effect Rate is higher.Secondly, multiple detected browsers can be once selected to be detected, it is hereby achieved that multiple Browser testing result is detected to be contrasted.
As shown in figure 4, in a wherein embodiment, step 206, being cut with default screenshotss frequency acquisition screen Scheme and include the step of storing screenshot capture to picture library with default form:
Step 2062, with default frequency acquisition screenshot capture;
Step 2063, screenshot capture is stored to picture library using corresponding system time as filename respectively.
The corresponding system time of screenshot capture refers to the corresponding interception time of each screenshot capture, by screenshot capture point Do not stored using each self-corresponding system time as filename, each screen can be directly obtained by filename The corresponding system time of curtain sectional drawing, screenshot capture institute is used as relative to using the corresponding system time of each screenshot capture For comprising information or as screenshot capture additional storage information, more facilitate and going out if implementing Now in the case of interception picture missing, error point is conveniently found.
As shown in figure 5, in another embodiment, step 207, obtaining being instructed with vision operation for current video The step of corresponding key frame, includes:
Step 2071, the piece source address of current video is obtained;
Step 2072, the film source of the current video is downloaded according to piece source address;
Step 2073, obtain film source in the corresponding key frame of vision operation instruction.
The piece source address of current video include according to determined by the relevant information of current video piece source address or The URL of current video.Piece source address refers to according to determined by the relevant information of current video Piece source address determined by title, type, content keyword by current video etc..Pass through current video URL, the true piece source address of the current video can be got, so as to pass through download Instrument is downloaded and current video identical film source, then the acquisition pass corresponding with vision operation instruction from the film source Key frame, downloads identical film source according to true piece source address, can be further assured that the accuracy of detection.
Wherein, it can download whole video film source or only download to download film source according to piece source address Include the partial video film source that vision operation instructs corresponding key frame.Such as, when vision operation instruction is , can be with the step of film source of the current video is downloaded according to piece source address when commencing play out the instruction of video Only download former million film sources that current video includes first frame;When vision operation instructs the instruction for moving schedule bar When, can be that only download package contains the progress in the step of film source of the current video is downloaded according to piece source address The fragment film source for the image frame that the timing node of residing current video is played after bar movement.
As shown in fig. 6, in one embodiment there is provided a kind of video response speed detection system, this is System include operational order acquisition module 20, logging modle 21, screenshotss starting module 22, screen capture module 23, Key frame acquisition module 24, searching modul 25 and response computing module 26.
Wherein, operational order acquisition module 20 is used for the vision operation instruction for obtaining current video.
Logging modle 21 is used to record the corresponding present system time of vision operation instruction.
Screenshotss starting module 22 is used to start screenshot capture function.
Screen capture module 23 is used to store screenshot capture with default frequency acquisition screenshot capture and with default form To picture library.
Key frame acquisition module 24 be used to obtaining current video with the corresponding key frame of vision operation instruction.
Searching modul 25, which is used to search, whether there is target screenshot capture corresponding with key frame in picture library.
Responding computing module 26 is used for when there is target screenshot capture in picture library, obtains the target screen and cuts Scheme the time difference of corresponding system time and present system time.
In one embodiment, as shown in fig. 7, the operational order acquisition module 20 is clicked on specifically for obtaining The vision operation instruction commenced play out.The key frame acquisition module 24 is specifically for acquisition current video and point Hit the vision operation commenced play out and instruct corresponding first frame picture.
It is preferred that, as shown in fig. 7, the video response speed detection system also includes enabled instruction acquisition module 31st, coordinate obtaining module 32 and click module 33.
Wherein, enabled instruction acquisition module 31 is used to obtain browser enabled instruction;
Coordinate obtaining module 32 is somebody's turn to do for opening browser according to browser enabled instruction, and searching in browser The position coordinates for commencing play out button of current video;
Clicking on module 33 is used to send the click event to starting broadcast button according to position coordinates.
In another embodiment, as shown in figure 8, the screen capture module 23 includes screenshotss unit 232 and storage Unit 233.The screenshotss unit 232 is used for default frequency acquisition screenshot capture.The memory cell 233 is used Stored respectively using corresponding system time as filename to picture library in by screenshot capture.
In one embodiment, as shown in figure 9, the key frame acquisition module 24 include address acquisition unit 241, Download unit 242 and key frame acquiring unit 243.
Address acquisition unit 241 is used for the piece source address for obtaining current video.
Download unit 242 is used for the film source that the current video is downloaded according to piece source address.
Key frame acquiring unit 243 is used to obtain in film source and the corresponding key frame of vision operation instruction.
The video response speed detection method and system provided by the embodiment of the present invention, by working as forward sight Frequency carries out the vision operation instruction of operation generation, when recording current system when corresponding video operational order is sent Between, and by starting screenshot capture function with some screenshot captures of predeterminated frequency interception, and from screenshot capture It is determined that target screenshot capture corresponding with the key frame occurred pointed by corresponding operating, so as to calculate target Time difference between screenshot capture and present system time, i.e. detection obtain video and have been issued to from corresponding operating Into response time, to judge whether video response speed meets the requirements.
The detection method and system of the video response speed can be used for various terminals or player plays video Response speed detection.Preferential, the detection method and system of the video response speed are used to realize to moving The browser player capabilities of dynamic terminal are detected, mobile whole can design or select performance to more conform to The browser video capability of end subscriber demand.
As shown in Figure 10, it is video response speed detection system progress video response velocity measuring in an embodiment Timing diagram, in the schematical embodiment, video response speed detection system be used for be to operating system The video response speed of the browser player of the mobile phone terminal of android system detected, wherein, currently Video is browser player plays video, and vision operation instruction is the instruction for commencing play out video, with video Frame headed by the corresponding key frame of operational order, piece source address is obtained from video playback webpage webview URL, multimedia video handling implement is ffmpeg, searches picture library and carries out picture similarity It is OpenCV to compare the cross-platform computer vision library called;
The detailed process for the method that the video response speed detection system is detected includes following key step:
1) browser is started;Specifically, as is illustrated by figs. 11 and 12, software can be passed through by starting browser The selection browser button to be detected that application interface is provided receives the selection instruction of user, so that should in operation Automatic start obtains browser to be detected during the detection method of video response speed.
2) position coordinates for commencing play out button is searched;As shown in figure 13, screenshot capture software can be passed through The screenshot capture of browser player is intercepted, and by calling cross-platform computer vision library from screenshot capture Obtain the position coordinates for commencing play out button.
3) click on and commence play out video button;Click records the clicking operation while commencing play out video button The present system time of instruction, specifically, driver can be inputted by the input of android system Send to click on and commence play out the control instruction of video button, and obtain the time that sends of the control instruction and be used as this The present system time of clicking operation instruction.
4) screenshot capture function is started, screen capture module is by calling screenshot capture software to be intercepted every 50ms Current screen, as shown in figure 14, to pass through the part of screen of the current screen of screenshot capture software intercepts The current screen of interception, is preferably first stored in internal memory by the schematic diagram of sectional drawing, waits 150 pictures of interception Once it is written to afterwards in SD card.
5) the piece source address of current video is obtained, specifically, by javascript injection modes in webview The middle piece source address for obtaining current video.
6) current film source is downloaded, by starting download tool according to the current film source of piece source address download.
7) the first frame picture in the film source of current video is obtained, as shown in figure 15, ffmpeg works can be passed through Tool obtains first frame picture.
8) target screenshot capture corresponding with first frame picture is found out from screenshot capture, specifically, can pass through Opencv (Open Source Computer Vision Library) is called to compare picture similarity, it is determined that With same or similar first screenshot capture of highest of spending of first frame picture for target in the screenshot capture of picture library Screenshot capture.OpenCV is a cross-platform computer vision library issued based on (increasing income), can be run In the several operation systems such as Linux, Windows and Mac OS, while the interface of multilingual is provided, Many general-purpose algorithms in terms of image procossing and computer vision can be realized.
9) response time is obtained, is instructed especially by the system time for calculating target screenshot capture with clicking operation Time difference between corresponding present system time is come the time of meeting with a response.
By the first frame obtained in above-described embodiment by video response speed detection system and by screenshot capture work( The screenshot capture that can be obtained is contrasted, and determines to utilize target screenshot capture after target screenshot capture by comparing Time difference between the present system time that corresponding system time and click are commenced play out, you can detection is obtained The first frame response speed of browser video to be measured.
One of ordinary skill in the art will appreciate that all or part of flow in above-described embodiment method is realized, It can be by computer program to instruct the hardware of correlation to complete, described program can be stored in a calculating In machine read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method. Wherein, described storage medium can for magnetic disc, CD, read-only memory (Read-Only Memory, ) or random access memory (Random Access Memory, RAM) etc. ROM.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, But can not therefore it be construed as limiting the scope of the patent.It should be pointed out that for this area For those of ordinary skill, without departing from the inventive concept of the premise, some deformations can also be made and changed Enter, these belong to protection scope of the present invention.

Claims (10)

1. a kind of video response speed detection method, including:
Obtain the vision operation instruction of current video;
Record the vision operation and instruct corresponding present system time;
Start screenshot capture function;
The screenshot capture is stored to picture with default frequency acquisition screenshot capture and with default form Storehouse;
Obtain the current video with the corresponding key frame of vision operation instruction;
Search and whether there is target screenshot capture corresponding with the key frame in the picture library;
When there is the target screenshot capture in the picture library, the target screenshot capture correspondence is obtained System time and the present system time time difference;And
The response time of the video is determined according to the time difference.
2. video response speed detection method as claimed in claim 1, it is characterised in that:The acquisition is worked as The step of vision operation of preceding video is instructed includes:
Obtain the vision operation instruction clicked on and commenced play out;
It is described to obtain including the step of instructing corresponding key frame with the vision operation for the current video:
Obtain the first frame figure corresponding with the vision operation instruction that the click is commenced play out of the current video Piece.
3. video response speed detection method as claimed in claim 2, it is characterised in that:The acquisition is worked as Before the step of vision operation of preceding video is instructed, in addition to:
Obtain browser enabled instruction;
Browser is opened according to the browser enabled instruction, and searches and works as forward sight described in the browser The position coordinates for commencing play out button of frequency;
Sent according to the position coordinates to the click event for commencing play out button.
4. video response speed detection method as claimed in claim 1, it is characterised in that:It is described with default Frequency acquisition screenshot capture and the step of screenshot capture is to picture library stored with default form included:
With default frequency acquisition screenshot capture;
The screenshot capture is stored to picture library using corresponding system time as filename respectively.
5. the video response speed detection method as described in any one in claim 1-4, it is characterised in that: It is described to obtain including the step of instructing corresponding key frame with the vision operation for the current video:
Obtain the piece source address of the current video;
The film source of the current video is downloaded according to described source address;
Obtain in the film source with the corresponding key frame of vision operation instruction.
6. a kind of video response speed detection system, including:
Operational order acquisition module, the vision operation for obtaining current video is instructed;
Logging modle, corresponding present system time is instructed for recording the vision operation;
Screenshotss starting module, for starting screenshot capture function;
Screen capture module, for storing the screen with default frequency acquisition screenshot capture and with default form Curtain sectional drawing is to picture library;
Key frame acquisition module, for obtaining the corresponding with vision operation instruction of the current video Key frame;
Searching modul, target screen corresponding with the key frame is whether there is for searching in the picture library Curtain sectional drawing;
Computing module is responded, for when there is the target screenshot capture in the picture library, obtaining institute The time difference of the corresponding system time of target screenshot capture and the present system time is stated, and according to described Time difference determines the response time of the video.
7. video response speed detection system as claimed in claim 6, it is characterised in that:The operation refers to Acquisition module is made to click on the vision operation commenced play out instruction specifically for obtaining;
The key frame acquisition module clicks on what is commenced play out specifically for the acquisition current video with described Vision operation instructs corresponding first frame picture.
8. video response speed detection system as claimed in claim 7, it is characterised in that:Also include:
Enabled instruction acquisition module, for obtaining browser enabled instruction;
Coordinate obtaining module, for opening browser according to the browser enabled instruction, and is searched described The position coordinates for commencing play out button of current video described in browser;
Module is clicked on, for being sent according to the position coordinates to the click event for commencing play out button.
9. video response speed detection system as claimed in claim 6, it is characterised in that:The screenshotss mould Block includes:
Screenshotss unit, for default frequency acquisition screenshot capture;
Memory cell, for the screenshot capture to be stored using corresponding system time as filename respectively To picture library.
10. the video response speed detection system as described in any one in claim 6-9, its feature exists In:The key frame acquisition module includes:
Address acquisition unit, the piece source address for obtaining the current video;
Download unit, the film source for downloading the current video according to described source address;
Key frame acquiring unit, for obtain in the film source with the corresponding key of vision operation instruction Frame.
CN201610035908.5A 2016-01-19 2016-01-19 Video response speed detection method and system Active CN106982368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610035908.5A CN106982368B (en) 2016-01-19 2016-01-19 Video response speed detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610035908.5A CN106982368B (en) 2016-01-19 2016-01-19 Video response speed detection method and system

Publications (2)

Publication Number Publication Date
CN106982368A true CN106982368A (en) 2017-07-25
CN106982368B CN106982368B (en) 2020-06-23

Family

ID=59340642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610035908.5A Active CN106982368B (en) 2016-01-19 2016-01-19 Video response speed detection method and system

Country Status (1)

Country Link
CN (1) CN106982368B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664281A (en) * 2018-03-13 2018-10-16 广东美晨通讯有限公司 It obtains application and starts time method, electronic equipment and the device with store function
CN109697156A (en) * 2018-11-19 2019-04-30 北京奇艺世纪科技有限公司 A kind of starting time obtaining method, device, terminal device and storage medium
CN109766250A (en) * 2017-11-09 2019-05-17 广东欧珀移动通信有限公司 Mobile terminal and its response performance test method, device and storage medium
CN110099299A (en) * 2018-01-30 2019-08-06 腾讯科技(深圳)有限公司 Video frame parameter acquiring method, acquisition device and computer readable storage medium
CN110704294A (en) * 2018-07-09 2020-01-17 百度在线网络技术(北京)有限公司 Method and apparatus for determining response time
CN110795340A (en) * 2019-10-04 2020-02-14 广州易方信息科技股份有限公司 Non-invasive Flash player automatic testing method
CN110908887A (en) * 2018-09-14 2020-03-24 飞狐信息技术(天津)有限公司 Method and system for automatically testing response speed of application program
CN112055237A (en) * 2020-08-31 2020-12-08 北京爱奇艺科技有限公司 Method, system, apparatus, device and storage medium for determining screen-to-screen delay
CN115174924A (en) * 2022-07-20 2022-10-11 天翼数字生活科技有限公司 Set top box, video play-out delay calculation method, system, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN102761456A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for acquiring performance parameters of browser of mobile terminal
CN102761467A (en) * 2011-04-25 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for calculating webpage download time of browser
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN102929782A (en) * 2012-11-14 2013-02-13 北京奇虎科技有限公司 Device and method for testing software performances
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN105117267A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Browser starting method and device and terminal equipment
CN105183632A (en) * 2015-07-21 2015-12-23 四川长虹电器股份有限公司 Automatic testing method for video playback starting

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624576A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for automatically testing webpage downloading time of browser and system thereof
CN102761467A (en) * 2011-04-25 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for calculating webpage download time of browser
CN102761456A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for acquiring performance parameters of browser of mobile terminal
CN103581987A (en) * 2012-07-31 2014-02-12 腾讯科技(深圳)有限公司 Method and device for testing webpage downloading speed of mobile terminal device
CN102902625A (en) * 2012-11-14 2013-01-30 北京奇虎科技有限公司 Software performance test system and method
CN102929782A (en) * 2012-11-14 2013-02-13 北京奇虎科技有限公司 Device and method for testing software performances
CN105183632A (en) * 2015-07-21 2015-12-23 四川长虹电器股份有限公司 Automatic testing method for video playback starting
CN105117267A (en) * 2015-09-23 2015-12-02 北京金山安全软件有限公司 Browser starting method and device and terminal equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766250A (en) * 2017-11-09 2019-05-17 广东欧珀移动通信有限公司 Mobile terminal and its response performance test method, device and storage medium
CN110099299A (en) * 2018-01-30 2019-08-06 腾讯科技(深圳)有限公司 Video frame parameter acquiring method, acquisition device and computer readable storage medium
CN108664281A (en) * 2018-03-13 2018-10-16 广东美晨通讯有限公司 It obtains application and starts time method, electronic equipment and the device with store function
CN110704294A (en) * 2018-07-09 2020-01-17 百度在线网络技术(北京)有限公司 Method and apparatus for determining response time
CN110908887A (en) * 2018-09-14 2020-03-24 飞狐信息技术(天津)有限公司 Method and system for automatically testing response speed of application program
CN110908887B (en) * 2018-09-14 2023-09-12 飞狐信息技术(天津)有限公司 Method and system for automatically testing response speed of application program
CN109697156A (en) * 2018-11-19 2019-04-30 北京奇艺世纪科技有限公司 A kind of starting time obtaining method, device, terminal device and storage medium
CN110795340A (en) * 2019-10-04 2020-02-14 广州易方信息科技股份有限公司 Non-invasive Flash player automatic testing method
CN112055237A (en) * 2020-08-31 2020-12-08 北京爱奇艺科技有限公司 Method, system, apparatus, device and storage medium for determining screen-to-screen delay
CN112055237B (en) * 2020-08-31 2022-07-19 北京爱奇艺科技有限公司 Method, system, apparatus, device and storage medium for determining screen-to-screen delay
CN115174924A (en) * 2022-07-20 2022-10-11 天翼数字生活科技有限公司 Set top box, video play-out delay calculation method, system, equipment and medium

Also Published As

Publication number Publication date
CN106982368B (en) 2020-06-23

Similar Documents

Publication Publication Date Title
CN106982368A (en) video response speed detection method and system
JP6384474B2 (en) Information processing apparatus and information processing method
CN108920380A (en) Test method, device, server, equipment and the storage medium of the software compatibility
KR20160061349A (en) Actionable content displayed on a touch screen
CN111314759B (en) Video processing method and device, electronic equipment and storage medium
CN106951346A (en) The method of testing and device of a kind of response time
CN107748615B (en) Screen control method and device, storage medium and electronic equipment
CN109379623A (en) Video content generation method, device, computer equipment and storage medium
CN104995639A (en) Terminal and method for managing video file
WO2021120872A1 (en) Video processing method and apparatus, and terminal device
CN113918522A (en) File generation method and device and electronic equipment
CN110475140A (en) Barrage data processing method, device, computer readable storage medium and computer equipment
US20230129509A1 (en) Previewing method and apparatus for effect application, and device, and storage medium
CN108256071B (en) Method and device for generating screen recording file, terminal and storage medium
CN110134568A (en) A kind of application program launching time detection method, device and equipment
CN108108143B (en) Recording playback method, mobile terminal and device with storage function
CN111475677A (en) Image processing method, image processing device, storage medium and electronic equipment
CN111586329A (en) Information display method and device and electronic equipment
CN115437736A (en) Method and device for recording notes
WO2017036311A1 (en) Object sorting method and device
CN114286160A (en) Video playing method and device and electronic equipment
CN113965792A (en) Video display method and device, electronic equipment and readable storage medium
CN113055529A (en) Recording control method and recording control device
CN115617498B (en) Application optimization method, device, electronic equipment and storage medium
CN113919374B (en) Method for translating voice, electronic equipment and storage medium

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