CN101977286A - Digital television program replacing device - Google Patents

Digital television program replacing device Download PDF

Info

Publication number
CN101977286A
CN101977286A CN 201010565857 CN201010565857A CN101977286A CN 101977286 A CN101977286 A CN 101977286A CN 201010565857 CN201010565857 CN 201010565857 CN 201010565857 A CN201010565857 A CN 201010565857A CN 101977286 A CN101977286 A CN 101977286A
Authority
CN
China
Prior art keywords
module
program
pid
code stream
replaced
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201010565857
Other languages
Chinese (zh)
Other versions
CN101977286B (en
Inventor
杨秀芝
陈建
王卫星
苏凯雄
林荣华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuzhou University
Original Assignee
Fuzhou University
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 Fuzhou University filed Critical Fuzhou University
Priority to CN201010565857A priority Critical patent/CN101977286B/en
Publication of CN101977286A publication Critical patent/CN101977286A/en
Application granted granted Critical
Publication of CN101977286B publication Critical patent/CN101977286B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a digital television program replacing method. The method can replace one or more than one programs in a digital television transmission stream into one or more than one programs in another digital television transmission stream, and the digital television transmission stream after being replaced can maintain the same identifiers, and the method has the advantages of simple structure, less hardware equipment, low cost and fast speed. The method adopts multiplex dispatching policy, not only unnecessary program is filtered in the replacing process, but also the replaced program, program required to be remained and various service information are combined into a multi-program transmission stream in a multiplex dispatching way. FPGA hardware circuit design application system adopted in the invention mainly comprises a code stream synchronous detection module, a program matching detection module, a service information modifying module, a data buffer module, a data dispatching module and a code stream input output interface module.

Description

The digital television program alternative
Technical field
The present invention relates to a kind of digital television program alternative, particularly a kind of digital television program replacement method and device based on FPGA.
Background technology
Digital Television is the new and high technology that grows up the nearly more than ten years, its acoustic image quality, and there is the incomparable advantage of simulated television the aspects such as number of anti-interference and transmission program.Starting broadcasting of Digital Television not only makes spectators can appreciate the more high quality program, also provides huge business opportunity for television operator simultaneously.TV station often need insert other audio frequency and video TS streams such as self-control program, advertisement, film clips for the purpose of operation in one road code stream when broadcast items, cover original some programs, and this just need carry out the switching of program.Prior art is when carrying out the program source switching, directly stop earlier the program source of current broadcast, play again and switch back target program source, play the target program source and need time when certain because start, can cause the blank screen phase of certain time length between transfer period, make program discontinuous.At above-mentioned defective, the invention provides a kind of changing method simply fast and implement device.
Summary of the invention
The purpose of this invention is to provide a kind of digital television program and replace method and apparatus, it can replace the arbitrary road program with specified identifier in another code stream with a way word TV programme.This device can switch between two programs of different code streams, and switch speed is fast, uses easy to operate.
For reaching above-mentioned purpose, technical scheme of the present invention comprises: a kind of digital television program alternative, it is characterized in that: be made up of serial line interface input circuit, FPGA master control module and serial output interface, described FPGA master control module is made up of code stream synchronization module, program matching detection module, program filtering module, information on services modified module, a plurality of data buffering module, data dispatch module; An one way word signal and an other way word signal two inputs by the serial line interface input module respectively are connected to code stream synchronization module in the FPGA master control module, and the output of the data dispatch module in the FPGA master control module is connected to the output of serial line interface output module.
Specifically comprise in one embodiment of the invention with lower module:
1, two-way signal bit stream input circuit at least, the one tunnel is the replacement source, and another road is to be replaced the source, and input circuit converts the ASI formatted data that receives to 8 parallel-by-bit data.
2, a FPGA (Field Programmable Gate Array) (FPGA) module comprises in this FPGA module at least:
1) code stream synchronization module: this module is carried out the formation of data synchronization detection and packet format.
2) program matching detection module: detect to replace in the source code stream whether the program identical with specified identifier is arranged, and send testing result to the program filtering module and carry out program filtering.The program that will replace is simultaneously given follow-up data buffering module.
3) program filtering module: when the needs program is replaced, according to module 2) Shu Chu detection information abandons the program that is replaced, and guarantees to be replaced the complete of other programme informations in the code stream.When not needing program to replace, directly code stream is exported to follow-up data buffering module.
4) information on services modified module: finish modification and generation to information on services.
5) at least 3 data buffer modules cushion the data before dispatching.
6) data dispatch module: each road output buffer is dispatched, made the program of replacement and other programs that are replaced in the code stream synthesize one road code stream, and make its bit rate output and input bit rate basically identical.
3, one road signal output apparatus converts the parallel bit stream data of exporting the output of to ASI form.
The present invention can replace with one or more sets programs in one road digital TV transmission stream cover of one in another digital TV transmission stream or a few programs, and make the digital TV transmission stream after replacing it maintain identical various identifiers, have advantages such as simple in structure, that hardware device is few, cost is low, speed is fast.
Description of drawings
Fig. 1 is a system configuration block diagram of the present invention.
Fig. 2 is the signal flow graph of program detection module.
Fig. 3 is the priority counter-rotating figure of data dispatch.
Embodiment
With specific embodiment in detail technical scheme of the present invention is described in detail below in conjunction with accompanying drawing:
See also Fig. 1, Fig. 1 is a system architecture diagram of the present invention.In the present embodiment, the input of FPGA master control module should have two-way ASI input and one road ASI output, one the tunnel is code stream input---the ASI1 in replacement source in the two-way input, one the tunnel is that the code stream that is replaced the source is imported---ASI2, they finish the data of ASI form and the conversion between the 8 parallel-by-bit data.In FPGA, synchronization module carries out the replacement of any appointed program of user afterwards to the code stream synchronous detecting of input, generates one tunnel new mpeg stream output, thereby realizes purpose of the present invention.Digital television program alternative of the present invention is made of pure hardware.Wherein:
Serial line interface input module 120 is mainly finished the format conversion of input signal.Corresponding with two groups of inputs, this module comprises two groups of circuit, and every group of circuit comprises an input coupling Shaping Module 1201, circuit decoding module 1202, and the ASI formatted data that will come from the ASI input interface respectively converts 8 parallel-by-bit forms to.
Field programmable gate array (FPGA) module 110, this example has adopted the EP3C120F780C7N chip (also can select other the close manufacturer of internal resource or the fpga chip of other model for use) of altera company, has used the General Logic unit and the part macroefficiency module (as RAM, FIFO) of chip internal.Its inside comprises following function sub-modules: code stream synchronization module 1106, program matching detection module 1101, program filtering module 1102, information on services modified module 1103, data buffering FIFO 1104, data dispatch module 1105 is further described these submodules below:
(1) the code stream synchronization module 1106: it reaches step-out synchronously with the signal of serial interface module 120 input differentiates, and finds out the synchronous head byte of MPEG code stream, and the TS stream after will be synchronously synthesizes the bag of 188 or 204 bytes, is beneficial to the processing of subsequent module.
(2) program matching detection module 1101: comprise PMT_PID comparator module 11011, ES_PID extraction module 11012, ES_PID comparator 11013, ES_PID filter 11014.Replacement source code after this module receives synchronously flows and is replaced source code stream, and replacement and program identifier to be replaced are mated, and mainly contains the coupling of PMT_PID and ES_PID identifiers such as (VIDEO_PID, AUDIO_PID, PCR_PID).At first carry out the coupling of PMT_PID, if the match is successful, then carry out extraction and the comparison of ES_PID, if also the match is successful for ES_PID, then program data to be replaced is sent among the buffer FIFO1 1104, and notified program filtering module 1102 programme information of coupling.If coupling is unsuccessful, illustrates that not meeting the program of replacing requirement in this source code stream exists, thereby do not export.Need to carry out the parsing and the extraction of this road information PSI information in the matching process, to obtain the programme information on this road.The concrete signal flow graph of implementing as shown in Figure 2.
(3) the program filtering module 1102: comprise PID memory module 11021, PID comparator module 11022, PID filter 11023.The PID that PID memory module 11021 storage ES_PID extraction modules 11012 extract, as one of input of PID comparator module 11022, another of PID comparator module 11022 is input as the code stream ASI in the source of being replaced, and the match information of while program receiving matching detection module 1101.When the coupling program exists and needs to replace, the output of program matching detection module is put and filtered marking signal is 1, filtration with the respective program that begins the source that is replaced, PID filter 11023 just will contain the data packet discarding of the PID of PID memory module 11021 storages, and other deposit among the data buffer FIFO2 1104 with the packet that replacement has nothing to do.When the program that do not need to replace, this module is not handled the code stream of input.
(4) the information on services generation module 1103: what comprise the extraction module 11031 of SDT table and SDT table regenerates module 11032.The extraction module 11031 of ASI1 SDT table is replaced the extraction of SDT table among the source code stream ASI1, the extraction module 11031 of ASI2 SDT table is replaced the extraction of SDT table among the source code stream ASI2, what SDT showed regenerates module 11032 according to existing programme information, regenerate new service describing table (SDT-Service Discription Table), make its title consistent with the programm name of replacement.Detailed process is: at first will extract the SDT that replaces in the source code stream, find the title and the storage of the program that will replace, extract the SDT table that is replaced in the source code stream, the title of the program that is replaced is rejected, the title of the program that storage is remaining, programm name and the corresponding stream_id according to the storage of two-way program source regenerates a new SDT table again.The data that regenerate are sent among the data buffering FIFO3 1104.
(5) the data buffering module 1104: temporary data after treatment, and for follow-up data dispatch provides buffering.Exporting a half-full signal when it expires 188 bytes judges for data dispatch module 1105.
(6) the data dispatch module 1105: be used for and will replace program data, reject initial data, the newly-generated service describing table waiting to replace behind the code stream and be multiplexed into one tunnel new TS code stream output.This module receives the half-full sign of FIFO1 1104, FIFO2 1104 and FIFO3 1104, reasonably dispatch according to half and half full scale will, scheduling strategy adopts the mode of slip priority, buffering for three tunnel, priority number is made as 1,2,3, the priority that priority number is more little is high more, for the buffering that half-full signal input is arranged, the scheduling earlier that priority is high, and priority is taken turns commentaries on classics according to the order of scheduling, the priority of promptly just having dispatched is become minimum, can guarantee that like this each road code stream dispatches uniformly.The user can oneself be provided with the speed of scheduling, also is bit rate output.Fig. 3 is that the priority of the buffering FIFO1 1104 of the first via changes, and other two-way and the first via are similar.
Serial line interface output module 130 receives the data from the output of data dispatch module, and parallel bit stream data is converted to the serial data of 270Mbps, finishes the driving and the coupling output of ASI signal again by the output coupling drive circuit.Here be noted that serial line interface input and output module that the present invention mentions except that being made of circuit shown in Figure 1, can also otherwise constitute, it is two known modules of those skilled in the art.
The above only is preferred embodiment of the present invention, and all equalizations of being done according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.

Claims (7)

1. digital television program alternative, it is characterized in that: be made up of serial line interface input circuit, FPGA master control module and serial output interface, described FPGA master control module (FPGA110) is made up of code stream synchronization module (1106), program matching detection module (1101), program filtering module (1102), information on services modified module (1103), a plurality of data buffering module (1104), data dispatch module (1105); An one way word signal (ASI1) and an other way word signal (ASI2) two inputs by the serial line interface input module respectively are connected to code stream synchronization module (1106) in the FPGA master control module (FPGA110), and the output of the data dispatch module (1105) in the FPGA master control module (FPGA110) is connected to the output of serial line interface output module.
2. digital television program alternative according to claim 1, it is characterized in that: described code stream synchronization module (1106) reaches the step-out differentiation synchronously with the signal of input, find out the synchronous head byte of MPEG code stream, and the TS stream after will be synchronously synthesizes the bag of 188 or 204 bytes, is beneficial to the processing of subsequent module; Replacement source code after described program matching detection module (1101) receives synchronously flows and is replaced source code and flows, replacement and program identifier to be replaced are mated, and the identifier of coupling comprises PMT_PID, ES_PID (VIDEO_PID, AUDIO_PID and PCR_PID; Described program filtering module (1102) is responsible for the filtration of program, when the coupling program exists and needs to replace, program matching detection module output filtering marking signal is 1, filtration with the respective program that begins the source that is replaced, when the program that do not need to replace, this module is not handled the code stream of input.
3. digital television program alternative according to claim 2, it is characterized in that: described program matching detection module (1101) is by PMD_PID comparator (11011), ES_PID extractor (11013), ES_PID comparator (11014), ES_PID filter (11012) is formed, replacement source code after this module receives synchronously flows and is replaced source code and flows, replacement and program identifier to be replaced are mated, at first carry out the coupling of PMT_PID, if the match is successful, then carry out extraction and the comparison of ES_PID, if also the match is successful for ES_PID, then program data to be replaced is sent in the buffer (FIFO1 1104), and notified program filtering module (1102) the programme information of coupling.
4. digital television program alternative according to claim 2, it is characterized in that: described program filtering module (1102) is made up of PID memory (11021), PID comparator (11022), PID filter (11023), when the coupling program exists and needs to replace, PID filter (11023) just will contain the data packet discarding of the PID of PID memory module (11021) storage, and other deposit in the data buffer (FIFO2 1104) with the packet that replacement has nothing to do; When the program that do not need to replace, this module is not handled the code stream of input.
5. digital television program alternative according to claim 1, it is characterized in that: described information on services modified module (1103) comprises following workflow: at first will extract the SDT that replaces in the source code stream, find the title and the storage of the program that will replace, extract the SDT table that is replaced in the source code stream, the title of the program that is replaced is rejected, the title of the program that storage is remaining, programm name and the corresponding stream_id according to the storage of two-way program source regenerates a new SDT table again.
6. digital television program alternative according to claim 5 is characterized in that: what described information on services modified module (1103) comprised the extraction module (11031) of SDT table and SDT table regenerates module (11032); The extraction module (11031) of ASI1 SDT table is replaced the extraction of SDT table among the source code stream ASI1, the extraction module (11031) of ASI2 SDT table is replaced the extraction of SDT table among the source code stream ASI2, what SDT showed regenerates module (11032) according to existing programme information, regenerate new service describing table, make its title consistent with the programm name of replacement.
7. digital television program alternative according to claim 1, it is characterized in that: described data dispatch module (1105), to the program data replaced, reject initial data, the newly-generated service describing table waiting to replace behind the code stream and be multiplexed into one tunnel new TS code stream output.
CN201010565857A 2010-11-30 2010-11-30 Digital television program replacing device Expired - Fee Related CN101977286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010565857A CN101977286B (en) 2010-11-30 2010-11-30 Digital television program replacing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010565857A CN101977286B (en) 2010-11-30 2010-11-30 Digital television program replacing device

Publications (2)

Publication Number Publication Date
CN101977286A true CN101977286A (en) 2011-02-16
CN101977286B CN101977286B (en) 2012-09-26

Family

ID=43577129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010565857A Expired - Fee Related CN101977286B (en) 2010-11-30 2010-11-30 Digital television program replacing device

Country Status (1)

Country Link
CN (1) CN101977286B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270667A (en) * 2014-09-28 2015-01-07 深圳国微技术有限公司 Program switchover method and device and terminal
CN106850644A (en) * 2017-02-17 2017-06-13 山东浪潮商用系统有限公司 A kind of method that TS bags PID modifications are realized based on Java language
CN108289227A (en) * 2018-01-04 2018-07-17 山东浪潮商用系统有限公司 A kind of method and device for realizing that audio-video source is replaced in TS streams

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835493A (en) * 1996-01-02 1998-11-10 Divicom, Inc. MPEG transport stream remultiplexer
WO2002093921A1 (en) * 2001-05-14 2002-11-21 Scm Microsystems Gmbh Simultaneous digital television streams with conditional access
CN2912169Y (en) * 2006-01-25 2007-06-13 中国长城计算机深圳股份有限公司 Device for digital TV terminal to realize TS flow multiplexing
CN101009826A (en) * 2006-01-25 2007-08-01 中国长城计算机深圳股份有限公司 A device of the digital TV terminal for TS stream reuse
CN101267571A (en) * 2008-04-23 2008-09-17 中兴通讯股份有限公司 A reuse device and method
US20080317118A1 (en) * 2007-06-25 2008-12-25 Bates Matthew D Multi-Format Stream Re-Multiplexer for Multi-Pass, Multi-Stream, Multiplexed Transport Stream Processing
CN101631238A (en) * 2009-07-21 2010-01-20 北京市博汇科技有限公司 Code stream switching equipment for supporting PID replacement and programs on-demand broadcasting, method thereof and system thereof
CN101754024A (en) * 2009-12-16 2010-06-23 中兴通讯股份有限公司 Multiplexing device and multiplexing method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835493A (en) * 1996-01-02 1998-11-10 Divicom, Inc. MPEG transport stream remultiplexer
US6002687A (en) * 1996-01-02 1999-12-14 Divicon, Inc. MPEG transport stream remultiplexer
WO2002093921A1 (en) * 2001-05-14 2002-11-21 Scm Microsystems Gmbh Simultaneous digital television streams with conditional access
CN2912169Y (en) * 2006-01-25 2007-06-13 中国长城计算机深圳股份有限公司 Device for digital TV terminal to realize TS flow multiplexing
CN101009826A (en) * 2006-01-25 2007-08-01 中国长城计算机深圳股份有限公司 A device of the digital TV terminal for TS stream reuse
US20080317118A1 (en) * 2007-06-25 2008-12-25 Bates Matthew D Multi-Format Stream Re-Multiplexer for Multi-Pass, Multi-Stream, Multiplexed Transport Stream Processing
CN101267571A (en) * 2008-04-23 2008-09-17 中兴通讯股份有限公司 A reuse device and method
CN101631238A (en) * 2009-07-21 2010-01-20 北京市博汇科技有限公司 Code stream switching equipment for supporting PID replacement and programs on-demand broadcasting, method thereof and system thereof
CN101754024A (en) * 2009-12-16 2010-06-23 中兴通讯股份有限公司 Multiplexing device and multiplexing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270667A (en) * 2014-09-28 2015-01-07 深圳国微技术有限公司 Program switchover method and device and terminal
CN106850644A (en) * 2017-02-17 2017-06-13 山东浪潮商用系统有限公司 A kind of method that TS bags PID modifications are realized based on Java language
CN108289227A (en) * 2018-01-04 2018-07-17 山东浪潮商用系统有限公司 A kind of method and device for realizing that audio-video source is replaced in TS streams

Also Published As

Publication number Publication date
CN101977286B (en) 2012-09-26

Similar Documents

Publication Publication Date Title
CN103686307B (en) Digital signal processor based multi-screen splicing display device
CN101175204B (en) Method for searching electric program menu in digital television system
CN1190917C (en) Transmission stream multipass shunting device
CN101674486B (en) Streaming media audio and video synchronization method and system
CN102098541B (en) Code stream multiplexer constituting device
CN102647631B (en) Set-top box, flash glasses and method for simultaneously watching multiple audio and visual programs by plurality of users
CN103888813A (en) Audio and video synchronization realization method and system
CN103237255A (en) Multi-thread audio and video synchronization control method and system
CN101009826A (en) A device of the digital TV terminal for TS stream reuse
CN102238427B (en) Digital television capable of searching network sources
CN101977286B (en) Digital television program replacing device
CN101729908A (en) Synchronous multiplexing method for video and audio of transmission stream
CN107533846A (en) Dispensing device, sending method, reception device and method of reseptance
US8514893B2 (en) Digital video apparatus for multiplexing single program transport streams into a multiple program transport stream
CN102438098B (en) Switch method for multiple sets of switch equipment
CN101321293A (en) Apparatus and method for implementing multi-path program multiplexing
CN103596043A (en) Method for converting TS into PS in digital television
CN2912169Y (en) Device for digital TV terminal to realize TS flow multiplexing
CN1829324A (en) Signal processing device and stream processing method
CN207732909U (en) A kind of multi-functional asynchronous transport system of AES3/EBU digital audio
CN105900439A (en) Method and apparatus for reproducing multimedia data
CN106303580A (en) A kind of TS streaming method and system
CN101217661A (en) Inter-network packet modifier and related method thereof
US7971215B1 (en) System, method and computer readable medium for managing media streams
CN106105234A (en) For the method and apparatus sending/receive signaling information in a digital broadcasting system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120926

Termination date: 20161130

CF01 Termination of patent right due to non-payment of annual fee