WO2017190661A1 - 录制节目的方法及装置 - Google Patents

录制节目的方法及装置 Download PDF

Info

Publication number
WO2017190661A1
WO2017190661A1 PCT/CN2017/082909 CN2017082909W WO2017190661A1 WO 2017190661 A1 WO2017190661 A1 WO 2017190661A1 CN 2017082909 W CN2017082909 W CN 2017082909W WO 2017190661 A1 WO2017190661 A1 WO 2017190661A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
recording
recorded
recorded program
prd
Prior art date
Application number
PCT/CN2017/082909
Other languages
English (en)
French (fr)
Inventor
肖燕
雷强
陈彬彬
Original Assignee
深圳创维数字技术有限公司
深圳市创维软件有限公司
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 深圳创维数字技术有限公司, 深圳市创维软件有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2017190661A1 publication Critical patent/WO2017190661A1/zh

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
    • 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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/26606Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel for generating or managing entitlement messages, e.g. Entitlement Control Message [ECM] or Entitlement Management Message [EMM]
    • 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/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4348Demultiplexing of additional data and video streams
    • 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/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4382Demodulation or channel decoding, e.g. QPSK demodulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Definitions

  • the present disclosure relates to the technical field of digital television, for example, to a method and apparatus for recording a program.
  • PVR personal video recorder
  • the PVR processing flow is as follows: program play, program recording, program storage and playback.
  • the live stream is demodulated through the set-top box tuner to obtain a transport stream (TS), and the TS is demultiplexed to obtain Program Specific Information (PSI)/Service Information (SI) and elementary stream. And data such as data streams.
  • PSI Program Specific Information
  • SI Service Information
  • the program recording link is implemented as follows: For program recording, the information obtained by demultiplexing will be stored in a storage device such as a mobile hard disk, and the information obtained by demultiplexing includes: Program Association Table (PAT) data of the recorded program. The content, the program map table (PMT) data content of the recorded program, the elementary stream data pointed to by the Packet Identifier (PID) of the elementary stream described in the PMT of the recorded program, and the recorded scrambled program are also The Entitle Control Message (ECM) data related information is stored. The above information is re-multiplexed into one mobile transport stream and stored in the mobile storage device, and the program recording is completed.
  • PAT Program Association Table
  • PMT program map table
  • PID Packet Identifier
  • ECM Entitle Control Message
  • the related program recording is passive, and the PVR is not controlled by the front end. Therefore, the recording of the PVR program is completed depending on the terminal operation.
  • the front end cannot control the recording permission, viewing permission, and deletion of the recording file, which easily causes the passive situation of the operator and greatly affects.
  • the operator controls the PVR set-top box business.
  • the present disclosure proposes a method and apparatus for recording a program to avoid the problem of the operator passively receiving the recorded program.
  • the present disclosure provides a method of recording a program, the method comprising:
  • the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used to describe program recording information;
  • a program is recorded based on the program recording information.
  • the program recording information includes at least one of a PRD version number, a package identifier PID of a recorded program, a recorded identifier, a recorded program play count, a recorded program validity period, a recording permission control, and a reserved field;
  • the PRD version number is used to set a PRD version number in the TS;
  • the PID of the recorded program is used to uniquely identify a file recorded by the program, and the PID of the recorded program includes a transport stream identifier for identifying the TS, an original network identifier for identifying the original network, and a network identifier for identifying the network. At least one of a service identifier for identifying a service and an event identifier for identifying an event;
  • Whether the recording identifier is used to indicate whether the program can allow recording 0 means that recording is not allowed, 1 means recording is allowed, or 1 means recording is allowed, 0 means recording is not allowed;
  • the number of times the recorded program is played is used to set the number of times the program is allowed to be played;
  • the recorded program validity period is used to set a play validity period allowed for the program recording
  • the recording permission control character is used to set rules, methods and permissions for deleting or renaming or sorting program recordings
  • the reserved field is used to reserve a field used for future expansion.
  • the parsing the NIT to obtain program recording information includes:
  • the recording of the program according to the program recording information includes:
  • the recording of the identifier indicates that the program does not allow recording, the recording is ended;
  • the recording of the identifier indicates that the program allows recording
  • the program is recorded based on the stored parsed program recording information.
  • parsing the NIT to obtain program recording information includes:
  • the recording of the program according to the program recording information includes:
  • the method further includes:
  • the parsed program recording information is the recorded program validity period and the recorded program playing times, according to the recorded program validity period and the recorded program The number of plays, playing the recorded program;
  • the playing the recorded program according to the validity period of the recorded program and the number of times the recorded program is played including:
  • the recorded program is within the validity period of the recorded program, detecting and determining whether the number of times the recorded program is played is greater than 0;
  • the value of the number of times the recorded program is played is decremented by one each time the recorded program is played back once.
  • the present disclosure provides an apparatus for recording a program, the apparatus comprising:
  • a receiving module configured to receive a transport stream TS delivered by the front end, where the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used to describe program recording information;
  • a parsing module configured to parse the NIT to obtain program recording information when the set top box is turned on;
  • the recording module is configured to record a program according to the program recording information.
  • the program recording information includes at least one of a PRD version number, a package identifier PID of a recorded program, a recorded identifier, a recorded program play count, a recorded program validity period, a recording permission control, and a reserved field;
  • the PRD version number is used to set a PRD version number in the TS;
  • the PID of the recorded program is used to uniquely identify a file recorded by the program, and the recorded program PID includes a transport stream identifier for identifying the TS, an original network identifier for identifying the original network, a network identifier for identifying the network, a service identifier for identifying a service and/or an event identifier for identifying an event;
  • Whether the recording identifier is used to indicate whether the program can allow recording 0 means that recording is not allowed, 1 means recording is allowed, or 1 means recording is allowed, 0 means recording is not allowed;
  • the number of times the recorded program is played is used to set the number of times the program is allowed to be played;
  • the recorded program validity period is used to set a play validity period allowed for the program recording
  • the recording permission control character is used to set rules, methods and permissions for deleting or renaming or sorting program recordings
  • the reserved field is used to reserve a field used for future expansion.
  • the parsing module is configured to:
  • the recording module is set to:
  • the recording of the identifier indicates that the program does not allow recording, the recording is ended;
  • the recording of the identifier indicates that the program allows recording
  • the program is recorded based on the stored parsed program recording information.
  • the parsing module is configured to:
  • the recording module is set to:
  • the device further includes:
  • a playing module configured to: after the set top box is opened, in the case of thread detection, if the parsed program recording information is the recorded program validity period and the recorded program playing times, according to the recorded program validity period Playing the recorded program with the number of times the recorded program is played; and
  • the play module is set to:
  • the recorded program is within the validity period of the recorded program, detecting and determining whether the number of times the recorded program is played is greater than 0;
  • the value of the number of times the recorded program is played is decremented by one every time the recorded program is normally played back.
  • the present disclosure also provides a non-transitory computer readable storage medium storing computer executable instructions arranged to perform the above method.
  • the present disclosure also provides an electronic device, the electronic device comprising:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • the present disclosure provides a method and an apparatus for recording a program, by receiving a transport stream TS delivered by a front end, where the TS includes a network information table NIT, and the NIT includes a preset private descriptor PRD, and the PRD is used by the PRD.
  • the program recording information is described; in the case that the set top box is opened, the NIT is parsed to obtain program recording information; and the program is recorded according to the program recording information, so that the front end can control the PVR, the operation is simple, the implementation is strong, and the cost is low. .
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for recording a program
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for recording a program
  • FIG. 3 is a schematic flow chart of a third embodiment of a method for recording a program
  • FIG. 4 is a schematic flow chart of a fourth embodiment of a method for recording a program
  • FIG. 5 is a schematic flow chart of a fifth embodiment of a method for recording a program
  • FIG. 6 is a schematic flow chart of a sixth embodiment of a method for recording a program
  • FIG. 7 is a schematic flow chart of a seventh embodiment of a method for recording a program
  • FIG. 8 is a schematic diagram of functional modules of an apparatus for recording a program according to an embodiment
  • FIG. 9 is a schematic diagram showing the hardware structure of an electronic device according to an embodiment.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for recording a program in this embodiment.
  • a transport stream (TS) sent by the front end is received, where the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used to describe the program. Record information.
  • the operator adds a packet private descriptor to the TS played in the front end, and the private descriptor of the packet is stored in a Network Information Table (NIT) of Program Specific Information (PSI), the private descriptor of the packet Gives overall information about the recording of the programs contained in the TS described.
  • NIT Network Information Table
  • PSI Program Specific Information
  • the program recording information includes a Program Record Descriptor (PRD) version number (prd_version_number), a Packet Identifier (PID) (record_PID) of the recorded program, a recorded identifier (can_record), and a recorded program play count ( Record_play_times), at least one of a recorded program validity period (record_validtime), a recording authority control (record_control), and a reserved field (reserved_future_use).
  • PRD Program Record Descriptor
  • PID Packet Identifier
  • Can_record recorded identifier
  • Record_play_times At least one of a recorded program validity period (record_validtime), a recording authority control (record_control), and a reserved field (reserved_future_use).
  • the custom private descriptor functions like the MPEG-2 system layer standard promulgated by the Moving Picture Experts Group (MPEG) (standard number ISO/IEC 13818- The PAT defined in 1) conforms to the Program Specific Information (PSI)-Service Information (SI) specification in the Digital Video Broadcasting (DVB) standard.
  • MPEG Moving Picture Experts Group
  • PSI Program Specific Information
  • SI Service Information
  • the PRD version number is used to set a PRD version number in the TS.
  • the recorded program PID is used to uniquely identify a file recorded by the program, and the recorded program PID includes a transport stream identifier transport_stream_id for identifying the TS, an original network identifier original_network_id for identifying the original network, and a network identifier for identifying the network. At least one of a network_id, a service identifier service_id for identifying a service, and an event identifier event_id for identifying an event.
  • Whether the recording identifier is used to indicate whether the program can permit recording 0 means that recording is not allowed, 1 means recording is allowed, or 1 means recording is allowed, and 0 means recording is not allowed.
  • the number of times the recorded program is played is used to set the number of times the program is allowed to be played.
  • the recorded program validity period is used to set a play validity period allowed for the program recording.
  • the recording permission control character is used to set rules, methods, and permissions for deleting or renaming or sorting program recordings.
  • the reserved field is used to reserve a field used for future expansion.
  • program_record_descriptor The definition is as follows:
  • step 120 in the case that the set top box is turned on, the NIT is parsed to obtain program recording information.
  • the terminal parses the NIT to obtain program recording information included in the NIT.
  • step 130 the program is recorded based on the acquired program recording information.
  • the terminal records the program according to the acquired program recording information.
  • the embodiment provides a method for recording a program, by receiving a transport stream TS delivered by a front end, where the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used for Describe the program recording information; in the case where the set top box is turned on, parse the NIT, acquire program recording information; and record the program according to the acquired program recording information.
  • the foregoing method in this embodiment can implement the front end control of the PVR, has simple operation, is enforceable, and has low cost.
  • FIG. 2 is a schematic flowchart diagram of a second embodiment of a method for recording a program in this embodiment.
  • step 210 the transport stream TS delivered by the front end is received, where the TS includes network information.
  • the table NIT includes a preset private descriptor PRD for describing program recording information.
  • step 220 when the set top box is turned on, the preset frequency point is locked and the TS is demodulated, the NIT acquisition frequency point information is parsed, the frequency is sequentially locked according to the frequency point information, and the TS is demodulated; a program association table PAT, which acquires a PID of a Program Map Table (PMT) related to the program; parses the PMT according to the PID of the program map table PMT, acquires a PID of the program clock reference, and a PID of the audio and video;
  • the description table SDT obtains the service name information, parses the PRD to obtain the parsed, and stores the parsed program recording information.
  • the PRD is used to describe the program recording information, and the PRD can be parsed to obtain the corresponding program recording information.
  • step 230 the PRD version number is searched, compared with the pre-stored data, and the latest version of the PRD is obtained according to the result of the comparison.
  • step 240 if the recording of the identifier indicates that the program does not allow recording, the recording is ended.
  • step 250 if the recording of the identifier indicates that the program allows recording, the program is recorded according to the stored parsed program recording information.
  • the embodiment provides a method for recording a program, by receiving a transport stream TS delivered by a front end, where the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used for Describe the program recording information; in the case that the set top box is turned on, parse the NIT, obtain program recording information; search for the PRD version number, compare with pre-stored data, and obtain the latest version of the PRD according to the comparison result; Whether the recording identifier indicates that the program does not allow recording, the recording is ended; and if the recording of the identifier indicates that the program allows recording, the program is recorded according to the stored parsed program recording information.
  • the method in this embodiment can implement the control of the front end to the PVR, and the operation is simple, the implementation is strong, and the cost is low.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for recording a program in this embodiment.
  • step 310 the transport stream TS delivered by the front end is received, where the TS includes a network information table NIT, and the NIT includes a preset private descriptor PRD, which is used to describe program recording information.
  • the TS includes a network information table NIT
  • the NIT includes a preset private descriptor PRD, which is used to describe program recording information.
  • step 320 after the set top box is turned on, in the case of thread detection, the record_control is parsed.
  • step 330 a corresponding operation instruction is sent to the set top box according to the record_control.
  • the embodiment provides a method for recording a program, and receives a transport stream TS delivered by a front end.
  • the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used to describe a program recording. Information; after the set top box is turned on, parsing the record_control in the case of performing thread detection; and transmitting a corresponding operation instruction to the set top box according to the record_control.
  • the front end can control the PVR, and whether the copyright setting of some specific programs allows recording and deleting rights can control the copyright protection of the specific program.
  • FIG. 4 is a schematic flowchart diagram of a fourth embodiment of a method for recording a program in this embodiment.
  • the method for recording a program includes the following steps.
  • step 410 the TS that is delivered by the front end is received, where the TS includes a network information table NIT, and the NIT includes a preset private descriptor PRD, which is used to describe program recording information.
  • step 420 in the case that the set top box is turned on, the NIT is parsed to obtain program recording information.
  • step 430 a program is recorded based on the program recording information.
  • step 440 after the set top box is turned on, in the case of thread detection, if the parsed program recording information is the recorded program validity period record_validtime and the recorded program play count record_play_times, according to the recorded program validity period And the recorded program is played, and the recorded program is played.
  • the playing the recorded program according to the validity period of the recorded program and the number of times the recorded program is played including:
  • the recorded program is within the validity period of the recorded program, detecting and determining whether the number of times the recorded program is played is greater than 0;
  • the value of the number of times the recorded program is played is decremented by one each time the recorded program is played back once.
  • the process for the improved playback of the recorded program can be as follows:
  • Descriptor_tag Descriptor tag, 8-bit field, used to identify different descriptors. It is defined here as 0x80 (in the SI specification, 0x80-0xFE is given as a user-defined descriptor tag), the table The descriptor is a program recording descriptor, which is a unique identifier of the program recording descriptor;
  • Descriptor_length the length of the descriptor, an 8-bit field, giving the number of bytes of the descriptor after the field;
  • PCR_PID program clock reference PID, 13 bit field, used to give the identifier of the transport stream (TS) packet where the program clock reference of the service identified by service_id is located;
  • Video_type/audio_type stream type, 8-bit field, used to identify the type of elementary stream. For the value assignment, refer to the description of the corresponding field of the program map (PMT) in the MPEG-2 system layer standard (standard number ISO/IEC 13818-1). ;
  • Transport_stream_id transport stream identifier, 16-bit field, used to identify a unique transport stream in a transport system
  • Original_network_id original network identifier, 16-bit field, used to give the network identifier of the original transmission system
  • Network_id a network identifier, a 16-bit field, used to give a network identifier of the transmission system
  • Service_id a service identifier, a 16-bit field, uniquely identifies a service in a Transport Stream (TS) described by the Program Map Descriptor;
  • Event_id an event identifier, a 16-bit field that uniquely identifies an event in a Transport Stream (TS) as described in the Program Map Descriptor;
  • Control_id The permission control character, 4bit, has the following eight cases.
  • the embodiment provides a method for recording a program, which receives a transport stream TS delivered by a front end, where the TS includes a network information table NIT, and the NIT includes a preset private descriptor PRD, and the PRD is used to describe Program recording information; in the case where the set top box is turned on, parsing the NIT, acquiring program recording information; recording a program according to the program recording information; and, after the set top box is turned on, in the case of performing thread detection, if parsed
  • the program recording information is the recorded program validity period record_validtime and the recorded program playing times record_play_times, and the recorded program is played according to the recorded program validity period and the recorded program playing times.
  • the front end can control the PVR, and the operation is simple, the implementation is strong, and the cost is low.
  • FIG. 5 is a schematic flowchart diagram of a fifth embodiment of a method for recording a program in this embodiment.
  • step 510 the front end sends a TS with a private descriptor to the terminal.
  • step 520 the set top box is turned on.
  • step 530 the terminal is frequency locked.
  • step 540 it is determined whether the version corresponding to the PRD version number is an advanced version.
  • step 550 if the version corresponding to the PRD version number is an advanced version, the terminal locks and parses.
  • step 560 if the version corresponding to the PRD version number is not the advanced version, the PRD is updated to the highest level, and the terminal is frequency-locked and parsed.
  • step 570 it is determined whether the recorded character is 1.
  • step 580 if the recorded character is 1, the recording process may be performed to obtain the transport_stream_id, original_network_id, network_id, service_id, event_id, audio and video PID, audio and video stream type, and PID of the program clock reference in the transport stream. Start recording.
  • step 590 if the recorded character is 0, the program recording is not started.
  • FIG. 6 is a schematic flowchart diagram of a sixth embodiment of a method for recording a program in this embodiment.
  • step 610 the front end sends a TS stream with a private descriptor to the terminal.
  • step 620 the user turns on the set top box.
  • step 630 the terminal thread detects the operation.
  • step 640 it is determined whether the recorded program is within the validity period.
  • step 650 if the recorded program is within the validity period, it is determined whether the number of times the recorded program is played is greater than zero.
  • step 660 if the number of times the recorded program is played is greater than 0, the playback process is performed once, and the transport_stream_id, original_network_id, network_id, service_id, event_id, audio and video PID, audio and video stream type, and PID of the program clock reference in the transport stream are acquired. .
  • step 670 if the recorded program is not within the validity period, the playback of the recorded program is terminated.
  • step 680 if the number of times the recorded program is played is not greater than 0, the playback of the recorded program is terminated.
  • step 690 the number of plays is modified to reduce the number of plays by one.
  • FIG. 7 is a schematic flowchart diagram of a seventh embodiment of a method for recording a program in this embodiment.
  • step 710 the front end sends a TS with a private descriptor to the terminal.
  • step 720 the user turns on the set top box.
  • step 730 the terminal thread detects the operation.
  • step 740 the rights control character (Control_id) is identified, and different Cotrol_ids have different instructions for the set top box.
  • FIG. 8 is a schematic diagram of functional modules of an apparatus for recording a program provided by this embodiment.
  • the apparatus for recording a program includes: a receiving module 801, a parsing module 802, and a recording module 803.
  • the receiving module 801 is configured to receive the TS delivered by the front end, where the TS includes a network information table NIT, where the NIT includes a preset private descriptor PRD, and the PRD is used to describe program recording information.
  • the program recording information includes at least one of a PRD version number prd_version_number, a recorded program PID record_PID, a recorded identifier can_record, a recorded program play count_play_times, a recorded program valid period record_validtime, a recording permission control record_control, and a reserved field reserved_future_use.
  • the PRD version number is used to set a PRD version number in the TS.
  • the recorded program PID is used to uniquely identify a file recorded by the program, and the recorded program PID includes a transport_stream_id for identifying the TS, an original_network_id for identifying the original network, a network_id for identifying the network, and a service_id for identifying the service. And at least one of the event_ids used to identify the event
  • Whether the recording identifier is used to indicate whether the program can permit recording 0 means that recording is not allowed, 1 means recording is allowed, or 1 means recording is allowed, and 0 means recording is not allowed.
  • the number of times the recorded program is played is used to set the number of times the program is allowed to be played.
  • the recorded program validity period is used to set a play validity period allowed for the program recording.
  • the recording permission control character is used to set rules, methods, and permissions for deleting or renaming or sorting program recordings.
  • the reserved field is used to reserve a field used for future expansion.
  • the parsing module 802 is configured to parse the NIT to obtain program recording information when the set top box is turned on.
  • the parsing module 802 is configured to:
  • the parsing module 802 is configured to:
  • the recording module 803 is configured to record a program according to the program recording information.
  • the recording module 803 is configured to:
  • the recording of the identifier indicates that the program does not allow recording, the recording is ended;
  • the recording of the identifier indicates that the program allows recording
  • the program is recorded based on the stored parsed program recording information.
  • the recording module 803 is configured to:
  • the device further includes:
  • a playback module configured to: after the set-top box is turned on, in the case of thread detection, if the parsed program recording information is the recorded program validity period record_validtime and the recorded program play count record_play_times, according to the recording The program validity period and the number of times the recorded program is played, and the recorded program is played.
  • the playing module is set to:
  • the recorded program is within the validity period of the recorded program, detecting and determining whether the number of times the recorded program is played is greater than 0;
  • the value of the number of times the recorded program is played is decremented by one each time the recorded program is played back once.
  • the embodiment provides a device for recording a program, by receiving a TS delivered by a front end, where the TS includes a network information table NIT, the NIT includes a preset private descriptor PRD, and the PRD is used to describe a program. Recording information; parsing the NIT to obtain program recording information when the set top box is turned on; and recording the program according to the program recording information.
  • the front end can control the PVR, and the operation is simple, the implementation is strong, and the cost is low.
  • the present embodiment provides a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • This embodiment provides a hardware structure diagram of an electronic device.
  • the electronic device includes:
  • At least one processor 90 which is exemplified by a processor 90 in FIG. 9; and a memory 91, may further include a communication interface 92 and a bus 93.
  • the processor 90, the memory 91, and the communication interface 92 can complete communication with each other through the bus 93.
  • Communication interface 92 is arranged to transmit information.
  • Processor 90 can invoke logic instructions in memory 91 to perform the methods of the above-described embodiments.
  • logic instructions in the memory 91 described above may be implemented in the form of a software functional unit and sold or used as a stand-alone product, and may be stored in a computer readable storage medium.
  • the memory 91 is a computer readable storage medium and can be used to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the above embodiments.
  • the processor 90 executes the functional application and data processing by executing software programs, instructions or modules stored in the memory 91, i.e., implements the methods in the above embodiments.
  • the memory 91 may include a storage program area and a storage data area, wherein the storage program area may store operations System, at least one function required application; storage data area can store data created according to the use of the device, and the like. Further, the memory 91 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the above embodiment may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device) Etc.) Perform all or part of the steps of the method described in the above embodiments.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • the method and device for recording a program provided by the present disclosure can realize the control of the front end to the PVR, the operation is simple, the implementation is strong, and the cost is low.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种录制节目的方法及装置,通过接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及根据所述节目录制信息录制节目。

Description

录制节目的方法及装置 技术领域
本公开涉及数字电视的技术领域,例如涉及一种录制节目的方法及装置。
背景技术
随着数字电视产业的发展和市场的壮大,个人视频录像机(Personal Video Recorder,PVR)技术与机顶盒结合将成为未来的发展方向之一。PVR技术和数字电视机顶盒结合而产生的PVR机顶盒,带来了数字化视频录放和内容互动。PVR数字电视机顶盒作为一种非常有特色的数字电视终端,具有广阔的市场前景。
相关技术中,PVR处理流程如下:节目播放,节目录制,节目存储和回放。直播流经过机顶盒高频头进行解调,获取到传输流(Transport Stream,TS),TS经过解复用得到节目特别信息(Program Specific Information,PSI)/业务信息(Service Information,SI)、基本流以及数据流等数据。
节目录制环节的实现如下:对于节目录制,解复用得到的信息将会被存储在移动硬盘等存储设备中,解复用得到的信息包括:录制节目的节目关联表(ProgramAssociation Table,PAT)数据内容、录制节目的节目映射表(Program Map Table,PMT)数据内容、录制节目的PMT中所描述的基本流的包标识符(Packet Identifier,PID)所指向的基本流数据和录制加扰节目还会存储授权控制信息(Entitle Control Message,ECM)数据相关信息。将以上信息重新复用成一路传输流存储在移动存储设备中,就完成了节目录制。
相关的节目录制比较被动,PVR不受前端控制,这样造成PVR节目录制完成取决于终端操作,前端不能控制录制文件的录制权限、收看权限、删除等权限,容易造成运营商的被动局面,大大影响了运营商对PVR机顶盒业务的控制。
发明内容
本公开提出一种录制节目的方法及装置,避免运营商被动接收录制节目的问题。
第一方面,本公开提供一种录制节目的方法,所述方法包括:
接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;
在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及
根据所述节目录制信息录制节目。
可选地,所述节目录制信息包括PRD版本号、录制节目的包标识符PID、是否录制标识符、录制节目播放次数、录制节目有效期、录制权限控制符和预留字段中的至少一个;
所述PRD版本号用于设置所述TS中的PRD版本号;
所述录制节目的PID用于唯一标识节目录制的文件,所述录制节目的PID包括用于标识所述TS的传输流标识、用于标识原始网络的原始网络标识、用于标识网络的网络标识、用于标识业务的业务标识和用于标识事件的事件标识中的至少一个;
所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制;
所述录制节目播放次数用于设置节目录制允许的播放次数;
所述录制节目有效期用于设置节目录制允许的播放有效期;
所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限;以及
所述预留字段用于预留未来扩展使用的字段。
可选地,所述解析所述NIT,获取节目录制信息,包括:
锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点信息依次锁频并解调;
解析节目关联表PAT,获取与节目相关的节目映射表PMT的PID;
根据所述节目映射表PMT的PID解析所述PMT,获取节目时钟参考的PID和音视频的PID;
解析业务描述表SDT获取业务名称信息,解析所述PRD;以及
存储解析后的节目录制信息;
所述根据所述节目录制信息录制节目,包括:
查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本;
若所述是否录制标识符表示节目不允许录制,则结束录制;以及
若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。
可选地,所述在机顶盒开启的情况下,解析所述NIT,获取节目录制信息,包括:
在所述机顶盒开启后,在进行线程检测的情况下,解析所述录制权限控制符;以及
所述根据所述节目录制信息录制节目,包括:
根据所述录制权限控制符对所述机顶盒发送对应的操作指令。
可选地,所述根据所述节目录制信息录制节目之后,所述方法还包括:
在所述机顶盒开启后,在进行线程检测的情况下,若所述解析后的节目录制信息为所述录制节目有效期和所述录制节目播放次数,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放;
其中,所述根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放,包括:
检测和判断录制节目是否在有效期内;
若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
若所述录制节目播放次数大于0,则每回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
第二方面,本公开提供一种录制节目的装置,所述装置包括:
接收模块,设置为接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;
解析模块,设置为在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及
录制模块,设置为根据所述节目录制信息录制节目。
可选地,所述节目录制信息包括PRD版本号、录制节目的包标识符PID、是否录制标识符、录制节目播放次数、录制节目有效期、录制权限控制符和预留字段中的至少一个;
所述PRD版本号用于设置所述TS中的PRD版本号;
所述录制节目的PID用于唯一标识节目录制的文件,所述录制节目PID包括用于标识所述TS的传输流标识、用于标识原始网络的原始网络标识、用于标识网络的网络标识、用于标识业务的业务标识和/或用于标识事件的事件标识;
所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制;
所述录制节目播放次数用于设置节目录制允许的播放次数;
所述录制节目有效期用于设置节目录制允许的播放有效期;
所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限;以及
所述预留字段用于预留未来扩展使用的字段。
可选地,所述解析模块,设置为:
锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点信息依次锁频并解调;
解析节目关联表PAT,获取与节目相关的节目映射表PMT的PID;
根据所述节目映射表PMT的PID解析所述PMT,获取节目时钟参考的PID和音视频的PID;
解析业务描述表SDT获取业务名称信息,解析所述PRD;以及
存储解析后的节目录制信息;以及
所述录制模块,设置为:
查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本;
若所述是否录制标识符表示节目不允许录制,则结束录制;以及
若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。
可选地,所述解析模块,设置为:
在所述机顶盒开启后,在进行线程检测的情况下,解析所述录制权限控制符;以及
所述录制模块,设置为:
根据所述录制权限控制符对所述机顶盒发送对应的操作指令。
可选地,所述装置还包括:
播放模块,设置为在所述机顶盒开启后,在进行线程检测的情况下,若所述解析后的节目录制信息为所述录制节目有效期和所述录制节目播放次数,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放;以及
所述播放模块,设置为:
检测和判断录制节目是否在有效期内;
若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
若所述录制节目播放次数大于0,则每正常回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
本公开还提供了一种非暂态计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述方法。
本公开还提供了一种电子设备,该电子设备包括:
至少一个处理器;以及
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。
本公开提供一种录制节目的方法及装置,通过接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;根据所述节目录制信息录制节目,可以实现前端对PVR的控制,操作简单,可实施性强,成本低。
附图说明
图1是录制节目的方法第一实施例的流程示意图;
图2是录制节目的方法第二实施例的流程示意图;
图3是录制节目的方法第三实施例的流程示意图;
图4是录制节目的方法第四实施例的流程示意图;
图5是录制节目的方法第五实施例的流程示意图;
图6是录制节目的方法第六实施例的流程示意图;
图7是录制节目的方法第七实施例的流程示意图;
图8是一实施例提供的录制节目的装置的功能模块示意图;以及
图9是一实施例提供的电子设备的硬件结构示意图。
具体实施方式
下面结合附图和实施例对实施例作详细说明。附图中仅示出了与实施例相关的部分而非全部结构。在不冲突的情况下,以下实施例以及实施例中的技术特征可以相互任意组合。
实施例一
参考图1,图1是本实施例录制节目的方法第一实施例的流程示意图。
在步骤110中,接收前端下发的传输流(Transport Stream,TS),其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息。
运营商在前端播放的TS中,加入分组私有描述符,该分组私有描述符存放于节目特别信息(Program Specific Information,PSI)的网络信息表(Network Information Table,NIT)里,该分组私有描述符给出其描述的TS中所包含节目的录制情况的总体信息。节目录制信息包括节目录制描述符(Program Record Descriptor,PRD)版本号(prd_version_number)、录制节目的包标识符(Packet Identifier,PID)(record_PID)、是否录制标识符(can_record)、录制节目播放次数(record_play_times)、录制节目有效期(record_validtime)、录制权限控制符(record_control)以及预留字段(reserved_future_use)中的至少一个。
本公开中,自定义的私有描述符(即节目录制描述符PRD)的作用类似于活动图像专家组(Moving Picture Experts Group,MPEG)颁布的MPEG-2系统层标准(标准号ISO/IEC 13818-1)中所定义的PAT,符合数字视频广播(Digital Video Broadcasting,DVB)标准中的节目特别信息(Program Specific Information,PSI)-业务信息(Service Information,SI)规范。
所述PRD版本号用于设置所述TS中的PRD版本号。
所述录制节目PID用于唯一标识节目录制的文件,所述录制节目PID包括用于标识所述TS的传输流标识transport_stream_id、用于标识原始网络的原网络标识original_network_id、用于标识网络的网络标识network_id、用于标识业务的业务标识service_id和用于标识事件的事件标识event_id中的至少一个。
所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制。
所述录制节目播放次数用于设置节目录制允许的播放次数。
所述录制节目有效期用于设置节目录制允许的播放有效期。
所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限。
所述预留字段用于预留未来扩展使用的字段。
可选的,所述的节目录制描述符PRD(program_record_descriptor)的语法 定义如下:
Figure PCTCN2017082909-appb-000001
在步骤120中,在机顶盒开启的情况下,解析所述NIT,获取节目录制信息。
可选的,在机顶盒开启的情况下,终端解析所述NIT,获取NIT中包括的节目录制信息。
在步骤130中,根据获取的节目录制信息录制节目。
可选的,终端根据获取的节目录制信息,进行录制节目。
本实施例提供一种录制节目的方法,通过接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及根据获取的节目录制信息录制节目。本实施例中的上述方法可以实现前端对PVR的控制,操作简单,可实施性强,成本低。
实施例二
参考图2,图2是本实施例录制节目的方法第二实施例的流程示意图。
在步骤210中,接收前端下发的传输流TS,其中,所述TS包括网络信息 表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息。
在步骤220中,在机顶盒开启的情况下,锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点信息依次锁频并解调所述TS;解析节目关联表PAT,获取与节目相关的节目映射表(Program Map Table,PMT)的PID;根据所述节目映射表PMT的PID解析所述PMT,获取节目时钟参考的PID和音视频的PID;解析业务描述表SDT获取业务名称信息,解析所述PRD,得到解析后的;以及存储解析后的节目录制信息。其中,PRD用于描述节目录制信息,解析PRD可得到相应的节目录制信息。
在步骤230中,查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本的PRD。
在步骤240中,若所述是否录制标识符表示节目不允许录制,则结束录制。
在步骤250中,若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。
本实施例提供一种录制节目的方法,通过接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本的PRD;若所述是否录制标识符表示节目不允许录制,则结束录制;以及若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。本实施例中的方法可以实现前端对PVR的控制,操作简单,可实施性强,成本低。
实施例三
参考图3,图3是本实施例录制节目的方法第三实施例的流程示意图。
在步骤310中,接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息。
在步骤320中,在所述机顶盒开启后,在进行线程检测的情况下,解析所述record_control。
在步骤330中,根据所述record_control对所述机顶盒发送对应的操作指令。
可选的,不同的record_control对应不同的操作指令如下:
Figure PCTCN2017082909-appb-000002
本实施例提供一种录制节目的方法,接收前端下发的传输流TS,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在所述机顶盒开启后,在进行线程检测的情况下,解析所述record_control;以及根据所述record_control对所述机顶盒发送对应的操作指令。本实施例中的方法,可以实现前端对PVR的控制,对一些特定节目版权设置是否允许录制和删除权限,能够对保护该类特定节目版权进行控制。
实施例四
参考图4,图4是本实施例录制节目的方法第四实施例的流程示意图。
在实施例一至三的基础上,以在实施例一的基础上为例,所述录制节目的方法包括如下步骤。
在步骤410中,接收前端下发的TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息。
在步骤420中,在机顶盒开启的情况下,解析所述NIT,获取节目录制信息。
在步骤430中,根据所述节目录制信息录制节目。
在步骤440中,在所述机顶盒开启后,在进行线程检测的情况下,若解析后的节目录制信息为所述录制节目有效期record_validtime和所述录制节目播放次数record_play_times,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放。
可选地,所述根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放,包括:
检测和判断录制节目是否在有效期内;
若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
若所述录制节目播放次数大于0,则每回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
可选的,上述方法用代码表示如下:
所以,针对原有的已录制的节目回放的流程可以如下:
Figure PCTCN2017082909-appb-000003
Figure PCTCN2017082909-appb-000004
针对改进后的已录制的节目回放的流程可以如下:
Figure PCTCN2017082909-appb-000005
其中:
descriptor_tag:描述符标签,8bit字段,用于标识不同的描述符。在此定义为0x80(在SI规范里面,给出0x80-0xFE为用户自行定义的描述符标签),表 示该描述符为节目录制描述符,是节目录制描述符的唯一标识;
descriptor_length:描述符长度,8bit字段,给出该字段之后描述符的字节数;
PCR_PID:节目时钟参考PID,13bit字段,用于给出service_id所标识的业务的节目时钟参考所在的传输流(TS)包的标识;
video_type/audio_type:流类型,8bit字段,用于标识基本流的类型,取值分配可以参见MPEG-2系统层标准(标准号ISO/IEC 13818-1)中节目映射表(PMT)对应字段的说明;
transport_stream_id:传输流标识符,16bit字段,在一个传输系统中,用于标识唯一的一个传输流;
original_network_id:原始网络标识符,16bit字段,用于给出原始传输系统的网络标识符;
network_id:网络标识符,16bit字段,用于给出传输系统的网络标识符;
service_id:业务标识符,16bit字段,在节目映射描述符所描述的传输流(TS)中唯一标识一个业务;
event_id:事件标识符,16bit字段,在节目映射描述符所描述的传输流(TS)中唯一标识一个事件;以及
Control_id:权限控制符,4bit,共有以上提到的8种情况。
本实施例提供一种录制节目的方法,接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;根据所述节目录制信息录制节目;以及在所述机顶盒开启后,在进行线程检测的情况下,若解析后的节目录制信息为所述录制节目有效期record_validtime和所述录制节目播放次数record_play_times,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放。本实施例可以实现前端对PVR的控制,操作简单,可实施性强,成本低。
实施例五
参考图5,图5是本实施例录制节目的方法第五实施例的流程示意图。
在步骤510中,前端向终端发送带有私有描述符的TS。
在步骤520中,开启机顶盒。
在步骤530中,终端锁频解析。
在步骤540中,判断PRD版本号对应的版本是否为高级版本。
在步骤550中,若PRD版本号对应的版本是高级版本,则终端锁频和解析。
在步骤560中,若PRD版本号对应的版本不是高级版本,则将PRD更新为最高级版本后,对终端锁频和解析。
在步骤570中,判断是否录制字符是否为1。
在步骤580中,若是否录制字符为1,则可执行录制流程,获取传输流中的transport_stream_id、original_network_id、network_id、service_id、event_id、音视频的PID、音视频流类型以及节目时钟参考的PID等后开始启动录制。
在步骤590中,若是否录制字符为0,则不启动节目录制。
实施例六
参考图6,图6是本实施例录制节目的方法第六实施例的流程示意图。
在步骤610中,前端向终端发送带有私有描述符的TS流。
在步骤620中,用户开启机顶盒。
在步骤630中,终端线程检测操作。
在步骤640中,判断录制节目是否在有效期内。
在步骤650中,若录制节目在有效期内,判断录制节目的播放次数是否大于0。
在步骤660中,若录制节目的播放次数大于0,则回放流程一次,获取传输流中的transport_stream_id、original_network_id、network_id、service_id、event_id、音视频的PID、音视频流类型和节目时钟参考的PID等。
在步骤670中,若录制节目不在有效期内,则终止回放已录制的节目。
在步骤680中,若录制节目的播放次数不大于0,则终止回放已录制的节目。
在步骤690中,修改播放次数,将播放次数减少1。
实施例七
参考图7,图7是本实施例录制节目的方法第七实施例的流程示意图。
在步骤710中,前端向终端发送带有私有描述符的TS。
在步骤720中,用户开启机顶盒。
在步骤730中,终端线程检测操作。
在步骤740中,识别权限控制符(Control_id),不同的Cotrol_id对机顶盒有不同的指令。
实施例八
参考图8,图8是本实施例提供的一种录制节目的装置的功能模块示意图。
在实施例八中,所述录制节目的装置包括:接收模块801、解析模块802和录制模块803。
接收模块801设置为接收前端下发的TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息。
其中,所述节目录制信息包括PRD版本号prd_version_number、录制节目PID record_PID、是否录制标识符can_record、录制节目播放次数record_play_times、录制节目有效期record_validtime、录制权限控制符record_control和预留字段reserved_future_use中的至少一个。
所述PRD版本号用于设置所述TS中的PRD版本号。
所述录制节目PID用于唯一标识节目录制的文件,所述录制节目PID包括用于标识所述TS的transport_stream_id、用于标识原始网络的original_network_id、用于标识网络的network_id、用于标识业务的service_id和用于标识事件的event_id中的至少一个
所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制。
所述录制节目播放次数用于设置节目录制允许的播放次数。
所述录制节目有效期用于设置节目录制允许的播放有效期。
所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限。
所述预留字段用于预留未来扩展使用的字段。
解析模块802设置为在机顶盒开启的情况下,解析所述NIT,获取节目录制信息。
可选地,所述解析模块802,设置为:
锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点信息依次锁频并解调;
解析节目关联表PAT,获取与节目相关的节目映射表PMT的PID;
根据所述PID解析所述PMT,获取节目时钟参考PID和音视频的PID;
解析业务描述表SDT获取业务名称信息,解析所述PRD,得到解析后的节目录制信息;以及
存储解析后的节目录制信息。
可选地,所述解析模块802,设置为:
在所述机顶盒开启后,在进行线程检测的情况下,解析所述record_control。
录制模块803,设置为根据所述节目录制信息录制节目。
可选地,所述录制模块803,设置为:
查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本的PRD;
若所述是否录制标识符表示节目不允许录制,则结束录制;
若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。
可选地,所述录制模块803,设置为:
根据所述record_control对所述机顶盒发送对应的操作指令。
可选地,所述装置还包括:
播放模块,设置为在所述机顶盒开启后,在进行线程检测的情况下,若所述解析后的节目录制信息为所述录制节目有效期record_validtime和所述录制节目播放次数record_play_times,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放。
可选地,所述播放模块,设置为:
检测和判断录制节目是否在有效期内;
若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
若所述录制节目播放次数大于0,则每回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
本实施例提供一种录制节目的装置,通过接收前端下发的TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及根据所述节目录制信息录制节目。本实施例可以实现前端对PVR的控制,操作简单,可实施性强,成本低。
本实施例提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。
本实施例提供了一种电子设备的硬件结构示意图。参见图9,该电子设备包括:
至少一个处理器(processor)90,图9中以一个处理器90为例;以及存储器(memory)91,还可以包括通信接口(Communications Interface)92和总线93。其中,处理器90、存储器91以及通信接口92可以通过总线93完成相互间的通信。通信接口92设置为传输信息。处理器90可以调用存储器91中的逻辑指令,以执行上述实施例的方法。
此外,上述的存储器91中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。
存储器91作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如以上实施例中的方法对应的程序指令或模块。处理器90通过运行存储在存储器91中的软件程序、指令或模块,从而执行功能应用以及数据处理,即实现上述实施例中的方法。
存储器91可包括存储程序区和存储数据区,其中,存储程序区可存储操作 系统、至少一个功能所需的应用程序;存储数据区可存储根据设备的使用所创建的数据等。此外,存储器91可以包括高速随机存取存储器,还可以包括非易失性存储器。
以上实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行以上实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。
工业实用性
本公开提供的录制节目的方法及装置,可以实现前端对PVR的控制,操作简单,可实施性强,成本低。

Claims (11)

  1. 一种录制节目的方法,包括:
    接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;
    在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及
    根据获取的节目录制信息录制节目。
  2. 根据权利要求1所述的方法,其中,所述节目录制信息包括PRD版本号、录制节目的包标识符PID、是否录制标识符、录制节目播放次数、录制节目有效期、录制权限控制符和预留字段中的至少一个;
    所述PRD版本号用于设置所述TS中的PRD版本号;
    所述录制节目的PID用于唯一标识节目录制的文件,所述录制节目的PID包括用于标识所述TS的传输流标识符、用于标识原始网络的原始网络标识符、用于标识网络的网络标识符、用于标识业务的业务标识符和用于标识事件的事件标识符中的至少一个;
    所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制;
    所述录制节目播放次数用于设置节目录制允许的播放次数;
    所述录制节目有效期用于设置节目录制允许的播放有效期;
    所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限;以及
    所述预留字段用于预留未来扩展使用的字段。
  3. 根据权利要求2所述的方法,其中,所述解析所述NIT,获取节目录制信息,包括:
    锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点 信息依次锁频并解调所述TS;
    解析节目关联表PAT,获取与节目相关的节目映射表PMT的PID;
    根据所述节目映射表PMT的PID解析所述PMT,获取节目时钟参考的PID和音视频的PID;以及
    解析业务描述表SDT获取业务名称信息,解析所述PRD,得到解析后的节目录制信息;以及
    存储解析后的节目录制信息;
    所述根据所述节目录制信息录制节目,包括:
    查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本的PRD;
    若所述是否录制标识符表示节目不允许录制,则结束录制;以及
    若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录制信息录制节目。
  4. 根据权利要求2所述的方法,其中,所述在机顶盒开启的情况下,解析所述NIT,获取节目录制信息,包括:
    在所述机顶盒开启后,在进行线程检测的情况下,解析所述录制权限控制符;以及
    所述根据所述节目录制信息录制节目,包括:
    根据所述录制权限控制符对所述机顶盒发送对应的操作指令。
  5. 根据权利要求3所述的方法,所述根据所述节目录制信息录制节目之后,所述方法还包括:
    在所述机顶盒开启后,在进行线程检测的情况下,若所述解析后的节目录制信息为所述录制节目有效期和所述录制节目播放次数,则根据所述录制节目 有效期和所述录制节目播放次数,对录制后的节目进行播放;
    其中,所述根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放,包括:
    检测和判断录制节目是否在有效期内;
    若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
    若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
    若所述录制节目播放次数大于0,则每回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
  6. 一种录制节目的装置,包括:
    接收模块,设置为接收前端下发的传输流TS,其中,所述TS包括网络信息表NIT,所述NIT中包括预先设置的私有描述符PRD,所述PRD用于描述节目录制信息;
    解析模块,设置为在机顶盒开启的情况下,解析所述NIT,获取节目录制信息;以及
    录制模块,设置为根据所述节目录制信息录制节目。
  7. 根据权利要求6所述的装置,其中,所述节目录制信息包括PRD版本号、录制节目的包标识符PID、是否录制标识符、录制节目播放次数、录制节目有效期、录制权限控制符和预留字段中的至少一个;
    所述PRD版本号用于设置所述TS中的PRD版本号;
    所述录制节目的PID用于唯一标识节目录制的文件,所述录制节目的PID包括用于标识所述TS的传输流标识符、用于标识原始网络的原始网络标识符、 用于标识网络的网络标识符、用于标识业务的业务标识符和用于标识事件的事件标识符中的至少一个;
    所述是否录制标识符用于表示节目是否能够允许录制,0表示不允许录制、1表示允许录制,或者,1表示允许录制、0表示不允许录制;
    所述录制节目播放次数用于设置节目录制允许的播放次数;
    所述录制节目有效期用于设置节目录制允许的播放有效期;
    所述录制权限控制符用于设置节目录制的删除或者重命名或者排序的规则、方法和权限;以及
    所述预留字段用于预留未来扩展使用的字段。
  8. 根据权利要求7所述的装置,其中,所述解析模块,设置为:
    锁定预设频点并解调所述TS,解析所述NIT获取频点信息,根据所述频点信息依次锁频并解调;
    解析节目关联表PAT,获取与节目相关的节目映射表PMT的PID;
    根据所述节目映射表PMT的PID解析所述PMT,获取节目时钟参考的PID和音视频的PID;
    解析业务描述表SDT获取业务名称信息,解析所述PRD,得到解析后的节目录制信息;以及
    存储解析后的节目录制信息;以及
    所述录制模块,设置为:
    查找所述PRD版本号,与预先存储的数据进行比较,根据比较的结果获取最新版本的PRD;
    若所述是否录制标识符表示节目不允许录制,则结束录制;以及
    若所述是否录制标识符表示节目允许录制,则根据存储的解析后的节目录 制信息录制节目。
  9. 根据权利要求7所述的装置,其中,所述解析模块,设置为:
    在所述机顶盒开启后,在进行线程检测的情况下,解析所述录制权限控制符;以及
    所述录制模块,设置为:
    根据所述录制权限控制符对所述机顶盒发送对应的操作指令。
  10. 根据权利要求8所述的装置,其中,所述装置还包括:
    播放模块,设置为在所述机顶盒开启后,在进行线程检测的情况下,若所述解析后的节目录制信息为所述录制节目有效期和所述录制节目播放次数,则根据所述录制节目有效期和所述录制节目播放次数,对录制后的节目进行播放;以及
    所述播放模块,设置为:
    检测和判断录制节目是否在有效期内;
    若所述录制节目不在所述录制节目有效期内,则终止对已录制节目的回放操作;
    若所述录制节目在所述录制节目有效期内,则检测和判断所述录制节目播放次数是否大于0;以及
    若所述录制节目播放次数大于0,则每回放所述已录制节目一次,则将所述录制节目播放次数的值递减1。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5中任一项的方法。
PCT/CN2017/082909 2016-05-04 2017-05-03 录制节目的方法及装置 WO2017190661A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610293174.0 2016-05-04
CN201610293174.0A CN105916009B (zh) 2016-05-04 2016-05-04 一种录制节目的方法及装置

Publications (1)

Publication Number Publication Date
WO2017190661A1 true WO2017190661A1 (zh) 2017-11-09

Family

ID=56752363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082909 WO2017190661A1 (zh) 2016-05-04 2017-05-03 录制节目的方法及装置

Country Status (2)

Country Link
CN (1) CN105916009B (zh)
WO (1) WO2017190661A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738615A (zh) * 2020-12-25 2021-04-30 深圳市九洲电器有限公司 一种节目获取的方法、装置、机顶盒以及前端服务器
CN114866798A (zh) * 2022-05-10 2022-08-05 杭州国芯科技股份有限公司 一种快速获取dvb网络内节目方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105916009B (zh) * 2016-05-04 2019-07-12 深圳创维数字技术有限公司 一种录制节目的方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811808A (zh) * 2015-03-20 2015-07-29 四川长虹电器股份有限公司 一种全网络监测机顶盒软件空中升级的触发方法
CN105163133A (zh) * 2015-07-07 2015-12-16 深圳Tcl数字技术有限公司 节目信息的播放方法及装置
CN105323644A (zh) * 2015-10-14 2016-02-10 四川长虹电器股份有限公司 数字电视录制节目回放授权检查的方法
US20160105702A1 (en) * 2014-10-14 2016-04-14 Verizon Patent And Licensing Inc. Detecting and preventing false television viewership
CN105916009A (zh) * 2016-05-04 2016-08-31 深圳创维数字技术有限公司 一种录制节目的方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547446B (zh) * 2012-01-04 2015-12-16 深圳创维数字技术有限公司 一种数字电视节目录制保护方法、系统及数字电视终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160105702A1 (en) * 2014-10-14 2016-04-14 Verizon Patent And Licensing Inc. Detecting and preventing false television viewership
CN104811808A (zh) * 2015-03-20 2015-07-29 四川长虹电器股份有限公司 一种全网络监测机顶盒软件空中升级的触发方法
CN105163133A (zh) * 2015-07-07 2015-12-16 深圳Tcl数字技术有限公司 节目信息的播放方法及装置
CN105323644A (zh) * 2015-10-14 2016-02-10 四川长虹电器股份有限公司 数字电视录制节目回放授权检查的方法
CN105916009A (zh) * 2016-05-04 2016-08-31 深圳创维数字技术有限公司 一种录制节目的方法及装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738615A (zh) * 2020-12-25 2021-04-30 深圳市九洲电器有限公司 一种节目获取的方法、装置、机顶盒以及前端服务器
CN114866798A (zh) * 2022-05-10 2022-08-05 杭州国芯科技股份有限公司 一种快速获取dvb网络内节目方法
CN114866798B (zh) * 2022-05-10 2024-01-02 杭州国芯科技股份有限公司 一种快速获取dvb网络内节目方法

Also Published As

Publication number Publication date
CN105916009A (zh) 2016-08-31
CN105916009B (zh) 2019-07-12

Similar Documents

Publication Publication Date Title
US20140344846A1 (en) Receiver, program and receiving method
US8225354B2 (en) Merging electronic program guide information
US11019320B2 (en) Storage method, playback method, storage apparatus, and playback apparatus
EP2613267A1 (en) Reception device, reception method, transmission device, transmission method, program, and broadcast system
US8831405B2 (en) Transmission controller, reception controller, transmission control method, reception control method and transmission control program
US20080250101A1 (en) Multimedia data transmitting apparatus and multimedia data receiving apparatus
US20100037282A1 (en) Digital broadcasting receiver and semiconductor integrated circuit
US20070157263A1 (en) Content management system
KR20130098399A (ko) 미디어 콘텐트 송수신 방법 및 그를 이용한 송수신 장치
US20140089985A1 (en) Terminal cooperation system, receiver, and receiving method
US9641877B2 (en) System and method for conveying session information for use in forensic watermarking
KR20080060818A (ko) 데이터 방송 신호 수신 장치 및 데이터 방송 신호를처리하는 방법
WO2017190661A1 (zh) 录制节目的方法及装置
CA2619027C (en) Pmcp extension metadata, data stream generating device, digital data broadcasting emission system and digital data broadcasting emission method thereof
KR20140038482A (ko) 송신장치, 수신재생장치, 송신방법 및 수신재생방법
US20140380356A1 (en) Device and method for processing bi-directional service related to broadcast program
WO2005057931A2 (en) Method and system for generating highlights
US20110019971A1 (en) Digital broadcast recording apparatus
US20070266407A1 (en) Digital television receiver and method for processing broadcast signal
KR101733463B1 (ko) 사용자 제작 컨텐트를 위한 전자 프로그램 가이드를 생성하기 위한 시스템 및 방법
CN110663250B (zh) 信息处理设备、信息记录介质和信息处理方法
CN109274995B (zh) 一种保障iptv内容安全播出的方法
US9414020B2 (en) Method and apparatus for transmitting and receiving viewing restriction information of application
US9319736B2 (en) Apparatus and method for editing TS program information and TS recording device using the same
JP6037656B2 (ja) 受信機

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17792487

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17792487

Country of ref document: EP

Kind code of ref document: A1