CN114449349B - 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
CN114449349B
CN114449349B CN202011199760.1A CN202011199760A CN114449349B CN 114449349 B CN114449349 B CN 114449349B CN 202011199760 A CN202011199760 A CN 202011199760A CN 114449349 B CN114449349 B CN 114449349B
Authority
CN
China
Prior art keywords
data
program
descrambling
program data
audio
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
CN202011199760.1A
Other languages
Chinese (zh)
Other versions
CN114449349A (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

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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream 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 or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

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: at least one program data packet to be transmitted is obtained from a data buffer area, the program data packet is sent to a descrambler, and 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; the descrambling data is sent to an encryption processor, and the encryption processor encrypts the descrambling data to obtain encrypted data; the encrypted data is sent to the data storage area to record the program, a plurality of program data packets are obtained from the data buffer area and are sent out simultaneously, the residual space of the data buffer area is enlarged, the problem that the program data packets transmitted by the continuous receiving and 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 standard, the audio and video program recording of the digital television is generally in a TLV format, and with the increasing level of protection of audio and video data, an ECP (Enhanced Content Protection) mechanism is generally adopted to protect the audio and video data output from the television and entering a hard disk, so that the recording of the audio and video data is completed. A special descrambling module is arranged in the ECP mechanism to descramble the scrambled audio and video data, and the descrambled audio and video data is encrypted through SVP (Secure Video Path ) and then directly stored in a hard disk.
The descrambling module is single-process, and can only process the descrambling of a smaller amount of audio and video data at a time, and for processing a larger amount of data, such as the audio and video data of a 4K ultra-high definition program, the audio and video data to be descrambled stored in the data buffer area can overflow due to untimely processing due to the small amount of the audio and video data processed by the descrambling module at a time, so that the audio and 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, which aim to solve the problem that program data are lost in the recording process. The program recording method comprises the following steps:
acquiring at least one program data packet to be transmitted from a data buffer area, and simultaneously sending the acquired program data packet to a descrambler, 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 descrambled data;
the descrambling data is sent to an encryption processor, and the encryption processor encrypts the descrambling data to obtain encrypted data;
and sending the encrypted data to a data storage area to realize program recording.
Optionally, the step of acquiring at least one program data packet to be transmitted in the data buffer area 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 grouping the program data packets of the number, and sending the grouped 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 requirement 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 the rated number.
Optionally, before the step of acquiring the number of program data packets to be transmitted and sending the acquired number of program data packets to a descrambler simultaneously, the method includes:
marking a sequence number on a program data packet received by a data buffer area according to the receiving time;
before the step of grouping the number of the program data packets and transmitting the grouped program data packets to a descrambler, the method includes:
the number of the program data packets is selected in the data buffer in the order 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, the step of descrambling the program data packet to obtain descrambled data includes:
and after the descrambler receives the program data packets, descrambling video data and audio data in the program data packets after the grouping according to the sequence 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 descrambled data to an encryption processor, wherein the encryption processor encrypts the descrambled data to obtain encrypted data comprises the following steps:
and transmitting 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 the data storage area to record the 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.
In addition, to achieve the above object, the present invention also provides a program recording apparatus, including:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer area;
the sending module is used for simultaneously sending the acquired program data packets to a descrambler;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambled 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 also used for sending the encrypted data to a data storage area so as to record programs.
In addition, in order to achieve the above object, the present invention also provides a program recording apparatus, which includes a memory, a processor, and a program recording program stored on the memory and executable on the processor, the program recording program implementing the steps of the program recording method as described above when executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon the program recording program which, when executed by a processor, implements the steps of the program recording method as described above.
Drawings
FIG. 1 is a schematic diagram of a hardware architecture of an apparatus for implementing various embodiments of the present invention;
FIG. 2 is a flowchart of a first embodiment of a program recording method according to the present invention;
FIG. 3 is a schematic diagram of a data buffer for storing program packets according to the present invention;
FIG. 4 is a schematic diagram of a program data packet group according to the present invention;
fig. 5 is a block diagram of a program data packet processing according to the present invention.
The achievement of the object, functional features and advantages of the present invention will be described with reference to the embodiments with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention provides a program recording device, referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware running environment according to an embodiment of the invention.
It should be noted that fig. 1 may be a schematic structural diagram of a hardware running environment of the program recording device. The program recording device in the embodiment of the invention can be a PC (Personal Computer ), a portable computer, a server and the like.
As shown in fig. 1, the program recording apparatus may include: a processor 1001, such as a CPU, memory 1005, user interface 1003, network interface 1004, communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the program recording device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
It will be appreciated by those skilled in the art that the configuration of the program recording device shown in fig. 1 does not constitute a limitation of the program recording device, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a program recording program may be included in a memory 1005, which is a computer storage readable storage medium. The operating system is a program for managing and controlling hardware and software resources of the program recording device, and supports the running of the program recording program and other software or programs.
The program recording method and apparatus shown in fig. 1 can be used to solve the problem of program data loss during recording, and the user interface 1003 is mainly used to detect or output various information, such as input program data and output 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:
acquiring at least one program data packet to be transmitted from a data buffer area, and simultaneously sending the acquired program data packet to a descrambler, 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 descrambled data;
the descrambling data is sent to an encryption processor, and the encryption processor encrypts the descrambling data to obtain encrypted data;
and sending the encrypted data to a data storage area to realize program recording.
Further, the step of acquiring at least one program data packet to be transmitted in the data buffer area and simultaneously transmitting the acquired 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 grouping the program data packets of the number, and sending the grouped 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 requirement 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 the rated number.
Further, before the step of obtaining the number of program data packets to be transmitted and sending the number of the 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:
marking a sequence number on a program data packet received by a data buffer area according to the receiving time;
before the step of packetizing the number of the program data packets and transmitting the packetized program data packets to the descrambler, the processor 1001 may be configured to invoke a program recording program stored in the memory 1005 and perform the following operations:
the number of the program data packets is selected in the data buffer in the order 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, the step of descrambling the program data packet to obtain descrambled data includes:
and after the descrambler receives the program data packets, descrambling video data and audio data in the program data packets after the grouping according to the sequence 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 descrambled data to an encryption processor, wherein the encryption processor encrypts the descrambled data to obtain encrypted data comprises the following steps:
and transmitting 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 perform program recording, the processor 1001 may be configured to invoke 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.
According to the invention, at least one program data packet to be transmitted is acquired in the data buffer zone, and the acquired program data packets are simultaneously transmitted to the descrambler, so that a plurality of program data packets cached in the data buffer zone can be simultaneously transmitted, the residual space of the data buffer zone is enlarged, and the condition that the program data packets transmitted by the continuous receiving transmitting end overflow due to insufficient memory space is prevented. After receiving the program data packet, the descrambler descrambles the program data packet to obtain descrambled data, the digital signal in the program data packet is restored to the standard characteristic, the descrambled data is sent to the encryption processor, the descrambled data is encrypted to obtain encrypted data, and finally the encrypted data is sent to the data storage area to complete program recording.
The specific implementation manner of the mobile terminal of the present invention is basically the same as the following embodiments of the program recording method, and will not be repeated here.
Based on the above structure, various embodiments of the program recording method of the present invention are presented.
The invention provides a program recording method.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating 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, at least one program data packet to be transmitted is obtained from a data buffer area, the obtained program data packet is simultaneously sent to a descrambler, and the data buffer area is used for caching the program data packet;
audio data and video data stored in the form of digital signals in program data packets are scrambled prior to descrambling the program data packets. Scrambling is the changing of the characteristics of standard digital signals in program data packets to prevent unauthorized persons from receiving clear video and audio; descrambling is the recovery of the scrambled program data packets into standard digital signal characteristics. After being scrambled, the 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 then is forwarded to the descrambler of the receiving end through the data buffer area, wherein the sending end can be a tuner, a demod, a demux and the like, and the receiving end is an encryption descrambling system.
The encryption descrambling system is single-process, only can process one program data packet at a time, when the data volume of the processed program data packet is large, for example, the program data packet of a 4K ultra-high definition program, the time spent by the encryption descrambling system for processing a single program data packet is too long, the data buffer zone does not send out the stored program data packet and is always in a state of receiving the program data packet sent by a sending end, the available part of the memory space of the data buffer zone is easily reduced gradually until the memory space is fully occupied, if the data buffer zone continues to receive the program data packet under the condition that the memory space is fully occupied, the program data packet stored in the data buffer zone at first overflows from the memory space, and the program data packet is lost, so that in order to avoid the program data packet loss, the data buffer zone must always have enough memory space to store the program data packet.
In order to avoid that the memory space of the data buffer is occupied, at least one program data packet to be transmitted is acquired from the data buffer, and when the remaining space of the data buffer is large, only one or two program data packets to be transmitted can be acquired; when the residual space of the data buffer area is smaller, more program data packets to be transmitted can be acquired, the residual space of the data buffer area is enlarged, and the acquired program data packets are simultaneously sent to a descrambler in an encryption descrambling system, so that the situation that the data buffer area can not timely send out the data packets because of receiving more program data packets 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 program data packets to be transmitted is greater than or equal to 1, and the specific value is determined by the size of the remaining space in the data buffer, so that the size of the remaining space in the data buffer is monitored in real time.
Further, step a comprises:
step 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 meet the requirement that the residual space is larger than or equal to the preset threshold;
the size of the preset threshold is generally set according to the size of the actual memory space of the data buffer, and in general, if the memory space of the data buffer is 8M, the size of the preset threshold may be set to 6M,6.5M,7M, or the like. When the size of the residual space in the data buffer is smaller than a preset threshold, the corresponding number of 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 as a standard, so that the risk of overflowing the program data packets caused by overlarge occupied space of the data buffer is avoided.
And a2, if the residual space is larger than or equal to the preset threshold value, determining that the number of the program data packets to be transmitted is the rated number.
When the residual space in the data buffer area is larger than or equal to a preset threshold value, only one or two program data packets with smaller numbers are acquired and sent to the descrambler, and the problem that the program data packets are lost due to insufficient storage space is solved because enough residual space is reserved in the data buffer area for storing the received program data packets.
And b, grouping the program data packets of the number, and sending the grouped program data packets to a descrambler.
After determining the number of program data packets to be transmitted, the number of program data packets are packetized and then sent to a descrambler. The purpose of the grouping is to send the number of program data packets together to the descrambler, so that the remaining space in the data buffer can be rapidly enlarged. It should be noted that if the number is 1, no packet is required, and only one program data packet to be transmitted needs to be sent to the descrambler. The program data package is packed, i.e. a plurality of program data packages are packed together, and the length of the program data package after being packed is equal to the sum of the lengths of the program data packages to be packed.
Further, before step S10, the method further includes:
step c, marking the program data packet received by the data buffer area with a sequence number according to the receiving time;
the present embodiment provides a method for selecting a program data packet for grouping packets, firstly, when a data buffer receives a program data packet sent by a sender, sequence numbers are assigned to the program data packet, for example, when the data buffer receives a first program data packet, sequence numbers 1 are assigned to the program data packet, namely, program data packet 1, and when the data buffer receives a second program data packet, sequence numbers 2 are assigned to the program data packet, namely, program data packet 2, and so on, referring to fig. 3, fig. 3 is a schematic view of a scene of storing the program data packet in the data buffer.
The step b is preceded by the following steps:
and d, selecting the number of the program data packets in the data buffer area according to the sequence from the small sequence number to the large sequence.
When the size of the remaining space in the data buffer is smaller than a preset threshold, a certain number of program data packets are selected from the occupied space and sent to the descrambler together in order to enlarge the remaining space until the size of the remaining space is greater than or equal to the preset threshold. When selecting program data packets for grouping, program data packets for grouping are generally selected according to the sequence from smaller sequence numbers to larger sequence numbers, referring to fig. 4, the memory space size of the data buffer is 8M, the preset threshold is 2M, the size of the remaining space in the data buffer is less than 2M, in order to expand the remaining space to 2M, the program data packets to be transmitted are determined to be 3, namely, program data packet 1, program data packet 2 and program data packet 3, and the program data packet 1, program data packet 2 and program data packet 3 are grouped together and sent to the descrambler.
Step S20, after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data;
after receiving the program data packets sent by the data buffer, the descrambler descrambles the program data packets, and it should be noted that, when the descrambler receives a plurality of program data packets in a packet, each data packet is descrambled in sequence, where the descrambling sequence may be the sequence from small to large in the program data packets, and other descrambling sequences 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, descrambling video data and audio data in the program data packets after the grouping according to the sequence from small to large to obtain the video descrambling data and the audio descrambling data.
After receiving the program data packet, the descrambler separates video data and audio data from the program data packet, and then descrambles the audio data and the video data respectively to obtain 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 of the program data packets, for example, the program data packets in the group include the program data packet 1, the program data packet 2 and the program data packet 3, then the program data packet 1 is descrambled first, the program data packet 2 is descrambled later, and finally the program data packet 3 is descrambled.
Step S30, the descrambling data is sent to an encryption processor, and the encryption processor encrypts the descrambling data to obtain encrypted data;
and transmitting the video descrambling data and the audio descrambling data to an encryption processor, and encrypting the received video descrambling data and the received audio descrambling data by the encryption processor to obtain encrypted data, thereby preventing the unauthorized user side from playing the audio and video corresponding to the program data packet. The present embodiment encrypts with encryption algorithms such as DES (Data Encryption Standard ) algorithm and IDEA (International Data Encryption Algorithm, international data encryption algorithm).
And step S40, the encrypted data is sent to a data storage area to realize program recording.
And finally, sending the encrypted data to a data storage area to finish program recording. Referring to fig. 5, fig. 5 is a program data packet processing architecture diagram.
According to the embodiment, at least one program data packet to be transmitted is obtained in the data buffer area, and the program data packet is sent to the descrambler, so that a plurality of program data packets obtained from the data buffer area can be simultaneously sent out, the residual space of the data buffer area is enlarged, and the situation that the program data packet transmitted by the continuous receiving and sending end overflows due to insufficient memory space is prevented. After receiving the program data packet, the descrambler descrambles the program data packet to obtain descrambled data, the digital signal in the program data packet is restored to the standard characteristic, the descrambled data is sent to the encryption processor, the descrambled data is encrypted to obtain encrypted data, and finally the encrypted data is sent to the data storage area to complete program recording.
Further, a second embodiment of the program recording method of the present invention is presented. 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, transmitting 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 the program data packet at first, 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 audio descrambled data respectively to obtain video encrypted data and audio encrypted data, so that the security of recording the program is improved, and the unauthorized user side is prevented from obtaining the video descrambled data and the audio descrambled data.
Further, a third embodiment of the program recording method of the present invention is presented. The third embodiment of the program recording method is different from the first embodiment and the second embodiment 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 audio and video data corresponding to the encrypted data in the data storage area are played by the authorized user side, the encrypted data are decrypted firstly, the video encrypted data and the video decrypted data are decrypted respectively to obtain decrypted data, and then the decrypted data are demultiplexed to extract the audio and video data in the decrypted data for playing by the authorized user side.
Because the program data packet is not lost during program recording, the complete audio and video data is obtained through demultiplexing, so that the authorized user terminal can play the complete program.
In addition, the embodiment of the invention also provides a program recording method and device, and the program recording device comprises the following steps:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer area;
the sending module is used for simultaneously sending the acquired program data packets to a descrambler;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambled 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 also used for sending the encrypted data to a data storage area so as to record programs.
Further, the acquisition module further includes:
a determining unit for determining the number of program data packets to be transmitted according to the size of the remaining space in the data buffer;
the transmitting module further includes:
a packetizing unit for packetizing the program data packets of the number,
the sending module is further configured to send the program data packet after being packetized to a descrambler.
Further, the determining unit further includes:
a setting subunit, configured to set the number of program data packets to be transmitted to satisfy the remaining space being greater than or equal to the preset threshold value if the size of the remaining space in the data buffer is less than the preset threshold value
And the determining subunit is used for determining that the number of the program data packets to be transmitted is the rated number if the residual space is larger than or equal to the preset threshold value.
Further, the program recording apparatus further includes:
the marking unit is used for marking the sequence number of the program data packet received by the data buffer area according to the receiving time;
the package unit further includes:
and the selecting subunit is used for selecting the number of the program data packets in the data buffer area according to the sequence from the sequence number to the sequence number.
The descrambler module is further configured to, after the descrambler receives the program data packet, sequentially descramble video data and audio data in the program data packet after being packetized according to the sequence from small to large, so as to obtain the video descrambled data and the audio descrambled 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 also used for encrypting the video descrambling data and the audio descrambling data to obtain video encryption data and the 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 apparatus of the present invention is substantially the same as the embodiments of the program recording method described above, and will not be described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a program recording program, and the program recording program realizes each step of the program recording method when being executed by a processor.
It should be noted that the computer readable storage medium may be provided in the program recording apparatus.
The specific implementation of the computer readable storage medium of the present invention is basically the same as the above embodiments of recording the program, and will not be repeated here.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be taken as limiting the scope of the invention, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the scope of the invention as defined by the following description and drawings, or by direct or indirect application to other relevant art(s).

Claims (8)

1. A program recording method, characterized in that the program recording method comprises the steps of:
marking a sequence number on a program data packet received by a data buffer area according to the receiving time, wherein the data buffer area is used for caching the program data packet;
determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer;
selecting the number of the program data packets in the data buffer area according to the sequence from the small sequence number to the large sequence number;
grouping the program data packets of the number, and sending the grouped program data packets to a descrambler;
after the descrambler receives the program data packet, descrambling the program data packet to obtain descrambled data;
the descrambling data is sent to an encryption processor, and the encryption processor encrypts the descrambling data to obtain encrypted data;
and sending the encrypted data to a data storage area to realize program recording.
2. The program recording method as claimed in claim 1, 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 requirement 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 the rated number.
3. The program recording method as claimed in claim 1, wherein the descrambling data comprises audio descrambling data and video descrambling data, and the step of descrambling the program data packet after the descrambler receives the program data packet, comprises:
and after the descrambler receives the program data packets, descrambling video data and audio data in the program data packets after the grouping according to the sequence from small to large to obtain the video descrambling data and the audio descrambling data.
4. The program recording method as claimed in claim 1, wherein the encrypted data includes video encrypted data and audio encrypted data, the step of transmitting the descrambled data to an encryption processor, the encryption processor encrypting the descrambled data to obtain the encrypted data comprises:
and transmitting 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 the video encryption data and the audio encryption data.
5. The program recording method as claimed in claim 1, wherein after the step of transmitting the encrypted data to a data storage area to enable program recording, 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.
6. A program recording apparatus, characterized in that the program recording apparatus comprises:
the acquisition module is used for acquiring at least one program data packet to be transmitted in the data buffer area;
the packet grouping module is used for marking the sequence number of the program data packet received by the data buffer area according to the receiving time;
determining the number of program data packets to be transmitted according to the size of the residual space in the data buffer;
selecting the number of the program data packets in the data buffer area according to the sequence from the small sequence number to the large sequence number, and grouping the program data packets of the number;
the sending module is used for simultaneously sending the acquired program data packets after the grouping to a descrambler;
the descrambler module is used for descrambling the program data packet after the descrambler receives the program data packet to obtain descrambled 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 also used for sending the encrypted data to a data storage area so as to record programs.
7. A program recording device comprising 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 5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a program recording program, which when executed by a processor, implements the steps of the program recording method according to any one of claims 1 to 5.
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 CN114449349A (en) 2022-05-06
CN114449349B true 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 (20)

* 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
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
WO2017092700A1 (en) * 2015-12-03 2017-06-08 国家新闻出版广电总局广播科学研究院 Condition receiving method and system for intelligent operating 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020057893A1 (en) * 1998-08-11 2002-05-16 Anthony Wood Digital recording and playback

Patent 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
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
WO2017092700A1 (en) * 2015-12-03 2017-06-08 国家新闻出版广电总局广播科学研究院 Condition receiving method and system for intelligent operating 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
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
数字电视智能卡条件接收***加解扰与加解密;张德树;;滁州职业技术学院学报(第02期);全文 *

Also Published As

Publication number Publication date
CN114449349A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
EP1491046B1 (en) Selective multimedia data encryption
US9479825B2 (en) Terminal based on conditional access technology
CN105409234A (en) Systems and methods for performing transport I/O
EP2612503B1 (en) Method and system for decrypting a transport stream
JP2008517536A (en) Faster change between channels
JP2005287039A (en) Common scramble processing
CN103686333B (en) A kind of audio and video guard method and audio-video terminal
KR101705010B1 (en) Processing recordable content in a stream
JP2008541618A5 (en)
TWI595778B (en) Systems and methods for assembling and extracting command and control data
CN115208863B (en) Code stream encryption and decryption method and related device, equipment, system and medium
CN101325684B (en) Method and system for transmitting ciphering control message based on mobile multimedia broadcast
KR102281972B1 (en) Method for protecting decryption keys in a decoder and decoder for implementing said method
JP4423517B2 (en) Data processing apparatus, data processing method, and recording medium
US7400728B2 (en) Conditional access system and copy protection
CN114449349B (en) Program recording method, device, equipment and computer readable storage medium
CN103281572A (en) DVB (Digital Video Broadcasting) condition receiving device capable of descrambling integrated basic data and normal data
JP2005174388A (en) Recording device, recording method, reproducing device and reproducing method
KR101280740B1 (en) Method to secure access to audio/video content in a decoding unit
CN112073660B (en) TLV data generation method, TLV data reading method, intelligent device and 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
JP4551138B2 (en) Personal information utilization receiving system and receiving apparatus
JP2009044677A (en) Secret information processor, processing apparatus, and processing method
CN109714299B (en) Method for playing encrypted video

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