Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.
Fig. 1 is that the structure of advertisement code stream analytical system of the present invention is formed schematic diagram; 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:
Described 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.
Described advertisement code stream analyzer 20, link to each other with described 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 described advertisement code stream that goes out according to demultiplexing generates data segment (Section); And, create Query List based on described ad data according to parsing ad data in the data segment of self-defining ad specifications from described advertising message tabulation; Receive the advertising inquiry instruction that the user sends, and inquire about described Query List, obtain the required advertising message of user and be shown to described user according to described 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:
Described 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 described advertisement code stream that demultiplexing goes out.In the specific implementation, 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 the specific implementation, 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 by the mode of fragmented storage, therefore, after from TS stream, parsing advertisement code stream, pid value according to described 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.
Described advertisement resolution unit 203 is used for parsing ad data according to self-defining ad specifications from the data segment of described advertising message tabulation, and creates Query List based on described ad data.In the specific implementation, 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 that ad content (comprises video, audio frequency, text, picture etc.) and at descriptor (the descriptor) (reproduction time that comprises ad content of described content, and all be included in the data block (block) in the data segment length of residing field of ad content and field etc.); Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In the specific implementation, Query List is used for convenient query statement quick search according to the user and arrives the required advertising message of user, therefore 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 by the data block Query List and comprise the ad content which data block and each data block comprise, and further can inquire the descriptor of the ad content correspondence of each data block by 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 by inquiring about these descriptor forms.
Fig. 2 is an example structure of advertisement resolution unit 203 and forms schematic diagram, and as shown in Figure 2, described advertisement resolution unit 203 can comprise piece resolution unit 2031, data parsing unit 2032 and creating unit 2033, wherein:
Described resolution unit 2031 is used for parsing the ad data piece according to self-defining ad specifications from the data segment of described advertising message tabulation;
Described data parsing unit 2032, be used for according to self-defining ad specifications from described ad data piece parse ad content data and at the descriptor of described content-data as the ad data that finally parses;
Described creating unit 2033, be used for analysis result according to described resolution unit 2031 and data parsing unit 2032, create the tabulation of data block Query List and descriptor query, wherein, described 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 described ad data piece.As previously mentioned, in the specific implementation, can the tabulate mode of tree of the relation of data block Query List that creating unit 2033 is created 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.
Described operation control unit 205 is used to receive the advertising inquiry instruction that the user sends, and inquires about described Query List according to described query statement, obtains the required advertising message of user and is shown to described user.
In the specific implementation, described 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 at the query statement of the descriptor of described ad content etc., and also can specify the adline that needs inquiry in the described 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 is a window that presents described ad content, such as, when ad content is a picture, will present 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 may 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, described 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 described data demultiplexing unit 10, go out advertisement code stream to trigger described data demultiplexing unit 10 according to package identification symbol demultiplexing from transmit code stream.Described advertisement code stream analysis indication operational order comprises the type of the advertisement code stream that needs analysis.Further, described operation control unit 205 can receive advertising inquiry instruction or the analysis indication operational order that the user sends by keyboard or interface.Be depicted as the schematic diagram of the operation interface that operation control unit 205 presents as 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 as follows:
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 schematic diagram, and as shown in Figure 3, described operation control unit 205 can comprise command reception unit 2051, query unit 2052, display unit 2053, wherein:
Described 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 by 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 described data demultiplexing unit 10, go out advertisement code stream according to package identification symbol demultiplexing from transmit code stream to trigger described data demultiplexing unit 10.
Described query unit 2052, the Query List of described establishment is inquired about in the advertising inquiry instruction that is used for receiving according to described command reception unit 2051, obtains the required advertising message of user;
Described display unit 2053 is used for the advertising message of described acquisition is shown to the user.As previously mentioned, display unit 2053 can present different advertising messages 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, send to the transmission code stream of set-top box by record flow device record stream front-end server, therefore, the embodiment of the invention can be obtained the details of advertisement code stream, simultaneously, the embodiment of the invention goes out advertisement code stream by advertisement code stream analyzer demultiplexing from described transmission code stream, and from described advertisement code stream, parse ad data, therefore, can analyze complete ad data, in addition, described advertisement code stream analyzer of the present invention is tabulated based on described ad data generated query, and the advertising message required according to user's query statement independent displaying user, 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 set-top box alternately with the record flow device in the foregoing description, and in the specific implementation, but the advertisement code stream analyzer also self comprises a record stream unit, and then sends to the transmission code stream of set-top box by described 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 by 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 described advertisement code stream that demultiplexing goes out; In the specific implementation, 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 the specific implementation, 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 by the mode of fragmented storage, therefore, after from TS stream, parsing advertisement code stream, pid value according to described 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, described advertisement code stream analyzer be according to parsing ad data in the data segment of self-defining ad specifications from the tabulation of described advertising message, and create Query List based on described ad data.In the specific implementation, 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 that ad content (comprises video, audio frequency, text, picture etc.) and at descriptor (the descriptor) (reproduction time that comprises ad content of described content, and all be included in the data block (block) in the data segment length of residing field of ad content and field etc.); Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In the specific implementation, Query List is used for convenient query statement quick search according to the user and arrives the required advertising message of user, therefore 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 by the data block Query List and comprise the ad content which data block and each data block comprise, and further can inquire the descriptor of the ad content correspondence of each data block by 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 by inquiring about these descriptor forms.
Step S402, described advertisement code stream analyzer receives the advertising inquiry instruction that the user sends, and inquire about described Query List according to described query statement, obtain the required advertising message of user and be shown to described user. in the specific implementation, described advertising inquiry instruction comprises: the query statement of queries ad content, inquiry is at query statement of the descriptor of described ad content etc., and also can specify the adline that needs inquiry in the described 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 is a window that presents described ad content, such as, when ad content is a picture, will present 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 show may be a text interface, the descriptor of text interface meeting display ads, position such as advertisement, related (shown in Fig. 2 .2) such as channel informations. further, can receive the advertising inquiry instruction of user's transmission or analyze the indication operational order by keyboard or interface at step S402.
The method of the embodiment of the invention goes out advertisement code stream by advertisement code stream analyzer demultiplexing from described transmission code stream, and from described advertisement code stream, parse ad data, therefore, can analyze complete ad data, in addition, described advertisement code stream analyzer of the present invention is tabulated based on described 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 the specific implementation, described 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 described advertisement code stream that demultiplexing goes out.
Step S502, described advertisement code stream analyzer is according to parsing the ad data piece in the data segment of self-defining ad specifications from described advertising message tabulation.
Step S503, described advertisement code stream analyzer from described ad data piece, parse ad content data according to self-defining ad specifications and at the descriptor of described content-data as the ad data that finally parses.
Step S504, described advertisement code stream analyzer is according to the analysis result of described parsing, create the tabulation of data block Query List and descriptor query, wherein, described 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 described ad data piece.
In the specific implementation, 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 that ad content (comprises video, audio frequency, text, picture etc.) and at descriptor (the descriptor) (reproduction time that comprises ad content of described content, and all be included in the data block (block) in the data segment length of residing field of ad content and field etc.); Perhaps, comprise the descriptor of ad data in can the definition of data section and do not comprise ad content.In the specific implementation, Query List is used for convenient query statement quick search according to the user and arrives the required advertising message of user, therefore 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 by the data block Query List and comprise the ad content which data block and each data block comprise, and further can inquire the descriptor of the ad content correspondence of each data block by 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 by inquiring about these descriptor forms.
Step S505, described advertisement code stream analyzer receive the advertising inquiry instruction that the user sends, and inquire about described Query List according to described query statement, obtain the required advertising message of user and are shown to described user.This step is identical with step S402, does not give unnecessary details at this.
In the specific implementation, can receive advertising inquiry instruction or the analysis indication operational order that the user sends by keyboard or interface.Shown in Fig. 2 .3, be advertising inquiry instruction that can receive user's transmission or the operation interface schematic diagram 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, 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 described advertisement code stream that demultiplexing goes out.
Step S603, described advertisement code stream analyzer is according to parsing the ad data piece in the data segment of self-defining ad specifications from described advertising message tabulation.
Step S504, described advertisement code stream analyzer from described ad data piece, parse ad content data according to self-defining ad specifications and at the descriptor of described content-data as the ad data that finally parses;
Step S605, described advertisement code stream analyzer is according to the analysis result of described parsing, create the tabulation of data block Query List and descriptor query, wherein, described 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 described ad data piece.
Step S606, described advertisement code stream analyzer receive the advertising inquiry instruction that the user sends, and inquire about described Query List according to described query statement, obtain the required advertising message of user and are shown to described 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 that advertisement code stream analyzer or record flow device record stream front-end server send to the step of the transmission code stream of STB terminal, with respect to the method for front more specifically.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.