WO2016045209A1 - Program switching method, device and terminal - Google Patents

Program switching method, device and terminal Download PDF

Info

Publication number
WO2016045209A1
WO2016045209A1 PCT/CN2014/094152 CN2014094152W WO2016045209A1 WO 2016045209 A1 WO2016045209 A1 WO 2016045209A1 CN 2014094152 W CN2014094152 W CN 2014094152W WO 2016045209 A1 WO2016045209 A1 WO 2016045209A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
audio
current
transmission
information
Prior art date
Application number
PCT/CN2014/094152
Other languages
French (fr)
Chinese (zh)
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 WO2016045209A1 publication Critical patent/WO2016045209A1/en

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/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
    • 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/4383Accessing a communication channel
    • H04N21/4384Accessing a communication channel involving operations to reduce the access time, e.g. fast-tuning for reducing channel switching latency

Definitions

  • the invention belongs to the field of television, and in particular relates to a program switching method, device and terminal.
  • the most widely used and most common application for digital image communication is the digital television broadcasting system, and the corresponding DVB (Digital Video)
  • the establishment of the Broadcasting (Digital Video Broadcasting) standard has accelerated the large-scale application of digital television broadcasting devices.
  • the DVB standard encodes a source to form a TS stream (Transport) Stream, transport stream), and then multiple TS streams are multiplexed to form MPTS (Multi-program transport Stream, multi-program transport stream), and then transmitted through different media such as satellite and cable TV.
  • PAT is extracted from the TS packet with PID 0x0 (program association Table, program association table), according to the current SPTS found in the PAT, the current program PMT is transmitted.
  • the code code transmits the package PID, extracts the program PMT from the SPTS, analyzes the PMT, and acquires the current program audio and video ES (elementary) Stream, elementary stream)
  • the data tag code conveys the packet PID and the type of audio and video format, which in turn initializes the decoder.
  • Embodiments of the present invention provide a program switching method to shorten a program switching time in a digital television broadcasting system.
  • the invention provides a program switching method, comprising the following steps:
  • Receiving a current program delivery stream Receiving a current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
  • the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data
  • the program map information of a program replaces the program map information of the current program, and the current program transport stream replaced by the transfer identifier information and the program map information is transmitted to the media player for playback.
  • the invention also provides a program switching device, comprising:
  • a transport stream converting unit configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
  • a data acquisition unit receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
  • a program mapping information acquiring unit which acquires program mapping information of the previous section
  • a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information
  • the transport stream processing unit when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data
  • the identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
  • the present invention further provides a terminal, including a communication interface, an input device, and an output device, wherein the terminal further includes a program switching device, and the program switching device is connected to the input device and the output device through a communication interface.
  • the program switching device includes:
  • a transport stream converting unit configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
  • a data acquisition unit receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
  • a program mapping information acquiring unit which acquires program mapping information of the previous section
  • a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information
  • the transport stream processing unit when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data
  • the identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
  • the method for program switching replaces the transmission identification information of the current program transmission audio and video data with the transmission identifier of the previous program transmission audio and video data when determining that the current program type is the same as the previous program type.
  • Information replacing the program mapping information of the current program with the program mapping information of the previous section, and transmitting the current program delivery stream replaced by the transmission identification information and the program mapping information to the media player for playing, so that the current program transmits the audio and video data.
  • the transmission identification information and the program mapping information of the current program are the same as the transmission identification information of the previous program transmission audio and video data and the program mapping information of the previous program, so that the current audio and video programs can be directly played without resetting the media player. It saves time for initializing the decoder and shortens the program switching time.
  • FIG. 1 is a flowchart of implementing a program switching method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of implementing a program switching method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a program switching apparatus according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
  • the audio and video program switching method provided by the embodiment of the present invention when determining that the current program type is the same as the previous program type, causes the current program to transmit the transmission identification information of the audio and video data and the program mapping information of the current program by the alternative manner. It is the same as the transmission identification information of the previous program to transmit audio and video data and the program mapping information of the previous section, so the current audio and video programs can be directly played without resetting the media player, saving the time for initializing the decoder and shortening the program. Switch time.
  • FIG. 1 is a flowchart showing an implementation process of a program switching method according to Embodiment 1 of the present invention, which is described in detail as follows:
  • step S101 the current program delivery stream is received, the current program audio and video type information, and the transmission identification information of the current program delivery stream audio and video data are acquired.
  • the current program audio and video type information may be obtained from a digital television signal during a search process, or may be obtained by parsing from a current program delivery stream.
  • the transmission identification information is a flag code transmission packet PID.
  • the identifier code transmission packet PID of the current program delivery stream audio and video data may be obtained from the digital television signal during the search process, or may be obtained by parsing from the current program transmission stream.
  • the audio type information includes but is not limited to ISO/IEC 11172 Audio, ISO/IEC 13818-3 Audio, AAC, AC3.
  • the video type information includes but is not limited to ISO/IEC 11172 Video, ISO/IEC 13818-2 Video, H264, H265, AVS, AVS+.
  • step S102 it is determined whether the current program audio and video type information is the same as the previous program audio and video type information. If the determination result is yes, the process proceeds to step S103; if the determination result is negative, the process proceeds to step S104.
  • the previous program audio and video type information is obtained from the digital television signal during the search process or is parsed from the previous program transmission stream.
  • step S103 the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data, and the program mapping information of the current program is replaced with the program mapping information of the previous section, and The current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
  • the transmission identification information is the identification code transmission packet PID
  • the identification code transmission packet PID is obtained from the digital television signal during the search process or is parsed from the previous program transmission stream.
  • the program map information is a program map table PMT.
  • replacing the program mapping table PMT of the current program with the program mapping table PMT of the previous section specifically includes the following steps:
  • each transport packet can only transmit a maximum of 188 bytes, for a program map PMT containing more than 188 bytes, the program map table PMT can be packaged into a plurality of transport packets.
  • the transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section.
  • the transport packet of the program map PMT of the current program is repeated and continuously transmitted, the transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section as a loop process.
  • step S104 the current program transmission stream is output to the media player for playback.
  • the program switching method provided by the embodiment of the present invention transmits the stream audio and current when the current program audio and video type is the same as the previous program audio and video type.
  • the code code transmission packet PID of the video data is replaced with the flag code transmission packet PID of the previous program transmission stream audio and video data
  • the program map PMT of the current program is replaced with the program map PMT of the previous section, and transmitted to the media player. So that the media player plays the current program transport stream that has been replaced by the code code transport packet PID and the program map table PMT. Since the current program transmits the audio code and the data code, the code code transport packet PID, PMT and the current program of the previous program are transmitted.
  • the code code transmission package PID of the audio and video data is the same as the program mapping table PMT, and the current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and realizing the audio and video programs quickly. Switch.
  • FIG. 2 is a flowchart showing an implementation process of a program switching method according to Embodiment 2 of the present invention, which is described in detail as follows:
  • the method further includes:
  • Step S201 converting the multi-channel program delivery stream provided by the broadcast television network into a single-channel program transmission stream of the current program.
  • the video stream provided by the broadcast television network is a multi-channel program transport stream
  • the current program transport stream played by the smart terminal is a single-channel program transport stream
  • it is required to transmit the multi-channel program provided by the broadcast television network.
  • the stream is converted to the current program delivery stream for the media player of the smart terminal to play.
  • a multi-channel program delivery stream provided by a broadcast television system is converted into a current program single-channel program transmission stream by the following method:
  • the one-way program association table PAT, the program map table PMT, and the audio and video data are the current program transport streams.
  • the method further includes:
  • Step S202 acquiring program mapping information of the previous section.
  • the program mapping information is the program mapping table PMT
  • the program link table PMT of the previous section is directly extracted in the previous program transmission stream, or audio and video according to the previous section.
  • FIG. 3 shows the structure of a program switching apparatus according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the device may be a software unit of a conditional receiver or a smart terminal device, a hardware unit or a unit of soft and hard combination.
  • the program switching device 10 includes:
  • the transport stream converting unit 11 converts the multi-channel program transport stream provided by the broadcast television network into a one-way program transport stream of the current program.
  • the data obtaining unit 12 receives the current program delivery stream, acquires current program audio and video type information, and transmission identification information of the current program delivery stream audio and video data;
  • the program mapping information acquiring unit 13 acquires program mapping information of the previous section
  • the program type information comparison unit 14 determines whether the current program audio and video type information is identical to the previous program audio and video type information
  • the transport stream processing unit 15 replaces the transmission identification information of the current program transmission audio and video data with the previous program transmission audio and video data when it is judged that the current program audio and video type information is the same as the previous program audio and video type information.
  • the identification information is transmitted, the program mapping information of the current program is replaced with the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
  • the transmission identification information is a flag code transmission packet PID
  • the program mapping information is a program mapping table PMT.
  • the data acquisition unit 12 when the transmission identifier information is the identifier code transmission packet PID, the data acquisition unit 12 includes:
  • the search data acquisition unit 121 acquires the current program audio and video type information and the flag code transmission package PID of the current program delivery stream audio and video data from the digital television signal during the search process; or
  • the parsing data obtaining unit 122 parses and retrieves the current program audio and video type information and the flag code transport packet PID of the current program transport stream audio and video data from the current program transport stream.
  • At least one of the search data acquisition unit 121 or the analysis data acquisition unit 122 may be present.
  • the program mapping information acquiring unit 13 when the program mapping information is the program mapping table PMT, the program mapping information acquiring unit 13 includes:
  • the PMT extracting unit 131 is configured to directly extract the program map PMT of the previous section in the previous program transport stream; or
  • the PMT reconstruction unit 132 is configured to reconstruct the program link table PMT of the previous section according to the audio and video type information of the previous section and the identifier transmission packet PID of the previous program transmission stream audio and video data.
  • At least one of the PMT extraction unit 131 or the PMT reconstruction unit 132 may be present.
  • the transport stream processing unit 15 when the program mapping information is the program mapping table PMT, the transport stream processing unit 15 includes:
  • the PMT encapsulating unit 151 encapsulates the PID code packet of the previous section into at least one transport packet
  • each transport packet can only transmit a maximum of 188 bytes, for a program map PMT containing more than 188 bytes, the program map table PMT can be packaged into a plurality of transport packets.
  • the PMT replacement unit 152 replaces the transport packet of the program map PMT of the current program with the transport packet of the program map PMT of the previous section.
  • the transport packet of the program map PMT of the current program is repeated and continuously transmitted, the transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section as a loop process.
  • the program switching apparatus transmits the stream audio and current when the current program audio and video type is the same as the previous program audio and video type.
  • the code code transmission packet PID of the video data is replaced with the flag code transmission packet PID of the previous program transmission stream audio and video data
  • the program map PMT of the current program is replaced with the program map PMT of the previous section, and transmitted to the media player. So that the media player plays the current program transport stream that has been replaced by the code code transport packet PID and the program map table PMT. Since the current program transmits the audio code and the data code, the code code transport packet PID, PMT and the current program of the previous program are transmitted.
  • the code code transmission package PID of the audio and video data is the same as the program mapping table PMT, and the current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and realizing the audio and video programs quickly. Switch.
  • FIG. 4 shows the structure of a terminal provided by an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the terminal includes:
  • the program switching device 10 is connected to the communication interface 20 and includes:
  • the transport stream converting unit 11 converts the multi-channel program transport stream provided by the broadcast television network into a one-way program transport stream of the current program.
  • the data obtaining unit 12 receives the current program delivery stream, acquires current program audio and video type information, and transmission identification information of the current program delivery stream audio and video data;
  • the program mapping information acquiring unit 13 acquires program mapping information of the previous section
  • the program type information comparison unit 14 determines whether the current program audio and video type information is identical to the previous program audio and video type information
  • the transport stream processing unit 15 replaces the transmission identification information of the current program transmission audio and video data with the previous program transmission audio and video data when it is judged that the current program audio and video type information is the same as the previous program audio and video type information.
  • the identification information is transmitted, the program mapping information of the current program is replaced with the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
  • the communication interface 20 is connected to the program switching device 10, the input device 30, and the output device 40, respectively, to implement data communication between the program switching device 10 and other devices such as the input device 30 and the output device 40.
  • the input device 30 is connected to the communication interface 20, receives a play command of the user, and transmits it to the communication interface 20.
  • the input device 30 includes, but is not limited to, a button, a mouse, a keyboard remote controller, and the like.
  • the output device 40 is connected to the communication interface 20, and receives and outputs a digital television signal transmitted by the communication interface 20 and processed by the program switching device 10.
  • the output device 40 includes, but is not limited to, a player, a display screen, a speaker, and the like.
  • the terminal includes, but is not limited to, a smart TV, a conditional receiver, a network box, and the like.
  • the terminal replaces the identifier code transmission packet PID of the current program delivery stream audio and video data with the previous program delivery stream audio when determining that the current program audio and video type is the same as the previous program audio and video type.
  • the code data transmission package PID of the video data replaces the program map PMT of the current program with the program map PMT of the previous section, and transmits it to the media player, so that the media player transmits the package PID and the program map to the flag code.
  • the current program transport stream replaced by the table PMT is played, and the flag code transport packet PID, PMT of the current program transmitting audio and video data is the same as the code code transport packet PID of the current program transmitting audio and video data of the previous program, and the program map PMT.
  • the current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and enabling fast switching of audio and video programs.

Landscapes

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

Abstract

The present invention is suitable for the field of televisions. Provided is a program switching method, comprising the following steps: receiving a current program transport stream, and obtaining current program audio and video type information and transport identification information of current program transport stream audio and video data; when it is determined that the current program audio and video type information is the same as a previous program audio and video type information, replacing the transport identification information of the current program transport audio and video data with the transport identification information of the previous program transport audio and video data, replacing program map information of the current program with program map information of the previous program, and transporting the current program transport stream, with the transport identification information and the program map information thereof replaced, to a media player for playing the same. The program switching method provided in an embodiment of the present invention can directly play the current audio and video program without resetting the media player, such that a time for initializing a decoder is saved, thus shortening program switching time.

Description

一种节目切换方法、装置及终端  Program switching method, device and terminal 技术领域Technical field
本发明属于电视领域,尤其涉及一种节目切换方法、装置及终端。The invention belongs to the field of television, and in particular relates to a program switching method, device and terminal.
背景技术Background technique
数字图像通信最广泛、也是最常见的应用就是数字电视广播系统,与此对应的 DVB (Digital Video Broadcasting,数字视频广播)标准的建立更是加速了数字电视广播装置的大规模应用。DVB 标准对信源编码后形成TS流(Transport stream,传送流),再将多个TS流进行复用形成MPTS(Multi-program transport stream,多节目传送流),然后通过卫星、有线电视等不同媒介进行传送。The most widely used and most common application for digital image communication is the digital television broadcasting system, and the corresponding DVB (Digital Video) The establishment of the Broadcasting (Digital Video Broadcasting) standard has accelerated the large-scale application of digital television broadcasting devices. The DVB standard encodes a source to form a TS stream (Transport) Stream, transport stream), and then multiple TS streams are multiplexed to form MPTS (Multi-program transport Stream, multi-program transport stream), and then transmitted through different media such as satellite and cable TV.
随着智能终端的普及,现在越来越多的需要通过安装在智能终端系统,如Android系统上的通用媒体播放器播放数字视频广播节目。由于数字视频广播节目包含不同的音频和视频节目类型,不同音频和视频节目的音频和视频类型以及PMT(program map table,节目映射表)的标志码传送包PID (packet ID dentifier,标志码传送包)并不相同,每次切换音频和视频节目都需要复位媒体播放器,即重新从当前SPTS(single program transport stream,单节目传送流)里边PID为0x0的TS包中提取PAT(program association table,节目关联表),根据PAT中描述找到的当前SPTS传送当前节目PMT 的标志码传送包PID,从SPTS中提取节目PMT,对PMT进行分析,获取传送当前节目音频和视频ES (elementary stream,基本码流)数据标志码传送包PID及音频和视频格式的类型,进而初始化解码器。With the popularity of smart terminals, there is now a growing need to play digital video broadcast programs through a universal media player installed on a smart terminal system, such as the Android system. Since digital video broadcast programs contain different audio and video program types, audio and video types for different audio and video programs, and PMT (program) Map table, program map table) flag code transfer packet PID (packet ID The dentifier, the code code transmission package) is not the same. Every time you switch audio and video programs, you need to reset the media player, that is, re-send the current SPTS (single program transport). Stream, single program transport stream) PAT is extracted from the TS packet with PID 0x0 (program association Table, program association table), according to the current SPTS found in the PAT, the current program PMT is transmitted. The code code transmits the package PID, extracts the program PMT from the SPTS, analyzes the PMT, and acquires the current program audio and video ES (elementary) Stream, elementary stream) The data tag code conveys the packet PID and the type of audio and video format, which in turn initializes the decoder.
由于初始化解码器往往需要耗费数秒的时间,耗时较长,使得现有数字电视广播系统中的节目切换的时间大大增加,导致节目切换时间长。Since the initialization of the decoder often takes a few seconds and takes a long time, the time for program switching in the existing digital television broadcasting system is greatly increased, resulting in a long program switching time.
技术解决方案Technical solution
本发明实施例提供一种节目切换方法,以缩短在数字电视广播系统中节目切换时间。Embodiments of the present invention provide a program switching method to shorten a program switching time in a digital television broadcasting system.
本发明提供一种节目切换方法,包括如下步骤:The invention provides a program switching method, comprising the following steps:
接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;Receiving a current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;Determining whether the current program audio and video type information is the same as the previous program audio and video type information;
当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。When it is judged that the current program audio and video type information is the same as the previous program audio and video type information, the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data, The program map information of a program replaces the program map information of the current program, and the current program transport stream replaced by the transfer identifier information and the program map information is transmitted to the media player for playback.
本发明还提供一种节目切换装置,包括:The invention also provides a program switching device, comprising:
传送流转换单元,用于将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。And a transport stream converting unit, configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
数据获取单元,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;a data acquisition unit, receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
节目映射信息获取单元,获取上一节目的节目映射信息;a program mapping information acquiring unit, which acquires program mapping information of the previous section;
节目类型信息比对单元,用于判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information;
传送流处理单元,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。The transport stream processing unit, when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data The identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
本发明还提供一种终端,包括通信接口、输入设备、输出设备,其特征在于,所述终端还包括节目切换装置,所述节目切换装置通过通信接口与所述输入设备和输出设备连接,所述节目切换装置包括:The present invention further provides a terminal, including a communication interface, an input device, and an output device, wherein the terminal further includes a program switching device, and the program switching device is connected to the input device and the output device through a communication interface. The program switching device includes:
传送流转换单元,用于将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。And a transport stream converting unit, configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
数据获取单元,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;a data acquisition unit, receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
节目映射信息获取单元,获取上一节目的节目映射信息;a program mapping information acquiring unit, which acquires program mapping information of the previous section;
节目类型信息比对单元,用于判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information;
传送流处理单元,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。The transport stream processing unit, when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data The identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
本发明实施例提供的节目切换的方法,当判断当前节目类型与上一节目类型相同时,通过将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放,使得当前节目传送音频和视频数据的传送标识信息以及当前节目的节目映射信息与上一节目传送音频和视频数据的传送标识信息以及上一节目的节目映射信息相同,因此无需复位媒体播放器即可直接播放当前音频和视频节目,节约了初始化解码器的时间,缩短了节目切换时间。The method for program switching provided by the embodiment of the present invention replaces the transmission identification information of the current program transmission audio and video data with the transmission identifier of the previous program transmission audio and video data when determining that the current program type is the same as the previous program type. Information, replacing the program mapping information of the current program with the program mapping information of the previous section, and transmitting the current program delivery stream replaced by the transmission identification information and the program mapping information to the media player for playing, so that the current program transmits the audio and video data. The transmission identification information and the program mapping information of the current program are the same as the transmission identification information of the previous program transmission audio and video data and the program mapping information of the previous program, so that the current audio and video programs can be directly played without resetting the media player. It saves time for initializing the decoder and shortens the program switching time.
附图说明DRAWINGS
图1是本发明实施例一提供的节目切换方法的实现流程图;1 is a flowchart of implementing a program switching method according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的节目切换方法的实现流程图;2 is a flowchart of implementing a program switching method according to Embodiment 2 of the present invention;
图3是本发明实施例三提供的节目切换装置的结构示意图;3 is a schematic structural diagram of a program switching apparatus according to Embodiment 3 of the present invention;
图4是本发明实施例四提供的终端的结构示意图。FIG. 4 is a schematic structural diagram of a terminal according to Embodiment 4 of the present invention.
本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供的音频和视频节目切换的方法,当判断当前节目类型与上一节目类型相同时,通过替换的方式使得当前节目传送音频和视频数据的传送标识信息以及当前节目的节目映射信息与上一节目传送音频和视频数据的传送标识信息以及上一节目的节目映射信息相同,因此无需复位媒体播放器即可直接播放当前音频和视频节目,节约了初始化解码器的时间,缩短了节目切换时间。The audio and video program switching method provided by the embodiment of the present invention, when determining that the current program type is the same as the previous program type, causes the current program to transmit the transmission identification information of the audio and video data and the program mapping information of the current program by the alternative manner. It is the same as the transmission identification information of the previous program to transmit audio and video data and the program mapping information of the previous section, so the current audio and video programs can be directly played without resetting the media player, saving the time for initializing the decoder and shortening the program. Switch time.
图1示出了本发明实施例一提供的节目切换方法的实现流程,详述如下:FIG. 1 is a flowchart showing an implementation process of a program switching method according to Embodiment 1 of the present invention, which is described in detail as follows:
在步骤S101中,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息。In step S101, the current program delivery stream is received, the current program audio and video type information, and the transmission identification information of the current program delivery stream audio and video data are acquired.
在本发明实施例中,当前节目音频和视频类型信息可以为搜台过程中从数字电视信号中获取的,也可以为从当前节目传送流中解析获取的。In the embodiment of the present invention, the current program audio and video type information may be obtained from a digital television signal during a search process, or may be obtained by parsing from a current program delivery stream.
作为本发明一个实施例,传送标识信息为标志码传送包PID。As an embodiment of the present invention, the transmission identification information is a flag code transmission packet PID.
在本发明实施例中,当前节目传送流音频和视频数据的标志码传送包PID可以为搜台过程中从数字电视信号中获取的,也可以为从当前节目传送流中解析获取的。In the embodiment of the present invention, the identifier code transmission packet PID of the current program delivery stream audio and video data may be obtained from the digital television signal during the search process, or may be obtained by parsing from the current program transmission stream.
在本发明实施例中,音频类型信息包括但不限于ISO/IEC 11172 Audio、ISO/IEC 13818-3 Audio、AAC、AC3。In the embodiment of the present invention, the audio type information includes but is not limited to ISO/IEC 11172 Audio, ISO/IEC 13818-3 Audio, AAC, AC3.
在本发明实施例中,视频类型信息包括但不限于ISO/IEC 11172 Video、ISO/IEC 13818-2 Video、H264、H265、AVS、AVS+。In the embodiment of the present invention, the video type information includes but is not limited to ISO/IEC 11172 Video, ISO/IEC 13818-2 Video, H264, H265, AVS, AVS+.
在步骤S102中,判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同,若判断结果为是,则进入步骤S103;若判断结果为否,则进入步骤S104。In step S102, it is determined whether the current program audio and video type information is the same as the previous program audio and video type information. If the determination result is yes, the process proceeds to step S103; if the determination result is negative, the process proceeds to step S104.
在本发明实施例中,上一节目音频和视频类型信息为搜台过程中从数字电视信号中获取的或者从上一节目传送流中解析获取的。In the embodiment of the present invention, the previous program audio and video type information is obtained from the digital television signal during the search process or is parsed from the previous program transmission stream.
在步骤S103中,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。In step S103, the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data, and the program mapping information of the current program is replaced with the program mapping information of the previous section, and The current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
在本发明实施例中,当传送标识信息为标志码传送包PID时,标志码传送包PID为搜台过程中从数字电视信号中获取的或者从上一节目传送流中解析获取的。In the embodiment of the present invention, when the transmission identification information is the identification code transmission packet PID, the identification code transmission packet PID is obtained from the digital television signal during the search process or is parsed from the previous program transmission stream.
作为本发明一个实施例,节目映射信息为节目映射表PMT。As an embodiment of the present invention, the program map information is a program map table PMT.
在本发明实施例中,当节目映射信息为节目映射表PMT时,用上一节目的节目映射表PMT替换当前节目的节目映射表PMT具体包括如下步骤:In the embodiment of the present invention, when the program mapping information is the program mapping table PMT, replacing the program mapping table PMT of the current program with the program mapping table PMT of the previous section specifically includes the following steps:
将所述上一节目的节目映射表PMT封装成一个或者多个传送包;Encapsulating the program listing table PMT of the previous section into one or more transport packets;
由于每个传送包最多只能传送188个字节,对于包含超过188个字节的节目映射表PMT,可以将节目映射表PMT封装成多个传送包。Since each transport packet can only transmit a maximum of 188 bytes, for a program map PMT containing more than 188 bytes, the program map table PMT can be packaged into a plurality of transport packets.
用所述上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包。The transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section.
由于当前节目的节目映射表PMT的传送包为重复、持续传送的,因此用上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包为一循环过程。Since the transport packet of the program map PMT of the current program is repeated and continuously transmitted, the transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section as a loop process.
在步骤S104中,输出当前节目传输流至媒体播放器进行播放。In step S104, the current program transmission stream is output to the media player for playback.
在DVB节目系统中,节目音频和视频类型往往相同,本发明实施例提供的节目切换方法,当判断当前节目音频和视频类型与上一节目音频和视频类型相同时,将当前节目传送流音频和视频数据的标志码传送包PID替换为上一节目传送流音频和视频数据的标志码传送包PID,用上一节目的节目映射表PMT替换当前节目的节目映射表PMT,并传送至媒体播放器,以使媒体播放器对经过标志码传送包PID、节目映射表PMT替换的当前节目传送流进行播放,由于当前节目传送音频和视频数据的标志码传送包PID、PMT与上一节目当前节目传送音频和视频数据的标志码传送包PID、节目映射表PMT相同,无需复位媒体播放器即可直接播放当前音频和视频节目,节约了媒体播放器复位的时间,而实现了音频和视频节目的快速切换。In the DVB program system, the program audio and video types are often the same. The program switching method provided by the embodiment of the present invention transmits the stream audio and current when the current program audio and video type is the same as the previous program audio and video type. The code code transmission packet PID of the video data is replaced with the flag code transmission packet PID of the previous program transmission stream audio and video data, and the program map PMT of the current program is replaced with the program map PMT of the previous section, and transmitted to the media player. So that the media player plays the current program transport stream that has been replaced by the code code transport packet PID and the program map table PMT. Since the current program transmits the audio code and the data code, the code code transport packet PID, PMT and the current program of the previous program are transmitted. The code code transmission package PID of the audio and video data is the same as the program mapping table PMT, and the current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and realizing the audio and video programs quickly. Switch.
本领域普通技术人员可以理解,实现上述实施例方法中的全部或者部分步骤是可以通过程序来指令相关的硬件来完成的,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘、闪盘等。It will be understood by those skilled in the art that all or part of the steps of the foregoing embodiments may be implemented by a program to instruct related hardware, and the program may be stored in a computer readable storage medium. Storage media, such as ROM/RAM, disk, CD, flash drive, etc.
图2示出了本发明实施例二提供的节目切换方法的实现流程,详述如下:FIG. 2 is a flowchart showing an implementation process of a program switching method according to Embodiment 2 of the present invention, which is described in detail as follows:
其与实施例一的不同在于,在步骤S101之前,还包括:The difference from the first embodiment is that, before the step S101, the method further includes:
步骤S201,将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。Step S201, converting the multi-channel program delivery stream provided by the broadcast television network into a single-channel program transmission stream of the current program.
在本发明实施例中,由于广播电视网络提供的视频流为多路节目传送流,而智能终端播放的当前节目传送流为单路节目传送流,因此需要将广播电视网络提供的多路节目传送流转换为当前节目传送流,以使智能终端的媒体播放器对其进行播放。In the embodiment of the present invention, since the video stream provided by the broadcast television network is a multi-channel program transport stream, and the current program transport stream played by the smart terminal is a single-channel program transport stream, it is required to transmit the multi-channel program provided by the broadcast television network. The stream is converted to the current program delivery stream for the media player of the smart terminal to play.
作为本发明一个实施例,通过以下方法将广播电视系统提供的多路节目传送流转换为当前节目单路节目传送流:As an embodiment of the present invention, a multi-channel program delivery stream provided by a broadcast television system is converted into a current program single-channel program transmission stream by the following method:
根据携带有当前节目标识信息的节目选择指令,将多路节目传送流过滤输出节目关联表PAT和节目映射表PMT,以及对应的当前节目的音频和视频数据; And filtering the multi-program transmission stream to output the program association table PAT and the program mapping table PMT, and corresponding audio and video data of the current program according to the program selection instruction carrying the current program identification information;
将所述节目关联表PAT和节目映射表PMT更新为单路节目关联表PAT和节目映射表PMT,将所述单路节目关联表PAT 、节目映射表PMT和音频和视频数据输出。所述单路节目关联表PAT 、节目映射表PMT和音频和视频数据即为当前节目传送流。Updating the program association table PAT and the program map table PMT to the one-way program association table PAT and the program map table PMT, and the single-channel program association table PAT , program map PMT and audio and video data output. The one-way program association table PAT, the program map table PMT, and the audio and video data are the current program transport streams.
在步骤S102之前还包括:Before step S102, the method further includes:
步骤S202,获取上一节目的节目映射信息。Step S202, acquiring program mapping information of the previous section.
在本发明实施例中,当节目映射信息为节目映射表PMT时,所述上一节目的节目映射表PMT为在上一节目传送流中直接提取获得的,或者根据上一节目的音频和视频类型信息、以及上一节目传送流音频和视频数据的标志码传送包PID重构获得的。 In the embodiment of the present invention, when the program mapping information is the program mapping table PMT, the program link table PMT of the previous section is directly extracted in the previous program transmission stream, or audio and video according to the previous section. The type information, as well as the signature transmission packet PID reconstruction of the previous program transport stream audio and video data.
图3示出了本发明实施例提供的节目切换装置的结构,为了便于描述,仅示出了与本发明实施例相关的部分。该装置可以为条件接收器或者智能终端设备的软件单元、硬件单元或者软硬结合的单元。FIG. 3 shows the structure of a program switching apparatus according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown. The device may be a software unit of a conditional receiver or a smart terminal device, a hardware unit or a unit of soft and hard combination.
节目切换装置10包括:The program switching device 10 includes:
传送流转换单元11,将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。The transport stream converting unit 11 converts the multi-channel program transport stream provided by the broadcast television network into a one-way program transport stream of the current program.
数据获取单元12,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;The data obtaining unit 12 receives the current program delivery stream, acquires current program audio and video type information, and transmission identification information of the current program delivery stream audio and video data;
节目映射信息获取单元13,获取上一节目的节目映射信息;The program mapping information acquiring unit 13 acquires program mapping information of the previous section;
节目类型信息比对单元14,判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及The program type information comparison unit 14 determines whether the current program audio and video type information is identical to the previous program audio and video type information;
传送流处理单元15,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。The transport stream processing unit 15 replaces the transmission identification information of the current program transmission audio and video data with the previous program transmission audio and video data when it is judged that the current program audio and video type information is the same as the previous program audio and video type information. The identification information is transmitted, the program mapping information of the current program is replaced with the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
在本发明实施例中,所述传送标识信息为标志码传送包PID,所述节目映射信息为节目映射表PMT。In the embodiment of the present invention, the transmission identification information is a flag code transmission packet PID, and the program mapping information is a program mapping table PMT.
在本发明实施例中,当传送标识信息为标志码传送包PID时,数据获取单元12包括:In the embodiment of the present invention, when the transmission identifier information is the identifier code transmission packet PID, the data acquisition unit 12 includes:
搜台数据获取单元121,在搜台过程中从数字电视信号中获取当前节目音频和视频类型信息和当前节目传送流音频和视频数据的标志码传送包PID;或者The search data acquisition unit 121 acquires the current program audio and video type information and the flag code transmission package PID of the current program delivery stream audio and video data from the digital television signal during the search process; or
解析数据获取单元122,从当前节目传送流中解析获取当前节目音频和视频类型信息和当前节目传送流音频和视频数据的标志码传送包PID。The parsing data obtaining unit 122 parses and retrieves the current program audio and video type information and the flag code transport packet PID of the current program transport stream audio and video data from the current program transport stream.
在实际应用中,搜台数据获取单元121或者解析数据获取单元122至少存在一个即可。In practical applications, at least one of the search data acquisition unit 121 or the analysis data acquisition unit 122 may be present.
在本发明实施例中,当节目映射信息为节目映射表PMT时,节目映射信息获取单元13包括:In the embodiment of the present invention, when the program mapping information is the program mapping table PMT, the program mapping information acquiring unit 13 includes:
PMT提取单元131,用于在上一节目传送流中直接提取上一节目的节目映射表PMT;或者The PMT extracting unit 131 is configured to directly extract the program map PMT of the previous section in the previous program transport stream; or
PMT重构单元132,用于根据上一节目的音频和视频类型信息、以及上一节目传送流音频和视频数据的标志码传送包PID重构上一节目的节目映射表PMT。The PMT reconstruction unit 132 is configured to reconstruct the program link table PMT of the previous section according to the audio and video type information of the previous section and the identifier transmission packet PID of the previous program transmission stream audio and video data.
在实际应用中, PMT提取单元131或者PMT重构单元132至少存在一个即可。In practical applications, at least one of the PMT extraction unit 131 or the PMT reconstruction unit 132 may be present.
在本发明实施例中,当节目映射信息为节目映射表PMT时,所述传送流处理单元15包括:In the embodiment of the present invention, when the program mapping information is the program mapping table PMT, the transport stream processing unit 15 includes:
PMT封装单元151,将所述上一节目的标志码传送包PID封装成至少一个传送包;The PMT encapsulating unit 151 encapsulates the PID code packet of the previous section into at least one transport packet;
由于每个传送包最多只能传送188个字节,对于包含超过188个字节的节目映射表PMT,可以将节目映射表PMT封装成多个传送包。Since each transport packet can only transmit a maximum of 188 bytes, for a program map PMT containing more than 188 bytes, the program map table PMT can be packaged into a plurality of transport packets.
PMT替换单元152,用所述上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包。The PMT replacement unit 152 replaces the transport packet of the program map PMT of the current program with the transport packet of the program map PMT of the previous section.
由于当前节目的节目映射表PMT的传送包为重复、持续传送的,因此用上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包为一循环过程。Since the transport packet of the program map PMT of the current program is repeated and continuously transmitted, the transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section as a loop process.
在DVB节目系统中,节目音频和视频类型往往相同,本发明实施例提供的节目切换装置,当判断当前节目音频和视频类型与上一节目音频和视频类型相同时,将当前节目传送流音频和视频数据的标志码传送包PID替换为上一节目传送流音频和视频数据的标志码传送包PID,用上一节目的节目映射表PMT替换当前节目的节目映射表PMT,并传送至媒体播放器,以使媒体播放器对经过标志码传送包PID、节目映射表PMT替换的当前节目传送流进行播放,由于当前节目传送音频和视频数据的标志码传送包PID、PMT与上一节目当前节目传送音频和视频数据的标志码传送包PID、节目映射表PMT相同,无需复位媒体播放器即可直接播放当前音频和视频节目,节约了媒体播放器复位的时间,而实现了音频和视频节目的快速切换。In the DVB program system, the program audio and video types are often the same. The program switching apparatus provided by the embodiment of the present invention transmits the stream audio and current when the current program audio and video type is the same as the previous program audio and video type. The code code transmission packet PID of the video data is replaced with the flag code transmission packet PID of the previous program transmission stream audio and video data, and the program map PMT of the current program is replaced with the program map PMT of the previous section, and transmitted to the media player. So that the media player plays the current program transport stream that has been replaced by the code code transport packet PID and the program map table PMT. Since the current program transmits the audio code and the data code, the code code transport packet PID, PMT and the current program of the previous program are transmitted. The code code transmission package PID of the audio and video data is the same as the program mapping table PMT, and the current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and realizing the audio and video programs quickly. Switch.
图4示出了本发明实施例提供的终端的结构,为了便于描述,仅示出了与本发明实施例相关的部分。FIG. 4 shows the structure of a terminal provided by an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
终端包括:The terminal includes:
节目切换装置10,与通信接口20连接,包括:The program switching device 10 is connected to the communication interface 20 and includes:
传送流转换单元11,将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。The transport stream converting unit 11 converts the multi-channel program transport stream provided by the broadcast television network into a one-way program transport stream of the current program.
数据获取单元12,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;The data obtaining unit 12 receives the current program delivery stream, acquires current program audio and video type information, and transmission identification information of the current program delivery stream audio and video data;
节目映射信息获取单元13,获取上一节目的节目映射信息;The program mapping information acquiring unit 13 acquires program mapping information of the previous section;
节目类型信息比对单元14,判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及The program type information comparison unit 14 determines whether the current program audio and video type information is identical to the previous program audio and video type information;
传送流处理单元15,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。The transport stream processing unit 15 replaces the transmission identification information of the current program transmission audio and video data with the previous program transmission audio and video data when it is judged that the current program audio and video type information is the same as the previous program audio and video type information. The identification information is transmitted, the program mapping information of the current program is replaced with the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playback.
通信接口20分别与节目切换装置10、输入设备30和输出设备40连接,实现节目切换装置10与输入设备30和输出设备40等终端其它设备之间的数据通信。The communication interface 20 is connected to the program switching device 10, the input device 30, and the output device 40, respectively, to implement data communication between the program switching device 10 and other devices such as the input device 30 and the output device 40.
输入设备30,与通信接口20连接,接收用户的播放指令并发送给通信接口20。在本发明实施例中,输入设备30包括但不限于,按钮、鼠标、键盘遥控器等。The input device 30 is connected to the communication interface 20, receives a play command of the user, and transmits it to the communication interface 20. In the embodiment of the present invention, the input device 30 includes, but is not limited to, a button, a mouse, a keyboard remote controller, and the like.
输出设备40,与通信接口20连接,接收通信接口20传送的、经节目切换装置10处理的数字电视信号,并输出。在本发明实施例中,输出设备40包括但不限于播放器、显示屏、喇叭等。The output device 40 is connected to the communication interface 20, and receives and outputs a digital television signal transmitted by the communication interface 20 and processed by the program switching device 10. In the embodiment of the present invention, the output device 40 includes, but is not limited to, a player, a display screen, a speaker, and the like.
在本发明实施例中,终端包括但不限于智能电视、条件接收器、网络盒子等。In the embodiment of the present invention, the terminal includes, but is not limited to, a smart TV, a conditional receiver, a network box, and the like.
本发明实施例提供的终端,当判断当前节目音频和视频类型与上一节目音频和视频类型相同时,将当前节目传送流音频和视频数据的标志码传送包PID替换为上一节目传送流音频和视频数据的标志码传送包PID,用上一节目的节目映射表PMT替换当前节目的节目映射表PMT,并传送至媒体播放器,以使媒体播放器对经过标志码传送包PID、节目映射表PMT替换的当前节目传送流进行播放,由于当前节目传送音频和视频数据的标志码传送包PID、PMT与上一节目当前节目传送音频和视频数据的标志码传送包PID、节目映射表PMT相同,无需复位媒体播放器即可直接播放当前音频和视频节目,节约了媒体播放器复位的时间,而实现了音频和视频节目的快速切换。The terminal provided by the embodiment of the present invention replaces the identifier code transmission packet PID of the current program delivery stream audio and video data with the previous program delivery stream audio when determining that the current program audio and video type is the same as the previous program audio and video type. And the code data transmission package PID of the video data, replaces the program map PMT of the current program with the program map PMT of the previous section, and transmits it to the media player, so that the media player transmits the package PID and the program map to the flag code. The current program transport stream replaced by the table PMT is played, and the flag code transport packet PID, PMT of the current program transmitting audio and video data is the same as the code code transport packet PID of the current program transmitting audio and video data of the previous program, and the program map PMT. The current audio and video programs can be directly played without resetting the media player, saving the time for the media player to reset, and enabling fast switching of audio and video programs.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (14)

  1. 一种节目切换方法,其特征在于,所述方法包括如下步骤: A program switching method, characterized in that the method comprises the following steps:
    接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;Receiving a current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
    判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;Determining whether the current program audio and video type information is the same as the previous program audio and video type information;
    当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。 When it is judged that the current program audio and video type information is the same as the previous program audio and video type information, the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data, The program map information of a program replaces the program map information of the current program, and the current program transport stream replaced by the transfer identifier information and the program map information is transmitted to the media player for playback.
  2. 如权利要求1所述的方法,其特征在于,在接收当前节目传送流前,还包括:The method of claim 1 further comprising: before receiving the current program delivery stream, further comprising:
    将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。 The multi-channel program delivery stream provided by the broadcast television network is converted into a single program transmission stream of the current program.
  3. 如权利要求1所述的方法,其特征在于,在将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放前,还包括:The method according to claim 1, wherein the transmission identification information of the current program transmission audio and video data is replaced with the transmission identification information of the previous program transmission audio and video data, and is replaced by the program mapping information of the previous section. Before the program mapping information of the current program and the current program delivery stream replaced by the transmission identification information and the program mapping information are transmitted to the media player for playing, the method further includes:
    获取上一节目的节目映射信息。 Get the program map information of the previous section.
  4. 如权利要求1、2或3所述的方法,其特征在于,所述传送标识信息为标志码传送包PID,所述节目映射信息为节目映射表PMT。 The method according to claim 1, 2 or 3, wherein said transmission identification information is a flag code transmission packet PID, and said program mapping information is a program map table PMT.
  5. 如权利要求4所述的方法,其特征在于,The method of claim 4 wherein:
    当前节目音频和视频类型信息为搜台过程中从数字电视信号中获取的,或者从当前节目传送流中解析获取的;The current program audio and video type information is obtained from the digital television signal during the search process, or is parsed from the current program delivery stream;
    当前节目传送流音频和视频数据的标志码传送包PID为搜台过程中从数字电视信号中获取的,或者从当前节目传送流中解析获取的。 The current code transmission stream audio and video data tag code transmission packet PID is obtained from the digital television signal during the search process, or is parsed from the current program transmission stream.
  6. 如权利要求4所述的方法,其特征在于,The method of claim 4 wherein:
    所述上一节目的节目映射表PMT为在上一节目传送流中直接提取获得的,或者根据上一节目的音频和视频类型信息、以及上一节目传送流音频和视频数据的标志码传送包PID重构获得的。 The program map PMT of the previous section is obtained by directly extracting in the previous program transport stream, or according to the audio and video type information of the previous section, and the flag code transmission package of the previous program transport stream audio and video data. PID reconstruction obtained.
  7. 如权利要求4所述的方法,其特征在于,用上一节目的节目映射表PMT替换当前节目的节目映射表PMT具体包括如下步骤:The method of claim 4, wherein replacing the program map PMT of the current program with the program map PMT of the previous section specifically comprises the following steps:
    将所述上一节目的节目映射表PMT封装成至少一个传送包;Encapsulating the program listing table PMT of the previous section into at least one transport packet;
    用所述上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包。 The transport packet of the program map PMT of the current program is replaced with the transport packet of the program map PMT of the previous section.
  8. 一种节目切换装置,其特征在于,所述装置包括:A program switching device, characterized in that the device comprises:
    传送流转换单元,用于将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。And a transport stream converting unit, configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
    数据获取单元,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;a data acquisition unit, receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
    节目映射信息获取单元,获取上一节目的节目映射信息;a program mapping information acquiring unit, which acquires program mapping information of the previous section;
    节目类型信息比对单元,用于判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information;
    传送流处理单元,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。 The transport stream processing unit, when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data The identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
  9. 如权利要求8所述的装置,其特征在于,所述传送标识信息为标志码传送包PID,所述节目映射信息为节目映射表PMT。 The apparatus according to claim 8, wherein said transmission identification information is a flag code transmission packet PID, and said program mapping information is a program map table PMT.
  10. 如权利要求9所述的节目切换装置,其特征在于,所述数据获取单元包括:The program switching device according to claim 9, wherein the data acquisition unit comprises:
    搜台数据获取单元,用于在搜台过程中从数字电视信号中获取当前节目音频和视频类型信息和当前节目传送流音频和视频数据的标志码传送包PID;或者a search data acquisition unit, configured to acquire, from the digital television signal, the current program audio and video type information and the current code of the current program delivery stream audio and video data in the search process; or
    解析数据获取单元,用于从当前节目传送流中解析获取当前节目音频和视频类型信息和当前节目传送流音频和视频数据的标志码传送包PID。 The parsing data obtaining unit is configured to parse the current program audio and video type information from the current program transport stream and the flag code transport packet PID of the current program transport stream audio and video data.
  11. 如权利要求9所述的节目切换装置,其特征在于, 所述节目映射表PMT获取单元包括:The program switching apparatus according to claim 9, wherein the program map table PMT acquisition unit comprises:
    PMT提取单元,用于在上一节目传送流中直接提取上一节目的节目映射表PMT;或者a PMT extracting unit, configured to directly extract the program map PMT of the previous section in the previous program transport stream; or
    PMT重构单元,用于根据上一节目的音频和视频类型信息、以及上一节目传送流音频和视频数据的标志码传送包PID重构上一节目的节目映射表PMT。 The PMT reconstruction unit is configured to reconstruct the program map PMT of the previous section according to the audio and video type information of the previous section and the identifier transmission packet PID of the previous program transmission stream audio and video data.
  12. 如权利要求9所述的节目切换装置,其特征在于,所述传送流处理单元包括:The program switching apparatus according to claim 9, wherein said transport stream processing unit comprises:
    PMT封装单元,用于将所述上一节目的标志码传送包PID封装成至少一个传送包;a PMT encapsulating unit, configured to encapsulate the PID code packet of the previous section into at least one transport packet;
    PMT替换单元,用于将所述上一节目的节目映射表PMT的传送包替换当前节目的节目映射表PMT的传送包。 The PMT replacement unit is configured to replace the transport packet of the program link table PMT of the previous section with the transport packet of the program map PMT of the current program.
  13. 一种终端,包括通信接口、输入设备、输出设备,其特征在于,所述终端设备还包括节目切换装置,所述节目切换装置通过通信接口与所述输入设备和输出设备连接,所述节目切换装置包括:A terminal includes a communication interface, an input device, and an output device, wherein the terminal device further includes a program switching device, wherein the program switching device is connected to the input device and the output device through a communication interface, and the program switching The device includes:
    传送流转换单元,用于将广播电视网络提供的多路节目传送流转换为当前节目的单路节目传送流。And a transport stream converting unit, configured to convert the multi-program program stream provided by the broadcast television network into a single program program stream of the current program.
    数据获取单元,接收当前节目传送流,获取当前节目音频和视频类型信息,以及当前节目传送流音频和视频数据的传送标识信息;a data acquisition unit, receiving the current program delivery stream, acquiring current program audio and video type information, and transmitting identification information of the current program delivery stream audio and video data;
    节目映射信息获取单元,获取上一节目的节目映射信息;a program mapping information acquiring unit, which acquires program mapping information of the previous section;
    节目类型信息比对单元,用于判断当前节目音频和视频类型信息与上一节目音频和视频类型信息是否相同;以及a program type information comparison unit for determining whether the current program audio and video type information is the same as the previous program audio and video type information;
    传送流处理单元,当判断当前节目音频和视频类型信息与上一节目音频和视频类型信息相同时,将当前节目传送音频和视频数据的传送标识信息替换为上一节目传送音频和视频数据的传送标识信息,用上一节目的节目映射信息替换当前节目的节目映射信息,并将经过传送标识信息、节目映射信息替换的当前节目传送流传送至媒体播放器进行播放。 The transport stream processing unit, when determining that the current program audio and video type information is the same as the previous program audio and video type information, replacing the transmission identification information of the current program transmission audio and video data with the transmission of the previous program transmission audio and video data The identification information is replaced with the program mapping information of the current program by the program mapping information of the previous section, and the current program delivery stream replaced by the transmission identification information and the program mapping information is transmitted to the media player for playing.
  14. 如权利要求13所述的终端,其特征在于,所述终端为智能电视、条件接收器或者网络盒子。 The terminal of claim 13 wherein said terminal is a smart television, a conditional receiver or a network box.
PCT/CN2014/094152 2014-09-28 2014-12-18 Program switching method, device and terminal WO2016045209A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410510559.9A CN104270667A (en) 2014-09-28 2014-09-28 Program switchover method and device and terminal
CN201410510559.9 2014-09-28

Publications (1)

Publication Number Publication Date
WO2016045209A1 true WO2016045209A1 (en) 2016-03-31

Family

ID=52162144

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/094152 WO2016045209A1 (en) 2014-09-28 2014-12-18 Program switching method, device and terminal

Country Status (2)

Country Link
CN (1) CN104270667A (en)
WO (1) WO2016045209A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038150A (en) * 2019-12-09 2021-06-25 青岛海信宽带多媒体技术有限公司 Program switching method and device
CN114554256A (en) * 2020-11-25 2022-05-27 阿里巴巴集团控股有限公司 Media stream playing method, media stream processing method, media stream playing device, media stream processing device, and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105072463B (en) * 2015-07-20 2019-06-28 浙江华数广电网络股份有限公司 A kind of digital TV direct instantaneously cuts platform method
CN105681913B (en) * 2016-01-12 2019-02-19 青岛海信电器股份有限公司 Multi-screen interaction method and device
CN108521601B (en) * 2018-02-28 2022-04-29 海信视像科技股份有限公司 Method and device for rapidly playing non-standard code stream
CN108924634A (en) * 2018-07-19 2018-11-30 深圳国微视安科技有限公司 A kind of TS stream method for quickly identifying and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702777A (en) * 2009-10-30 2010-05-05 深圳创维数字技术股份有限公司 IPTV system, audio/video coding switching method and equipment
CN101982974A (en) * 2010-11-22 2011-03-02 天柏宽带网络科技(北京)有限公司 Advertisement insertion method and device in video-on-demand system
CN103763588A (en) * 2014-01-03 2014-04-30 深圳市龙视传媒有限公司 Stream forwarding method, device, server and system for video advertising insertion

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2418792A1 (en) * 2010-05-19 2012-02-15 Fraunhofer-Gesellschaft zur Förderung der Angewandten Forschung e.V. Digital Multimedia Broadcast (DMB) with efficient transmission of conditional access data in the transport stream packet (TS packet) of the program association table (PAT)
CN101977286B (en) * 2010-11-30 2012-09-26 福州大学 Digital television program replacing device
CN102821306B (en) * 2012-08-31 2015-12-09 深圳国微技术有限公司 A kind of transport stream processing method, relevant apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702777A (en) * 2009-10-30 2010-05-05 深圳创维数字技术股份有限公司 IPTV system, audio/video coding switching method and equipment
CN101982974A (en) * 2010-11-22 2011-03-02 天柏宽带网络科技(北京)有限公司 Advertisement insertion method and device in video-on-demand system
CN103763588A (en) * 2014-01-03 2014-04-30 深圳市龙视传媒有限公司 Stream forwarding method, device, server and system for video advertising insertion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113038150A (en) * 2019-12-09 2021-06-25 青岛海信宽带多媒体技术有限公司 Program switching method and device
CN113038150B (en) * 2019-12-09 2023-09-12 青岛海信宽带多媒体技术有限公司 Program switching method and device
CN114554256A (en) * 2020-11-25 2022-05-27 阿里巴巴集团控股有限公司 Media stream playing method, media stream processing method, media stream playing device, media stream processing device, and storage medium

Also Published As

Publication number Publication date
CN104270667A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
WO2016045209A1 (en) Program switching method, device and terminal
WO2015109904A1 (en) Method of identifying multiple transport streams based on usb interface
WO2009110766A1 (en) Method of receiving broadcast signals and apparatus for receiving broadcast signals
WO2011126240A2 (en) Method and apparatus for processing non-real-time broadcast service and content transmitted by broadcast signal
WO2016129981A1 (en) Method and device for transmitting/receiving media data
JP2001069106A (en) Stream multiplexing/demultiplexing device
JPH09200690A (en) Digital broadcasting reception terminal equipment
WO2012093846A2 (en) Apparatus and method for supporting variable length of transport packet in video and audio communication system
WO2015199420A1 (en) Technique for transmitting and receiving system time information in broadcasting system
WO2017128595A1 (en) Live broadcasting method and system for high-definition video transmission of digital television
WO2016045208A1 (en) Digital television broadcast transport stream playing method, system and terminal
WO2009134085A2 (en) Method and apparatus for transmitting/receiving multi - channel audio signals using super frame
WO2012023787A2 (en) Digital receiver and content processing method in digital receiver
WO2016061887A1 (en) Video conversion method and apparatus, playing system and terminal
JP2002344889A (en) Information transmitting device/method, information processor, information processing method and information processing system
WO2014058278A1 (en) Apparatus and method for transmitting and receiving packet in a broadcasting and communication system
WO2012144795A2 (en) Apparatus for outputting broadcast recorded by schedule recording and control method thereof
WO2016129976A1 (en) Method and apparatus for decoding audio bitstream including system data
WO2012015288A2 (en) Method and apparatus for transmitting and receiving extended broadcast service in digital broadcasting
WO2015105348A1 (en) Method and apparatus for reproducing multimedia data
WO2009126001A2 (en) Data application providing method for digital broadcast and computer-readable recording medium with recorded program for carrying out same
US20160063949A1 (en) Image processing system, apparatus and method
WO2021157866A1 (en) System and method for retransmitting terrestrial uhd broadcast
WO2017128593A1 (en) Method and device for processing high code rate transmission of digital television and high-definition digital television
WO2020122589A1 (en) Electronic apparatus and controlling method thereof

Legal Events

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

Ref document number: 14902798

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14902798

Country of ref document: EP

Kind code of ref document: A1