Background
The satellite operator may rebroadcast the television program. For example, television programs are rebroadcast according to a Digital Video Broadcasting (DVB) standard, and a terminal (e.g., a television or a set-top box) receiving the television programs correspondingly receives the television programs according to the standard. When the channel information needs to be inquired, the terminal acquires the channel information by inquiring a relevant table specified in the DVB standard.
Fig. 1 is a schematic diagram illustrating a table lookup process when obtaining channel information in the prior art, and fig. 2 is an example of a channel information query process based on a table structure, as shown in fig. 1 and 2, the table lookup process for obtaining channel information in the prior art is as follows:
s101, acquiring a network information table.
The Network Information Table (NIT) is used to describe Information of a transmission Network, and the NIT includes a plurality of descriptors and is used to carry transmission system parameters, program Service types, Service identifiers (Service _ ID), and the like.
The NIT acquired by the terminal records frequency point information where a referenced network information table (Reference NIT) is located, that is, the frequency point where the Reference NIT is located can be acquired from the NIT.
And S102, acquiring the referred network information table according to the network information table.
And after the NIT is acquired, reading the frequency point where the Reference NIT is located from the NIT. Then, Reference NIT is searched for at the frequency point.
The Reference NIT to be searched records the frequency point information of different PAT, that is, the frequency point of a certain PAT can be obtained from the Reference NIT.
S103, acquiring a program association table according to the referred network information table.
After the Reference NIT is obtained, the frequency point where the Program Association Table (PAT) is located is read from the Reference NIT. Then, PAT is searched for on the frequency point.
And S104, acquiring a program mapping table according to the program association table.
Since identification information (PMTPID) of a Program Map Table (PMT) is defined in a PAT of the same frequency point, the PMTPID is read in the PAT after the PAT is searched. Further, the PMT corresponding to the PMTPID is searched for on the same frequency point, and the PMT is acquired.
And S105, acquiring a table for recording channel information according to the program mapping table.
The name and structure of the table for recording channel information may be different for different satellite operators. But the table will record the information of the broadcast identification (PID), channel name, transmission frequency point, channel number, etc.
Since the playback PID is recorded in the PMT, the playback PID can be read from the PMT after the PMT is acquired, and the table for recording channel information can be searched for based on the playback PID.
As can be seen from the above process, in the prior art, in order to acquire the table recording the channel information, the terminal needs to search the NIT, the Reference NIT, the PAT, the PMT, and the table recording the channel information in order, so that the search process is complicated, and the acquisition efficiency is not high.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For simplicity of description, the following embodiments of the present invention refer to a terminal (e.g., a television, a set-top box, etc.) receiving a television program as a "terminal".
Based on the above problems, the present invention provides a method for acquiring channel information, which can simplify the search process and improve the acquisition efficiency.
Fig. 3 is a schematic flowchart of a first embodiment of a channel information obtaining method provided by the present invention, where an execution subject of the method is a terminal for receiving a television program, and as shown in fig. 3, the method includes:
s301, acquiring the referred network information table based on the network information table.
The NIT is used for describing information of a transmission network, and the NIT comprises a plurality of descriptors for carrying transmission system parameters, program Service types, Service identifiers (Service _ ID), and the like, wherein each descriptor corresponds to a specific category identifier (TAG).
In the embodiment, a link descriptor (link _ type) with the link _ type being a second preset value is determined as a second link descriptor, and through the second link descriptor, a satellite transmission system descriptor (satellite _ delivery _ system _ descriptor) carrying frequency point information of a referenced network information table (Reference NIT), namely the second satellite transmission system descriptor, can be matched, so that the frequency point information of the Reference NIT is obtained, and the Reference NIT is searched on the frequency point.
Optionally, the second preset value is defined by a satellite operator. For example, if a certain satellite operator defines that the second preset value is 0x04, when searching for the NIT, the terminal searches for the NIT including the link descriptor with the link _ type of 0x04, searches for the satellite transmission system descriptor according to the link descriptor with the link _ type of 0x04 in the table after searching for the NIT, and searches for the Reference NIT at the frequency point carried by the satellite transmission system descriptor, thereby obtaining the Reference NIT.
S302, obtaining a target program mapping table according to the corresponding relation between the referenced network information table and the target program mapping table.
The target program mapping table refers to a program mapping table that needs to be obtained.
The referenced network information table has specific correspondence with specific fields of the target program mapping table, and therefore, based on these correspondences, the target program mapping table can be directly obtained from the referenced network information table.
On one hand, the PMT and the PAT transmitted in the same frequency point are in one-to-one correspondence, and on the other hand, the Service _ ID field included in the Reference NIT and the program _ number field included in the PMT have the same value. Therefore, the PMT may be obtained according to two factors, i.e., the frequency point information where the PMT is located and the program _ number included in the PMT.
Specifically, fig. 4 is a schematic flow chart of a second embodiment of the channel information obtaining method provided by the present invention, and as shown in fig. 4, the step S302 specifically includes:
s401, determining a target frequency point and a target program number for acquiring a target program mapping table through the first link descriptor contained in the referred network information table.
And S402, searching the target program mapping table on the target frequency point according to the target program number.
The first link descriptor is a descriptor of which the link type value is a first preset value.
Specifically, the first satellite transmission system descriptor can be determined according to the first link descriptor, and the frequency point carried in the first satellite transmission system descriptor is the frequency point for transmitting the PAT, and the frequency point for transmitting the PAT is the same as the frequency point for transmitting the PMT, so the frequency point carried in the first satellite transmission system descriptor is the frequency point for transmitting the PMT.
The first preset value may be defined by a satellite operator, and the terminal performs parsing according to the definition of the satellite operator.
For example, assuming that frequency point information for PAT transmission specified by a certain satellite operator is determined by a link descriptor with a value of 0x90, 0x91 or 0x93 for L inkage _ type in Reference NIT, that is, the first preset value is defined as 0x90, 0x91 or 0x93, the terminal reads a link descriptor with a value of 0x90, 0x91 or 0x93 for L inkage _ type in Reference NIT and determines a target frequency point according to the link descriptor.
In addition, the Service _ id field included in the Reference NIT has the same value as the program _ number field included in the PMT. That is, the target program number can be obtained by acquiring the value of the Service _ ID field in the Reference NIT.
Therefore, the Reference NIT and the PMT have a specific correspondence relationship, and therefore, the target program mapping table can be uniquely determined according to the acquired information carried in the Reference NIT.
On the basis of the above embodiment, a specific process of determining a target frequency point and a target program number according to information of the first link descriptor is briefly described below.
That is, fig. 5 is a schematic flow chart of a third embodiment of the channel information acquiring method provided by the present invention, and as shown in fig. 5, the step S401 specifically includes:
s501, in the referred network information table, finding out a first link descriptor based on the link type.
S502, matching a corresponding first satellite transmission system descriptor according to the transport stream identifier and the original network identifier in the first link descriptor, and determining the frequency point carried in the first satellite transmission system descriptor as the target frequency point.
S503, determining the target program number according to the service identifier in the first link descriptor.
And after the terminal acquires the referred network information table, reading the information of the descriptor with the link type value being the first preset value according to the definition of the satellite operator, wherein the descriptor is the first link descriptor. And then, the terminal analyzes the first link descriptor, so as to obtain the frequency point and the service identification information, and uses the obtained frequency point as a target frequency point and the obtained service identification as a target program number.
Specifically, the link descriptor includes a transport stream identifier (tsid) and an original network identifier (ond), and a satellite transport system descriptor can be uniquely determined by the two parameters. Therefore, after the first link descriptor is obtained, tsid and ond in the first link descriptor are read, and the first satellite transmission system descriptor in the referred network information table is determined according to the read values. And then, reading the frequency point information carried in the descriptor of the first satellite transmission system, wherein the read frequency point is the target frequency point.
In addition, the service identifier in the first connection descriptor is read, and the value of the service identifier is used as the target program number.
A specific example may refer to the position 1 part in Reference NIT in figure 2.
Further, after the target frequency point and the target program number are acquired, in step S402, the target frequency point searches the target program mapping table according to the target program number.
Specifically, first, the transmission frequency points of the PAT and the program mapping table are the same, and therefore, the frequency point carried by the descriptor whose link type value is the first preset value is also the frequency point of the transmission program mapping table, so that the terminal can read the frequency point carried by the descriptor whose link type value is the first preset value from the acquired referred network information table, and the read frequency point is the frequency point of the transmission program mapping table, that is, the target frequency point.
Secondly, the value of the service identifier field carried by the first link descriptor in the Reference NIT is the same as the value of the program number field in the program mapping table.
Based on the corresponding relation, after the terminal acquires the target frequency point and the target program number information in the first link descriptor, the program mapping table with the program number being the target program number is directly searched on the target frequency point, and the searched program mapping table is the target program mapping table.
And S303, acquiring channel information according to the target program mapping table.
After the target program mapping table is obtained, further query may be performed according to the information recorded in the table, so as to obtain channel information.
Illustratively, the specific process of acquiring the channel information according to the target program mapping table is as follows.
That is, fig. 6 is a flowchart illustrating a fourth embodiment of the channel information acquiring method according to the present invention, and as shown in fig. 6, the step S303 specifically includes:
s601, obtaining a service indication table according to the target program mapping table.
And S602, acquiring channel information from the service indication table.
Optionally, the service indication table may record table identification (PID), channel name, transmission frequency point, channel number, and other information.
The service indication table can be uniquely determined by the table identifier and a table number (tableId), where the table number is defined in advance by a satellite operator, that is, the terminal can directly obtain the table number according to the definition of the operator. And the table identifier is carried in the program mapping table. Therefore, in this embodiment, after the terminal acquires the target program mapping table, the value of the table identifier field carried in the target program mapping table is read, and then the service indication table is searched and acquired according to the table identifier and the table number.
Furthermore, the terminal can read the required channel information from the acquired service indication table.
In this embodiment, after the referenced network information table is obtained, the target frequency point and the target program number used for obtaining the target program mapping table may be directly determined based on the referenced network information table, and then the channel information may be obtained according to the obtained target program mapping table. And the program mapping table does not need to be obtained according to the processes of the referenced network information table, the program association table and the program mapping table as in the prior art. Therefore, compared with the prior art, the time for searching the acquisition table is remarkably saved, and the efficiency for searching the acquisition table is greatly improved.
Fig. 7 is a block diagram of a first embodiment of a channel information acquiring apparatus according to the present invention, as shown in fig. 7, the apparatus includes:
a first obtaining module 701, configured to obtain a referred network information table based on the network information table.
A determining module 702, configured to determine, through a first link descriptor included in the referred network information table, a target frequency point and a target program number for obtaining a target program mapping table; wherein a value of a link type of the first link descriptor is a first preset value.
A searching module 703, configured to search the target program mapping table on the target frequency point according to the target program number.
A second obtaining module 704, configured to obtain channel information according to the target program mapping table.
The NIT is used for describing information of a transmission network, and comprises a plurality of descriptors, which are used for carrying transmission system parameters, program service types, service identifiers and the like, wherein each descriptor corresponds to a specific category identifier.
The link descriptor is one of the descriptors. The NIT has a plurality of link descriptors, each link descriptor has a link type parameter, and the link descriptors are distinguished by the link type parameter. In this embodiment, a link descriptor with a link _ type being a second preset value is determined as a second link descriptor, and through the second link descriptor, a satellite transmission system descriptor carrying frequency point information of Reference NIT, that is, a second satellite transmission system descriptor, can be matched, so as to obtain frequency point information of Reference NIT, and further search for Reference NIT on the frequency point.
Optionally, the second preset value is defined by a satellite operator. For example, if a certain satellite operator defines that the second preset value is 0x04, when searching for the NIT, the terminal searches for the NIT including the link descriptor with the link _ type of 0x04, searches for the satellite transmission system descriptor according to the link descriptor with the link _ type of 0x04 in the table after searching for the NIT, and searches for the Reference NIT at the frequency point carried by the satellite transmission system descriptor, thereby obtaining the Reference NIT.
The target program mapping table refers to a program mapping table that needs to be obtained.
The referenced network information table has specific correspondence with specific fields of the target program mapping table, and therefore, based on these correspondences, the target program mapping table can be directly obtained from the referenced network information table.
On one hand, the PMT and the PAT transmitted in the same frequency point are in one-to-one correspondence, and on the other hand, the Service _ ID field included in the Reference NIT and the program _ number field included in the PMT have the same value. Therefore, the PMT may be obtained according to two factors, i.e., the frequency point information where the PMT is located and the program _ number included in the PMT.
Fig. 8 is a block diagram of a second embodiment of a channel information acquiring apparatus according to the present invention, and as shown in fig. 8, the determining module 702 includes:
a looking-up unit 7021, configured to look up the first link descriptor based on the link type in the referenced network information table.
A first determining unit 7022, configured to match a corresponding first satellite transmission system descriptor according to the transport stream identifier and the original network identifier in the first link descriptor, and determine the frequency point carried in the first satellite transmission system descriptor as the target frequency point.
A second determining unit 7023, configured to determine the target program number according to the service identifier in the first link descriptor.
Preferably, the second obtaining module 704 is specifically configured to:
and acquiring a service indication table according to the target program mapping table, wherein the service indication table comprises channel information.
And acquiring channel information from the service indication table.
Preferably, the first obtaining module 701 is specifically configured to:
finding a second link descriptor based on a link type in the network information table; wherein the value of the link type of the second link descriptor is a second preset value.
And matching a second satellite transmission system descriptor carrying the frequency point information of the referenced network information table through the second link descriptor.
And searching the referred network information table on the frequency point corresponding to the frequency point information.
In the above embodiment, after the referenced network information table is obtained, the target frequency point and the target program number used for obtaining the target program mapping table may be directly determined based on the referenced network information table, and then the channel information may be obtained according to the obtained target program mapping table. And the program mapping table does not need to be obtained according to the processes of the referenced network information table, the program association table and the program mapping table as in the prior art. Therefore, compared with the prior art, the time for searching the acquisition table is remarkably saved, and the efficiency for searching the acquisition table is greatly improved.
In addition, the embodiment of the invention also provides a terminal, which comprises a memory and a processor;
the memory is used for storing instructions;
the processor is used to execute the instructions in the memory and perform the methods in the embodiments shown in fig. 3-6.
Embodiments of the present invention also provide a computer-readable medium, which stores computer-executable instructions for causing a computer to execute the method in the embodiments shown in fig. 3 to 6.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.