CN107180104B - Length measuring method and device when video head frame - Google Patents

Length measuring method and device when video head frame Download PDF

Info

Publication number
CN107180104B
CN107180104B CN201710404713.8A CN201710404713A CN107180104B CN 107180104 B CN107180104 B CN 107180104B CN 201710404713 A CN201710404713 A CN 201710404713A CN 107180104 B CN107180104 B CN 107180104B
Authority
CN
China
Prior art keywords
video
pages
web
page address
measured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710404713.8A
Other languages
Chinese (zh)
Other versions
CN107180104A (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.)
Chengdu kugou business incubator management Co.,Ltd.
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201710404713.8A priority Critical patent/CN107180104B/en
Publication of CN107180104A publication Critical patent/CN107180104A/en
Application granted granted Critical
Publication of CN107180104B publication Critical patent/CN107180104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/783Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/7847Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content
    • G06F16/785Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using low-level visual features of the video content using colour or luminescence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Abstract

The invention discloses length measuring method when a kind of video head frame and devices, belong to network technique field.This method comprises: opening video web-pages to be measured, record was the first moment at the time of opening the video web-pages;The corresponding video interception of video in the video web-pages is obtained, the quantity for the pixel that color value is different in the video interception is counted;It was the second moment at the time of recording the quantity greater than pre-set color threshold value if the quantity is greater than preset color threshold;Second moment is subtracted into first moment, obtains the first frame duration of video in the video web-pages.Solve the method lacked in the prior art to video head frame in measurement video web-pages, can not the intuitive judgment video web-pages Video service quality the problem of;Achieve the effect that through measurement video head frame duration come the Video service quality of the intuitive judgment video web-pages.

Description

Length measuring method and device when video head frame
Technical field
The present invention relates to length measuring method when a kind of network technique field, in particular to video head frame and devices.
Background technique
Since video head frame duration refer to user opening video web-pages, to watching first frame video in the video web-pages Terminate duration used.
Since video head frame duration is shorter, user more can quickly start to watch video after opening video web-pages, provide this The website of video can more attract user, therefore video head frame duration is to measure one of the important indicator of Video service quality.
Obviously, at present urgently it is a kind of measure video head frame method.
Summary of the invention
It, can not the intuitive judgment view in order to solve to lack in the prior art the method to video head frame in measurement video web-pages The problem of Video service quality of frequency webpage, the embodiment of the invention provides length measuring method when a kind of video head frame and devices. The technical solution is as follows:
In a first aspect, length measuring method when providing a kind of video head frame, which comprises
Video web-pages to be measured are opened, record was the first moment at the time of opening the video web-pages;
The corresponding video interception of video in the video web-pages is obtained, the picture that color value is different in the video interception is counted The quantity of element;
It is the at the time of recording the quantity greater than pre-set color threshold value if the quantity is greater than preset color threshold Two moment;
Second moment is subtracted into first moment, obtains the first frame duration of video in the video web-pages.
Second aspect, provides a kind of video head frame duration measuring device, and described device includes:
First logging modle, is used to open video web-pages to be measured, is the at the time of record opens the video web-pages One moment;
Statistical module counts in the video interception for obtaining the corresponding video interception of video in the video web-pages The quantity of the different pixel of color value;
Second logging modle records the quantity greater than default if being greater than preset color threshold for the quantity It was the second moment at the time of color threshold;
Computing module obtains video in the video web-pages for second moment to be subtracted first moment First frame duration.
Technical solution provided in an embodiment of the present invention has the benefit that
It was the first moment at the time of opening video web-pages by record, obtains the corresponding video of video in video web-pages and cut Figure, counts the quantity for the pixel that color value is different in video interception, and record quantity is second at the time of being greater than pre-set color threshold value Second moment was subtracted for the first moment by the moment, obtained the first frame duration of video in video web-pages, before being played due to video head frame Video pictures in the different pixel of color value negligible amounts, by determining whether the quantity of the different pixel of color value is greater than Pre-set color threshold value, can effectively determine whether video head frame plays;Therefore it solves and lacks in the prior art to measurement video The method of video head frame in webpage, can not the intuitive judgment video web-pages Video service quality the problem of;Reach and has passed through survey Amount video head frame duration carrys out the effect of the Video service quality of the intuitive judgment video web-pages.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
The method flow diagram of length measuring method when Fig. 1 is video head frame provided by one embodiment of the present invention;
The method flow diagram of length measuring method when Fig. 2 is the video head frame of another embodiment of the present invention offer;
The method flow diagram of length measuring method when Fig. 3 is the video head frame of further embodiment offer of the present invention;
Fig. 4 A is the structural block diagram of the video head frame duration measuring device provided in one embodiment of the invention;
Fig. 4 B is the structural block diagram of the video head frame duration measuring device provided in another embodiment of the present invention;
Fig. 5 is the structural block diagram of the terminal provided in section Example of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Referring to FIG. 1, it illustrates the method streams of length measuring method when video head frame provided by one embodiment of the present invention Cheng Tu.Length measuring method may include steps of when video head frame:
Step 101, video web-pages to be measured are opened, record was the first moment at the time of opening video web-pages.
Specifically, terminal calls CreateThread system function to create first frame duration by main thread measures thread, when After long measurement thread operation, terminal measures thread by duration and opens video web-pages to be measured, and record opens video web-pages Moment was the first moment, and according to the browser program path and measurement recorded in the browser program path variable for participating in test Video web-pages page address be parameter call CreateProcess system function create browser process example.
Step 102, the corresponding video interception of video in video web-pages is obtained, the picture that color value is different in video interception is counted The quantity of element.
Optionally, terminal obtains the corresponding video interception of video in video web-pages every scheduled duration, counts video interception The quantity of the different pixel of middle color value.Wherein, scheduled duration can be 0.5s, 1s, 2s, tool of the present embodiment to scheduled duration Body duration does not do any restriction.
It step 103, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold Two moment.
Due to video head frame broadcasting before, the picture that video region show in video web-pages be usually blank screen, extensively Announcement, LOGO of video website etc., therefore preset color threshold can be the number of the different pixel of color value in blank screen picture Amount, the different quantity of pixel of color value in advertisement picture, in the LOGO picture of video website the different pixel of color value number Amount etc..If in the video web-pages that terminal is got in the corresponding video interception of video, the quantity of the different pixel of color value Greater than preset color threshold, illustrate that the picture that current video region is shown is not blank screen, advertisement, video website LOGO, but video head frame, when terminal record current time (at the time of i.e. quantity is greater than pre-set color threshold value) is second at this time It carves.
Specifically, duration measurement thread first calls GetWindowDC system function to obtain browser window DC handle, then adjust Memory DC handle is created with CreateCompatibleDC, then calls CreateCompatibleBitmap creation video place The memory bitmap in region simultaneously records the memory bitmap handle, secondly calls BitBlt by video region in browser window Bitmap data copies in the Installed System Memory that memory bitmap handle is indicated, and finally calls GetDIBits system function by video Then the bitmap data of region traverses the bitmap of video region from being copied in application program memory in Installed System Memory The color value of each pixel in data, and the quantity of the different pixel of statistical color value, if the different pixel of color value Quantity is less than or equal to preset color threshold, illustrates that video head frame does not play, if the quantity of the different pixel of color value is greater than Preset color threshold illustrates that video head frame is played.
Step 104, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
In the video web-pages to be measured obtained due to the second moment for terminal in the corresponding video interception of video, color value At the time of the quantity of different pixels is greater than preset color threshold, the first moment was that terminal opens video web-pages to be measured, Therefore, the second moment was subtracted into for the first moment, user can be obtained since opening video web-pages, to watching in the video web-pages First frame video terminates duration used, i.e., the first frame duration of video in the video web-pages.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video The effect of the Video service quality of webpage.
Referring to FIG. 2, it illustrates the methods of length measuring method when the video head frame of another embodiment of the present invention offer Flow chart.Length measuring method may include steps of when video head frame:
Step 201, web page address, the preset color threshold, video of video web-pages are obtained from preset configuration file The display area of video in webpage.
Before the broadcasting of video head frame, usually not due to video region is shown in different video websites picture Together, some video websites are shown blank screen, the LOGO for the video website that some video websites are shown, therefore, different views The corresponding preset color threshold in frequency website may be different.Similarly, since the page layout of different video websites is different, i.e., not The display area of video may be different in the video web-pages of same video website, therefore, the corresponding video of different video websites The display area of video may be different in webpage.
In the present embodiment, different video websites is corresponding with different configuration files, includes the video network in configuration file The web page address stood, preset color threshold, in video web-pages video display area.
Step 202, according to the web page address of video web-pages, video web-pages to be measured are opened, record opens video web-pages At the time of be the first moment.
Step 203, it according to the display area of video in video web-pages, obtains the corresponding video of video in video web-pages and cuts Figure counts the quantity for the pixel that color value is different in video interception.
Optionally, the display area of video is indicated by coordinates regional in the video web-pages for including in configuration file, the coordinate Region is determined that coordinate origin is defaulted as the coordinate points in the upper left corner of the display screen of terminal by least three coordinate points.
In order to promote the efficiency that terminal counts the quantity for the pixel that color value is different in video interception, coordinates regional can be set It is set to the partial region in the display area of video, for example coordinates regional is the display area middle 100x100 pixel of video Region.
When video web-pages do not maximize display, the browser window where the video web-pages is moveable, due to pre- Fixed coordinates regional is fixed, therefore the mobility of the browser window where video web-pages, may result in terminal not It can be according to the display area of video in the video web-pages that scheduled coordinates regional is accurately determined.Optionally, terminal is being opened After video web-pages to be measured, which is maximized, due to maximizing the display of video in the video web-pages after showing The position that region is equivalent to the upper left corner of display screen is fixed, therefore terminal can be according to scheduled coordinates regional, accurately really Make the display area of video in video web-pages.
Specifically, duration, which measures thread, calls window maximized system function by parameter of browser window handle, make clear The window maximized display of device of looking at.
It step 204, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold Two moment.
Step 205, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
It should be noted that it is similar with step 101 by step 202 in this present embodiment, step 204 is similar with step 103, Step 205 is similar with step 104, therefore no longer repeats explanation to step 202, step 204 and step 205 in this implementation.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video The effect of the Video service quality of webpage.
In the present embodiment, terminal is by maximizing the video web-pages, to guarantee video in determined video web-pages Display area accuracy.
Referring to FIG. 3, it illustrates the methods of length measuring method when the video head frame of further embodiment of the present invention offer Flow chart.Length measuring method may include steps of when video head frame:
Step 301, obtained from preset configuration file video web-pages list to be measured, preset color threshold, to The corresponding relationship of the display area of video in the web page address and video web-pages of the video web-pages of measurement.
Wherein, the web page address for there are multiple video web-pages to be measured is recorded in video web-pages list to be measured.
It should be noted that the web page address recorded in video web-pages list can be the same webpage of same video website Address can be the different web pages address of same video website, can also be the different web pages address of different video website.Its In, the web page address of each video web-pages to be measured respectively corresponds the display area of video in a video web-pages.
Step 302, the web page address recorded in video web-pages list to be measured is traversed, determines the webpage not being labeled Address.
Wherein, the web page address not being labeled is the web page address that terminal does not carry out the measurement of video head frame duration, is labeled Web page address be terminal carried out video head frame duration measurement web page address.
Step 303, first item web page address is obtained in never labeled web page address, first item web page address is determined For the web page address of video web-pages.
Step 304, video web-pages to be measured are opened, record was the first moment at the time of opening video web-pages.
Step 305, according to pair of the display area of video in the web page address and video web-pages of video web-pages to be measured It should be related to, determine the display area of video in the corresponding video web-pages of first item web page address.
In the web page address and video web-pages of video web-pages to be measured in the corresponding relationship of the display area of video, record There is the corresponding relationship of each single item web page address and the display area of video in video web-pages in video web-pages list to be measured.Eventually After first item web page address is determined as the web page address of video web-pages by end, it can be searched in corresponding relationship and determine the first item The display area of video in the corresponding video web-pages of web page address.
Step 306, according to the display area of video in the video web-pages determined, it is corresponding to obtain video in video web-pages Video interception counts the quantity for the pixel that color value is different in video interception.
It step 307, is the at the time of recording quantity greater than pre-set color threshold value if quantity is greater than preset color threshold Two moment.
Step 308, the second moment was subtracted into for the first moment, obtains the first frame duration of video in video web-pages.
Step 309, the web page address of the video web-pages is marked in video web-pages list to be measured.
After terminal obtains the first frame duration of video in video web-pages, then label should in video web-pages list to be measured The web page address of video web-pages shows that the video web-pages have been measured.
Since record has the web page address of multiple video web-pages to be measured in video web-pages list to be measured, terminal exists The test of one of video web-pages is terminated (i.e. after step 309), step 302 will to be repeated to step 309, until to be measured Video web-pages list in the not labeled web page address that records be sky.
It should be noted that it is similar with step 101 by step 304 in this present embodiment, step 306 is similar with step 203, Step 307 is similar with step 103, step 308 is similar with step 104, thus in this implementation no longer to step 304, step 306 to Step 308 repeats explanation.
In conclusion length measuring method when video head frame provided in an embodiment of the present invention, opens video web-pages by record At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video The effect of the Video service quality of webpage.
In the present embodiment, configuration file further includes video web-pages list to be measured, and terminal can sequentially measure multiple videos The first frame duration of video in webpage.
In order to avoid when terminal open multiple windows when, the window that can not be appropriately determined where video web-pages to be measured, Configuration file further includes the process identification (PID) of preset browser, and terminal opens video web-pages to be measured, and records opening video For after the first moment at the time of webpage, by successively by the corresponding process identification (PID) of the window opened and preset browser into Journey mark is compared, and determines the window where video web-pages to be measured.In a kind of mode in the cards, in step 202 and step 304 after, can also carry out following step A1 to step A2.
Step A1 successively detects the corresponding process identification (PID) of the window opened, and determines whether the process identification (PID) is preset The process identification (PID) of browser.
After step 202 and step 304, duration measures thread with the browser process example created in step 101 Handle is that parameter calls WaitForSingleObject that browser process example is waited to terminate, and time-out time is arranged.If in head Newly created browser process is closed due to user is manual or other before frame duration measurement has not been completed, WaitForSingleObject then returns to WAIT_OBJECT_0, and prompt terminal terminates the measurement of video head frame duration;Otherwise WAIT_ OBJECT_0 waits time-out, executes step A1.
Duration, which measures thread, to be enumerated system as parameter calling system function EnumWindows to enumerate call back function and has opened All top-level windows, and called in enumerating call back function by parameter of the window handle that is currently enumerated GetWindowThreadProcessId, to obtain process identification (PID) belonging to the window handle being currently enumerated, by the process Mark is compared with the process identification (PID) of preset browser.
Step A2, if detecting, corresponding process identification (PID) is the window of the process identification (PID) of preset browser, and determining should Window is the window where video web-pages to be measured.
The mistake that the process identification (PID) is compared by terminal using duration measurement thread with the process identification (PID) of preset browser Cheng Zhong returns to TRUE if unequal, continues to enumerate next window handle;FALSE is returned to if equal, end was enumerated Journey, and recording the window handle being currently enumerated is the window handle where video web-pages to be measured.
Optionally, since parent window and child window share a process identification (PID), and child window may be hiding not for eventually End needs the window measured, therefore compares the process identification (PID) and the process identification (PID) of preset browser in duration measurement thread Compared with during, if it is equal continue to call GetWindowLong continue to determine whether the window handle that is enumerated meets it is pre- Fixed condition (for example window handle is to show that state, window handle have title bar, the parent window of window handle is NULL), TRUE is returned if being unsatisfactory for predetermined condition, continues to enumerate next window handle, FALSE is returned if meeting predetermined condition, Terminate enumeration process, and the window handle that then record is currently enumerated is the window handle where video web-pages to be measured.
The desktop background of terminal is not usually solid color, may when terminal is when video web-pages to be measured are not switched on The operation for having executed screenshot statistical pixel, the picture for causing terminal to be truncated to are the desktop of the terminal, and the color value counted on is not The quantity of same pixel is the quantity of the different pixel of the color value of desktop.Once in this way, the pixel that the color value of desktop is different Quantity be greater than preset color threshold, terminal can then determine that video head frame is played, cause the measurement of video head frame duration wrong Accidentally.
In a kind of mode in the cards, before step 101, step 201 and step 301, following step is executed B1。
Step B1 deletes the icon shown on desktop, and/or, the background color of desktop is adjusted to solid color.
After step 104 and step 205, following step B2 is executed.
Step B2 restores the icon being deleted on desktop, and/or, the background color of desktop is reverted to and is adjusted to list Color before one color.
In a kind of mode in the cards, after step 308, terminal is by the web page address of video web-pages to be measured It is stored in tables of data with first frame duration as one group of corresponding relationship, and the video recorded in video web-pages list to be measured After file all measures, the tables of data is exported, so that technical staff analyzes the data in tables of data, and implements phase It should handle.
Optionally, terminal is deposited using the web page address of video web-pages to be measured and first frame duration as one group of corresponding relationship After entering in tables of data, the first frame duration in corresponding relationships all in tables of data is calculated, obtains first frame duration maximum value, head Frame duration minimum value and first frame duration average value.
It is following that the details of description not detailed in Installation practice can be referred to above-mentioned for apparatus of the present invention embodiment One-to-one embodiment of the method.
Fig. 4 A is please referred to, Fig. 4 A is the structure side of the video head frame duration measuring device provided in one embodiment of the invention Block diagram.The device includes: the first logging modle 401, statistical module 402, the second logging modle 403 and computing module 404.
First logging modle 401, is used to open video web-pages to be measured, and record is first at the time of opening video web-pages Moment;
Statistical module 402 counts color value in video interception for obtaining the corresponding video interception of video in video web-pages The quantity of different pixels;
Second logging modle 403 records quantity greater than pre-set color threshold if being greater than preset color threshold for quantity It was the second moment at the time of value;
Computing module 404 obtains the first frame duration of video in video web-pages for the second moment to be subtracted for the first moment.
Fig. 4 B is please referred to, Fig. 4 B is the structure of the video head frame duration measuring device provided in another embodiment of the present invention Block diagram.In one possible implementation, device further include: first obtains module 405.
First obtains module 405, for being obtained before opening video web-pages to be measured from preset configuration file The web page address of video web-pages, preset color threshold, in video web-pages video display area;
First logging modle 401, is also used to the web page address according to video web-pages, opens video web-pages to be measured;
The statistical module 402 is also used to the display area according to video in video web-pages, obtains video pair in video web-pages The video interception answered.
In a kind of mode in the cards, the statistical module 402, comprising: the first determination unit 402a and first is obtained Unit 402b.
First determination unit 402a, according to scheduled coordinates regional, determines view for maximizing video web-pages to be measured The display area of video in frequency webpage;
First acquisition unit 402b obtains video in video web-pages for the display area according to video in video web-pages Corresponding video interception.
In a kind of mode in the cards, the device further include: second obtains module 406,407 and of the first determining module Second determining module 408.
Second obtains module 406, for being obtained before opening video web-pages to be measured from preset configuration file Video web-pages list to be measured, preset color threshold, video web-pages to be measured web page address and video web-pages in regard The corresponding relationship of the display area of frequency;
First determining module 407 is determined not for traversing the web page address recorded in video web-pages list to be measured Labeled web page address;
Second determining module 408, for obtaining first item web page address in never labeled web page address, by first item Web page address is determined as the web page address of video web-pages;
Statistical module 402, further includes: the second determination unit 402c and second acquisition unit 402d.
Second determination unit 402c, for video in the web page address and video web-pages according to video web-pages to be measured The corresponding relationship of display area determines the display area of video in the corresponding video web-pages of first item web page address;
Second acquisition unit 402d obtains video network for the display area according to video in the video web-pages determined The corresponding video interception of video in page;
The device further include: mark module 409.
Mark module 409, after the first frame duration of video in obtaining video web-pages, in video web-pages to be measured The web page address of video web-pages is marked in list.
In a kind of mode in the cards, configuration file further includes the process identification (PID) of preset browser, and the device is also It include: the first determination module 410 and the second determination module 411.
First determination module 410, for after the first moment, successively being detected at the time of record opens video web-pages The corresponding process identification (PID) of the window of opening, determinating processes identify whether as the process identification (PID) of preset browser;
Second determination module 411, if for detecting that corresponding process identification (PID) is the process identification (PID) of preset browser Window then determines that window is the window where video web-pages to be measured.
In conclusion video head frame duration measuring device provided in an embodiment of the present invention, opens video web-pages by record At the time of be the first moment, obtain video web-pages in the corresponding video interception of video, count video interception in color value it is different The quantity of pixel, record quantity were the second moment at the time of being greater than pre-set color threshold value, and the second moment was subtracted for the first moment, is obtained The first frame duration of video into video web-pages, due to the different pixel of color value in the video pictures before the broadcasting of video head frame Negligible amounts can effectively determine video by determining whether the quantity of the different pixel of color value is greater than pre-set color threshold value Whether first frame plays;Therefore the method lacked in the prior art to video head frame in measurement video web-pages is solved, it can not be intuitive The problem of determining the Video service quality of the video web-pages;Reach through measurement video head frame duration come the intuitive judgment video The effect of the Video service quality of webpage.
In the present embodiment, terminal is by maximizing the video web-pages, to guarantee video in the video web-pages determined The accuracy of display area.
In the present embodiment, configuration file further includes video web-pages list to be measured, and terminal can sequentially measure multiple videos The first frame duration of video in webpage.
It should be understood that the video head frame duration measuring device provided in above-described embodiment is carrying out colour changing to control When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function With being completed by different functional modules, i.e., the internal structure of terminal is divided into different functional modules, to complete above description All or part of function.In addition, video head frame duration measuring device provided by the above embodiment and video head frame duration are surveyed Amount embodiment of the method belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Shown in Figure 5, it illustrates the structural block diagrams of the terminal provided in section Example of the present invention.The terminal 500 for implementing length measuring method when video head frame provided by the above embodiment.Terminal 500 in the present invention may include one Or multiple following component parts: the processor of various processes and method is completed for executing computer program instructions, for believing Breath and storage program instruction random access memory (RAM) and read-only memory (ROM), for storing data with the storage of information Device, I/O equipment, interface, antenna etc..Specifically:
Terminal 500 may include RF (Radio Frequency, radio frequency) circuit 510, memory 520, input unit 530, Display unit 540, sensor 550, voicefrequency circuit 560, WiFi (wireless fidelity, Wireless Fidelity) module 570, place Manage the components such as device 580, power supply 582, camera 590.It will be understood by those skilled in the art that terminal structure shown in Fig. 5 is simultaneously The not restriction of structure paired terminal may include perhaps combining certain components or different than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 5 to terminal 500:
RF circuit 510 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 580;In addition, the data for designing uplink are sent to base station.In general, RF circuit packet Including but be not limited to antenna, at least one amplifier, transceiver, coupler, LNA, (Low NoiseAmplifier, low noise are put Big device), duplexer etc..In addition, RF circuit 510 can also be communicated with network and other equipment by wireless communication.It is described wireless Any communication standard or agreement, including but not limited to GSM (Global System ofMobile can be used in communication Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division MultipleAccess, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), electronics Mail, SMS (ShortMessaging Service, short message service) etc..
Memory 520 can be used for storing software program and module, and processor 580 is stored in memory 520 by operation Software program and module, thereby executing the various function application and data processing of terminal 500.Memory 520 can be main Including storing program area and storage data area, wherein storing program area can answer needed for storage program area, at least one function With program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to terminal 500 Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 520 may include high-speed random access memory, It can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-states are deposited Memory device.
Input unit 530 can be used for receiving the number or character information of input, and generate the user setting with terminal 500 And the related key signals input of function control.Specifically, input unit 530 may include touch panel 531 and other inputs Equipment 532.Touch panel 531, also referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 531 or near touch panel 531), and Corresponding attachment device is driven according to preset formula.Optionally, touch panel 531 may include touch detecting apparatus and touching Touch two parts of controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 580, and order that processor 580 is sent can be received and executed.Furthermore, it is possible to using The multiple types such as resistance-type, condenser type, infrared ray and surface acoustic wave realize touch panel 531.It is defeated in addition to touch panel 531 Entering unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to physics One of keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 540 can be used for showing information input by user or the information and terminal 500 that are supplied to user Various menus.Display unit 540 may include display panel 541, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) come Configure display panel 541.Further, touch panel 531 can cover display panel 541, when touch panel 531 is detected at it On or near touch operation after, send processor 580 to determine the type of touch event, be followed by subsequent processing device 580 according to touching The type for touching event provides corresponding visual output on display panel 541.Although in Fig. 5, touch panel 531 and display surface Plate 541 is the input and input function for realizing terminal 500 as two independent components, but in certain embodiments, it can That terminal 500 is realized so that touch panel 531 and display panel 541 is integrated outputs and inputs function.
Terminal 500 may also include at least one sensor 550, such as gyro sensor, magnetic induction sensor, light sensing Device, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and proximity sensor, In, ambient light sensor can adjust the brightness of display panel 541 according to the light and shade of ambient light, and proximity sensor can be in terminal 500 when being moved in one's ear, closes display panel 541 and/or backlight.As a kind of motion sensor, acceleration transducer can The size for detecting (generally three axis) acceleration in all directions, can detect that size and the direction of gravity, can be used for when static The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of identification terminal posture, Vibration identification correlation function (such as pedometer, percussion) etc.;Barometer, hygrometer, thermometer, infrared sensor for can also configure as terminal 500 etc. Other sensors, details are not described herein.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the audio interface between user and terminal 500.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 561, be converted to sound by loudspeaker 561 by circuit 560 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, after being received by voicefrequency circuit 560 Audio data is converted to, then by after the processing of audio data output processor 580, such as another end is sent to through RF circuit 510 End, or audio data is exported to memory 520 to be further processed.
WiFi belongs to short range wireless transmission technology, and terminal 500 can help user's transceiver electronics by WiFi module 570 Mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 is shown WiFi module 570, but it is understood that, and it is not belonging to must be configured into for terminal 500, it can according to need completely Do not change in the range of disclosed essence and omits.
Processor 580 is the control centre of terminal 500, utilizes each portion of various interfaces and the entire terminal of connection Point, by running or execute the software program and/or module that are stored in memory 520, and calls and be stored in memory 520 Interior data execute the various functions and processing data of terminal 500, to carry out integral monitoring to terminal.Optionally, processor 580 may include one or more processing units;Preferably, processor 580 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Terminal 500 further includes the power supply 582 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 582 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Camera 590 is generally by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens At.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by manually adjusting camera lens;Imaging sensor It is equivalent to " film " of traditional camera, is the heart of camera collection image;Interface is used for camera using winding displacement, plate to plate Connector, spring connection type are connect with terminal mainboard, and the image of acquisition is sent to the memory 520;Digital signal Processor is handled by image of the mathematical operation to acquisition, the analog image of acquisition is converted to digital picture and by connecing Mouth is sent to memory 520.
Although being not shown, terminal 500 can also be including bluetooth module etc., and details are not described herein.
Terminal 500 in addition to include one or more processor 580, further include have memory and one or more Program, one or more program are stored in memory, and are configured to be executed by one or more processor.On One or more program is stated with following function:
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (6)

1. length measuring method when a kind of video head frame, which is characterized in that the described method includes:
Video web-pages list to be measured, preset color threshold, video network to be measured are obtained from preset configuration file The corresponding relationship of the display area of video in the web page address and video web-pages of page;
The web page address recorded in the video web-pages list to be measured is traversed, determines the web page address not being labeled;
First item web page address is obtained from the not labeled web page address, the first item web page address is determined as institute State the web page address of video web-pages to be measured;
The video web-pages to be measured are opened, record was the first moment at the time of opening the video web-pages;
According to the corresponding relationship of the display area of video in the web page address and video web-pages of the video web-pages to be measured, really Make the display area of video in the corresponding video web-pages of the first item web page address;
According to the display area of video in the video web-pages determined, the corresponding video of video in the video web-pages is obtained Screenshot counts the quantity for the pixel that color value is different in the video interception;
When if the quantity is greater than preset color threshold, at the time of recording the quantity greater than pre-set color threshold value being second It carves;
Second moment is subtracted into first moment, obtains the first frame duration of video in the video web-pages.
2. the method according to claim 1, wherein it is described obtain the first frame of video in the video web-pages when After length, the method also includes:
The web page address of the video web-pages is marked in the video web-pages list to be measured;
Execute the operation of the web page address recorded in the traversal video web-pages list to be measured.
3. the method according to claim 1, wherein the configuration file further includes the process of preset browser Mark, the record open the video web-pages at the time of be the first moment after, the method also includes:
Successively detect the corresponding process identification (PID) of the window opened, determine the process identification (PID) whether be preset browser into Journey mark;
If detecting, corresponding process identification (PID) is the window of the process identification (PID) of the preset browser, determines that the window is Window where the video web-pages to be measured.
4. a kind of video head frame duration measuring device, which is characterized in that described device includes:
Second obtains module, for obtaining video web-pages list to be measured, preset color threshold from preset configuration file Value, video web-pages to be measured web page address and video web-pages in video display area corresponding relationship;
First determining module, for traversing the web page address recorded in the video web-pages list to be measured, determine not by The web page address of label;
Second determining module, for obtaining first item web page address from the not labeled web page address, by described first Item web page address is determined as the web page address of the video web-pages;
First logging modle, is used to open the video web-pages to be measured, is the at the time of record opens the video web-pages One moment;
Statistical module, pair for the display area of video in the web page address and video web-pages according to video web-pages to be measured It should be related to, determine the display area of video in the corresponding video web-pages of the first item web page address;It is determined according to described Video web-pages in video display area, obtain the corresponding video interception of video in the video web-pages, count the video The quantity of the different pixel of color value in screenshot;
Second logging modle records the quantity greater than pre-set color if being greater than preset color threshold for the quantity It was the second moment at the time of threshold value;
Computing module obtains the first frame of video in the video web-pages for second moment to be subtracted first moment Duration.
5. device according to claim 4, which is characterized in that described device further include:
Mark module, for obtaining described in the video web-pages after the first frame duration of video, in the view to be measured The web page address of the video web-pages is marked in frequency web page listings.
6. device according to claim 4, which is characterized in that the configuration file further includes the process of preset browser Mark, described device further include:
First determination module, for after the first moment, successively being detected at the time of the record opens the video web-pages The corresponding process identification (PID) of the window opened, determine the process identification (PID) whether be preset browser process identification (PID);
Second determination module, if for detecting that corresponding process identification (PID) is the window of the process identification (PID) of the preset browser Mouthful, then determine that the window is the window where the video web-pages to be measured.
CN201710404713.8A 2017-06-01 2017-06-01 Length measuring method and device when video head frame Active CN107180104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710404713.8A CN107180104B (en) 2017-06-01 2017-06-01 Length measuring method and device when video head frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710404713.8A CN107180104B (en) 2017-06-01 2017-06-01 Length measuring method and device when video head frame

Publications (2)

Publication Number Publication Date
CN107180104A CN107180104A (en) 2017-09-19
CN107180104B true CN107180104B (en) 2019-09-20

Family

ID=59835982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710404713.8A Active CN107180104B (en) 2017-06-01 2017-06-01 Length measuring method and device when video head frame

Country Status (1)

Country Link
CN (1) CN107180104B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110099299A (en) * 2018-01-30 2019-08-06 腾讯科技(深圳)有限公司 Video frame parameter acquiring method, acquisition device and computer readable storage medium
CN110096324B (en) * 2019-04-22 2022-11-25 四川易简天下科技股份有限公司 Efficient screen capture method for automatically filtering self window based on windows system
CN114827754B (en) * 2022-02-23 2023-09-12 阿里巴巴(中国)有限公司 Video first frame time detection method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103959767A (en) * 2011-12-21 2014-07-30 汤姆逊许可公司 Video processing apparatus and method for detecting a temporal synchronization mismatch
CN106021092A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Method and device for determining starting duration of application program
CN106791910A (en) * 2016-12-02 2017-05-31 浙江宇视科技有限公司 Frame of video processing method and processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8068544B2 (en) * 1998-12-21 2011-11-29 Zin Stai Pte. In, Llc Compression with doppler enhancement
US8284249B2 (en) * 2008-03-25 2012-10-09 International Business Machines Corporation Real time processing of video frames for triggering an alert

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103959767A (en) * 2011-12-21 2014-07-30 汤姆逊许可公司 Video processing apparatus and method for detecting a temporal synchronization mismatch
CN106021092A (en) * 2016-05-04 2016-10-12 北京小米移动软件有限公司 Method and device for determining starting duration of application program
CN106791910A (en) * 2016-12-02 2017-05-31 浙江宇视科技有限公司 Frame of video processing method and processing device

Also Published As

Publication number Publication date
CN107180104A (en) 2017-09-19

Similar Documents

Publication Publication Date Title
CN105187930B (en) Interactive approach and device based on net cast
WO2020143663A1 (en) Display method and mobile terminal
CN108052255A (en) Quick method, terminal and the computer storage media searched and start application program
CN109547644A (en) A kind of information display method and terminal
CN104965642B (en) Drop-down list generation method and device
CN109388304A (en) A kind of screenshotss method and terminal device
CN108989563A (en) Display methods, mobile terminal and the computer readable storage medium of double-sided screen
CN104159140B (en) A kind of methods, devices and systems of Video processing
CN108415636A (en) A kind of generation method, mobile terminal and the storage medium of suspension button
CN112423138A (en) Search result display method and terminal equipment
CN107729131A (en) A kind of event-handling method, terminal and computer-readable recording medium
CN104991699B (en) A kind of method and apparatus of video display control
CN107180104B (en) Length measuring method and device when video head frame
CN109192113A (en) Displaying method of terminal, terminal and computer readable storage medium
CN106101764A (en) A kind of methods, devices and systems showing video data
CN108881617A (en) A kind of display changeover method and mobile terminal
CN108257104A (en) A kind of image processing method and mobile terminal
CN110180181A (en) Screenshot method, device and the computer readable storage medium of Wonderful time video
CN109683766A (en) Interactive interface control method, mobile terminal and computer readable storage medium
CN110278481A (en) Picture-in-picture implementing method, terminal and computer readable storage medium
CN107329655A (en) A kind of window adjusting method, mobile terminal and computer-readable recording medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN107770449A (en) continuous shooting method, electronic equipment and storage medium
CN108399057A (en) message display method, terminal and computer readable storage medium
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220415

Address after: 4119, 41st floor, building 1, No.500, middle section of Tianfu Avenue, Chengdu hi tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu kugou business incubator management Co.,Ltd.

Address before: No. 315, Huangpu Avenue middle, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU KUGOU COMPUTER TECHNOLOGY Co.,Ltd.