CN108259962B - Program switching method, set top box and storage medium - Google Patents

Program switching method, set top box and storage medium Download PDF

Info

Publication number
CN108259962B
CN108259962B CN201810072756.5A CN201810072756A CN108259962B CN 108259962 B CN108259962 B CN 108259962B CN 201810072756 A CN201810072756 A CN 201810072756A CN 108259962 B CN108259962 B CN 108259962B
Authority
CN
China
Prior art keywords
filter
audio
video data
descrambling
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810072756.5A
Other languages
Chinese (zh)
Other versions
CN108259962A (en
Inventor
杨盛棕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201810072756.5A priority Critical patent/CN108259962B/en
Publication of CN108259962A publication Critical patent/CN108259962A/en
Application granted granted Critical
Publication of CN108259962B publication Critical patent/CN108259962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • H04N21/4383Accessing a communication channel
    • H04N21/4384Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements

Abstract

The invention discloses a program switching method, a set-top box and a storage medium, wherein the method comprises the following steps: when the set top box responds to a switching request input by a user, determining a target program according to the switching request and acquiring audio and video data of the target program; establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter; determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel; and transmitting the audio and video data to a descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program. When the audio and video data filter is created, the backup data filter is created asynchronously, the filter which is created firstly is associated with the descrambling channel, and the association process can be accelerated, so that program descrambling is accelerated, and the program switching speed is increased.

Description

Program switching method, set top box and storage medium
Technical Field
The present invention relates to the field of set top boxes, and in particular, to a program switching method, a set top box, and a storage medium.
Background
Program switching speed has always been the most user-focused function in use of set-top boxes. For scrambled programs, the time for audio/video playback is generally slower than for normal non-scrambled programs, since descrambling is involved. The reason for this is that the descrambling of the program involves a series of procedures for operating the descrambler and receiving the key required for descrambling, and the presence of a smart card also involves machine-card communication; the process of operating the descrambler is divided into several steps, including applying for a descrambling channel, associating the descrambling channel, setting a key, disconnecting the descrambler, and closing the descrambler. In order to descramble and play the audio and video, only the first three steps need to be operated, but the three steps have certain relevance and dependency. If the number of descrambling channels needs to be applied, data received from a code stream can be known only through analysis, and a Packet Identifier (PID) corresponding to the associated descrambling channel needs to have a corresponding digital filter, and the key setting is data needing to be obtained or data needing to be obtained by card interaction. Currently, the speed of program switching is slow due to the association and dependency of the three steps.
Disclosure of Invention
The invention mainly aims to provide a program switching method, a set top box and a storage medium, and aims to solve the technical problem of low program switching speed in the prior art.
In order to achieve the above object, the present invention provides a program switching method, including the steps of:
when the set top box responds to a switching request input by a user, determining a target program according to the switching request, and acquiring audio and video data of the target program;
establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter;
determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel;
and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program.
Preferably, the establishing a descrambling channel and a backup data filter for the audio/video data and the asynchronously establishing an audio/video data filter specifically include:
establishing a descrambling channel for the audio and video data through a conditional receiving thread, and establishing a backup data filter;
and asynchronously establishing an audio and video data filter for the audio and video data through an audio and video receiving thread.
Preferably, the determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel specifically includes:
judging whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter;
when the creation time of the backup data filter is earlier than that of the audio/video data filter, and after the creation of the backup data filter is completed, the backup data filter is used as a filter to be associated, and the filter to be associated is associated with the descrambling channel;
and when the audio and video data filter is established, taking the audio and video data filter as a new filter to be associated, and associating the new filter to be associated with the descrambling channel.
Preferably, after the determining whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter, the program switching method further includes:
and when the creation time of the backup data filter is not earlier than that of the audio and video data filter, and after the creation of the audio and video data filter is completed, the audio and video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
Preferably, after the audio/video data filter is created, the audio/video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel, the program switching method further includes:
acquiring backup data of the target program, establishing a backup descrambling channel for the backup data, and associating the backup data filter with the backup descrambling channel, wherein the backup data comprises program data except the audio and video data;
and transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel so as to play the program content corresponding to the backup data.
Preferably, before the determining of the filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, the program switching method further includes:
judging whether the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter;
when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, executing the step of determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter;
and when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, taking the audio/video data filter as the filter to be associated, and associating the filter to be associated with the descrambling channel.
Preferably, the transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel to realize playing the target program specifically includes:
transmitting the audio and video data to the descrambling channel through the filter to be associated;
extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to a preset key acquired by the conditional receiving thread to acquire descrambling information;
and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program.
Preferably, after the audio/video data is transmitted to the descrambling channel through the filter to be associated and descrambled by the descrambler corresponding to the descrambling channel to realize playing of the target program, the program switching method further includes:
and when the set-top box responds to a new switching request input by a user, closing the descrambling channel, the audio and video data filter and the backup data filter, returning to the step of determining a target program according to the switching request and acquiring the audio and video data of the target program.
In addition, to achieve the above object, the present invention also provides a set top box, including: the program switching program is stored on the memory and can be operated on the processor, and when being executed by the processor, the program switching program realizes the steps of the program switching method.
In addition, to achieve the above object, the present invention further provides a storage medium having a program switching program stored thereon, wherein the program switching program, when executed by a processor, implements the steps of the program switching method as described above.
In the invention, when a set-top box responds to a switching request input by a user, a target program is determined according to the switching request, and audio and video data of the target program are obtained; establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter; determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel; and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program. When the audio and video data filter is created, the backup data filter is created asynchronously, and the filter which is created firstly is associated with the descrambling channel, so that the association process is unrelated to the time sequence of the creation of the audio and video data filter, the association process can be accelerated, the program descrambling is accelerated, and the program switching speed is increased.
Drawings
Fig. 1 is a schematic diagram of a set-top box structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a program switching method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a program switching method according to a second embodiment of the present invention;
fig. 4 is a flowchart illustrating a program switching method according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a set-top box in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the set-top box may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage server separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of the set top box and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a program switching program.
The server calls the program switching program stored in the memory 1005 through the processor 1001, and performs the following operations:
when responding to a switching request input by a user, determining a target program according to the switching request, and acquiring audio and video data of the target program;
establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter;
determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel;
and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
establishing a descrambling channel for the audio and video data through a conditional receiving thread, and establishing a backup data filter;
and asynchronously establishing an audio and video data filter for the audio and video data through an audio and video receiving thread.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
judging whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter;
when the creation time of the backup data filter is earlier than that of the audio/video data filter, and after the creation of the backup data filter is completed, the backup data filter is used as a filter to be associated, and the filter to be associated is associated with the descrambling channel;
and when the audio and video data filter is established, taking the audio and video data filter as a new filter to be associated, and associating the new filter to be associated with the descrambling channel.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
and when the creation time of the backup data filter is not earlier than that of the audio and video data filter, and after the creation of the audio and video data filter is completed, the audio and video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
acquiring backup data of the target program, establishing a backup descrambling channel for the backup data, and associating the backup data filter with the backup descrambling channel, wherein the backup data comprises program data except the audio and video data;
and transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel so as to play the program content corresponding to the backup data.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
judging whether the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter;
when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, executing the step of determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter;
and when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, taking the audio/video data filter as the filter to be associated, and associating the filter to be associated with the descrambling channel.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
transmitting the audio and video data to the descrambling channel through the filter to be associated;
extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to a preset key acquired by the conditional receiving thread to acquire descrambling information;
and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program.
Further, the processor 1001 may call a program switching program stored in the memory 1005, and further perform the following operations:
and when responding to a new switching request input by a user, closing the descrambling channel, the audio/video data filter and the backup data filter, returning to the step of determining a target program according to the switching request and acquiring the audio/video data of the target program.
In the embodiment, when a set top box responds to a switching request input by a user, a target program is determined according to the switching request, and audio and video data of the target program are obtained; establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter; determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel; and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program. When the audio and video data filter is created, the backup data filter is created asynchronously, and the filter which is created firstly is associated with the descrambling channel, so that the association process is unrelated to the time sequence of the creation of the audio and video data filter, the association process can be accelerated, the program descrambling is accelerated, and the program switching speed is increased.
Based on the above hardware structure, an embodiment of the program switching method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a program switching method according to a first embodiment of the present invention.
In a first embodiment, the program switching method includes the steps of:
step S10: when the set top box responds to a switching request input by a user, a target program is determined according to the switching request, and audio and video data of the target program are obtained.
It should be noted that the Set Top Box (STB) is a device for connecting a television Set and an external signal source, the STB can convert a compressed digital signal into television content and display the television content on the television Set, and the content received by the STB includes an image, an audio, multiple audio and the like of a television program. When a user intends to switch a current program, the switching request is input, the target program is a program to be switched corresponding to the switching request input by the user, and in order to play the target program, audio and video data of the target program need to be acquired, wherein the audio and video data are audio signals and video signals of the target program.
In the specific implementation, the set-top box plays the current program, the user inputs a switching request through the set-top box, and when receiving the switching request, the set-top box extracts the target program from the switching request and acquires the audio and video data of the target program from the television signal transmitting end according to the target program.
Step S20: and establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter.
It can be understood that the descrambler is a hardware device for descrambling a scrambled television signal in a set-top box, wherein scrambling refers to that some characteristics of the television signal are changed or controlled at a television signal transmitting end, so that an unauthorized person cannot watch a clear television program by receiving the interfered television signal, and an authorized user is provided with the descrambler in the set-top box, and can descramble the scrambled television line number to watch a clear image and an accompanying sound, and the descrambling channel is a channel for inputting the television signal to a corresponding descrambler for descrambling. In this embodiment, in order to accelerate the association between the descrambling channel and the data filter and to accelerate the speed of program switching, a backup data filter is also created, the backup data filter is created after the descrambling channel is created, and the audio and video data filter is created through an asynchronous thread.
In the specific implementation, after the audio and video data of the target program is acquired, whether the target program is a scrambled program or not is judged, when the target program is a non-scrambled program, the target program is directly played, when the target program is a scrambled program, a descrambling channel is established for the audio and video data of the target program, when the descrambling channel is established, a backup data filter is established in real time, and of course, the audio and video data filter is established asynchronously.
Step S30: and determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel.
It should be noted that the filter to be associated refers to a filter to be associated with a descrambling channel, in the audio/video data filter and the backup data filter, because the audio/video data filter is asynchronously created, the time when the audio/video data filter is created and the time when the backup data filter is created cannot be predicted, according to the two different times, the filter with the prior creation completion time is selected as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
Step S40: and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program.
It can be understood that after the filter to be associated is associated with the descrambling channel, the audio/video data is transmitted to the descrambling channel associated with the filter to be associated through the filter to be associated, and the audio/video data is descrambled through the descrambler corresponding to the descrambling channel associated with the filter to be associated, and when part of the audio/video data is descrambled, the target program corresponding to the audio/video data can be played.
In the embodiment, when a set top box responds to a switching request input by a user, a target program is determined according to the switching request, and audio and video data of the target program are obtained; establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter; determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel; and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program. In the embodiment, when the audio/video data filter is created, the backup data filter is created asynchronously, and the filter created first is associated with the descrambling channel, so that the association process is unrelated to the time sequence created by the audio/video data filter, the association process can be accelerated, the program descrambling is accelerated, and the program switching speed is increased.
Referring to fig. 3, fig. 3 is a flowchart illustrating a program switching method according to a second embodiment of the present invention, and the program switching method according to the second embodiment of the present invention is proposed based on the embodiment shown in fig. 2.
In the second embodiment, the step S20 specifically includes:
step S201: and establishing a descrambling channel for the audio and video data through the conditional receiving thread, and establishing a backup data filter.
Step S202: and asynchronously establishing an audio and video data filter for the audio and video data through an audio and video receiving thread.
It should be noted that, in order to ensure the function of the conditional access system in the set-top box, the priority of the conditional access thread is higher, so that, in general, the conditional access thread is executed faster than the audio/video thread. Therefore, the descrambling channel and the backup data filter are established through the conditional receiving thread, so that the speed of establishing the backup data filter is high, and the association speed can be improved according to the association between the backup data filter and the descrambling channel.
Further, the step S30 specifically includes:
step S301: and judging whether the creation time of the backup data filter is earlier than the creation time of the audio and video data filter.
It should be noted that the filter to be associated is determined according to the creation time of the backup data filter and the audio/video data filter, that is, the filter completed in advance is used as the filter to be associated, and therefore, it is determined whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter.
Step S302: and when the creation time of the backup data filter is earlier than that of the audio and video data filter, and after the creation of the backup data filter is completed, the backup data filter is used as a filter to be associated, and the filter to be associated is associated with the descrambling channel.
Step S303: and when the audio and video data filter is established, taking the audio and video data filter as a new filter to be associated, and associating the new filter to be associated with the descrambling channel.
It can be understood that, when the backup data filter is created first, the backup data filter is used as a filter to be associated with the descrambling channel, so that the timeliness of the association process is ensured, the program descrambling is accelerated, and the program switching is also accelerated. And when the audio and video data filter is established, the audio and video data filter is used as a new filter to be associated so as to descramble the program with higher quality.
Further, after step S301, the program switching method further includes:
step S304: and when the creation time of the backup data filter is not earlier than that of the audio and video data filter, and after the creation of the audio and video data filter is completed, the audio and video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
It should be noted that, when the audio/video data filter is created earlier than the backup data filter, the audio/video data filter is used as a filter to be associated and is associated with the descrambling channel, and since the audio/video data filter is completed earlier, the descrambling speed is increased by accelerating the association process.
Further, after the step S304, the program switching method further includes:
step S305: and acquiring backup data of the target program, establishing a backup descrambling channel for the backup data, and associating the backup data filter with the backup descrambling channel, wherein the backup data comprises program data except the audio and video data.
Step S306: and transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel so as to play the program content corresponding to the backup data.
It can be understood that, when the creation time of the audio/video data filter is earlier than the backup data filter, the audio/video data filter is associated with the descrambling channel, and at this time, the backup data filter may be used to filter the backup data. The backup data includes program data other than the audio/video data, such as multiple audios and subtitles, which is not limited in this embodiment. By acquiring backup data, establishing a backup descrambling channel for the backup data, associating the backup descrambling channel with a backup data filter, transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel, the program content corresponding to the backup data can be played, the sound time of switching and broadcasting multi-audio frequencies is accelerated, the time of displaying graphic and text subtitles is accelerated, and the like.
Further, before the step S30, the program switching method further includes:
and judging whether the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter.
And when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, executing the step of determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter.
And when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, taking the audio/video data filter as the filter to be associated, and associating the filter to be associated with the descrambling channel.
It can be understood that, since the creation of the descrambling channel, the backup data filter and the creation of the audio/video data filter are asynchronous, the creation sequence of the descrambling channel and the audio/video data filter cannot be predicted, when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, the above judgment of the creation time of the audio/video data filter and the backup data filter is performed, when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, the audio/video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
In the embodiment, the backup data filter is established through the conditional access thread, so that the establishment of the backup data filter is faster, the association process of the channel and the filter is accelerated, and the association process is accelerated by judging whether the establishment time of the backup data filter is earlier than the establishment time of the audio/video data filter and associating the filter which is established in advance with the descrambling channel, so that the interference knowing speed and the program switching speed are improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a program switching method according to a third embodiment of the present invention, and the program switching method according to the third embodiment of the present invention is proposed based on the embodiment shown in fig. 2.
In this embodiment, the step S40 specifically includes:
step S401: and transmitting the audio and video data to the descrambling channel through the filter to be associated.
Step S402: and extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to the preset key acquired by the conditional receiving thread to acquire the descrambling information.
It should be noted that, at the sending end of the television signal, after scrambling the television signal, descrambling information is generated, where the descrambling information is information on how to descramble the television signal, and the descrambling information is encrypted by the preset key to ensure that the descrambling information is not decrypted, so that the scrambling and descrambling link is safer. The audio and video data can simultaneously transmit the encrypted descrambling information during transmission, and after the preset key is obtained, the encrypted descrambling information is decrypted through the preset key, so that the descrambling information can be obtained.
Step S403: and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program.
It can be understood that, after the descrambling information is obtained, the descrambler corresponding to the descrambling channel descrambles the audio and video data through the descrambling information, and plays the descrambled program data, so as to play the target program.
Further, after step S40, the program switching method further includes:
step S50: and when the set-top box responds to a new switching request input by a user, closing the descrambling channel, the audio and video data filter and the backup data filter, returning to the step of determining a target program according to the switching request and acquiring the audio and video data of the target program.
It should be noted that when the user intends to switch the program again, a new switching request is input, the set-top box responds to the new switching request, closes the descrambling channel, the audio/video data filter and the backup data filter, so as to avoid the filter leakage, returns to the step of determining the target program according to the switching request and acquiring the audio/video data of the target program, and descrambles and plays the new target program.
Of course, before the descrambling channel and the audio/video data filter and the backup data filter are closed, the association between the descrambling channel and the audio/video data filter or the backup data filter is cut off.
In this embodiment, the audio/video data is transmitted to the descrambling channel through the filter to be associated; extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to a preset key acquired by the conditional receiving thread to acquire descrambling information; and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program. And when the set-top box responds to a new switching request input by a user, closing the descrambling channel, the audio and video data filter and the backup data filter. By avoiding filter leakage, the safety of program switching is ensured, and the new target program is played.
In addition, an embodiment of the present invention further provides a storage medium, where a program switching program is stored on the storage medium, and when executed by a processor, the program switching program implements the following operations:
when responding to a switching request input by a user, determining a target program according to the switching request, and acquiring audio and video data of the target program;
establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter;
determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel;
and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program.
Further, the program switching program when executed by the processor further implements the following operations:
establishing a descrambling channel for the audio and video data through a conditional receiving thread, and establishing a backup data filter;
and asynchronously establishing an audio and video data filter for the audio and video data through an audio and video receiving thread.
Further, the program switching program when executed by the processor further implements the following operations:
judging whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter;
when the creation time of the backup data filter is earlier than that of the audio/video data filter, and after the creation of the backup data filter is completed, the backup data filter is used as a filter to be associated, and the filter to be associated is associated with the descrambling channel;
and when the audio and video data filter is established, taking the audio and video data filter as a new filter to be associated, and associating the new filter to be associated with the descrambling channel.
Further, the program switching program when executed by the processor further implements the following operations:
and when the creation time of the backup data filter is not earlier than that of the audio and video data filter, and after the creation of the audio and video data filter is completed, the audio and video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
Further, the program switching program when executed by the processor further implements the following operations:
acquiring backup data of the target program, establishing a backup descrambling channel for the backup data, and associating the backup data filter with the backup descrambling channel, wherein the backup data comprises program data except the audio and video data;
and transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel so as to play the program content corresponding to the backup data.
Further, the program switching program when executed by the processor further implements the following operations:
judging whether the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter;
when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, executing the step of determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter;
and when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, taking the audio/video data filter as the filter to be associated, and associating the filter to be associated with the descrambling channel.
Further, the program switching program when executed by the processor further implements the following operations:
transmitting the audio and video data to the descrambling channel through the filter to be associated;
extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to a preset key acquired by the conditional receiving thread to acquire descrambling information;
and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program.
Further, the program switching program when executed by the processor further implements the following operations:
and when responding to a new switching request input by a user, closing the descrambling channel, the audio/video data filter and the backup data filter, returning to the step of determining a target program according to the switching request and acquiring the audio/video data of the target program.
In the embodiment, when a set top box responds to a switching request input by a user, a target program is determined according to the switching request, and audio and video data of the target program are obtained; establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter; determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, and associating the filter to be associated with the descrambling channel; and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program. In the embodiment, when the audio/video data filter is created, the backup data filter is created asynchronously, and the filter created first is associated with the descrambling channel, so that the association process is unrelated to the time sequence created by the audio/video data filter, the association process can be accelerated, the program descrambling is accelerated, and the program switching speed is increased.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The use of the words first, second, third, etc. do not denote any order, but rather the words are to be construed as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A program switching method, characterized in that the program switching method comprises the steps of:
when the set top box responds to a switching request input by a user, determining a target program according to the switching request, and acquiring audio and video data of the target program;
establishing a descrambling channel and a backup data filter for the audio and video data, and asynchronously establishing the audio and video data filter;
judging whether the creation time of the backup data filter is earlier than the creation time of the audio/video data filter;
when the creation time of the backup data filter is earlier than that of the audio/video data filter, and after the creation of the backup data filter is completed, the backup data filter is used as a filter to be associated, and the filter to be associated is associated with the descrambling channel;
after the audio and video data filter is established, taking the audio and video data filter as a new filter to be associated, and associating the new filter to be associated with the descrambling channel;
and transmitting the audio and video data to the descrambling channel through the filter to be associated, and descrambling the audio and video data through a descrambler corresponding to the descrambling channel so as to play the target program.
2. The program switching method according to claim 1, wherein the establishing a descrambling channel and a backup data filter for the audio/video data and the asynchronously establishing an audio/video data filter specifically comprises:
establishing a descrambling channel for the audio and video data through a conditional receiving thread, and establishing a backup data filter;
and asynchronously establishing an audio and video data filter for the audio and video data through an audio and video receiving thread.
3. The program switching method according to claim 2, wherein said judging whether the creation time of said backup data filter is earlier than the creation time of said audio-video data filter, said program switching method further comprises:
and when the creation time of the backup data filter is not earlier than that of the audio and video data filter, and after the creation of the audio and video data filter is completed, the audio and video data filter is used as the filter to be associated, and the filter to be associated is associated with the descrambling channel.
4. The program switching method according to claim 3, wherein after the creating of the audio/video data filter is completed, the audio/video data filter is used as the filter to be associated, and after the filter to be associated is associated with the descrambling channel, the program switching method further comprises:
acquiring backup data of the target program, establishing a backup descrambling channel for the backup data, and associating the backup data filter with the backup descrambling channel, wherein the backup data comprises program data except the audio and video data;
and transmitting the backup data to the backup descrambling channel through the backup data filter, and descrambling the backup data through a descrambler corresponding to the backup descrambling channel so as to play the program content corresponding to the backup data.
5. The program switching method according to claim 4, wherein before determining the filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter, the program switching method further comprises:
judging whether the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter;
when the creation time of the descrambling channel is earlier than the creation time of the audio/video data filter, executing the step of determining a filter to be associated according to the creation time of the backup data filter and the creation time of the audio/video data filter;
and when the creation time of the descrambling channel is not earlier than the creation time of the audio/video data filter, after the creation of the descrambling channel is completed, taking the audio/video data filter as the filter to be associated, and associating the filter to be associated with the descrambling channel.
6. The program switching method according to any one of claims 2 to 5, wherein the transmitting the audio/video data to the descrambling channel through the filter to be associated and descrambling the audio/video data through a descrambler corresponding to the descrambling channel to realize playing the target program specifically includes:
transmitting the audio and video data to the descrambling channel through the filter to be associated;
extracting the encrypted descrambling information from the audio and video data by the descrambling channel, and decrypting the encrypted descrambling information according to a preset key acquired by the conditional receiving thread to acquire descrambling information;
and descrambling the audio and video data through a descrambler corresponding to the descrambling channel and the descrambling information so as to play the target program.
7. The program switching method according to any one of claims 1 to 5, wherein after the audio/video data is transmitted to the descrambling channel through the filter to be associated and descrambled by a descrambler corresponding to the descrambling channel to realize playing of the target program, the program switching method further comprises:
and when the set-top box responds to a new switching request input by a user, closing the descrambling channel, the audio and video data filter and the backup data filter, returning to the step of determining a target program according to the switching request and acquiring the audio and video data of the target program.
8. A set top box, comprising: memory, processor and program-switching-up program stored on the memory and executable on the processor, the program-switching-up program, when executed by the processor, implementing the steps of the program switching method as claimed in any one of claims 1 to 7.
9. A storage medium having stored thereon a program-switching-up program, which when executed by a processor implements the steps of the program switching method according to any one of claims 1 to 7.
CN201810072756.5A 2018-01-25 2018-01-25 Program switching method, set top box and storage medium Active CN108259962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810072756.5A CN108259962B (en) 2018-01-25 2018-01-25 Program switching method, set top box and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810072756.5A CN108259962B (en) 2018-01-25 2018-01-25 Program switching method, set top box and storage medium

Publications (2)

Publication Number Publication Date
CN108259962A CN108259962A (en) 2018-07-06
CN108259962B true CN108259962B (en) 2020-06-26

Family

ID=62742603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810072756.5A Active CN108259962B (en) 2018-01-25 2018-01-25 Program switching method, set top box and storage medium

Country Status (1)

Country Link
CN (1) CN108259962B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451337B (en) * 2018-12-26 2020-10-20 深圳创维数字技术有限公司 Descrambling processing method, device, equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366462B2 (en) * 2003-10-24 2008-04-29 Qualcomm Incorporated Method and apparatus for seamlessly switching reception between multimedia streams in a wireless communication system
CN102209267B (en) * 2011-05-13 2014-11-26 深圳Tcl新技术有限公司 Method for acquiring multi-frequency-point EPG (Electronic Program Guide) information
CN103873881B (en) * 2012-12-13 2017-08-22 上海文广科技(集团)有限公司 A kind of radio and television broadcast standby system
CN103297852A (en) * 2013-06-07 2013-09-11 华为终端有限公司 Channel change speed improving method, device and system

Also Published As

Publication number Publication date
CN108259962A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
EP2991361B1 (en) Method, device, and system for improving channel change speed
US7584356B2 (en) Broadcast receiving apparatus
EP3696999A1 (en) Reception device and reception method
US8850511B2 (en) Program replacing method
US10321181B2 (en) Conditional access method and system for intelligent operating system
JPWO2014045893A1 (en) Receiving apparatus and receiving method
CN105657501A (en) Digital television direct broadcasting system and digital television direct broadcasting method
CN108259962B (en) Program switching method, set top box and storage medium
CN105245941B (en) A kind of encrypted television program switching method and device
CN109379607B (en) Channel playing method, device and medium
CN108156513B (en) Program descrambling and recording method, set top box and storage medium
CN107592558B (en) Interaction method and device for CA middleware in set top box
CN101365101B (en) Ciphering channel playing method and set-top box
CN108289240B (en) Method, terminal and computer readable medium for quickly changing channels of digital television
WO2015169155A1 (en) Descrambling method and system for audio and video streams
CN107396153B (en) Channel switching method and device
CN103929680B (en) Set top box encryption program descrambling method and set top box
CN107948693B (en) Method for controlling television program playing, television and computer readable storage medium
CN108777813B (en) Switching method, device, terminal and storage medium of scrambled digital television program
CN1476724A (en) Eneryption system of wired television network
CN108200453B (en) Fusion condition receiving terminal system and method
CN108650549B (en) Digital television data management method and system
Mikityuk et al. Digital rights management and its evolution in the context of IPTV platforms in the web domain
EP2966871B1 (en) Broadcast reception device, operating method of broadcast reception device, and conditional access module
CN117440211A (en) Display device and decryption method of encrypted program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant