CN109729393A - The processing method and processing device of data - Google Patents
The processing method and processing device of data Download PDFInfo
- Publication number
- CN109729393A CN109729393A CN201711051211.8A CN201711051211A CN109729393A CN 109729393 A CN109729393 A CN 109729393A CN 201711051211 A CN201711051211 A CN 201711051211A CN 109729393 A CN109729393 A CN 109729393A
- Authority
- CN
- China
- Prior art keywords
- time
- granularity
- broadcasting
- data
- broadcasting time
- 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
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a kind of processing method and processing devices of data, are related to technical field of data processing, improve the computational efficiency and calculating speed for calculating rating achievement data.The method comprise the steps that obtaining multiple video playing data;According to the corresponding broadcast start time of each video playing data and terminate play time, calculates the corresponding increase broadcasting time of each preset time granularity in the video playing date, reduce broadcasting time, have a net increase of broadcasting time and playing duration changing value;Broadcasting time at the time of first preset time granularity corresponds in the video playing date is obtained, and has a net increase of broadcasting time at the time of broadcasting time determines that each preset time granularity corresponds to according to moment broadcasting time and each preset time granularity are corresponding;Receive data computations;According to the corresponding increase broadcasting time of preset time granularity each in the selection period, broadcasting time, moment broadcasting time and playing duration changing value are had a net increase of, calculates the corresponding rating achievement data of calculating demand.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of processing method and processing device of data.
Background technique
It is increasingly developed with Internet technology, it is online watch video have become it is indispensable in people's daily life
A part.When user's using terminal equipment watches video, the sampling instrument being previously deployed in terminal device will acquire use
The video playing data that video generates are watched at family, and the video playing data collected are sent in server.By right
User watches the video playing data that video generates and analyzes, and can determine the hobby and viewing habit of user, thus
Better service is provided for user.
Currently, usually there are two types of analysis modes when analyzing the video playing data chosen in the period: one, counting
The rating achievement data chosen in the period: rating number and rating duration is calculated, to analyze the viewership chosen in the period;
Two, every N minutes in the selection period of rating achievement data: rating number and rating duration is calculated, is chosen in the period to analyze
Rating trend.
Inventor during realizing invention, in the prior art, choose the viewership in the period in analysis or divide by discovery
It is to calculate the rating in the selection period according to the video playing data chosen in the period to refer to when the rating trend in the period is chosen in analysis
It marks data or chooses every N minutes of rating achievement data in the period.Due to choosing the data volume of the video playing data in the period
It is very big, therefore, when the viewership in the period is chosen in analysis or the rating trend in the period is chosen in analysis, it is required to carry out big
Amount calculates, and so as to cause when analyzing the video playing data chosen in the period, calculates the calculating of rating achievement data
Efficiency is lower, calculating speed is slower.
Summary of the invention
In view of this, the processing method and processing device of data provided by the invention, main purpose is that improving calculating rating refers to
Mark the computational efficiency and calculating speed of data.
To solve the above-mentioned problems, present invention generally provides following technical solutions:
In a first aspect, the present invention provides a kind of processing methods of data, this method comprises:
Obtain multiple video playing data, wherein the multiple video playing data are video playing date identical view
Frequency played data includes: broadcast start time in the video playing data and terminates play time;
According to the corresponding broadcast start time of each video playing data and terminate play time, calculates the video
The corresponding increase broadcasting time of each preset time granularity in the date is played, broadcasting time is reduced, has a net increase of broadcasting time and broadcasting
Duration changing value, wherein the increase broadcasting time is the video playing number newly increased in the preset time granularity, institute
The video playing number for reducing that broadcasting time is the reduction in the preset time granularity is stated, the broadcasting time that has a net increase of is according to general
The corresponding increase broadcasting time of the preset time granularity, which subtracts, to be reduced broadcasting time and determines;
Broadcasting time at the time of the first preset time granularity corresponds in the video playing date is obtained, and according to institute
It states moment broadcasting time and the corresponding broadcasting time that has a net increase of of each preset time granularity determines each preset time grain
Broadcasting time at the time of degree is corresponding;
Data computations are received, include: calculating demand and selection period in the data computations;
According to the corresponding increase broadcasting time of the preset time granularity each in the selection period, have a net increase of broadcasting time
Number, moment broadcasting time and playing duration changing value, calculate the corresponding rating achievement data of the calculating demand.
Optionally, according to the corresponding broadcast start time of each video playing data and terminate play time, calculate
The corresponding increase broadcasting time of each preset time granularity in the video playing date reduces broadcasting time, has a net increase of broadcasting time
Several and playing duration changing value, comprising:
According to the preset time granularity, respectively to the corresponding broadcast start time of each video playing data and knot
Beam play time carries out truncation, with obtain the corresponding truncation playing duration of each broadcast start time and it is each described in
Terminate the corresponding truncation playing duration of play time;
It is calculated according to each broadcast start time and the corresponding truncation playing duration of each broadcast start time
The corresponding increase broadcasting time of each preset time granularity and increase duration in the video playing date;
It is calculated according to each end play time and the corresponding truncation playing duration of each end play time
The corresponding reduction broadcasting time of each preset time granularity and duration is reduced in the video playing date;
Determine that each preset time granularity is corresponding according to the increase broadcasting time and the reduction broadcasting time
Broadcasting time is had a net increase of, and determines that each preset time granularity is corresponding according to the increase duration and the reduction duration
Playing duration changing value.
Optionally, broadcasting time at the time of the first preset time granularity corresponds in the video playing date is obtained,
Include:
Obtain broadcasting time at the time of the last one described preset time granularity corresponds in the video playing date proxima luce (prox. luc)
Count and have a net increase of broadcasting time;
According to the moment broadcasting time and have a net increase of first described default in the broadcasting time calculating video playing date
Broadcasting time at the time of time granularity corresponds to.
Optionally, according to the corresponding increase broadcasting time of the preset time granularity each in the selection period, have a net increase of
Broadcasting time, moment broadcasting time and playing duration changing value calculate the corresponding rating achievement data of the calculating demand, packet
It includes:
If the calculating demand be calculate it is described choose the period in viewership, and the rating index be rating when
It is long, then broadcasting time at the time of each preset time granularity corresponds in the selection period is obtained respectively, has a net increase of broadcasting time
Several and playing duration changing value, and calculate the selection period corresponding rating duration;
If the calculating demand is to calculate the viewership chosen in the period, and the rating index is rating time
Number then obtains at the time of the first preset time granularity corresponds in the selection period broadcasting time and each described pre- respectively
If the corresponding increase broadcasting time of time granularity, and calculate the selection period corresponding rating number;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include:
Default trend granularity determines each default trend in the selection period then when the rating index is rating duration
The period that granularity is covered;Broadcasting at the time of each preset time granularity corresponds in each period is obtained respectively
Number has a net increase of broadcasting time and playing duration changing value, and when calculating separately the corresponding rating of each default trend granularity
It is long;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include:
Default trend granularity determines each default trend in the selection period then when the rating index is rating number
The period that granularity is covered;Broadcasting at the time of the first preset time granularity corresponds in each period is obtained respectively
Number and the corresponding increase broadcasting time of each preset time granularity, and it is corresponding to calculate each default trend granularity
Rating number.
Optionally, after obtaining multiple video playing data, the method also includes:
Judge whether each video playing data are invalid video played data respectively;
If so, being filtered processing to the invalid video played data.
Second aspect, the present invention also provides a kind of processing unit of data, which includes:
First acquisition unit, for obtaining multiple video playing data, wherein the multiple video playing data are video
Date identical video playing data are played, include: broadcast start time and end play time in the video playing data;
First computing unit, for corresponding according to each of the first acquisition unit acquisition video playing data
Broadcast start time and end play time calculate corresponding increase of each preset time granularity in the video playing date and broadcast
Number is put, broadcasting time is reduced, has a net increase of broadcasting time and playing duration changing value, wherein the increase broadcasting time is in institute
The video playing number newly increased in preset time granularity is stated, the reduction broadcasting time is to subtract in the preset time granularity
Few video playing number, the broadcasting time that has a net increase of are subtracted according to by the corresponding increase broadcasting time of the preset time granularity
Broadcasting time is reduced to determine;
Second acquisition unit, at the time of obtaining that the first preset time granularity corresponds in the video playing date
Broadcasting time;
Determination unit, the moment broadcasting time for being obtained according to the second acquisition unit and each described default
The corresponding broadcasting time that has a net increase of of time granularity determines broadcasting time at the time of each preset time granularity corresponds to;
Receiving unit, computations for receiving data, when including: calculating demand and choose in the data computations
Section;
Second computing unit, for according to the corresponding increase broadcasting of the preset time granularity each in the selections period
Number has a net increase of broadcasting time, moment broadcasting time and playing duration changing value, calculates the corresponding rating index of the calculating demand
Data.
Optionally, first computing unit includes:
Truncation module is used for according to the preset time granularity, corresponding to each video playing data respectively to open
Beginning play time and end play time carry out truncation, are played with obtaining the corresponding truncation of each broadcast start time
Duration and the corresponding truncation playing duration of each end play time;
First computing module, for corresponding according to each broadcast start time and each broadcast start time
Playing duration is truncated and calculates the corresponding increase broadcasting time of each preset time granularity in video playing date and increasing
Added-time is long;
First computing module is also used to according to each end play time and each end play time
Corresponding truncation playing duration calculate corresponding reductions of each preset time granularity in the video playing date play it is secondary
Number and reduction duration;
Determining module, when for determining each described default according to the increase broadcasting time and the reduction broadcasting time
Between granularity is corresponding has a net increase of broadcasting time, and when determining each described default according to the increase duration and the reduction duration
Between the corresponding playing duration changing value of granularity.
Optionally, the second acquisition unit includes:
Module is obtained, it is corresponding for obtaining the last one described preset time granularity in the video playing date proxima luce (prox. luc)
At the time of broadcasting time and have a net increase of broadcasting time;
Second computing module, for obtaining the moment broadcasting time and have a net increase of broadcasting time that module obtains according to described
Calculate broadcasting time at the time of the first preset time granularity corresponds in the video playing date.
Optionally, second computing unit includes:
Third computing module, for being the viewership calculated in the selection period when the calculating demand, and it is described
When rating index is rating duration, broadcasting at the time of each preset time granularity corresponds in the selection period is obtained respectively
Number has a net increase of broadcasting time and playing duration changing value, and calculates the selection period corresponding rating duration;
4th computing module, for being the viewership calculated in the selection period when the calculating demand, and it is described
When rating index is rating number, broadcasting at the time of the first preset time granularity corresponds in the selection period is obtained respectively
Number and the corresponding increase broadcasting time of each preset time granularity, and calculate the selection period corresponding rating time
Number;
5th computing module, for being the rating trend calculated in the selection period when the calculating demand, and it is described
In calculating demand further include: when default trend granularity, and when the rating index is rating duration, determine the selection period
The period that interior each default trend granularity is covered;Each preset time in each period is obtained respectively
Broadcasting time at the time of granularity corresponds to has a net increase of broadcasting time and playing duration changing value, and calculates separately and each described preset
The corresponding rating duration of gesture granularity;
6th computing module, for being the rating trend calculated in the selection period when the calculating demand, and it is described
In calculating demand further include: when default trend granularity, and when the rating index is rating number, determine the selection period
The period that interior each default trend granularity is covered;The first preset time in each period is obtained respectively
Broadcasting time and each preset time granularity corresponding increase broadcasting time at the time of granularity corresponds to, and calculate each described
The default corresponding rating number of trend granularity.
Optionally, described device further include:
Judging unit, for after the first acquisition unit obtains multiple video playing data, judgement to be each respectively
Whether the video playing data are invalid video played data;
Filter element is used for when the judging unit judges the video playing data for invalid video played data,
Processing is filtered to the invalid video played data.
To achieve the goals above, according to the third aspect of the invention we, a kind of storage medium, the storage medium are provided
Program including storage, wherein equipment where controlling the storage medium in described program operation executes number described above
According to processing method.
To achieve the goals above, according to the fourth aspect of the invention, a kind of processor is provided, the processor is used for
Run program, wherein described program executes the processing method of data described above when running.
By above-mentioned technical proposal, technical solution provided by the invention is at least had the advantage that
A kind of processing method and processing device of data provided by the invention, the present invention can acquire multiple video playings
After date identical video playing data, according to the broadcast start time of each video playing data and terminate play time, meter
The corresponding increase broadcasting time of each preset time granularity in the video playing date is calculated, broadcasting time is reduced, has a net increase of broadcasting time
Several and playing duration changing value, and broadcasting at the time of acquiring that first preset time granularity corresponds in the video playing date
After number, broadcast according to corresponding have a net increase of at the time of each preset time granularity of broadcasting time calculating corresponds to of each preset time granularity
Number is put, it is subsequent when receiving comprising calculating demand and choosing the data computations of period, according to every in the selection period
The corresponding increase broadcasting time of a preset time granularity has a net increase of broadcasting time, moment broadcasting time and playing duration changing value, counts
Calculate rating achievement data corresponding with calculating demand in the selection period.With in the prior art, directly according to choose the period in
Video playing data, which calculate, to be chosen in the period compared with the corresponding rating achievement data of calculating demand, and the present invention can be according to some
Multiple video playing data in the video playing date precompute each preset time granularity pair in the video playing date
The increase broadcasting time answered reduces broadcasting time, has a net increase of broadcasting time, moment broadcasting time and playing duration changing value, subsequent
When need to calculate choose calculate demand corresponding rating achievement data in the period when, result can be calculated on the estimation and directly calculated,
To improve the computational efficiency and calculating speed that calculate rating achievement data.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of processing method flow chart of data provided in an embodiment of the present invention;
Fig. 2 shows the processing method flow charts of another data provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition block diagram of the processing unit of data provided in an embodiment of the present invention;
Fig. 4 shows the composition block diagram of the processing unit of another data provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of processing methods of data, as shown in Figure 1, this method is to video playing date phase
Same multiple video playing data are pre-processed, and the subsequent result that can calculate on the estimation directly calculates calculating in the selection period
The corresponding rating achievement data of demand improves the computational efficiency and calculating speed for calculating rating achievement data, this method comprises:
101, multiple video playing data are obtained.
Wherein, due to when handling video playing data, being to be handled as unit of day, therefore obtain more
A video playing data are video playing date identical video playing data.One video playing data can be, but not limited to wrap
Include: broadcast start time terminates play time, User Identity, user location, video program title, video playing day
Phase etc..
In embodiments of the present invention, when needing to collecting video playing data and handling, multiple videos are obtained
Date identical video playing data are played, that is, obtain video playing data all in the video playing date.
102, according to the corresponding broadcast start time of each video playing data and end play time, video playing is calculated
The corresponding increase broadcasting time of each preset time granularity in date reduces broadcasting time, has a net increase of broadcasting time and playing duration
Changing value.
Wherein, preset time granularity is the preset calculating cycle handled video playing data, when presetting
Between granularity can be set as: 15 seconds, 30 seconds, 1 minute etc., for the ease of carry out subsequent processing, preset time granularity would generally
It is set to 1 minute, in actual application, specifically why is worth the setting of preset time granularity, the embodiment of the present invention is to this
Without limiting.The corresponding increase broadcasting time of preset time granularity is that the video newly increased in this preset time granularity is broadcast
Number is put, when the broadcast start time of some video playing data is in this preset time granularity, this preset time
The corresponding increase broadcasting time of granularity just+1;Similarly, the corresponding reduction broadcasting time of preset time granularity is in the preset time
The video playing number of reduction in granularity, when the end play time of some video playing data is in this preset time granularity
When interior, the corresponding reduction broadcasting time of this preset time granularity just+1;And corresponding have a net increase of of preset time granularity broadcasts number
For video playing number actually increased in this preset time granularity, the corresponding increase of this preset time granularity is broadcast
It puts number and subtracts to reduce broadcasting time and determine this preset time granularity is corresponding and have a net increase of broadcasting time.For some video playing
For data, when the broadcast start time of this video playing data may be not the starting of corresponding preset time granularity
Between, it is subsequent when calculating the rating achievement data of this preset time granularity, if starting to broadcast according to this video playing data
Put the time be corresponding preset time granularity initial time carry out calculate will necessarily generate error;Similarly, if according to this view
The end play time of frequency played data is the initial time of corresponding preset time granularity, and it is corresponding to calculate this time granularity
Rating achievement data will necessarily also generate error, and therefore, it is necessary to open according to each video playing data acquired are corresponding
Beginning play time and end play time, calculate separately the corresponding playing duration changing value of each preset time granularity.
In embodiments of the present invention, after acquiring identical video playing data of multiple video playing dates, root
According to the corresponding broadcast start time of each video playing data and terminate play time, calculates separately in this video playing date
The corresponding increase broadcasting time of each preset time granularity and broadcasting time is reduced, so that it is corresponding to calculate each preset time granularity
Have a net increase of broadcasting time, and calculate the corresponding playing duration changing value of each preset time granularity.
103, first preset time granularity broadcasting time at the time of correspond to is obtained in the video playing date, and according to broadcasting constantly
It puts number and the corresponding broadcasting time that has a net increase of of each preset time granularity determines broadcasting at the time of each preset time granularity corresponds to
Number.
Wherein, broadcasting time is the broadcasting of physical presence in this preset time granularity at the time of preset time granularity corresponds to
Number.In actual application, there is the video playing data across day, i.e., the broadcast start time of one video playing data
In M days, and terminates play time and be in M+1 days or M+2 days etc., therefore is first default in this video playing date
Broadcasting time may not be 0 at the time of time granularity, to need to obtain first preset time in this video playing date
Broadcasting time at the time of granularity.
In embodiments of the present invention, this video playing is obtained according to the data acquisition of this video playing date proxima luce (prox. luc)
Broadcasting time at the time of first preset time granularity in date obtains this video playing date due to calculating by abovementioned steps
Interior each preset time granularity has a net increase of broadcasting time, thus may determine that playing at the time of each preset time granularity corresponds to secondary
Number, for example, acquiring broadcasting time at the time of first preset time granularity corresponds in this video playing date is 105, and
And the corresponding broadcasting time that has a net increase of of first preset time granularity is 1, then plays at the time of second preset time granularity correspond to secondary
Number is 106;The corresponding broadcasting time that has a net increase of of second preset time granularity is 2, at the time of third preset time granularity corresponds to
Broadcasting time is 108;The corresponding broadcasting time that has a net increase of of third preset time granularity is 5, then the 4th preset time granularity pair
Broadcasting time is 113 at the time of answering, and so on.
104, data computations are received.
It wherein, include: calculating demand and selection period in data computations;Calculating demand is to calculate rating achievement data
Actual demand, choosing the period be period for being calculated of selection.
In embodiments of the present invention, the data computations of period are received comprising calculating demand and choose, so as to subsequent
According to the data computations, calculates and choose rating achievement data corresponding with the demand of calculating in the period.
105, according to choose the corresponding increase broadcasting time of each preset time granularity in the period, have a net increase of broadcasting time, when
Broadcasting time and playing duration changing value are carved, the corresponding rating achievement data of demand is calculated.
In embodiments of the present invention, the data calculating comprising calculating demand and selection period is received by step 104 to refer to
After order, according to the corresponding increase broadcasting time of preset time granularity each in the selection period, broadcasting time, moment broadcasting time are had a net increase of
Several and playing duration changing value calculates and chooses the corresponding rating achievement data of calculating demand in the period.
A kind of processing method of data provided in an embodiment of the present invention, the embodiment of the present invention can acquire multiple views
After frequency plays date identical video playing data, when according to the broadcast start time of each video playing data and terminating to play
Between, the corresponding increase broadcasting time of each preset time granularity in the video playing date is calculated, broadcasting time is reduced, has a net increase of and broadcast
Put number and playing duration changing value, and at the time of acquiring that first preset time granularity corresponds in the video playing date
After broadcasting time, according to each preset time granularity it is corresponding have a net increase of broadcasting time calculate each preset time granularity it is corresponding when
Broadcasting time is carved, it is subsequent when receiving comprising calculating demand and choosing the data computations of period, according to the selection period
The corresponding increase broadcasting time of interior each preset time granularity has a net increase of broadcasting time, moment broadcasting time and playing duration variation
Value calculates rating achievement data corresponding with calculating demand in the selection period.With in the prior art, directly according to choose the period
Interior video playing data, which calculate, to be chosen in the period compared with the corresponding rating achievement data of calculating demand, and the embodiment of the present invention can
To precompute and each be preset in the video playing date according to multiple video playing data in some video playing date
The corresponding increase broadcasting time of time granularity reduces broadcasting time, has a net increase of broadcasting time, moment broadcasting time and playing duration change
Change value, it is subsequent when need to calculate choose calculate demand corresponding rating achievement data in the period when, result can be calculated on the estimation
It directly calculates, to improve the computational efficiency and calculating speed for calculating rating achievement data.
Below in order to be explained in more detail, the embodiment of the invention provides the processing methods of another data, especially
Multiple video playing data are carried out pretreated specific method and calculate to choose to calculate the corresponding rating of demand in the period
The specific method of achievement data, it is specific as shown in Fig. 2, this method comprises:
201, multiple video playing data are obtained.
Wherein, about step 201, the multiple video playing data of acquisition, the description of Fig. 1 corresponding part, this hair can be referred to
Bright embodiment will not be described in great detail herein.
202, invalid video played data is filtered.
In embodiments of the present invention, identical video playing number of multiple video playing dates is acquired by step 201
According to, needing to judge later in these video playing data with the presence or absence of invalid video played data, wherein invalid video plays number
According to refer to broadcast start time be greater than terminate play time video playing data.Video playing data are handled subsequent
When, if also handling invalid video played data, will lead to calculated result, there are errors, therefore, when judge some regard
When frequency played data is invalid video played data, processing is filtered to this invalid video played data.
203, according to the corresponding broadcast start time of each video playing data and end play time, video playing is calculated
The corresponding increase broadcasting time of each preset time granularity in date reduces broadcasting time, has a net increase of broadcasting time and playing duration
Changing value.
In embodiments of the present invention, corresponding according to each video playing data after by the filtering of invalid video played data
Broadcast start time and terminate play time, it is corresponding to calculate separately each preset time granularity in this video playing date
Increase broadcasting time and reduce broadcasting time, each preset time granularity is corresponding to have a net increase of broadcasting time, Yi Jiji to calculate
Calculate the corresponding playing duration changing value of each preset time granularity.Below will be to how corresponding according to each video playing data
Broadcast start time and end play time, which calculate, to be described in detail.
(1) according to preset time granularity, the corresponding broadcast start time of each video playing data and end are broadcast respectively
Time progress truncation is put, to obtain the corresponding truncation playing duration of each broadcast start time and each end play time
Corresponding truncation playing duration.
For some video playing data, the broadcast start time of this video playing data may be not corresponding
Preset time granularity initial time, it is therefore desirable to truncated position is carried out to the broadcast start time of this video playing data
The broadcast start time of this video playing data, i.e., is subtracted the initial time of corresponding preset time granularity, obtains this by reason
The corresponding truncation playing duration of the broadcast start time of a video playing data, for example, some video playing data starts to broadcast
Putting the time is 12:10:15, and corresponding preset time granularity is (12:10:00,12:10:59), then this video playing data
The corresponding truncation playing duration of broadcast start time is 15 seconds;Similarly, for the end played data of this video playing data
It may also be not the initial time of corresponding preset time granularity, it is therefore desirable to be played to the end of this video playing data
Time carries out truncation, i.e., the end play time of this video playing data is subtracted rising for corresponding preset time granularity
Begin the time, the corresponding truncation playing duration of end play time of this video playing data is obtained, for example, some video playing
The end play time of data is 12:15:20, and corresponding preset time granularity is (12:15:00,12:15:59), then this is regarded
The corresponding truncation playing duration of the end play time of frequency played data is 20 seconds.
(2) video is calculated according to each broadcast start time and the corresponding truncation playing duration of each broadcast start time to broadcast
It puts the corresponding increase broadcasting time of each preset time granularity in the date and increases duration.
After the broadcast start time to each video playing data carries out phase process, according to each broadcast start time
And to calculate each preset time granularity in the video playing date corresponding for the corresponding truncation playing duration of each broadcast start time
Increase broadcasting time and increase duration, for example, the broadcast start time there are three video playing data is in the video playing day
In first preset time granularity in phase, then the corresponding increase broadcasting time of first preset time granularity is 3;These three videos are broadcast
The corresponding truncation playing duration of broadcast start time for putting data is 5 seconds, 7 seconds, 4 seconds respectively, then first preset time granularity pair
A length of 16 seconds when the increase answered.
(3) video is calculated according to each end play time and the corresponding truncation playing duration of each end play time to broadcast
It puts the corresponding reduction broadcasting time of each preset time granularity in the date and reduces duration.
After the end play time to each video playing data carries out phase process, according to each end play time
And to calculate each preset time granularity in the video playing date corresponding for the corresponding truncation playing duration of each end play time
It reduces broadcasting time and reduces duration, for example, the end play time there are four video playing data is in the video playing day
In first preset time granularity in phase, then the corresponding reduction broadcasting time of first preset time granularity is 4;This four videos are broadcast
The corresponding truncation playing duration of end play time for putting data is 3 seconds, 6 seconds, 5 seconds, 4 seconds respectively, then first preset time grain
A length of 18 seconds are spent when corresponding reduction.
(4) it determines that each preset time granularity is corresponding with reduction broadcasting time according to increase broadcasting time and has a net increase of broadcasting time
Number, and according to increasing duration and reduction duration determines the corresponding playing duration changing value of each preset time granularity.
The corresponding increase broadcasting time of each preset time granularity is obtained with after reduction broadcasting time calculating, and is calculated each
Preset time granularity is corresponding to have a net increase of broadcasting time, i.e., is subtracted using the corresponding increase broadcasting time of each preset time granularity
Few broadcasting time determines that each preset time granularity is corresponding and has a net increase of broadcasting time, for example, some preset time granularity is corresponding
Increase broadcasting time is 10, corresponding reduction broadcasting time is 8, then its corresponding broadcasting time that has a net increase of is 2;At the same time, exist
It calculates after obtaining the corresponding increase duration of each preset time granularity and reducing duration, it is corresponding to calculate each preset time granularity
Playing duration changing value is subtracted using the corresponding increase duration of each preset time granularity when reducing duration and determining each default
Between the corresponding playing duration changing value of granularity.
204, broadcasting time at the time of first preset time granularity corresponds in the video playing date is obtained.
In embodiments of the present invention, in order to be broadcast at the time of determining that each preset time granularity corresponds in the video playing date
Put number, it is necessary first to obtain broadcasting time at the time of first preset time granularity corresponds to.It will be broadcast below to how to obtain video
Broadcasting time at the time of first preset time granularity corresponds in the date is put to be described in detail.
(1) the last one preset time granularity broadcasting time and only at the time of correspond to is obtained in video playing date proxima luce (prox. luc)
Increase broadcasting time.
It is according to the previous of the preset time granularity at the time of determining that some preset time granularity corresponds to when broadcasting time
Broadcasting time and have a net increase of what broadcasting time determined at the time of a preset time granularity corresponds to, therefore when needing to obtain the video playing
At the time of first preset time granularity corresponds in date when broadcasting time, need to obtain last in the video playing date proxima luce (prox. luc)
Broadcasting time and broadcasting time is had a net increase of at the time of one preset time granularity corresponds to.
(2) according to moment broadcasting time and have a net increase of broadcasting time calculate the video playing date in first preset time granularity pair
Broadcasting time at the time of answering.
By step (1) acquire the last one preset time granularity in video playing date proxima luce (prox. luc) it is corresponding when
After carving broadcasting time and having a net increase of broadcasting time, broadcasting at the time of first preset time granularity corresponds in the video playing date is calculated
Number, i.e., broadcasting time and having a net increase of is broadcast at the time of correspondence to the last one preset time granularity in the video playing date proxima luce (prox. luc)
It puts number and carries out read group total, obtain broadcasting time at the time of first preset time granularity corresponds in the video playing date.
205, each preset is determined according to the corresponding broadcasting time that has a net increase of of moment broadcasting time and each preset time granularity
Broadcasting time at the time of time granularity corresponds to.
Wherein, about step 205, according to moment broadcasting time and each preset time granularity is corresponding has a net increase of broadcasting time
It determines broadcasting time at the time of each preset time granularity corresponds to, the description of Fig. 1 corresponding part, the embodiment of the present invention can be referred to
It will not be described in great detail herein.
206, data computations are received.
Wherein, about step 206, reception data computations number, the description of Fig. 1 corresponding part, the present invention can be referred to
Embodiment will not be described in great detail herein.
207, according to choose the corresponding increase broadcasting time of each preset time granularity in the period, have a net increase of broadcasting time, when
Broadcasting time and playing duration changing value are carved, the corresponding rating achievement data of demand is calculated.
In embodiments of the present invention, after the data computations for receiving comprising calculating demand and choosing the period, according to
It chooses the corresponding increase broadcasting time of each preset time granularity in the period, have a net increase of broadcasting time, moment broadcasting time and broadcasting
Duration changing value calculates and chooses the corresponding rating achievement data of calculating demand in the period.Hereinafter the period will be chosen to how to calculate
The corresponding rating achievement data of interior calculating demand is described in detail.
(1) if the demand of calculating is to calculate the viewership chosen in the period, and rating index is rating duration, then obtains respectively
It takes and chooses broadcasting time at the time of each preset time granularity corresponds in the period, has a net increase of broadcasting time and playing duration changing value,
And it calculates and chooses period corresponding rating duration.
When the demand of calculating is the viewership calculated in the selection period, and calculative rating achievement data is rating
When long, firstly, obtain respectively choose in the period each preset time granularity broadcasting time at the time of correspond to, have a net increase of broadcasting time and
Playing duration changing value;Then, the corresponding rating duration of each preset time granularity is calculated;Finally, to multiple preset time grains
It spends corresponding rating duration and carries out read group total, obtain and choose period corresponding rating duration.For example, preset time granularity is 1
Minute, choosing the period is (12:00:00,12:59:59), then it chooses in the period comprising 60 preset time granularities: (12:00:
00,12:00:59), (12:01:00,12:01:59) ... (12:59:00,12:59:59) is obtained choose in the period each respectively
Broadcasting time at the time of preset time granularity corresponds to has a net increase of broadcasting time and playing duration changing value, and when calculating each default
Between the corresponding rating duration of granularity: at the time of preset time granularity 1 (12:00:00,12:00:59) is corresponding broadcasting time be 10,
Have a net increase of that broadcasting time is 3, playing duration changing value is 15 seconds, corresponding rating duration=(broadcasting time 10+ had a net increase of and broadcast the moment
Put number 3) * 60- playing duration changing value 15, specially 765 seconds;Preset time granularity 2 (12:01:00,12:01:59) is corresponding
At the time of broadcasting time be 12, to have a net increase of broadcasting time be -2, playing duration changing value is 27 seconds, corresponding rating duration=
(moment, broadcasting time 12+ had a net increase of broadcasting time -2) * 60- playing duration changing value 27, specially 573 seconds etc., finally to this
The corresponding rating duration of 60 preset time granularities carries out read group total, and it is right to obtain selection period (12:00:00,12:59:59)
The rating duration answered.
(2) if the demand of calculating is to calculate the viewership chosen in the period, and rating index is rating number, then obtains respectively
Broadcasting time and the corresponding increase of each preset time granularity at the time of first preset time granularity corresponds in the selection period is taken to broadcast
Number is put, and calculates and chooses period corresponding rating number.
When the demand of calculating is to calculate the viewership chosen in the period, and calculative rating achievement data is rating time
When number, broadcasting time and each preset time granularity at the time of first preset time granularity corresponds in the period are chosen firstly, obtaining
Corresponding increase broadcasting time;Then, broadcasting time and each preset time grain at the time of correspondence to first preset time granularity
It spends corresponding increase broadcasting time and carries out read group total, obtain and choose period corresponding rating number.For example, preset time granularity
It is 1 minute, choosing the period is (12:00:00,12:04:59), then it chooses in the period comprising 5 preset time granularities: (12:00:
00,12:00:59), (12:01:00,12:01:59) ... (12:04:00,12:04:59) obtains first preset time granularity pair
Broadcasting time and each preset time granularity corresponding increase broadcasting time at the time of answering, and read group total is carried out to it and is selected
Take period corresponding rating number: broadcasting time is 25 at the time of first preset time granularity corresponds to, increase broadcasting time is 10,
The corresponding increase broadcasting time of second preset time granularity is 7, the corresponding increase broadcasting time of third preset time granularity
It is 12, the corresponding increase number of the 4th preset time granularity is that the 9, the 5th corresponding increase number of preset time granularity is 6,
Then choose period corresponding rating number are as follows: 25+10+7+12+9+6=69 (secondary).
(3) if the demand of calculating is the rating trend calculated in the selection period, and in calculating demand further include: default trend grain
Degree determines to choose and each presets the period that trend granularity is covered in the period then when rating index is rating duration;Respectively
It obtains broadcasting time at the time of each preset time granularity corresponds in each period, have a net increase of broadcasting time and playing duration variation
Value, and calculate separately the corresponding rating duration of each default trend granularity.
Wherein, time interval of the trend granularity between preset twice adjacent calculation rating achievement data is preset.
When the demand of calculating be to calculate the rating trend chosen in the period, and in calculating demand further include: preset trend granularity
When, the rating achievement data if desired calculated is rating duration, then trend granularity institute is each preset in the period firstly, determining and choosing
The period of covering, for example, choosing the period is (12:00:00,12:59:59), presetting trend granularity is 15 minutes, then the selection
Include 4 default trend granularities in period, be respectively as follows: 1, (12:00:00,12:14:59), 2, (12:15:00,12:29:59),
3, (12:30:00,12:44:59), 4, (12:45:00,12:59:59);Then, it obtains and is each preset in each period respectively
Broadcasting time at the time of time granularity corresponds to has a net increase of broadcasting time and playing duration changing value;Secondly, calculating separately each default
The corresponding rating duration of each preset time granularity each of in trend granularity;Finally, to more in each default trend granularity
The corresponding rating duration of a preset time granularity carries out read group total, obtains each default corresponding rating duration of trend granularity.
(4) if the demand of calculating is the rating trend calculated in the selection period, and in calculating demand further include: default trend grain
Degree determines to choose and each presets the period that trend granularity is covered in the period then when rating index is rating number;Respectively
Obtain broadcasting time and the corresponding increasing of each preset time granularity at the time of first preset time granularity corresponds in each period
Add broadcasting time, and calculates each default corresponding rating number of trend granularity.
When the demand of calculating be to calculate the rating trend chosen in the period, and in calculating demand further include: preset trend granularity
When, the rating achievement data if desired calculated is rating number, then trend granularity institute is each preset in the period firstly, determining and choosing
The period of covering;Then, obtain respectively at the time of the first preset time granularity in each period corresponds to broadcasting time and
The corresponding increase broadcasting time of each preset time granularity;Finally, respectively to the first preset time granularity in each period
Broadcasting time and the corresponding increase broadcasting time of each preset time granularity carry out read group total at the time of corresponding, obtain each pre-
If the corresponding rating number of trend granularity.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of storage Jie
Matter, the storage medium include the program of storage, wherein equipment where controlling the storage medium in described program operation is held
The processing method of row data described above.
To achieve the goals above, according to another aspect of the present invention, the embodiment of the invention also provides a kind of processor,
The processor is for running program, wherein described program executes the processing method of data described above when running.
Further, as the realization to method shown in above-mentioned Fig. 1 and Fig. 2, another embodiment of the present invention additionally provides one
The processing unit of kind data.The Installation practice is corresponding with preceding method embodiment, and to be easy to read, present apparatus embodiment is no longer
Detail content in preceding method embodiment is repeated one by one, it should be understood that the device in the present embodiment can correspond to
Realize the full content in preceding method embodiment.The device is applied to improve the computational efficiency and meter for calculating rating achievement data
Speed is calculated, specifically as shown in figure 3, the device includes:
First acquisition unit 31, for obtaining multiple video playing data, wherein the multiple video playing data are view
Frequency plays date identical video playing data, when including: broadcast start time in the video playing data and terminating to play
Between;
First computing unit 32, for corresponding according to each of the acquisition of the first acquisition unit 31 video playing data
Broadcast start time and end play time calculate corresponding increase of each preset time granularity in the video playing date and broadcast
Number is put, broadcasting time is reduced, has a net increase of broadcasting time and playing duration changing value, wherein the increase broadcasting time is in institute
The video playing number newly increased in preset time granularity is stated, the reduction broadcasting time is to subtract in the preset time granularity
Few video playing number, the broadcasting time that has a net increase of are subtracted according to by the corresponding increase broadcasting time of the preset time granularity
Broadcasting time is reduced to determine;
Second acquisition unit 33, for obtain the first preset time granularity in the video playing date it is corresponding when
Carve broadcasting time;
Determination unit 34, the moment broadcasting time for being obtained according to second acquisition unit 33 and each described default
The corresponding broadcasting time that has a net increase of of time granularity determines broadcasting time at the time of each preset time granularity corresponds to;
Receiving unit 35, for receiving data computations include: calculating demand and selection in the data computations
Period;
Second computing unit 36, for being broadcast according to corresponding increase of the preset time granularity each in the selection period
It puts number, have a net increase of broadcasting time, moment broadcasting time and playing duration changing value, calculate the corresponding rating of the calculating demand and refer to
Mark data.
Further, as shown in figure 4, the first computing unit 32 includes:
Truncation module 321 is used for according to the preset time granularity, corresponding to each video playing data respectively
Broadcast start time and end play time carry out truncation, are broadcast with obtaining the corresponding truncation of each broadcast start time
Put duration and the corresponding truncation playing duration of each end play time;
First computing module 322, for according to each broadcast start time and each broadcast start time pair
The truncation playing duration answered calculates the corresponding increase broadcasting time of each preset time granularity in the video playing date
With increase duration;
First computing module 322 is also used to according to each end play time and each end play time
Corresponding truncation playing duration calculate corresponding reductions of each preset time granularity in the video playing date play it is secondary
Number and reduction duration;
Determining module 323, it is each described pre- for being determined according to the increase broadcasting time and the reduction broadcasting time
If time granularity is corresponding to have a net increase of broadcasting time, and is determined according to the increase duration and the reduction duration each described pre-
If the corresponding playing duration changing value of time granularity.
Further, as shown in figure 4, second acquisition unit 33 includes:
Module 331 is obtained, for obtaining the last one described preset time granularity in the video playing date proxima luce (prox. luc)
Broadcasting time and broadcasting time is had a net increase of at the time of corresponding;
Second computing module 332, for according to obtain module 331 obtain the moment broadcasting time and have a net increase of broadcasting time
Number calculates broadcasting time at the time of the first preset time granularity corresponds in the video playing date.
Further, as shown in figure 4, the second computing unit 36 includes:
Third computing module 361, for be the viewership calculated in the selection period, and institute when the calculating demand
State rating index be rating duration when, obtain broadcast at the time of each preset time granularity corresponds in the selection period respectively
It puts number, have a net increase of broadcasting time and playing duration changing value, and calculate the selection period corresponding rating duration;
4th computing module 362, for be the viewership calculated in the selection period, and institute when the calculating demand
State rating index be rating number when, obtain broadcast at the time of the first preset time granularity corresponds in the selection period respectively
Number and the corresponding increase broadcasting time of each preset time granularity are put, and calculates the selection period corresponding rating time
Number;
5th computing module 363, for be the rating trend calculated in the selection period, and institute when the calculating demand
It states in calculating demand further include: when default trend granularity, and when the rating index is rating duration, when determining the selection
The period that each default trend granularity is covered in section;When obtaining each described default in each period respectively
Between granularity broadcasting time at the time of correspond to, have a net increase of broadcasting time and playing duration changing value, and calculate separately each described default
The corresponding rating duration of trend granularity;
6th computing module 364, for be the rating trend calculated in the selection period, and institute when the calculating demand
It states in calculating demand further include: when default trend granularity, and when the rating index is rating number, when determining the selection
The period that each default trend granularity is covered in section;When obtaining first described default in each period respectively
Between granularity broadcasting time and the corresponding increase broadcasting time of each preset time granularity at the time of correspond to, and calculate each institute
State the corresponding rating number of default trend granularity.
Further, as shown in figure 4, the device further include:
Judging unit 37, for after first acquisition unit 31 obtains multiple video playing data, judgement to be each respectively
Whether the video playing data are invalid video played data;
Filter element 38, for when judging unit 37 judges the video playing data for invalid video played data,
Processing is filtered to the invalid video played data.
A kind of processing unit of data provided in an embodiment of the present invention, the embodiment of the present invention can acquire multiple views
After frequency plays date identical video playing data, when according to the broadcast start time of each video playing data and terminating to play
Between, the corresponding increase broadcasting time of each preset time granularity in the video playing date is calculated, broadcasting time is reduced, has a net increase of and broadcast
Put number and playing duration changing value, and at the time of acquiring that first preset time granularity corresponds in the video playing date
After broadcasting time, according to each preset time granularity it is corresponding have a net increase of broadcasting time calculate each preset time granularity it is corresponding when
Broadcasting time is carved, it is subsequent when receiving comprising calculating demand and choosing the data computations of period, according to the selection period
The corresponding increase broadcasting time of interior each preset time granularity has a net increase of broadcasting time, moment broadcasting time and playing duration variation
Value calculates rating achievement data corresponding with calculating demand in the selection period.With in the prior art, directly according to choose the period
Interior video playing data, which calculate, to be chosen in the period compared with the corresponding rating achievement data of calculating demand, and the embodiment of the present invention can
To precompute and each be preset in the video playing date according to multiple video playing data in some video playing date
The corresponding increase broadcasting time of time granularity reduces broadcasting time, has a net increase of broadcasting time, moment broadcasting time and playing duration change
Change value, it is subsequent when need to calculate choose calculate demand corresponding rating achievement data in the period when, result can be calculated on the estimation
It directly calculates, to improve the computational efficiency and calculating speed for calculating rating achievement data.Meanwhile the embodiment of the present invention may be used also
After acquiring identical video playing data of multiple video playing dates, invalid video played data to be filtered,
So as to avoid since there are invalid video played datas, and generation the case where lead to calculated result there are errors, Jin Erti
The high accuracy rate for calculating rating achievement data.
The processing unit of the data includes processor and memory, above-mentioned first acquisition unit, the first computing unit,
Two acquiring units, determination unit, receiving unit and second computing unit etc. are used as program unit storage in memory, by
Reason device executes above procedure unit stored in memory to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, the computational efficiency and calculating speed of calculating rating achievement data are improved by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The processing method of data described in any one of existing above embodiments.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
The processing method of data described in any one of Shi Zhihang above embodiments.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program
Obtain multiple video playing data, wherein the multiple video playing data are video playing date identical view
Frequency played data includes: broadcast start time in the video playing data and terminates play time;
According to the corresponding broadcast start time of each video playing data and terminate play time, calculates the video
The corresponding increase broadcasting time of each preset time granularity in the date is played, broadcasting time is reduced, has a net increase of broadcasting time and broadcasting
Duration changing value, wherein the increase broadcasting time is the video playing number newly increased in the preset time granularity, institute
The video playing number for reducing that broadcasting time is the reduction in the preset time granularity is stated, the broadcasting time that has a net increase of is according to general
The corresponding increase broadcasting time of the preset time granularity, which subtracts, to be reduced broadcasting time and determines;
Broadcasting time at the time of the first preset time granularity corresponds in the video playing date is obtained, and according to institute
It states moment broadcasting time and the corresponding broadcasting time that has a net increase of of each preset time granularity determines each preset time grain
Broadcasting time at the time of degree is corresponding;
Data computations are received, include: calculating demand and selection period in the data computations;
According to the corresponding increase broadcasting time of the preset time granularity each in the selection period, have a net increase of broadcasting time
Number, moment broadcasting time and playing duration changing value, calculate the corresponding rating achievement data of the calculating demand.
Further, according to the corresponding broadcast start time of each video playing data and terminate play time, meter
The corresponding increase broadcasting time of each preset time granularity in the video playing date is calculated, broadcasting time is reduced, has a net increase of broadcasting
Number and playing duration changing value, comprising:
According to the preset time granularity, respectively to the corresponding broadcast start time of each video playing data and knot
Beam play time carries out truncation, with obtain the corresponding truncation playing duration of each broadcast start time and it is each described in
Terminate the corresponding truncation playing duration of play time;
It is calculated according to each broadcast start time and the corresponding truncation playing duration of each broadcast start time
The corresponding increase broadcasting time of each preset time granularity and increase duration in the video playing date;
It is calculated according to each end play time and the corresponding truncation playing duration of each end play time
The corresponding reduction broadcasting time of each preset time granularity and duration is reduced in the video playing date;
Determine that each preset time granularity is corresponding according to the increase broadcasting time and the reduction broadcasting time
Broadcasting time is had a net increase of, and determines that each preset time granularity is corresponding according to the increase duration and the reduction duration
Playing duration changing value.
Further, broadcasting time at the time of the first preset time granularity in the video playing date corresponds to is obtained
Number, comprising:
Obtain broadcasting time at the time of the last one described preset time granularity corresponds in the video playing date proxima luce (prox. luc)
Count and have a net increase of broadcasting time;
According to the moment broadcasting time and have a net increase of first described default in the broadcasting time calculating video playing date
Broadcasting time at the time of time granularity corresponds to.
Further, according to the corresponding increase broadcasting time of the preset time granularity each in the selection period, net
Increase broadcasting time, moment broadcasting time and playing duration changing value, calculate the corresponding rating achievement data of the calculating demand, wraps
It includes:
If the calculating demand be calculate it is described choose the period in viewership, and the rating index be rating when
It is long, then broadcasting time at the time of each preset time granularity corresponds in the selection period is obtained respectively, has a net increase of broadcasting time
Several and playing duration changing value, and calculate the selection period corresponding rating duration;
If the calculating demand is to calculate the viewership chosen in the period, and the rating index is rating time
Number then obtains at the time of the first preset time granularity corresponds in the selection period broadcasting time and each described pre- respectively
If the corresponding increase broadcasting time of time granularity, and calculate the selection period corresponding rating number;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include:
Default trend granularity determines each default trend in the selection period then when the rating index is rating duration
The period that granularity is covered;Broadcasting at the time of each preset time granularity corresponds in each period is obtained respectively
Number has a net increase of broadcasting time and playing duration changing value, and when calculating separately the corresponding rating of each default trend granularity
It is long;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include:
Default trend granularity determines each default trend in the selection period then when the rating index is rating number
The period that granularity is covered;Broadcasting at the time of the first preset time granularity corresponds in each period is obtained respectively
Number and the corresponding increase broadcasting time of each preset time granularity, and it is corresponding to calculate each default trend granularity
Rating number.
Further, after obtaining multiple video playing data, the method also includes:
Judge whether each video playing data are invalid video played data respectively;
If so, being filtered processing to the invalid video played data.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program code of beginningization there are as below methods step: multiple video playing data are obtained, wherein the multiple video playing data are
Video playing date identical video playing data include: broadcast start time in the video playing data and terminate to play
Time;According to the corresponding broadcast start time of each video playing data and terminate play time, calculates the video and broadcast
When putting the corresponding increase broadcasting time of each preset time granularity in the date, reducing broadcasting time, have a net increase of broadcasting time and play
Long changing value, wherein the increase broadcasting time is the video playing number newly increased in the preset time granularity, described
The video playing number that broadcasting time is the reduction in the preset time granularity is reduced, the broadcasting time that has a net increase of is according to by institute
It states the corresponding increase broadcasting time of preset time granularity and subtracts reduction broadcasting time determination;It obtains first in the video playing date
Broadcasting time at the time of a preset time granularity corresponds to, and according to the moment broadcasting time and each preset time
The corresponding broadcasting time that has a net increase of of granularity determines broadcasting time at the time of each preset time granularity corresponds to;Data are received to calculate
It instructs, includes: calculating demand and selection period in the data computations;According to each described default in the selection period
The corresponding increase broadcasting time of time granularity has a net increase of broadcasting time, moment broadcasting time and playing duration changing value, described in calculating
The corresponding rating achievement data of calculating demand.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (12)
1. a kind of processing method of data characterized by comprising
Obtain multiple video playing data, wherein the multiple video playing data are that video playing date identical video is broadcast
Data are put, include: broadcast start time and end play time in the video playing data;
According to the corresponding broadcast start time of each video playing data and terminate play time, calculates the video playing
The corresponding increase broadcasting time of each preset time granularity in date reduces broadcasting time, has a net increase of broadcasting time and playing duration
Changing value, wherein the increase broadcasting time is the video playing number newly increased in the preset time granularity, described to subtract
Few broadcasting time is the video playing number of the reduction in the preset time granularity, and the broadcasting time that has a net increase of will be according to will be described
The corresponding increase broadcasting time of preset time granularity subtracts reduction broadcasting time and determines;
Obtain broadcasting time at the time of the first preset time granularity corresponds in the video playing date, and according to it is described when
It carves broadcasting time and the corresponding broadcasting time that has a net increase of of each preset time granularity determines each preset time granularity pair
Broadcasting time at the time of answering;
Data computations are received, include: calculating demand and selection period in the data computations;
According to the corresponding increase broadcasting time of the preset time granularity each in the selection period, have a net increase of broadcasting time, when
Broadcasting time and playing duration changing value are carved, the corresponding rating achievement data of the calculating demand is calculated.
2. the method according to claim 1, wherein starting to broadcast according to each video playing data are corresponding
Put the time and terminate play time, calculate corresponding increases of each preset time granularity in the video playing date play it is secondary
Number reduces broadcasting time, has a net increase of broadcasting time and playing duration changing value, comprising:
According to the preset time granularity, the corresponding broadcast start time of each video playing data and end are broadcast respectively
Time progress truncation is put, to obtain the corresponding truncation playing duration of each broadcast start time and each end
The corresponding truncation playing duration of play time;
According to each broadcast start time and the corresponding truncation playing duration calculating of each broadcast start time
The corresponding increase broadcasting time of each preset time granularity and increase duration in the video playing date;
According to each end play time and the corresponding truncation playing duration calculating of each end play time
The corresponding reduction broadcasting time of each preset time granularity and duration is reduced in the video playing date;
It determines that each preset time granularity is corresponding according to the increase broadcasting time and the reduction broadcasting time to have a net increase of
Broadcasting time, and the corresponding broadcasting of each preset time granularity is determined according to the increase duration and the reduction duration
Duration changing value.
3. according to the method described in claim 2, it is characterized in that, when obtaining first described default in the video playing date
Between granularity broadcasting time at the time of correspond to, comprising:
Obtain at the time of the last one described preset time granularity in the video playing date proxima luce (prox. luc) corresponds to broadcasting time and
Have a net increase of broadcasting time;
According to the moment broadcasting time and have a net increase of the first preset time in the broadcasting time calculating video playing date
Broadcasting time at the time of granularity corresponds to.
4. according to the method described in claim 3, it is characterized in that, according to the preset time grain each in the selection period
It spends corresponding increase broadcasting time, have a net increase of broadcasting time, moment broadcasting time and playing duration changing value, calculating the calculating needs
Seek corresponding rating achievement data, comprising:
If the calculating demand is to calculate the viewership chosen in the period, and the rating index is rating duration, then
Broadcasting time at the time of each preset time granularity corresponds in the selection period is obtained respectively, is had a net increase of broadcasting time and is broadcast
Duration changing value is put, and calculates the selection period corresponding rating duration;
If the calculating demand is to calculate the viewership chosen in the period, and the rating index is rating number, then
Obtain at the time of the first preset time granularity corresponds in the selection period respectively broadcasting time and it is each described default when
Between the corresponding increase broadcasting time of granularity, and calculate the selection period corresponding rating number;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include: default
Trend granularity determines each default trend granularity in the selection period then when the rating index is rating duration
The period covered;Broadcasting time at the time of each preset time granularity in each period corresponds to is obtained respectively
Number has a net increase of broadcasting time and playing duration changing value, and calculates separately the corresponding rating duration of each default trend granularity;
If the calculating demand is the rating trend calculated in the selection period, and in the calculating demand further include: default
Trend granularity determines each default trend granularity in the selection period then when the rating index is rating number
The period covered;Broadcasting time at the time of the first preset time granularity corresponds in each period is obtained respectively
And the corresponding increase broadcasting time of each preset time granularity, and calculate the corresponding rating of each default trend granularity
Number.
5. method according to any of claims 1-4, which is characterized in that obtain multiple video playing data it
Afterwards, the method also includes:
Judge whether each video playing data are invalid video played data respectively;
If so, being filtered processing to the invalid video played data.
6. a kind of processing unit of data characterized by comprising
First acquisition unit, for obtaining multiple video playing data, wherein the multiple video playing data are video playing
Date identical video playing data include: broadcast start time in the video playing data and terminate play time;
First computing unit, for according to each of the first acquisition unit acquisition corresponding beginning of the video playing data
Play time and terminate play time, calculate corresponding increases of each preset time granularity in the video playing date play it is secondary
Number reduces broadcasting time, has a net increase of broadcasting time and playing duration changing value, wherein the increase broadcasting time is described pre-
If the video playing number newly increased in time granularity, the reduction broadcasting time is reduced in the preset time granularity
Video playing number, it is described to have a net increase of broadcasting time and subtract reduction according to by the corresponding increase broadcasting time of the preset time granularity
Broadcasting time determines;
Second acquisition unit, for broadcasting at the time of obtaining that the first preset time granularity corresponds in the video playing date
Number;
Determination unit, the moment broadcasting time and each preset time for being obtained according to the second acquisition unit
The corresponding broadcasting time that has a net increase of of granularity determines broadcasting time at the time of each preset time granularity corresponds to;
Receiving unit, computations for receiving data include: calculating demand in the data computations and choose the period;
Second computing unit, for secondary according to corresponding the increases broadcasting of the preset time granularity each in the selections period
Number has a net increase of broadcasting time, moment broadcasting time and playing duration changing value, calculates the corresponding rating index number of the calculating demand
According to.
7. device according to claim 6, which is characterized in that first computing unit includes:
Truncation module is used for according to the preset time granularity, corresponding to each video playing data respectively to start to broadcast
It puts the time and terminates play time and carry out truncation, to obtain the corresponding truncation playing duration of each broadcast start time
And the corresponding truncation playing duration of each end play time;
First computing module, for according to each broadcast start time and the corresponding truncation of each broadcast start time
When playing duration calculates corresponding the increases broadcasting time of each preset time granularity in video playing date and increase
It is long;
First computing module is also used to corresponding according to each end play time and each end play time
Truncation playing duration calculate corresponding the reductions broadcasting time of each preset time granularity in video playing date with
Reduce duration;
Determining module, for determining each preset time grain according to the increase broadcasting time and the reduction broadcasting time
Spend it is corresponding have a net increase of broadcasting time, and each preset time grain is determined according to the increase duration and the reduction duration
Spend corresponding playing duration changing value.
8. device according to claim 7, which is characterized in that the second acquisition unit includes:
Obtain module, for obtain in the video playing date proxima luce (prox. luc) the last one described preset time granularity it is corresponding when
It carves broadcasting time and has a net increase of broadcasting time;
Second computing module, for obtaining the moment broadcasting time and have a net increase of broadcasting time calculating that module obtains according to described
Broadcasting time at the time of the first preset time granularity corresponds in the video playing date.
9. device according to claim 8, which is characterized in that second computing unit includes:
Third computing module, for be the viewership calculated in the selection period, and the rating when the calculating demand
When index is rating duration, broadcasting time at the time of each preset time granularity in the selection period corresponds to is obtained respectively
Number has a net increase of broadcasting time and playing duration changing value, and calculates the selection period corresponding rating duration;
4th computing module, for be the viewership calculated in the selection period, and the rating when the calculating demand
When index is rating number, broadcasting time at the time of the first preset time granularity corresponds in the selection period is obtained respectively
And the corresponding increase broadcasting time of each preset time granularity, and calculate the selection period corresponding rating number;
5th computing module, for be the rating trend calculated in the selection period, and the calculating when the calculating demand
In demand further include: when default trend granularity, and when the rating index is rating duration, determine every in the selection period
The period that a default trend granularity is covered;Each preset time granularity in each period is obtained respectively
Broadcasting time at the time of corresponding has a net increase of broadcasting time and playing duration changing value, and calculates separately each default trend grain
Spend corresponding rating duration;
6th computing module, for be the rating trend calculated in the selection period, and the calculating when the calculating demand
In demand further include: when default trend granularity, and when the rating index is rating number, determine every in the selection period
The period that a default trend granularity is covered;The first preset time granularity in each period is obtained respectively
Broadcasting time and each preset time granularity corresponding increase broadcasting time at the time of corresponding, and calculate each described default
The corresponding rating number of trend granularity.
10. the device according to any one of claim 6-9, which is characterized in that described device further include:
Judging unit, for after the first acquisition unit obtains multiple video playing data, judgement to be each described respectively
Whether video playing data are invalid video played data;
Filter element is used for when the judging unit judges the video playing data for invalid video played data, to institute
It states invalid video played data and is filtered processing.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require 1 to the data described in any one of claim 5 processing
Method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require 1 to the data described in any one of claim 5 processing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711051211.8A CN109729393B (en) | 2017-10-31 | 2017-10-31 | Data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711051211.8A CN109729393B (en) | 2017-10-31 | 2017-10-31 | Data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109729393A true CN109729393A (en) | 2019-05-07 |
CN109729393B CN109729393B (en) | 2021-06-04 |
Family
ID=66293658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711051211.8A Active CN109729393B (en) | 2017-10-31 | 2017-10-31 | Data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109729393B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104469424A (en) * | 2014-11-06 | 2015-03-25 | 北京国双科技有限公司 | Statistical method and device for TV-watching duration of TV channels |
CN104581218A (en) * | 2014-11-10 | 2015-04-29 | 北京国双科技有限公司 | Method and device for monitoring flow direction of network television audiences |
US20170289635A1 (en) * | 2014-02-13 | 2017-10-05 | Piksel, Inc. | Delivering media content to a content consuming user |
-
2017
- 2017-10-31 CN CN201711051211.8A patent/CN109729393B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170289635A1 (en) * | 2014-02-13 | 2017-10-05 | Piksel, Inc. | Delivering media content to a content consuming user |
CN104469424A (en) * | 2014-11-06 | 2015-03-25 | 北京国双科技有限公司 | Statistical method and device for TV-watching duration of TV channels |
CN104581218A (en) * | 2014-11-10 | 2015-04-29 | 北京国双科技有限公司 | Method and device for monitoring flow direction of network television audiences |
Also Published As
Publication number | Publication date |
---|---|
CN109729393B (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6030773B2 (en) | Application software display method and device | |
CN103544245B (en) | Ranking list generating method and server | |
CN109391680B (en) | Timed task data processing method, device and system | |
CN109996122B (en) | Video recommendation method and device, server and storage medium | |
CN112511901B (en) | Method and system for predicting comprehensive drama playing amount, computer device and storage medium | |
CN103327079A (en) | Multimedia resource caching method and device | |
CN105657446B (en) | The detection method and device of bumper advertisements in a kind of video | |
CN110264280A (en) | A kind of outdoor advertising monitoring method | |
CN101309400A (en) | Stream media service pause information acquisition method and device | |
CN108986032A (en) | A kind of advertising pictures processing method and processing device | |
CN106888107B (en) | A kind of sliding window business datum determines method and device | |
CN109428786A (en) | Network performance monitoring method and apparatus | |
CN105022686A (en) | Method and apparatus for determining CPU occupancy rate of process on android platform | |
CN106937173B (en) | Video playing method and device | |
CN106445418A (en) | Method and device for self-adaptingread-write services in solid state disk | |
CN110517095A (en) | A kind of method and device for launching advertisement | |
CN109729393A (en) | The processing method and processing device of data | |
CN106776614A (en) | The display methods and device of sharing platform | |
CN106658183B (en) | Pop up the method and device of video logon dialog frame | |
CN106713948B (en) | Video segmentation loading method and device | |
CN106528724B (en) | A kind of method and device of pushed information | |
CN109740060A (en) | A kind of frequency control method and device of pushed information | |
CN109063645A (en) | A kind of filtering method, equipment and storage medium | |
CN108984572A (en) | Site information method for pushing and device | |
CN109587198A (en) | Graph text information method for pushing and device |
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 |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |