Summary of the invention
In view of this, the embodiment of the invention provides a kind of advertisement code stream analyzer, analytical system and analytical method, can analyze complete ad data, and makes things convenient for the user to check advertising message.
Simultaneously, the embodiment of the invention provides a kind of advertisement code stream analytical system, can obtain the details of advertisement code stream, the complete ad data that can analyze, and make things convenient for the user to check advertising message.
Concrete, the advertisement code stream analyzer that the embodiment of the invention provides comprises:
The data demultiplexing unit is used for going out advertisement code stream according to package identification symbol from transmitting the code stream demultiplexing, and deposits the advertising message tabulation in after generating data segment according to the said advertisement code stream that demultiplexing goes out;
The advertisement resolution unit is used for from the data segment of said advertising message tabulation, parsing ad data according to self-defining ad specifications, and creates Query List based on said ad data; Said advertisement resolution unit comprises:
The piece resolution unit is used for from the data segment of said advertising message tabulation, parsing the ad data piece according to self-defining ad specifications;
The data parsing unit, be used for according to self-defining ad specifications from said ad data piece parse ad content data and to the descriptor of said content-data as the ad data that finally parses;
Create the unit; Be used for analysis result according to said resolution unit and data parsing unit; Create the tabulation of data block Query List and descriptor query, wherein, said data block Query List comprises all ad data pieces; Each descriptor query tabulation is corresponding one by one with the ad data piece, comprises all descriptors in the said ad data piece.
Operation control unit is used to receive the advertising inquiry instruction that the user sends, and inquires about said Query List according to said query statement, obtains the required advertising message of user and is shown to said user.
Accordingly, a kind of advertisement code stream analytical method provided by the invention comprises:
The advertisement code stream analyzer goes out advertisement code stream according to package identification symbol demultiplexing from transmit code stream, and deposits the advertising message tabulation in after generating data segment according to the said advertisement code stream that demultiplexing goes out;
Said advertisement code stream analyzer is according to parsing ad data in the data segment of self-defining ad specifications from said advertising message tabulation; And, comprise step: according to parsing the ad data piece in the data segment of self-defining ad specifications from said advertising message tabulation based on said ad data establishment Query List; According to self-defining ad specifications from said ad data piece, parse ad content data and to the descriptor of said content-data as the ad data that finally parses; Analysis result according to said parsing; Create the tabulation of data block Query List and descriptor query, wherein, said data block Query List comprises all ad data pieces; Each descriptor query tabulation is corresponding one by one with the ad data piece, comprises all descriptors in the said ad data piece;
Said advertisement code stream analyzer receives the advertising inquiry instruction that the user sends, and inquires about said Query List according to said query statement, obtains the required advertising message of user and is shown to said user.
The embodiment of the invention goes out advertisement code stream through advertisement code stream analyzer demultiplexing from transmit code stream; And from said advertisement code stream, parse ad data, therefore, can analyze complete ad data; In addition; Said advertisement code stream analyzer of the present invention is tabulated based on said ad data generated query, and the advertising message required according to user's query statement independent displaying user, has made things convenient for the user independently to check advertising message.
Accordingly, a kind of advertisement code stream analytical system provided by the invention comprises: be used to record the record flow device that the stream front-end server sends to the transmission code stream of STB terminal; In addition, also comprise the advertisement code stream analyzer that links to each other with said record flow device, said advertisement code stream analyzer is the advertisement code stream analyzer that the embodiment of the invention provides.
The analytical system that the embodiment of the invention provides flows the transmission code stream that front-end server sends to STB through the record of record flow device, therefore; The embodiment of the invention can be obtained the details of advertisement code stream, and simultaneously, the embodiment of the invention goes out advertisement code stream through advertisement code stream analyzer demultiplexing from said transmission code stream; And from said advertisement code stream, parse ad data, therefore, can analyze complete ad data; In addition; Said advertisement code stream analyzer of the present invention is tabulated based on said ad data generated query, and the advertising message required according to user's query statement independent displaying user, has made things convenient for the user independently to check advertising message.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention will be carried out clear, intactly description.
Fig. 1 is that the structure of advertisement code stream analytical system of the present invention is formed sketch map; As shown in Figure 1, the advertisement code stream analytical system of present embodiment comprises record flow device 10 and advertisement code stream analyzer 20, wherein:
Said record flow device 10 is used to record the transmission code stream (TS, Transport Stream) that the stream front-end server sends to STB terminal.
Said advertisement code stream analyzer 20; Link to each other with said record flow device 10; Be used for according to package identification symbol (PID; Packet Identification) demultiplexing goes out advertisement code stream from TS stream, deposits the advertising message tabulation in after the said advertisement code stream that goes out according to demultiplexing generates data segment (Section); And, create Query List based on said ad data according to parsing ad data in the data segment of self-defining ad specifications from said advertising message tabulation; Receive the advertising inquiry instruction that the user sends, and inquire about said Query List, obtain the required advertising message of user and be shown to said user according to said query statement.
Further, still with reference to figure 1, the advertisement code stream analyzer 20 of present embodiment comprises data demultiplexing unit 201, advertisement resolution unit 203, operation control unit 205, wherein:
Said data demultiplexing unit 201 goes out advertisement code stream according to PID demultiplexing from TS stream, and deposits the advertising message tabulation in after generating Section according to the said advertisement code stream that demultiplexing goes out.In concrete the realization, ad data is packetized in the TS file of specific PID, such as; The pid value of SD advertisement is 0x1ABC; The pid value of high definition advertisement is 0x1ABE, therefore, and in concrete the realization; Can from the TS code stream of the pid value that comprises 0x1ABC, go out the SD advertisement code stream by demultiplexing, can from the TS code stream of the pid value that comprises 0x1ABE, go out the high definition advertisement code stream by demultiplexing.Each data under the same pid value are stored in a plurality of TS code streams through the mode of fragmented storage; Therefore, after from TS stream, parsing advertisement code stream, according to the pid value of said each advertisement code stream; And the sequence number of each advertisement code stream; To have identical pid value, and each continuous advertisement code stream of sequence number is assembled into section, and the section that forms is deposited in the advertising message tabulation.
Said advertisement resolution unit 203 is used for from the data segment of said advertising message tabulation, parsing ad data according to self-defining ad specifications, and creates Query List based on said ad data.In concrete the realization; Different manufacturers can be according to the self-defined ad specifications of the needs of self; Concrete; Concrete form that can the definition of data section, and the implication of each field and the data type of carrying or the like in the data segment, such as; The ad data that comprises in can the definition of data section comprises ad content (comprising video, audio frequency, text, picture etc.) and to the descriptor (descriptor) (comprising the residing field of reproduction time, ad content of ad content and the length of field etc.) of said content, and all is included in the data block (block) in the data segment; Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In concrete the realization, Query List is used for convenient query statement fast query according to the user and arrives the required advertising message of user, so its form can be varied; Such as; When data segment comprises data block, and data block is when comprising ad content and descriptor, and can the tabulate mode of tree of the Query List of generation exists; The ground floor of tree is data block Query List (BlockList), and the second layer is the descriptor query tabulation (DescriptorList) below each data block.Concrete, can inquire data segment through the data block Query List and comprise the ad content that which data block and each data block comprise, and further can inquire the corresponding descriptor of ad content of each data block through the descriptor query tabulation.For another example; When data segment only comprises descriptor; The Query List that generates is exactly a plurality of independently descriptor forms; Each form comprises the detailed content of descriptor in each data segment, can inquire the detailed description information of each ad content but can not inquire ad content through inquiring about these descriptor forms.
Fig. 2 is an example structure of advertisement resolution unit 203 and forms sketch map, and is as shown in Figure 2, and said advertisement resolution unit 203 can comprise piece resolution unit 2031, data parsing unit 2032 and establishment unit 2033, wherein:
Said resolution unit 2031 is used for from the data segment of said advertising message tabulation, parsing the ad data piece according to self-defining ad specifications;
Said data parsing unit 2032, be used for according to self-defining ad specifications from said ad data piece parse ad content data and to the descriptor of said content-data as the ad data that finally parses;
Said establishment unit 2033; Be used for analysis result according to said resolution unit 2031 and data parsing unit 2032; Create the tabulation of data block Query List and descriptor query, wherein, said data block Query List comprises all ad data pieces; Each descriptor query tabulation is corresponding one by one with the ad data piece, comprises all descriptors in the said ad data piece.As previously mentioned; In concrete the realization; Can the tabulate mode of tree of the relation of creating the data block Query List created unit 2033 and descriptor query tabulation exists, and the ground floor of tree is the data block Query List, and the second layer be that the descriptor query below each data block is tabulated.
Said operation control unit 205 is used to receive the advertising inquiry instruction that the user sends, and inquires about said Query List according to said query statement, obtains the required advertising message of user and is shown to said user.
In concrete the realization; Said operation control unit 205 can receive the advertising inquiry instruction that the user sends; The instruction of these advertising inquiries comprises: the query statement of queries ad content, inquiry are to the query statement of the descriptor of said ad content etc.; And also can specify the adline that needs inquiry in the said query statement, such as, the relevant information that the relevant information of inquiry SD advertisement is still inquired about the high definition advertisement.Corresponding; The advertising message that operation control unit 205 shows can present different forms according to the difference of query statement, such as, when query statement is the queries ad content; The advertising message that shows be one present said ad content window; Such as, when ad content is a picture, will demonstrate this advertisement picture (shown in Fig. 2 .1) on the display window; And work as query statement is the query statement of queries ad descriptor; At this moment, what operation control unit 205 showed possibly be a text interface, the descriptor of text interface meeting display ads; Such as the position of advertisement, related (shown in Fig. 2 .2) such as channel informations.Further; Said operation control unit 205 also can be used for receiving the advertisement code stream analysis indication operational order that the user sends; And be transmitted to said data demultiplexing unit 10, go out advertisement code stream to trigger said data demultiplexing unit 10 according to package identification symbol demultiplexing from transmit code stream.Said advertisement code stream analysis indication operational order comprises the type of the advertisement code stream that needs analysis.Further, said operation control unit 205 can receive advertising inquiry instruction or the analysis indication operational order that the user sends through keyboard or interface.Be depicted as the sketch map of the operation interface that operation control unit 205 appears like Fig. 2 .3; Shown in Fig. 2 .3; The whole operation zone can receive and open code stream, analysis code stream, preservation information, output analysis text, open feature operations such as analyzing text, SD/high definition, and each functional description of operating is following:
A) open code stream: the code stream that selection will be analyzed;
B) analyze code stream: analyze the code stream of opening;
C) preservation information: preserve current channel and adline information;
D) text is analyzed in output: the advertising message that parsing is obtained outputs to text;
E) open the analysis text: can directly open text;
F) SD/high definition: selection is to analyze the SD advertisement code stream or analyze the high definition advertisement code stream.
Further, Fig. 3 is that an example structure of operation control unit 205 is formed sketch map, and as shown in Figure 3, said operation control unit 205 can comprise command reception unit 2051, query unit 2052, display unit 2053, wherein:
Said command reception unit 2051 is used to receive the advertising inquiry instruction that the user sends; As previously mentioned, command reception unit 2051 can receive the advertising inquiry instruction that the user sends through keyboard or interface.Further, also can be used for receiving the advertisement code stream analysis indication operational order that the user sends, and be transmitted to said data demultiplexing unit 10, go out advertisement code stream according to package identification symbol demultiplexing from transmit code stream to trigger said data demultiplexing unit 10.
Said query unit 2052, the Query List of said establishment is inquired about in the advertising inquiry instruction that is used for receiving according to said command reception unit 2051, obtains the required advertising message of user;
Said display unit 2053 is used for the advertising message of said acquisition is shown to the user.As previously mentioned, display unit 2053 can present different advertisement information to the user according to the advertising inquiry instruction type that command reception unit 2051 receives.
The analytical system that the embodiment of the invention provides flows the transmission code stream that front-end server sends to STB through the record of record flow device, therefore; The embodiment of the invention can be obtained the details of advertisement code stream, and simultaneously, the embodiment of the invention goes out advertisement code stream through advertisement code stream analyzer demultiplexing from said transmission code stream; And from said advertisement code stream, parse ad data, therefore, can analyze complete ad data; In addition; Said advertisement code stream analyzer of the present invention is tabulated based on said ad data generated query, and the advertising message required according to user's query statement independent displaying user, has made things convenient for the user independently to check advertising message.
The advertisement code stream analyzer obtains the transmission code stream that front-end server sends to STB alternately with the record flow device in the foregoing description; And in concrete the realization; But the advertisement code stream analyzer also self comprises a record stream unit, and then sends to the transmission code stream of STB through said record stream unit record stream front-end server.
Accordingly, the embodiment of the invention provides the analytical method of advertisement code stream, and the method that the embodiment of the invention provides can realize through aforesaid advertisement code stream analyzer or advertisement code stream analytical system.Fig. 4 is the schematic flow sheet of advertisement code stream analytical method of the present invention;
As shown in Figure 4, the method for the embodiment of the invention comprises:
Step S400, the advertisement code stream analyzer goes out advertisement code stream according to package identification symbol demultiplexing from transmit code stream, and deposits the advertising message tabulation in after generating data segment according to the said advertisement code stream that demultiplexing goes out; In concrete the realization, ad data is packetized in the TS file of specific PID, such as; The pid value of SD advertisement is 0x1ABC; The pid value of high definition advertisement is 0x1ABE, therefore, and in concrete the realization; Can from the TS code stream of the pid value that comprises 0x1ABC, go out the SD advertisement code stream by demultiplexing, can from the TS code stream of the pid value that comprises 0x1ABE, go out the high definition advertisement code stream by demultiplexing.Each data under the same pid value are stored in a plurality of TS code streams through the mode of fragmented storage; Therefore, after from TS stream, parsing advertisement code stream, according to the pid value of said each advertisement code stream; And the sequence number of each advertisement code stream; To have identical pid value, and each continuous advertisement code stream of sequence number is assembled into data segment (section), and the section that forms is deposited in the advertising message tabulation.
Step S401, said advertisement code stream analyzer be according to parsing ad data in the data segment of self-defining ad specifications from the tabulation of said advertising message, and create Query List based on said ad data.In concrete the realization; Different manufacturers can be according to the self-defined ad specifications of the needs of self; Concrete; Concrete form that can the definition of data section, and the implication of each field and the data type of carrying or the like in the data segment, such as; The ad data that comprises in can the definition of data section comprises ad content (comprising video, audio frequency, text, picture etc.) and to the descriptor (descriptor) (comprising the residing field of reproduction time, ad content of ad content and the length of field etc.) of said content, and all is included in the data block (block) in the data segment; Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In concrete the realization, Query List is used for convenient query statement fast query according to the user and arrives the required advertising message of user, so its form can be varied; Such as; When data segment comprises data block, and data block is when comprising ad content and descriptor, and can the tabulate mode of tree of the Query List of generation exists; The ground floor of tree is data block Query List (BlockList), and the second layer is the descriptor query tabulation (DescriptorList) below each data block.Concrete, can inquire data segment through the data block Query List and comprise the ad content that which data block and each data block comprise, and further can inquire the corresponding descriptor of ad content of each data block through the descriptor query tabulation.For another example; When data segment only comprises descriptor; The Query List that generates is exactly a plurality of independently descriptor forms; Each form comprises the detailed content of descriptor in each data segment, can inquire the detailed description information of each ad content but can not inquire ad content through inquiring about these descriptor forms.
Step S402, said advertisement code stream analyzer receive the advertising inquiry instruction that the user sends, and inquire about said Query List according to said query statement, obtain the required advertising message of user and are shown to said user.In concrete the realization; The instruction of said advertising inquiry comprises: the query statement of queries ad content, inquiry are to the query statement of the descriptor of said ad content etc.; And also can specify the adline that needs inquiry in the said query statement; Such as, the relevant information that the relevant information of inquiry SD advertisement is still inquired about the high definition advertisement.Corresponding; The advertising message that step S402 shows can present different forms according to the difference of query statement, such as, when query statement is the queries ad content; The advertising message that shows be one present said ad content window; Such as, when ad content is a picture, will demonstrate this advertisement picture (shown in Fig. 2 .1) on the display window; And when query statement is the query statement of queries ad descriptor, at this moment, demonstration possibly be a text interface, the descriptor that text interface can display ads, such as the position of advertisement, related (shown in Fig. 2 .2) such as channel informations.Further, can receive advertising inquiry instruction or the analysis indication operational order that the user sends through keyboard or interface at step S402.
The method of the embodiment of the invention goes out advertisement code stream through advertisement code stream analyzer demultiplexing from said transmission code stream; And from said advertisement code stream, parse ad data, therefore, can analyze complete ad data; In addition; Said advertisement code stream analyzer of the present invention is tabulated based on said ad data generated query, and the advertising message required according to user's query statement independent displaying user, has made things convenient for the user independently to check advertising message.
Further, Fig. 5 is a specific embodiment schematic flow sheet of advertisement code stream analytical method of the present invention; As shown in Figure 5, the method for present embodiment comprises:
Step S500, advertisement code stream analyzer receive the advertisement code stream analysis indication operational order that the user sends.In concrete the realization, said indication operational order comprises the type of the advertisement code stream that needs analysis.
Step S501, the advertisement code stream analyzer goes out advertisement code stream according to the package identification of the advertisement code stream of need analysis symbol demultiplexing from transmit code stream, and deposits the advertising message tabulation in after generating data segment according to the said advertisement code stream that demultiplexing goes out.
Step S502, said advertisement code stream analyzer is according to parsing the ad data piece in the data segment of self-defining ad specifications from said advertising message tabulation.
Step S503, said advertisement code stream analyzer from said ad data piece, parse ad content data according to self-defining ad specifications and to the descriptor of said content-data as the ad data that finally parses.
Step S504; Said advertisement code stream analyzer is according to the analysis result of said parsing; Create the tabulation of data block Query List and descriptor query, wherein, said data block Query List comprises all ad data pieces; Each descriptor query tabulation is corresponding one by one with the ad data piece, comprises all descriptors in the said ad data piece.
In concrete the realization; Different manufacturers can be according to the self-defined ad specifications of the needs of self; Concrete; Concrete form that can the definition of data section, and the implication of each field and the data type of carrying or the like in the data segment, such as; The ad data that comprises in can the definition of data section comprises ad content (comprising video, audio frequency, text, picture etc.) and to the descriptor (descriptor) (comprising the residing field of reproduction time, ad content of ad content and the length of field etc.) of said content, and all is included in the data block (block) in the data segment; Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In concrete the realization, Query List is used for convenient query statement fast query according to the user and arrives the required advertising message of user, so its form can be varied; In the present embodiment; When data segment comprises data block, and data block is when comprising ad content and descriptor, and can the tabulate mode of tree of the Query List of generation exists; The ground floor of tree is data block Query List (BlockList), and the second layer is the descriptor query tabulation (DescriptorList) below each data block.Concrete, can inquire data segment through the data block Query List and comprise the ad content that which data block and each data block comprise, and further can inquire the corresponding descriptor of ad content of each data block through the descriptor query tabulation.For another example; When data segment only comprises descriptor; The Query List that generates is exactly a plurality of independently descriptor forms; Each form comprises the detailed content of descriptor in each data segment, can inquire the detailed description information of each ad content but can not inquire ad content through inquiring about these descriptor forms.
Step S505, said advertisement code stream analyzer receive the advertising inquiry instruction that the user sends, and inquire about said Query List according to said query statement, obtain the required advertising message of user and are shown to said user.This step is identical with step S402, does not give unnecessary details at this.
In concrete the realization, can receive the advertising inquiry instruction of user's transmission or analyze the indication operational order through keyboard or interface.Shown in Fig. 2 .3, be advertising inquiry instruction that can receive user's transmission or the operation interface sketch map of analyzing the indication operational order.
The method of present embodiment is carried out code stream analysis after receiving the advertisement code stream analysis indication operational order of user's transmission; Accuracy is better, in addition, and the advertisement code stream analytical method of present embodiment; According to self-defined that data segment comprises data block; Data block comprises the ad specifications parsing advertisement code stream of ad content and descriptor, makes that so last advertising message display result also can be abundanter, can provide more detailed advertisement display message.
Further, Fig. 6 is the schematic flow sheet of another specific embodiment of advertisement code stream analytical method of the present invention; As shown in Figure 6, the method for present embodiment comprises:
Step S600, advertisement code stream analyzer or record flow device record stream front-end server send to the transmission code stream of STB terminal.
Step S601, advertisement code stream analyzer receive the advertisement code stream analysis indication operational order that the user sends.
Step S602, the advertisement code stream analyzer goes out advertisement code stream according to the package identification of the advertisement code stream of need analysis symbol demultiplexing from transmit code stream, and deposits the advertising message tabulation in after generating data segment according to the said advertisement code stream that demultiplexing goes out.
Step S603, said advertisement code stream analyzer is according to parsing the ad data piece in the data segment of self-defining ad specifications from said advertising message tabulation.
Step S504, said advertisement code stream analyzer from said ad data piece, parse ad content data according to self-defining ad specifications and to the descriptor of said content-data as the ad data that finally parses;
Step S605; Said advertisement code stream analyzer is according to the analysis result of said parsing; Create the tabulation of data block Query List and descriptor query, wherein, said data block Query List comprises all ad data pieces; Each descriptor query tabulation is corresponding one by one with the ad data piece, comprises all descriptors in the said ad data piece.
Step S606, said advertisement code stream analyzer receive the advertising inquiry instruction that the user sends, and inquire about said Query List according to said query statement, obtain the required advertising message of user and are shown to said user.
Wherein, step S602-S606 is identical with abovementioned steps S501-S505, does not give unnecessary details at this.
The method of present embodiment comprises the advertisement code stream analyzer or records the step that flow device record stream front-end server sends to the transmission code stream of STB terminal, with respect to the method for front more specifically.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.