CN114449349A - Program recording method, device, equipment and computer readable storage medium - Google Patents

Program recording method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114449349A
CN114449349A CN202011199760.1A CN202011199760A CN114449349A CN 114449349 A CN114449349 A CN 114449349A CN 202011199760 A CN202011199760 A CN 202011199760A CN 114449349 A CN114449349 A CN 114449349A
Authority
CN
China
Prior art keywords
data
program
descrambling
sending
program data
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.)
Granted
Application number
CN202011199760.1A
Other languages
Chinese (zh)
Other versions
CN114449349B (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011199760.1A priority Critical patent/CN114449349B/en
Publication of CN114449349A publication Critical patent/CN114449349A/en
Application granted granted Critical
Publication of CN114449349B publication Critical patent/CN114449349B/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/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream decryption
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network

Abstract

The invention discloses a program recording method, a device, equipment and a computer readable storage medium, wherein the program recording method comprises the following steps: acquiring at least one program data packet to be transmitted in a data buffer area, and sending the program data packet to a descrambler, wherein the data buffer area is used for caching the program data packet; after receiving the program data packet, the descrambler descrambles the program data packet to obtain descrambled data; sending the descrambling data to an encryption processor, and encrypting the descrambling data by the encryption processor to obtain encrypted data; the encrypted data are sent to the data storage area to realize program recording, a plurality of program data packets are obtained from the data buffer area and sent out at the same time, the residual space of the data buffer area is enlarged, the problem that the program data packets transmitted by the continuous receiving sending end overflow due to insufficient memory space is solved, and the recorded program is more complete.

Description

Program recording method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of digital televisions, and in particular, to a program recording method, apparatus, device, and computer readable storage medium.
Background
In the latest digital television standards, the audio and video programs of the digital television are generally recorded in a TLV format, and with the higher Protection level of the audio and video data, an ECP (Enhanced Content Protection) mechanism is generally used to protect the audio and video data output from the television and entering a hard disk, so as to complete the recording of the audio and video data. In the ECP mechanism, a special descrambling module descrambles scrambled audio/Video data, encrypts the descrambled audio/Video data through an SVP (Secure Video Path), and then directly stores the encrypted audio/Video data in a hard disk.
The descrambling module is single-process, can only descramble a small amount of audio/video data each time, and for the processing of a large data amount, such as the audio/video data of a 4K ultra-high definition program, because the amount of the audio/video data processed by the descrambling module each time is small, the audio/video data to be descrambled stored in the data buffer area can overflow due to untimely processing, so that the audio/video data is lost.
Disclosure of Invention
The invention mainly aims to provide a program recording method, a device, equipment and a computer readable storage medium, aiming at solving the problem that program data are lost in the recording process. The program recording method comprises the following steps:
the method comprises the steps of obtaining at least one program data packet to be transmitted in a data buffer area, and sending the obtained program data packet to a descrambler at the same time, wherein the data buffer area is used for caching the program data packet;
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambling data;
sending the descrambling data to an encryption processor, and encrypting the descrambling data by the encryption processor to obtain encrypted data;
and sending the encrypted data to a data storage area to record programs.
Optionally, the step of obtaining at least one program data packet to be transmitted in the data buffer and sending the program data packet to the descrambler includes:
determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer;
and packaging the program data packets with the number, and sending the packaged program data packets to a descrambler.
Optionally, the step of determining the number of program data packets to be transmitted according to the size of the remaining space in the data buffer includes:
if the size of the residual space in the data buffer area is smaller than a preset threshold value, setting the number of program data packets to be transmitted to meet the condition that the residual space is larger than or equal to the preset threshold value;
and if the residual space is larger than or equal to the preset threshold value, determining the number of the program data packets to be transmitted as a rated number.
Optionally, before the step of obtaining the number of program data packets to be transmitted and sending the obtained number of program data packets to a descrambler, the method includes:
the program data packets received by the data buffer area are numbered according to the receiving time;
before the step of packaging the number of program data packets and sending the packaged program data packets to a descrambler, the method comprises the following steps:
and selecting the program data packets with the number from the data buffer area according to the sequence of the sequence numbers from small to large.
Optionally, the descrambling data comprises audio descrambling data and video descrambling data,
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data comprises the following steps:
and after the descrambler receives the program data packets, sequentially descrambling the video data and the audio data in the packaged program data packets according to the sequence of the sequence numbers from small to large to obtain the video descrambling data and the audio descrambling data.
Optionally, the encrypted data includes video encrypted data and audio encrypted data,
the step of sending the descrambling data to an encryption processor, wherein the encryption processor encrypts the descrambling data to obtain the encrypted data comprises the following steps:
and sending the video descrambling data and the audio descrambling data to an encryption processor, wherein the encryption processor encrypts the video descrambling data and the audio descrambling data respectively to obtain video encryption data and audio encryption data.
Optionally, after the step of sending the encrypted data to a data storage area to record a program, the method further includes:
extracting the encrypted data from the data storage area, and decrypting the encrypted data to obtain decrypted data;
and demultiplexing the decrypted data to obtain audio and video data for playing.
Further, to achieve the above object, the present invention provides a program recording device including:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer;
the sending module is used for sending the acquired program data packets to a descrambler at the same time;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambling data;
the sending module is also used for sending the descrambling data to an encryption processor;
the encryption processor module is used for encrypting the descrambling data to obtain encrypted data;
the sending module is further used for sending the encrypted data to a data storage area to realize program recording.
In addition, in order to achieve the above object, the present invention further provides a program recording apparatus, where the program recording apparatus includes a memory, a processor, and a program recording program stored in the memory and executable on the processor, and the program recording program implements the steps of the program recording method as described above when executed by the processor.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, in which the program recording program is stored, and the program recording program, when executed by a processor, implements the steps of the program recording method as described above.
Drawings
FIG. 1 is a diagram illustrating a hardware configuration of an apparatus for implementing various embodiments of the invention;
fig. 2 is a flowchart illustrating a program recording method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of a data buffer storing program data packets in accordance with the present invention;
FIG. 4 is a schematic diagram of a program data packet according to the present invention;
fig. 5 is a diagram of the program data packet processing architecture of the present invention.
The implementation, functional features and advantages of the present invention will be described 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.
The invention provides a program recording device, and referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a program recording device. The program recording device of the embodiment of the invention can be a Personal Computer (PC), a portable Computer, a server and other devices.
As shown in fig. 1, the program recording apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include 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 device separate from the processor 1001.
Optionally, the program recording device may further include RF (Radio Frequency) circuits, sensors, WiFi modules, and the like.
Those skilled in the art will appreciate that the program recording device configuration shown in fig. 1 does not constitute a limitation of the program recording device 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 computer storage readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a program recording program. The operating system is a program for managing and controlling hardware and software resources of the program recording device, and supports the program-saving process and the operation of other software or programs.
The program recording method apparatus shown in fig. 1 may be used to solve the problem that program data is lost during the recording process, and the user interface 1003 is mainly used to detect or output various information, such as inputting program data and outputting audio/video data; the network interface 1004 is mainly used for interacting with a background server and communicating; the processor 1001 may be configured to call a program recording program stored in the memory 1005 and perform the following operations:
the method comprises the steps of obtaining at least one program data packet to be transmitted in a data buffer area, and sending the obtained program data packet to a descrambler at the same time, wherein the data buffer area is used for caching the program data packet;
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambling data;
sending the descrambling data to an encryption processor, and encrypting the descrambling data by the encryption processor to obtain encrypted data;
and sending the encrypted data to a data storage area to record programs.
Further, the step of obtaining at least one program data packet to be transmitted in the data buffer and sending the obtained program data packet to the descrambler at the same time includes:
determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer area;
and packaging the program data packets with the number, and sending the packaged program data packets to a descrambler.
Further, the step of determining the number of program data packets to be transmitted according to the size of the remaining space in the data buffer includes:
if the size of the residual space in the data buffer area is smaller than a preset threshold value, setting the number of program data packets to be transmitted to meet the condition that the residual space is larger than or equal to the preset threshold value;
and if the residual space is greater than or equal to the preset threshold value, determining the number of the program data packets to be transmitted as a rated number.
Further, before the step of obtaining the number of program data packets to be transmitted and sending the number of program data packets to the descrambler, the processor 1001 may be configured to call a program recording program stored in the memory 1005, and perform the following operations:
the program data packets received by the data buffer area are numbered according to the receiving time;
before the step of packaging the number of program data packets and sending the packaged program data packets to the descrambler, the processor 1001 may be configured to call a program recording program stored in the memory 1005, and perform the following operations:
and selecting the number of the program data packets in the data buffer area according to the sequence of the sequence numbers from small to large.
Further, the descrambling data comprises audio descrambling data and video descrambling data,
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data comprises the following steps:
and after the descrambler receives the program data packets, sequentially descrambling the video data and the audio data in the packaged program data packets according to the sequence of the sequence numbers from small to large to obtain the video descrambling data and the audio descrambling data.
Further, the encrypted data includes video encrypted data and audio encrypted data,
the step of sending the descrambling data to an encryption processor, wherein the encryption processor encrypts the descrambling data to obtain the encrypted data comprises the following steps:
and sending the video descrambling data and the audio descrambling data to an encryption processor, wherein the encryption processor encrypts the video descrambling data and the audio descrambling data respectively to obtain video encryption data and audio encryption data.
Further, after the step of sending the encrypted data to the data storage area to record the program, the processor 1001 may be configured to call a program recording program stored in the memory 1005, and perform the following operations:
extracting the encrypted data from the data storage area, and decrypting the encrypted data to obtain decrypted data;
and demultiplexing the decrypted data to obtain audio and video data for playing.
The invention can simultaneously send out a plurality of program data packets cached in the data buffer area by acquiring at least one program data packet to be transmitted in the data buffer area and simultaneously sending the acquired program data packets to the descrambler, thereby expanding the residual space of the data buffer area and preventing the condition of overflow caused by insufficient memory space when the program data packets transmitted by the transmitting end are continuously received. When the descrambler receives the program data packet, the program data packet is descrambled to obtain descrambled data, digital signals in the program data packet are restored to be in standard characteristics, the descrambled data are sent to the encryption processor, the descrambled data are encrypted to obtain encrypted data, and finally the encrypted data are sent to the data storage area to finish program recording.
The specific implementation of the mobile terminal of the present invention is substantially the same as the following embodiments of the program recording method, and will not be described herein again.
Based on the above structure, various embodiments of the program recording method of the present invention are provided.
The invention provides a program recording method.
Referring to fig. 2, fig. 2 is a schematic flowchart of a program recording method according to a first embodiment of the present invention.
In the present embodiment, an embodiment of a program recording method is provided, and it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that here.
In this embodiment, the program recording method includes:
step S10, obtaining at least one program data packet to be transmitted in a data buffer area, and sending the obtained program data packet to a descrambler at the same time, wherein the data buffer area is used for caching the program data packet;
the audio data and video data stored in the program data packets in the form of digital signals are scrambled prior to descrambling the program data packets. Scrambling is the changing of the characteristics of the digital signals in the program data packets to prevent unauthorized persons from receiving clear video and audio; descrambling is the restoration of the scrambled program data packets to the standard digital signal characteristics. After being scrambled at a sending end, a program data packet does not directly enter a descrambler of a receiving end, but enters an area for temporarily storing the program data packet, namely a data buffer area, and is forwarded to the descrambler of the receiving end through the data buffer area, the sending end can be a tuner, a demod, a demux (demultiplexer) and the like, and the receiving end is an encryption descrambling system.
The encryption and descrambling system is single-process, can only process one program data packet at a time, when the data volume of the processed program data packet is large, for example, the time consumed by the encryption and descrambling system to process a single program data packet is too long, the data buffer does not send out the stored program data packet and is always in the state of receiving the program data packet sent by the sending end, which easily causes the available part of the memory space in the data buffer to be gradually reduced until the data buffer is fully occupied, if the data buffer continues to receive the program data packet under the condition that the memory space is fully occupied, the program data packet firstly stored in the data buffer overflows from the memory space, which causes the program data packet to be lost, therefore, in order to avoid program data packet loss, it is necessary to ensure that the data buffer has enough memory space to store the program data packets.
In order to avoid the memory space of the data buffer area from being full, at least one program data packet to be transmitted is obtained from the data buffer area, and when the residual space of the data buffer area is large, only one or two program data packets to be transmitted can be obtained; when the remaining space of the data buffer area is small, more program data packets to be transmitted can be obtained, the remaining space of the data buffer area is enlarged, and the obtained program data packets are simultaneously sent to a descrambler in the encryption descrambling system, so that the situation that the data buffer area loses packets due to the fact that more program data packets are received and cannot be sent out in time can be avoided.
Further, the step S10 further includes:
step a, determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer area;
the number of the program data packages to be transmitted is more than or equal to 1, and the specific numerical value is determined by the size of the residual space in the data buffer, so that the size of the residual space in the data buffer is monitored in real time.
Further, step a includes:
a1, if the size of the residual space in the data buffer is smaller than a preset threshold, setting the number of program data packets to be transmitted to satisfy that the residual space is larger than or equal to the preset threshold;
the size of the preset threshold is usually set according to the size of the storage space of the actual data buffer, and generally, if the memory space of the data buffer is 8M, the size of the preset threshold may be set to 6M, 6.5M, 7M, and the like. When the size of the residual space in the data buffer is smaller than the preset threshold, the number corresponding to the program data packets occupying the storage space exceeding the preset threshold is determined as the number of the program data packets to be transmitted by taking the size of the residual space equal to the preset threshold as a standard, so that the risk of overflow of the program data packets caused by overlarge occupied space of the data buffer is avoided.
Step a2, if the remaining space is greater than or equal to the preset threshold, determining the number of the program data packets to be transmitted as a rated number.
When the residual space in the data buffer area is larger than or equal to the preset threshold value, only one or two program data packets with less number need to be acquired and sent to the descrambler, and because enough residual space exists in the data buffer area to store the received program data packets, the problem of packet loss of the program data packets due to insufficient storage space does not exist.
And b, packaging the program data packets with the number, and sending the packaged program data packets to a descrambler.
And after the number of the program data packets to be transmitted is determined, packaging the program data packets with the number, and sending the packaged program data packets to a descrambler. The purpose of the packetization is to quickly expand the remaining space in the data buffer in order to send this number of program packets together to the descrambler. It should be noted that, if the number is 1, only one program data packet to be transmitted needs to be sent to the descrambler without being packaged. The step of packaging the program data packets is to pack a plurality of program data packets together, and the length of the packaged program data packets is equal to the sum of the lengths of the packaged program data packets.
Further, before step S10, the method further includes:
step c, the program data packets received by the data buffer area are numbered according to the receiving time;
this embodiment provides a method for selecting program data packets for packing, first, when a data buffer receives a program data packet sent by a sending end, a sequence number is marked for the program data packet, for example, when the data buffer receives a first program data packet, a sequence number 1 is marked for the program data packet, that is, a program data packet 1, when the data buffer receives a second program data packet, a sequence number 2 is marked for the program data packet, that is, a program data packet 2, and so on, refer to fig. 3, and fig. 3 is a scene diagram of the data buffer storing the program data packet.
Step b also comprises the following steps:
and d, selecting the program data packets in the data buffer area according to the sequence of the sequence numbers from small to large.
When the size of the remaining space in the data buffer is smaller than the preset threshold, in order to expand the remaining space until the size of the remaining space is larger than or equal to the preset threshold, a certain number of program data packet packets need to be selected from the occupied space, and the certain number of program data packets are sent to the descrambler together. When selecting program data packets for packaging, the program data packets for packaging are generally selected according to the sequence of sequence numbers from small to large, referring to fig. 4, the size of the memory space of the data buffer area is 8M in total, the preset threshold value is 2M, the size of the residual space in the data buffer area is smaller than 2M, in order to expand the residual space to 2M, the program data packets to be transmitted are determined to be 3, namely, the program data packet 1, the program data packet 2 and the program data packet 3, and the program data packet 1, the program data packet 2 and the program data packet 3 are packaged and sent to a descrambler.
Step S20, when the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data;
the descrambler descrambles the program data packets after receiving the program data packets sent by the data buffer, where it should be noted that, when the descrambler receives a plurality of packaged program data packets, each data packet is descrambled sequentially, the descrambling order may be an order from small to large in sequence numbers in the program data packets, and other descrambling orders also belong to the protection scope of this embodiment.
Further, the descrambling data comprises audio descrambling data and video descrambling data,
step S20 further includes:
and e, after the descrambler receives the program data packets, sequentially descrambling the video data and the audio data in the packaged program data packets according to the sequence of the sequence numbers from small to large to obtain the video descrambling data and the audio descrambling data.
After receiving the program data packet, the descrambler separates the video data and the audio data from the program data packet, and then descrambles the audio data and the video data respectively to obtain the descrambled video data and audio data, namely video descrambling data and audio descrambling data. Specifically, the program data packets are descrambled sequentially from small to large according to the sequence numbers on the program data packets, for example, the grouped program data packets include a program data packet 1, a program data packet 2 and a program data packet 3, so that the program data packet 1 is descrambled first, then the program data packet 2 is descrambled, and finally the program data packet 3 is descrambled.
Step S30, sending the descrambling data to an encryption processor, wherein the encryption processor encrypts the descrambling data to obtain encrypted data;
and sending the video descrambling data and the audio descrambling data to an encryption processor, and encrypting the received video descrambling data and audio descrambling data by the encryption processor to obtain the encrypted data so as to prevent an unauthorized user side from playing the audio and video corresponding to the program data packet. The present embodiment uses Encryption algorithms such as DES (Data Encryption Standard) Algorithm and IDEA (International Data Encryption Algorithm).
And step S40, sending the encrypted data to a data storage area to record programs.
And finally, sending the encrypted data to a data storage area to finish program recording. Referring to fig. 5, fig. 5 is a diagram of a program packet processing architecture.
In the embodiment, at least one program data packet to be transmitted is acquired from the data buffer, and the program data packet is sent to the descrambler, so that a plurality of program data packets acquired from the data buffer can be simultaneously sent out, the residual space of the data buffer is enlarged, and the condition that the program data packets continuously received and transmitted by the sending end overflow due to insufficient memory space is prevented. When the descrambler receives the program data packet, the program data packet is descrambled to obtain descrambled data, digital signals in the program data packet are restored to be in standard characteristics, the descrambled data are sent to the encryption processor, the descrambled data are encrypted to obtain encrypted data, and finally the encrypted data are sent to the data storage area to finish program recording.
Further, a second embodiment of the program recording method of the present invention is provided. The second embodiment of the program recording method differs from the first embodiment of the program recording method in that the descrambling data comprises audio descrambling data and video descrambling data,
step S30 further includes:
and f, sending the video descrambling data and the audio descrambling data to an encryption processor, wherein the encryption processor encrypts the video descrambling data and the audio descrambling data respectively to obtain video encryption data and audio encryption data.
The descrambler separates video data and audio data from a program data packet, descrambles the video data and the audio data respectively to obtain video descrambled data and audio descrambled data, and the encryption processor encrypts the received video descrambled data and the audio descrambled data respectively to obtain video encrypted data and audio encrypted data, so that the program recording safety is improved, and an unauthorized user side is prevented from acquiring the video descrambled data and the audio descrambled data.
Further, a third embodiment of the program recording method of the present invention is provided. The third embodiment of the program recording method differs from the first and second embodiments of the program recording method in that, after step S30, the method further includes:
step g, extracting the encrypted data from the data storage area, and decrypting the encrypted data to obtain decrypted data;
and h, demultiplexing the decrypted data to obtain audio and video data for playing.
Before the authorized user side plays the audio and video data corresponding to the encrypted data in the data storage area, the encrypted data is decrypted, it needs to be stated that the video encrypted data and the video decrypted data are decrypted respectively to obtain decrypted data, then the decrypted data is demultiplexed, and the audio and video data in the decrypted data are extracted for playing of the authorized user side.
When a program is recorded, the program data packet is not lost, and complete audio and video data is obtained by demultiplexing, so that an authorized user terminal can play the complete program.
In addition, an embodiment of the present invention further provides a program recording method and apparatus, where the program recording apparatus includes:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer;
the sending module is used for sending the acquired program data packets to a descrambler at the same time;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambling data;
the sending module is also used for sending the descrambling data to an encryption processor;
the encryption processor module is used for encrypting the descrambling data to obtain encrypted data;
the sending module is further used for sending the encrypted data to a data storage area to realize program recording.
Further, the obtaining module further comprises:
the determining unit is used for determining the number of the program data packets to be transmitted according to the size of the residual space in the data buffer area;
the sending module further comprises:
a packing unit for packing the number of the program data packets,
the sending module is further configured to send the packaged program data packet to a descrambler.
Further, the determining unit further includes:
a setting subunit, configured to set, if the size of the remaining space in the data buffer is smaller than the preset threshold, that the number of program data packets to be transmitted satisfies that the remaining space is greater than or equal to the preset threshold
And the determining subunit is configured to determine that the number of the program data packets to be transmitted is a rated number if the remaining space is greater than or equal to the preset threshold.
Further, the program recording device further includes:
the marking unit is used for marking the program data packets received by the data buffer area with serial numbers according to the receiving time;
the group packing unit further includes:
and the selecting subunit is used for selecting the program data packets in the data buffer area according to the sequence of the sequence numbers from small to large.
And the descrambler module is further used for descrambling the video data and the audio data in the packaged program data packets in sequence from small to large according to the sequence numbers after the descrambler receives the program data packets to obtain the video descrambling data and the audio descrambling data.
Further, the sending module is further configured to send the video descrambling data and the audio descrambling data to an encryption processor;
the encryption processor module is further configured to encrypt the video descrambling data and the audio descrambling data to obtain video encryption data and audio encryption data.
Further, the program recording apparatus further includes:
an extraction module for extracting the encrypted data from the data storage area;
the decryption module is used for decrypting the encrypted data to obtain decrypted data;
and the demultiplexing module is used for demultiplexing the decrypted data to obtain audio and video data for playing.
The embodiment of the program recording method and device of the present invention is basically the same as that of the above program recording method, and is not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a program recording program is stored on the computer-readable storage medium, and when the program recording program is executed by a processor, the program recording program implements the steps of the program recording method described above.
Note that the computer-readable storage medium may be provided in a program recording apparatus.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above embodiments of program recording, and is not described herein again.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus 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.
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 (10)

1. A program recording method, characterized in that the program recording method comprises the steps of:
the method comprises the steps of obtaining at least one program data packet to be transmitted in a data buffer area, and sending the obtained program data packet to a descrambler at the same time, wherein the data buffer area is used for caching the program data packet;
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambling data;
sending the descrambling data to an encryption processor, and encrypting the descrambling data by the encryption processor to obtain encrypted data;
and sending the encrypted data to a data storage area to record programs.
2. The program recording method of claim 1, wherein the step of obtaining at least one program data packet to be transmitted in a data buffer and sending the obtained program data packets to a descrambler simultaneously comprises:
determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer;
and packaging the program data packets with the number, and sending the packaged program data packets to a descrambler.
3. The program recording method as claimed in claim 2, wherein the step of determining the number of program data packets to be transmitted according to the size of the remaining space in the data buffer comprises:
if the size of the residual space in the data buffer area is smaller than a preset threshold value, setting the number of program data packets to be transmitted to meet the condition that the residual space is larger than or equal to the preset threshold value;
and if the residual space is larger than or equal to the preset threshold value, determining the number of the program data packets to be transmitted as a rated number.
4. The program recording method of claim 2, wherein the step of obtaining the number of program data packets to be transmitted and sending the number of program data packets to a descrambler is preceded by the step of:
the program data packets received by the data buffer area are numbered according to the receiving time;
before the step of packaging the number of program data packets and sending the packaged program data packets to a descrambler, the method comprises the following steps:
and selecting the program data packets with the number from the data buffer area according to the sequence of the sequence numbers from small to large.
5. The program recording method of claim 4, wherein the descrambling data comprises audio descrambling data and video descrambling data,
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data comprises the following steps:
and after the descrambler receives the program data packets, sequentially descrambling the video data and the audio data in the packaged program data packets according to the sequence of the sequence numbers from small to large to obtain the video descrambling data and the audio descrambling data.
6. The program recording method of claim 1, wherein the encrypted data includes video encrypted data and audio encrypted data,
the step of sending the descrambling data to an encryption processor, wherein the encryption processor encrypts the descrambling data to obtain the encrypted data comprises the following steps:
and sending the video descrambling data and the audio descrambling data to an encryption processor, wherein the encryption processor encrypts the video descrambling data and the audio descrambling data respectively to obtain video encryption data and audio encryption data.
7. The program recording method of claim 1, wherein after the step of sending the encrypted data to a data storage area to enable recording of the program, further comprising:
extracting the encrypted data from the data storage area, and decrypting the encrypted data to obtain decrypted data;
and demultiplexing the decrypted data to obtain audio and video data for playing.
8. A program storage device, comprising:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer;
the sending module is used for sending the acquired program data packets to a descrambler at the same time;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambling data;
the sending module is also used for sending the descrambling data to an encryption processor;
the encryption processor module is used for encrypting the descrambling data to obtain encrypted data;
the sending module is further used for sending the encrypted data to a data storage area to realize program recording.
9. A program recording device, characterized in that the program recording device comprises a memory, a processor and a program recording program stored on the memory and executable on the processor, the program recording program, when executed by the processor, implementing the steps of the program recording method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having a program recording program stored thereon, which, when executed by a processor, implements the steps of the program recording method according to any one of claims 1 to 7.
CN202011199760.1A 2020-10-30 2020-10-30 Program recording method, device, equipment and computer readable storage medium Active CN114449349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011199760.1A CN114449349B (en) 2020-10-30 2020-10-30 Program recording method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011199760.1A CN114449349B (en) 2020-10-30 2020-10-30 Program recording method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114449349A true CN114449349A (en) 2022-05-06
CN114449349B CN114449349B (en) 2023-07-25

Family

ID=81358393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011199760.1A Active CN114449349B (en) 2020-10-30 2020-10-30 Program recording method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114449349B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI941315A0 (en) * 1994-03-21 1994-03-21 Nokia Technology Gmbh A method for encrypting a television broadcast transmitted in digital form
CA2256136A1 (en) * 1997-12-15 1999-06-15 Matsushita Electric Industrial Co., Ltd. Optical disc, recording apparatus, a computer-readable storage medium storing a recording program, and recording method
US20020057893A1 (en) * 1998-08-11 2002-05-16 Anthony Wood Digital recording and playback
WO2004028156A1 (en) * 2002-09-19 2004-04-01 Thomson Licensing S.A. Hybrid video on demand using mpeg 2 transport
CN101197987A (en) * 2006-12-08 2008-06-11 上海全景数字技术有限公司 Digital television program recording and playback method and system
WO2008083868A1 (en) * 2007-01-12 2008-07-17 Nokia Siemens Networks Gmbh & Co. Kg Apparatus and method for processing audio and/or video data
CN201467344U (en) * 2009-04-13 2010-05-12 北京视博数字电视科技有限公司 Programme recording device and audience rating control device
EP2373019A1 (en) * 2010-03-29 2011-10-05 Nagravision S.A. Secure descrambling of an audio / video data stream
CN103596050A (en) * 2013-02-08 2014-02-19 山东泰信电子股份有限公司 Digital television signal reception system and reception method thereof
CN104079984A (en) * 2014-07-11 2014-10-01 四川金网通电子科技有限公司 Method for controlling set top box PVR recording function through mobile phone short message
CN104581356A (en) * 2014-12-24 2015-04-29 深圳市九洲电器有限公司 Program recording method and system
CN106454488A (en) * 2016-10-09 2017-02-22 深圳创维数字技术有限公司 Set-top box program recording and playback method and system
WO2017092434A1 (en) * 2015-12-03 2017-06-08 乐视控股(北京)有限公司 Method and device for audio/video real-time transmission, method and device for audio/video real-time playback
WO2017092700A1 (en) * 2015-12-03 2017-06-08 国家新闻出版广电总局广播科学研究院 Condition receiving method and system for intelligent operating system
CN107333168A (en) * 2017-06-13 2017-11-07 青岛海信电器股份有限公司 The memory space for calculating recording disk realizes the method and device that displaying predetermined programme is recorded
WO2017198153A1 (en) * 2016-05-16 2017-11-23 中兴通讯股份有限公司 Program playing management method, playing method and apparatus, and playing terminal
CN108156513A (en) * 2017-12-26 2018-06-12 深圳创维数字技术有限公司 Program descrambling method for recording, set-top box and storage medium
CN109474642A (en) * 2019-01-08 2019-03-15 郑州云海信息技术有限公司 Based on Ethernet udp protocol data transmission method, apparatus, equipment and medium
CN110401870A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Method of adjustment, terminal and the computer readable storage medium of record screen frame per second
CN111147879A (en) * 2019-12-30 2020-05-12 深圳Tcl数字技术有限公司 Live program caching method, system, equipment and computer storage medium
CN111654511A (en) * 2020-07-13 2020-09-11 中国银行股份有限公司 Chained data encryption method, chained data decryption method and corresponding systems

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI941315A0 (en) * 1994-03-21 1994-03-21 Nokia Technology Gmbh A method for encrypting a television broadcast transmitted in digital form
CA2256136A1 (en) * 1997-12-15 1999-06-15 Matsushita Electric Industrial Co., Ltd. Optical disc, recording apparatus, a computer-readable storage medium storing a recording program, and recording method
US20020057893A1 (en) * 1998-08-11 2002-05-16 Anthony Wood Digital recording and playback
WO2004028156A1 (en) * 2002-09-19 2004-04-01 Thomson Licensing S.A. Hybrid video on demand using mpeg 2 transport
CN101197987A (en) * 2006-12-08 2008-06-11 上海全景数字技术有限公司 Digital television program recording and playback method and system
WO2008083868A1 (en) * 2007-01-12 2008-07-17 Nokia Siemens Networks Gmbh & Co. Kg Apparatus and method for processing audio and/or video data
CN201467344U (en) * 2009-04-13 2010-05-12 北京视博数字电视科技有限公司 Programme recording device and audience rating control device
EP2373019A1 (en) * 2010-03-29 2011-10-05 Nagravision S.A. Secure descrambling of an audio / video data stream
CN103596050A (en) * 2013-02-08 2014-02-19 山东泰信电子股份有限公司 Digital television signal reception system and reception method thereof
CN104079984A (en) * 2014-07-11 2014-10-01 四川金网通电子科技有限公司 Method for controlling set top box PVR recording function through mobile phone short message
CN104581356A (en) * 2014-12-24 2015-04-29 深圳市九洲电器有限公司 Program recording method and system
WO2017092434A1 (en) * 2015-12-03 2017-06-08 乐视控股(北京)有限公司 Method and device for audio/video real-time transmission, method and device for audio/video real-time playback
WO2017092700A1 (en) * 2015-12-03 2017-06-08 国家新闻出版广电总局广播科学研究院 Condition receiving method and system for intelligent operating system
WO2017198153A1 (en) * 2016-05-16 2017-11-23 中兴通讯股份有限公司 Program playing management method, playing method and apparatus, and playing terminal
CN106454488A (en) * 2016-10-09 2017-02-22 深圳创维数字技术有限公司 Set-top box program recording and playback method and system
WO2018064955A1 (en) * 2016-10-09 2018-04-12 深圳创维数字技术有限公司 Method and system for recording and playing back program
CN107333168A (en) * 2017-06-13 2017-11-07 青岛海信电器股份有限公司 The memory space for calculating recording disk realizes the method and device that displaying predetermined programme is recorded
CN108156513A (en) * 2017-12-26 2018-06-12 深圳创维数字技术有限公司 Program descrambling method for recording, set-top box and storage medium
CN109474642A (en) * 2019-01-08 2019-03-15 郑州云海信息技术有限公司 Based on Ethernet udp protocol data transmission method, apparatus, equipment and medium
CN110401870A (en) * 2019-07-30 2019-11-01 努比亚技术有限公司 Method of adjustment, terminal and the computer readable storage medium of record screen frame per second
CN111147879A (en) * 2019-12-30 2020-05-12 深圳Tcl数字技术有限公司 Live program caching method, system, equipment and computer storage medium
CN111654511A (en) * 2020-07-13 2020-09-11 中国银行股份有限公司 Chained data encryption method, chained data decryption method and corresponding systems

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张德树;: "数字电视智能卡条件接收系统加解扰与加解密", 滁州职业技术学院学报 *

Also Published As

Publication number Publication date
CN114449349B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
US9479825B2 (en) Terminal based on conditional access technology
US8077867B2 (en) Confidential information processing apparatus, confidential information processing device, and confidential information processing method
CN105409234A (en) Systems and methods for performing transport I/O
EP1587321A2 (en) Common scrambling
KR101705010B1 (en) Processing recordable content in a stream
TWI595778B (en) Systems and methods for assembling and extracting command and control data
WO2012173680A2 (en) Tv receiver device with multiple decryption modes
CN110083550A (en) Method and apparatus for storage content
CN107787493A (en) Method and apparatus for enabling content protecting by broadcast channel
KR102281972B1 (en) Method for protecting decryption keys in a decoder and decoder for implementing said method
CN102984557A (en) DRM-based streaming media playing system
JP4423517B2 (en) Data processing apparatus, data processing method, and recording medium
CN114449349B (en) Program recording method, device, equipment and computer readable storage medium
KR101280740B1 (en) Method to secure access to audio/video content in a decoding unit
US20080037782A1 (en) Reduction of channel change time for digital media devices using key management and virtual smart cards
CN108259962B (en) Program switching method, set top box and storage medium
US20170270308A1 (en) Security device and control method
CN112073660B (en) TLV data generation method, TLV data reading method, intelligent device and storage medium
CN111224772B (en) Data processing method, device and computer readable storage medium
US20050008149A1 (en) Programmable data processing apparatus for CCMP hardware implementation
US20060215838A1 (en) Encryption method and apparatus in a conditional access system for digital broadcasting
CN117194045A (en) Data encryption method, device, processing system, equipment, medium and product
JP2006011789A (en) Personal information using reception system and reception apparatus
JP2002135743A (en) Security method of network system for video delivery
JP2007241678A (en) Information transmission system and information terminal equipment applied to it

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