Summary of the invention
The main purpose of the present invention is to provide a kind of methods of the broadcasting time of multimedia file in detection television channel
And device, to solve the prior art asking for quantitative statistics can not be carried out to the result of broadcast of the multimedia file in television channel
Topic.
To achieve the goals above, according to an aspect of the invention, there is provided multimedia in a kind of detection television channel
The method of the broadcasting time of file.
The method of the broadcasting time of multimedia file includes: to obtain the rating note of television channel in the detection television channel
Record, wherein the rating record of television channel includes the broadcast start time of television channel, the end play time of television channel;
Determine the multimedia file to be detected being inserted into television channel;Obtain the broadcast start time of multimedia file to be detected and to be checked
Survey the end play time of multimedia file;The rating record for traversing television channel, judges first time section and the second time
Section whether there is intersection, wherein first time section is that the end of the broadcast start time and television channel of television channel is broadcast
Put the time interval of time determination, broadcast start time and to be detected more matchmaker of second time interval for multimedia file to be detected
The time interval that the end play time of body file determines;It is handed over if it is judged that first time section and the second time interval exist
Collection, adds up to the broadcasting time of multimedia file to be detected;Detect the broadcasting of multimedia file to be detected in television channel
Number.
Further, in the rating record of traversal television channel, judge whether are first time section and the second time interval
There are after intersection, the method for the broadcasting time of multimedia file in the detection television channel further include: judge television channel
Broadcast start time whether earlier than multimedia file to be detected broadcast start time;If it is judged that judging opening for television channel
Beginning play time judges whether the end play time of television channel is late earlier than the broadcast start time of multimedia file to be detected
In the end play time of multimedia file to be detected;If it is judged that the end play time of television channel be later than it is to be detected more
The end play time of media file adds up to the complete broadcasting time of multimedia file to be detected;Detect television channel
In multimedia file to be detected complete broadcasting time.
Further, in detection television channel after the complete broadcasting time of multimedia file to be detected, detection electricity
The method of the broadcasting time of multimedia file in tv channel further include: calculate the broadcasting time of multimedia file to be detected with it is to be checked
Survey the difference of the complete broadcasting time of multimedia file;Determine the incomplete broadcasting time of multimedia file to be detected in television channel
Number, wherein the incomplete broadcasting time of multimedia file to be detected be multimedia file to be detected broadcasting time with it is to be detected
The difference of the complete broadcasting time of multimedia file.
Further, when judge first time section and the second time interval there are when intersection, the detection television channel
The method of the broadcasting time of middle multimedia file further include: the intersection for obtaining first time section and the second time interval is corresponding
The duration of time interval;Detect the playing duration of multimedia file to be detected in television channel, wherein multimedia file to be detected
Playing duration be first time section and the second time interval the corresponding time interval of intersection duration summation.
Further, in detection television channel after the playing duration of multimedia file to be detected, detection TV frequency
The method of the broadcasting time of multimedia file in road further include: calculate the playing duration of multimedia file to be detected and to be detected more
The ratio of the broadcasting time of media file;Determine time equal playing duration of multimedia file to be detected in television channel, wherein to
Detect playing duration and to be detected multimedia file of time equal playing duration of multimedia file for multimedia file to be detected
The ratio of broadcasting time.
Further, the rating record of television channel further includes the corresponding user of user for playing multimedia file to be detected
Mark, in detection television channel after the playing duration of multimedia file to be detected, multimedia text in the detection television channel
The method of the broadcasting time of part further include: have in first time section in the rating record of television channel with the second time interval
In the rating record deposit presetting database of intersection;Traverse the rating record in presetting database;By the receipts in presetting database
Duplicate removal processing is carried out according to user identifier depending on record;Count the number of user identifier in presetting database.
Further, in statistics presetting database after the number of user identifier, multimedia in the detection television channel
The method of the broadcasting time of file further include: calculate user in the playing duration and presetting database of multimedia file to be detected and mark
The ratio of the number of knowledge;Determine the playing duration per capita of multimedia file to be detected in television channel, wherein multimedia to be detected
The playing duration per capita of file is the number of user identifier in the playing duration and presetting database of multimedia file to be detected
Ratio.
Further, in determining television channel after the incomplete broadcasting time of multimedia file to be detected, the detection
The method of the broadcasting time of multimedia file in television channel further include: according to broadcasting for multimedia file to be detected in television channel
Number is put, the complete broadcasting time of multimedia file to be detected and the incomplete broadcasting time of multimedia file to be detected generate figure
Table, wherein chart is used for while showing the broadcasting time of multimedia file to be detected, the complete broadcasting of multimedia file to be detected
The incomplete broadcasting time of number and multimedia file to be detected;Export chart.
To achieve the goals above, according to another aspect of the present invention, multimedia in a kind of detection television channel is provided
The device of the broadcasting time of file.
The device of the broadcasting time of multimedia file includes: the first acquisition module in the detection television channel, for obtaining
The rating of television channel records, wherein the rating record of television channel includes the broadcast start time of television channel, television channel
End play time;First determining module, for determining the multimedia file to be detected being inserted into television channel;Second obtains
Module, for obtaining the broadcast start time of multimedia file to be detected and the end play time of multimedia file to be detected;
First judgment module, the rating for traversing television channel record, and judge whether first time section and the second time interval deposit
In intersection, wherein first time section is that the broadcast start time of television channel and the end play time of television channel determine
Time interval, the second time interval be multimedia file to be detected broadcast start time and multimedia file to be detected knot
The time interval that beam play time determines;First computing module judges first time section and the second time interval for working as
There are when intersection, add up to the broadcasting time of multimedia file to be detected;First detection module, for detecting television channel
In multimedia file to be detected broadcasting time.
Further, in the detection television channel broadcasting time of multimedia file device further include: second judges mould
Block, for judge television channel broadcast start time whether earlier than multimedia file to be detected broadcast start time;Third
Judgment module, for starting to play earlier than multimedia file to be detected when the broadcast start time for judging to judge television channel
When the time, judge whether the end play time of television channel is later than the end play time of multimedia file to be detected;Second
Computing module judges that the end play time of television channel is later than the end play time of multimedia file to be detected for working as
When, it adds up to the complete broadcasting time of multimedia file to be detected;Second detection module, for detect in television channel to
Detect the complete broadcasting time of multimedia file;Third computing module, for calculating the broadcasting time of multimedia file to be detected
With the difference of the complete broadcasting time of multimedia file to be detected;Second determining module, it is to be detected in television channel for determining
The incomplete broadcasting time of multimedia file, wherein the incomplete broadcasting time of multimedia file to be detected is more matchmakers to be detected
The difference of the complete broadcasting time of the broadcasting time of body file and multimedia file to be detected.
Through the invention, it is recorded using the rating for obtaining television channel, wherein the rating record of television channel includes TV
The broadcast start time of channel, the end play time of television channel;Determine the multimedia to be detected text being inserted into television channel
Part;Obtain the broadcast start time of multimedia file to be detected and the end play time of multimedia file to be detected;Traversal electricity
The rating of tv channel records, and judges first time section and the second time interval with the presence or absence of intersection, wherein first time section
For the time interval that the broadcast start time of television channel and the end play time of television channel determine, the second time interval is
The time interval that the end play time of the broadcast start time of multimedia file to be detected and multimedia file to be detected determines;
If it is judged that there are intersections for first time section and the second time interval, the broadcasting time of multimedia file to be detected is carried out
It is cumulative;The broadcasting time of multimedia file to be detected in television channel is detected, solving the prior art can not be in television channel
Multimedia file result of broadcast carry out quantitative statistics the problem of.The invention passes through the user's viewing time for judging television channel
The play time section of multimedia file whether there is time intersection in section and television channel, count multimedia in television channel
The broadcasting time of file.The invention simultaneously continues to judge whether the duration of the corresponding time interval of time intersection is greater than TV frequency
The duration in the play time section of multimedia file in road, to the complete broadcasting time of the multimedia file in the television channel and
Incomplete broadcasting time is counted, and then has reached the effect of multimedia file result of broadcast in accurate analysis television channel
Fruit.
Specific embodiment
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection
It encloses.
It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein.In addition, term " includes " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
The present invention is intended to provide a kind of method and apparatus for detecting the broadcasting time of multimedia file in television channel.
Fig. 1 is the first embodiment of the method for the broadcasting time of multimedia file in detection television channel according to the present invention
Flow chart.As shown in Figure 1, the method for the broadcasting time of multimedia file includes the following steps, namely in the detection television channel
S101 to step S106:
Step S101 obtains the rating record of television channel.
Preferably the broadcasting time of the multimedia file in the television channel of Web TV is counted in the embodiment
Analysis, Web TV may include Interactive Internet TV, digital video broadcasting TV, internet television etc., in the embodiment
Interactive Internet TV is preferably used, the electricity of the Web TV is acquired and returned using the set-top box of the Interactive Internet TV
The user watched log of tv channel, and the user watched log of the television channel is stored in database.The user of television channel
Rating log is made of the one or more of ratings record of the user, wherein includes in the rating record of television channel
The broadcast start time of television channel, the end play time of television channel and the corresponding use of user for playing the television channel
The information such as family mark.The rating record of television channel is obtained primarily to obtaining TV frequency from the rating of television channel record
The broadcast start time in road, the end play time of television channel, thus obtain the duration that user plays the television channel, i.e.,
One time interval, wherein first time section is the broadcast start time of television channel and the end play time of television channel
Determining time interval, first time section the end play time of a length of television channel and beginning of television channel when corresponding
The difference of play time.
By the available user of end play time of the broadcast start time and television channel of television channel each
The viewership at moment, for example, which television channel user watches in each second.It is deposited by the user watched log of television channel
After entering in database, the broadcast start time and electricity of available television channel are recorded from any one rating in database
The end play time of tv channel, thus obtain the period that user watches the television channel, i.e., it is every within this period
At a moment, the user is in the program for watching the television channel.
Step S102 determines the multimedia file to be detected being inserted into television channel.
There can be one or more multimedia files in the broadcasting program of any one television channel, wherein multimedia
File can be TV play, film, advertisement etc..The side of the broadcasting time of multimedia file in the detection television channel of the embodiment
Multimedia file is preferably television advertising by method.In view of the number more than one for the multimedia file being inserted into television channel,
According to actual concrete analysis demand, the embodiment is arbitrarily selected one from the multiple multimedia files being inserted into television channel
For research object, i.e., the more matchmakers to be detected being inserted into from television channel determining in the multiple multimedia files being inserted into television channel
Body file.
Step S103, the end for obtaining the broadcast start time and multimedia file to be detected of multimedia file to be detected are broadcast
Put the time.
The corresponding program play times list of each television channel.TV frequency is had recorded in the program play times list
The play time section of any one multimedia file in road.The multimedia file to be detected being inserted into determining television channel it
Afterwards, the program play times list for obtaining the television channel can be searched from the program play times list of the television channel
The end play time of the broadcast start time of multimedia file to be detected and multimedia file to be detected.According to more matchmakers to be detected
The available multimedia text to be detected of the end play time of the broadcast start time of body file and multimedia file to be detected
The duration of part, i.e. second interval, wherein the second time interval is the broadcast start time of multimedia file to be detected and to be detected
The time interval that the end play time of multimedia file determines, the second time interval a length of multimedia text to be detected when corresponding
The difference of the broadcast start time of the end play time and multimedia file to be detected of part.The embodiment passes through more matchmakers to be detected
The end play time of the broadcast start time of body file and multimedia file to be detected can count to obtain each user to this
Whether the viewership of multimedia file to be detected, i.e. user have played the multimedia file to be detected, if complete to play
The multimedia file to be detected and user play the duration etc. of the multimedia file to be detected.
Step S104 traverses the rating record of television channel, judges whether first time section and the second time interval deposit
In intersection.
First time section be television channel broadcast start time and television channel ends play time determination when
Between section, the second time interval is that the end of broadcast start time and multimedia file to be detected of multimedia file to be detected is broadcast
Put the time interval of time determination.It is to be checked by obtaining after the multimedia file to be detected being inserted into determining television channel
The broadcast start time of multimedia file and the end play time of multimedia file to be detected are surveyed, it can be according to more matchmakers to be detected
The end play time of the broadcast start time of body file and multimedia file to be detected determines the second time interval.Television channel
Rating record can have one, can also have a plurality of, the corresponding rating record of each user identifier can have one, can also be with
Have a plurality of.The rating record for traversing television channel, once operates each rating record: obtaining the beginning of television channel
The end play time of play time and television channel;It is broadcast according to the end of the broadcast start time of television channel and television channel
Putting the time determines first time section;Judge first time section and the second time interval with the presence or absence of intersection.For example, to be detected
The broadcast start time of multimedia file is 09:00, and the end play time of multimedia file to be detected is 09:15, then second
Time interval is 09:00-09:15.When the broadcast start time of television channel is 08:30, the end play time of television channel
09:30, then first time section is 08:30-09:30, the second time interval 09:00-09:15 and first time section 08:30-
There are intersections, i.e. time interval 09:00-09:15 by 09:30.When the broadcast start time of television channel is 08:30, television channel
End play time 09:10, then first time section be 08:30-09:10, the second time interval 09:00-09:15 and first
There are intersections, i.e. time interval 09:00-09:10 by time interval 08:30-09:10.When the broadcast start time of television channel is
08:30, the end play time 08:50 of television channel, then first time section be 08:30-08:50, the second time interval 09:
Intersection is not present in 00-09:15 and first time section 08:30-08:50.
Step S105, if it is judged that there are intersections for first time section and the second time interval, to multimedia to be detected
The broadcasting time of file adds up.
The rating record for traversing television channel often detects any one rating record pair in the rating record of television channel
Answer first time section and the second time interval there are when intersection, the broadcasting time of multimedia file to be detected is executed plus 1
Operation.For example, the broadcast start time of multimedia file to be detected is 09:00, when the end of multimedia file to be detected plays
Between be 09:15, then the second time interval be 09:00-09:15.If the television channel recorded in the rating record of television channel
Broadcast start time be 08:30, the end play time 09:30 of television channel, then first time section be 08:30-09:
There are intersections, i.e. time interval 09:00- with first time section 08:30-09:30 by 30, the second time interval 09:00-09:15
09:15 then executes the broadcasting time of multimedia file to be detected plus 1 operates.If recorded in the rating record of television channel
Television channel broadcast start time be 08:30, the end play time 08:50 of television channel, then first time section be
Intersection is not present in 08:30-08:50, the second time interval 09:00-09:15 and first time section 08:30-08:50, then treats
The broadcasting time of detection multimedia file does not execute plus 1 operation.
Step S106 detects the broadcasting time of multimedia file to be detected in television channel.
Traverse television channel rating record, often detect the rating of television channel record corresponding first time section with
There are intersections for second time interval, execute to the broadcasting time of multimedia file to be detected plus 1 operates.Traversing all electricity
After the rating record of tv channel, the accumulated value of the broadcasting time of available multimedia file to be detected, which is
The broadcasting time of multimedia file to be detected in television channel.
For example, the broadcast start time of multimedia file to be detected is 09:00, the end of multimedia file to be detected is played
Time is 09:15, then the second time interval is 09:00-09:15.The rating log of television channel includes 3 rating records, the
The broadcast start time of the television channel recorded in one rating record is 08:30, the end play time 09 of television channel:
30, then first time section is 08:30-09:30, the second time interval 09:00-09:15 and first time section 08:30-09:
30 there are intersections, i.e. time interval 09:00-09:15, then execute to the broadcasting time of multimedia file to be detected plus 1 operation, i.e.,
The broadcasting time of multimedia file to be detected at this time is 1.The television channel recorded in Article 2 rating record starts to play
Time is 08:30, the end play time 09:10 of television channel, then first time section is 08:30-09:10, the second time
Section 09:00-09:15 and first time section 08:30-09:10 are then treated there are intersection, i.e. time interval 09:00-09:10
The broadcasting time for detecting multimedia file executes plus 1 operation, i.e., the broadcasting time of multimedia file to be detected at this time is 2.The
The broadcast start time of the television channel recorded in three ratings record is 08:30, the end play time 08 of television channel:
50, then first time section is 08:30-08:50, the second time interval 09:00-09:15 and first time section 08:30-08:
50 are not present intersection, then do not execute to the broadcasting time of multimedia file to be detected plus 1 operates, i.e., multimedia to be detected at this time
The broadcasting time of file is still 2.So the broadcasting time of multimedia file to be detected is 2 in television channel.
The method of the broadcasting time of multimedia file is using acquisition television channel in the detection television channel of the embodiment
Rating record, wherein the rating record of television channel includes the broadcast start time of television channel, and the end of television channel plays
Time;Determine the multimedia file to be detected being inserted into television channel;Obtain the broadcast start time of multimedia file to be detected
With the end play time of multimedia file to be detected;The rating record for traversing television channel, judges first time section and the
Two time intervals whether there is intersection, wherein first time section is the broadcast start time and television channel of television channel
Terminate the time interval that play time determines, the second time interval is the broadcast start time of multimedia file to be detected and to be checked
Survey the time interval that the end play time of multimedia file determines;If it is judged that first time section and the second time interval
There are intersections, add up to the broadcasting time of multimedia file to be detected;Detect multimedia file to be detected in television channel
Broadcasting time, quantitative statistics can not be carried out to the result of broadcast of the multimedia file in television channel by solving the prior art
Problem, and then achieved the effect that multimedia file result of broadcast in accurate analysis television channel.
Fig. 2 is the second embodiment of the method for the broadcasting time of multimedia file in detection television channel according to the present invention
Flow chart.As shown in Fig. 2, the method for the broadcasting time of multimedia file includes the following steps, namely in the detection television channel
S201 to step S211:
Step S201 to step S206, with above-mentioned steps S101 to step S106.
Step S207 calculates the complete broadcasting time of multimedia file to be detected in television channel.
The complete broadcasting time of multimedia file to be detected, which refers to, in television channel completely plays multimedia text to be detected
The number of part.In having counted television channel after the broadcasting time of multimedia file to be detected, intelligence is according to more matchmakers to be detected
The broadcasting time of body file analyzes the number for playing multimedia file to be detected, cannot make a concrete analysis of out completely play it is to be detected
The number of multimedia file and the number for not playing multimedia file to be detected completely.So the detection TV frequency of the embodiment
The method of the broadcasting time of multimedia file is in detection television channel after the broadcasting time of multimedia file to be detected in road,
Calculate the complete broadcasting time of multimedia file to be detected in television channel.
Preferably, it includes: traversal which, which calculates the complete broadcasting time of multimedia file to be detected in television channel,
The rating of television channel records, and judges first time section and the second time interval with the presence or absence of intersection;If it is determined that when first
Between section and the second time interval there are intersections, judge the broadcast start time of television channel whether earlier than multimedia text to be detected
The broadcast start time of part;If it is judged that judging broadcast start time the opening earlier than multimedia file to be detected of television channel
Beginning play time, judges whether the end play time of television channel is later than the end play time of multimedia file to be detected;
If it is judged that the end play time of television channel is later than the end play time of multimedia file to be detected, to be detected more
The complete broadcasting time of media file adds up;Detect the complete broadcasting time of multimedia file to be detected in television channel.
For example, the broadcast start time of multimedia file to be detected is 09:00, the end play time of multimedia file to be detected is
09:15, then the second time interval is 09:00-09:15.When television channel broadcast start time be 08:30, television channel
Terminate play time 09:30, then first time section is 08:30-09:30, when the second time interval 09:00-09:15 and first
Between section 08:30-09:30 there are intersections, and the broadcast start time 08:30 of television channel is earlier than multimedia file to be detected
When the end that broadcast start time 09:00, the end play time 09:30 of television channel are later than multimedia file to be detected plays
Between 09:15, so, the complete broadcasting time of multimedia file to be detected executes accumulation operations.
Step S208 calculates the incomplete broadcasting time of multimedia file to be detected in television channel.
In television channel the incomplete broadcasting time of multimedia file to be detected refer to broadcasting but be the failure to completely play to
The number for detecting multimedia file, in television channel the incomplete broadcasting time of multimedia file to be detected be in television channel to
Detect the difference of the complete broadcasting time of multimedia file to be detected in the broadcasting time and television channel of multimedia file.It is detecting
In television channel after the complete broadcasting time of multimedia file to be detected, multimedia text in the detection television channel of the embodiment
The method of the broadcasting time of part further include: calculate the complete of the broadcasting time of multimedia file to be detected and multimedia file to be detected
The difference of whole broadcasting time;Determine the incomplete broadcasting time of multimedia file to be detected in television channel, wherein to be detected more
The incomplete broadcasting time of media file is the complete of broadcasting time and the multimedia file to be detected of multimedia file to be detected
The difference of broadcasting time.For example, the broadcast start time of multimedia file to be detected is 09:00, multimedia file to be detected
End play time is 09:15, then the second time interval is 09:00-09:15.When the broadcast start time of television channel is 08:
30, the end play time 09:10 of television channel, then first time section is 08:30-09:10, the second time interval 09:00-
There are intersections with first time section 08:30-09:10 by 09:15, but the end play time 09:10 of television channel is not later than
The end play time of multimedia file to be detected is 09:15, that is, belongs to incomplete broadcasting multimedia file to be detected, then TV
The incomplete broadcasting time of multimedia file to be detected adds up in channel.
Complete broadcasting time and incomplete broadcasting of the embodiment by multimedia file to be detected in statistics television channel
Number is conducive to more specifically analyze the result of broadcast of multimedia file to be detected in the television channel.If to be checked
Incomplete broadcasting time of the complete broadcasting time more than multimedia file to be detected for surveying multimedia file, illustrates more matchmakers to be detected
Body file is to user's attraction with higher.
Preferably, the method for detecting the broadcasting time of multimedia file in television channel of the embodiment is according to television channel
In multimedia file to be detected broadcasting time, the complete broadcasting time and multimedia file to be detected of multimedia file to be detected
Incomplete broadcasting time generate chart, wherein chart is used for while showing the broadcasting time of multimedia file to be detected, to be checked
Survey the complete broadcasting time of multimedia file and the incomplete broadcasting time of multimedia file to be detected;Export chart.The implementation
Example graphically shows the broadcasting time of multimedia file to be detected, complete broadcasting time and incomplete broadcasting time, just
In the result of broadcast for intuitively analyzing the multimedia file to be detected.
Step S209 calculates the playing duration of multimedia file to be detected in television channel.
When broadcasting time of the incomplete broadcasting time in multimedia file to be detected for judging multimedia file to be detected
In the ratio that occupies it is higher when, in order to more accurately analyze user to the favorable rating of multimedia file to be detected, need into one
Step counts the playing duration of multimedia file to be detected.If the playing duration of multimedia file to be detected is larger, even if to
It is higher to detect ratio of the incomplete broadcasting time of multimedia file in the broadcasting time of multimedia file to be detected, also still
It can illustrate that the multimedia file to be detected compares to be liked by user.
Preferably, the playing duration which calculates multimedia file to be detected in television channel includes: traversal TV
The rating of channel records, and judges first time section and the second time interval with the presence or absence of intersection;If it is judged that when first
Between section and the second time interval there are intersections, obtain the corresponding time zone of intersection in first time section and the second time interval
Between duration;Detect the playing duration of multimedia file to be detected in television channel, wherein the broadcasting of multimedia file to be detected
The summation of the duration of the corresponding time interval of intersection of the first time section Shi Changwei and the second time interval.
For example, the broadcast start time of multimedia file to be detected is 09:00, the end of multimedia file to be detected is played
Time is 09:15, then the second time interval is 09:00-09:15.The rating log of television channel includes 3 rating records, the
The broadcast start time of the television channel recorded in one rating record is 08:30, the end play time 09 of television channel:
30, then first time section is 08:30-09:30, the second time interval 09:00-09:15 and first time section 08:30-09:
30 there are intersection, i.e. time interval 09:00-09:15, then the playing duration of multimedia file to be detected is 15 minutes.Article 2
The broadcast start time of television channel recorded in rating record is 08:30, the end play time 09:10 of television channel, then
First time section is 08:30-09:10, and the second time interval 09:00-09:15 is deposited with first time section 08:30-09:10
In intersection, i.e. time interval 09:00-09:10, then the playing duration of multimedia file to be detected is 10 minutes.Article 3 rating
The broadcast start time of the television channel recorded in record is 08:30, the end play time 08:50 of television channel, then first
Time interval is 08:30-08:50, and the second time interval 09:00-09:15 is not present with first time section 08:30-08:50
Intersection, then the playing duration of multimedia file to be detected is 0 minute.So multimedia file to be detected is broadcast in television channel
A length of 25 minutes, i.e., 15 minutes when putting, 10 minutes, 0 minute sum.
Step S210 calculates time equal playing duration of multimedia file to be detected in television channel.
Preferably, in detection television channel after the playing duration of multimedia file to be detected, the embodiment further include:
Calculate the ratio of the playing duration of multimedia file to be detected and the broadcasting time of multimedia file to be detected;Determine television channel
In multimedia file to be detected time equal playing duration, wherein time playing duration of multimedia file to be detected is to be detected
The ratio of the broadcasting time of the playing duration of multimedia file and multimedia file to be detected.For example, multimedia file to be detected
Playing duration be 25 minutes, the broadcasting time of multimedia file to be detected is 2 times, then multimedia text to be detected in television channel
Time playing duration of part is 12.5 minutes.
Step S211 calculates the playing duration per capita of multimedia file to be detected in television channel.
The playing duration per capita of multimedia file to be detected is the playing duration and preset data of multimedia file to be detected
The ratio of the number of user identifier in library.It further include the user for playing multimedia file to be detected in the rating record of television channel
Corresponding user identifier.The embodiment calculate multimedia file to be detected in television channel playing duration per capita include: will be electric
There are the ratings of intersection to record deposit presetting database with the second time interval in first time section in the rating record of tv channel
In;Traverse the rating record in presetting database;Rating record in presetting database is carried out at duplicate removal according to user identifier
Reason;Count the number of user identifier in presetting database.Statistics presetting database in user identifier number after, calculate to
Detect the ratio of the number of user identifier in the playing duration and presetting database of multimedia file;It determines to be checked in television channel
Survey the playing duration per capita of multimedia file.User identifier is carried out duplicate removal processing by the embodiment, is improved to more matchmakers to be detected
The accuracy of the statistical result of playing duration per capita of body file because the corresponding user of the same user identifier may play this to
Detect the number of multimedia file more than once.
The method of the broadcasting time of multimedia file is using acquisition television channel in the detection television channel of the embodiment
Rating record, wherein the rating record of television channel includes the broadcast start time of television channel, and the end of television channel plays
Time;Determine the multimedia file to be detected being inserted into television channel;Obtain the broadcast start time of multimedia file to be detected
With the end play time of multimedia file to be detected;The rating record for traversing television channel, judges first time section and the
Two time intervals whether there is intersection, wherein first time section is the broadcast start time and television channel of television channel
Terminate the time interval that play time determines, the second time interval is the broadcast start time of multimedia file to be detected and to be checked
Survey the time interval that the end play time of multimedia file determines;If it is judged that first time section and the second time interval
There are intersections, add up to the broadcasting time of multimedia file to be detected;Detect multimedia file to be detected in television channel
Broadcasting time;Calculate the complete broadcasting time of multimedia file to be detected in television channel;It calculates to be detected in television channel
The incomplete broadcasting time of multimedia file;Calculate the playing duration of multimedia file to be detected in television channel;Calculate TV
Time equal playing duration of multimedia file to be detected in channel;Calculate the broadcasting per capita of multimedia file to be detected in television channel
Duration solves the problems, such as that the prior art can not carry out quantitative statistics to the result of broadcast of the multimedia file in television channel.
Meanwhile the embodiment is by the complete broadcasting time to multimedia file in television channel, incomplete broadcasting time, when broadcasting
Long, secondary equal playing duration and per capita playing duration carry out quantitative statistics, have reached and have broadcast to multimedia file in television channel
Put effect specifically, the effect accurately analyzed.
It can be seen from the above description that the broadcasting for detecting multimedia file in television channel of the embodiment of the present invention
The method of number is by using the user's viewing time section and the broadcasting of multimedia file in television channel for judging television channel
Time interval whether there is time intersection, and then count the broadcasting time of multimedia file in television channel, solve existing skill
The problem of art can not carry out quantitative statistics to the result of broadcast of the multimedia file in television channel.Meanwhile the invention by after
It is continuous to judge whether the duration of the corresponding time interval of time intersection is greater than the play time area of multimedia file in television channel
Between duration, the complete broadcasting time and incomplete broadcasting time of the multimedia file in the television channel are counted,
And the playing duration to multimedia file in television channel, secondary equal playing duration and per capita playing duration carry out quantitative statistics,
Multimedia file result of broadcast in specific accurate analysis television channel is achieved the effect that.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
The embodiment of the invention also provides a kind of devices of the broadcasting time of multimedia file in detection television channel.It needs
Illustrate, the device of the broadcasting time of multimedia file can be used for executing the embodiment of the present invention in the detection television channel
The method for detecting the broadcasting time of multimedia file in television channel.
Fig. 3 is the first embodiment of the device of the broadcasting time of multimedia file in detection television channel according to the present invention
Schematic diagram.As shown in figure 3, the device of the broadcasting time of multimedia file includes: the first acquisition mould in the detection television channel
Block 10, the first determining module 20, second obtains module 30, first judgment module 40, the first computing module 50 and the first detection mould
Block 60.
First obtains module 10, and the rating for obtaining television channel records, wherein the rating of television channel, which is noted down, includes
The broadcast start time of television channel, the end play time of television channel.
First determining module 20, for determining the multimedia file to be detected being inserted into television channel.
Second obtains module 30, for obtaining the broadcast start time and multimedia to be detected text of multimedia file to be detected
The end play time of part.
First judgment module 40, the rating for traversing television channel record, and judge first time section and the second time
Section whether there is intersection, wherein first time section is that the end of the broadcast start time and television channel of television channel is broadcast
Put the time interval of time determination, broadcast start time and to be detected more matchmaker of second time interval for multimedia file to be detected
The time interval that the end play time of body file determines.
First computing module 50, for when judging that first time section and the second time interval there are when intersection, treat
The broadcasting time of detection multimedia file adds up.
First detection module 60, for detecting the broadcasting time of multimedia file to be detected in television channel.
The device of the broadcasting time of multimedia file includes the first acquisition module 10 in the detection television channel of the embodiment,
First determining module 20, second obtains module 30, first judgment module 40, the first computing module 50 and first detection module 60.
Solving the prior art by the device of the broadcasting time of multimedia file in the detection television channel of the embodiment can not be to electricity
The result of broadcast of multimedia file in tv channel carries out the problem of quantitative statistics.
Fig. 4 is the second embodiment of the device of the broadcasting time of multimedia file in detection television channel according to the present invention
Schematic diagram.As shown in figure 4, the device of the broadcasting time of multimedia file includes: the first acquisition mould in the detection television channel
Block 10, the first determining module 20, second obtains module 30, first judgment module 40, the first computing module 50, first detection module
60, the second judgment module 70, third judgment module 80, the second computing module 90, the second detection module 110, third computing module
120 and second determining module 130.
First obtains module 10, and the first determining module 20, second obtains module 30, and first judgment module 40, first calculates
The effect of module 50 and first detection module 60 is in the broadcasting time for detecting multimedia file in television channel of the invention
Device first embodiment in carried out specific introduction, details are not described herein again.
Second judgment module 70, for judging the broadcast start time of television channel whether earlier than multimedia file to be detected
Broadcast start time.
Third judgment module 80 judges the broadcast start time for judging television channel earlier than multimedia to be detected for working as
When the broadcast start time of file, judge whether the end play time of television channel is later than the end of multimedia file to be detected
Play time.
Second computing module 90, for being later than multimedia file to be detected when the end play time for judging television channel
End play time when, add up to the complete broadcasting time of multimedia file to be detected.
Second detection module 110, for detecting the complete broadcasting time of multimedia file to be detected in television channel.
Third computing module 120, for calculating the broadcasting time and multimedia file to be detected of multimedia file to be detected
Complete broadcasting time difference.
Second determining module 130, for determining the incomplete broadcasting time of multimedia file to be detected in television channel,
In, broadcasting time and to be detected multimedia of the incomplete broadcasting time of multimedia file to be detected for multimedia file to be detected
The difference of the complete broadcasting time of file.
Preferably, the device for detecting the broadcasting time of multimedia file in television channel of the embodiment further include: the 4th
Computing module, for calculating the playing duration of multimedia file to be detected in television channel;5th computing module, for calculating electricity
Time equal playing duration of multimedia file to be detected in tv channel;6th computing module, it is to be detected in television channel for calculating
The playing duration per capita of multimedia file.
The device of the broadcasting time of multimedia file includes the first acquisition module 10 in the detection television channel of the embodiment,
First determining module 20, the second acquisition module 30, first judgment module 40, the first computing module 50, first detection module 60, the
Two judgment modules 70, third judgment module 80, the second computing module 90, the second detection module 110,120 He of third computing module
Second determining module 130.It is solved by the device of the broadcasting time of multimedia file in the detection television channel of the embodiment
The problem of prior art can not carry out quantitative statistics to the result of broadcast of the multimedia file in television channel, while having reached tool
Body accurately analyzes the effect of multimedia file result of broadcast in television channel.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.