CN101977286B - Digital television program replacing device - Google Patents
Digital television program replacing device Download PDFInfo
- Publication number
- CN101977286B CN101977286B CN201010565857A CN201010565857A CN101977286B CN 101977286 B CN101977286 B CN 101977286B CN 201010565857 A CN201010565857 A CN 201010565857A CN 201010565857 A CN201010565857 A CN 201010565857A CN 101977286 B CN101977286 B CN 101977286B
- 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.)
- Expired - Fee Related
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
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
DTV 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 DTV not only makes spectators can appreciate the more high quality program, also for television operator huge business opportunity is provided simultaneously.TV station often need insert other audio frequency and video TS streams such as self-control program, advertisement, film clips from 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.To 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 replacement method and apparatus, it can be with the arbitrary road program with specified identifier in another code stream of way word TV programme replacement.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 are connected to the code stream synchronization module in the FPGA master control module through two inputs of serial line interface input module respectively, 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 (FPGA) module comprises in this FPGA module at least:
1) code stream synchronization module: this module is carried out the formation of synchronization of data detection and packet format.
2) program matching detection module: detect in the replacement 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) the detection information of output abandons the program that is replaced, and guarantees to be replaced the complete of other programme informations in the code stream.When not needing the program replacement, directly code stream is exported to follow-up data buffering module.
4) information on services modified module: accomplish 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 the replacement 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 a practical implementation example technical scheme of the present invention is detailed 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 code stream input---the ASI2 that is replaced the source, and they accomplish 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 and exports, thereby realize the object of the invention.Digital television program alternative of the present invention is made up of pure hardware.Wherein:
Serial line interface input module 120 is mainly accomplished 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 (like 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, do further detailed description in the face of these submodules down:
(1) the code stream synchronization module 1106: it reaches the step-out differentiation synchronously with the signal of serial interface module 120 inputs, finds out the synchronous head byte of MPEG code stream, and the TS is synchronously flowed the bag that synthesizes 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 mate successfully, then carry out extraction and the comparison of ES_PID, if ES_PID also matees success; 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, explains that the program that does not meet the replacement requirement in this source code stream exists, thereby do not export.Need 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 signal flow graph of practical implementation is 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 replacement; 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 irrelevant packet of replacement.When the program that need not replace, this module is not handled the code stream of input.
(4) the information on services generation module 1103: comprise SDT table extraction module 11031 and SDT table regenerate 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 in the replacement 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.When it expires 188 bytes, exporting a half-full signal supplies data dispatch module 1105 to judge.
(6) the data dispatch module 1105: be used for the replacement program data, reject initial data, the newly-generated service describing table wait 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 dispatches according to half and half full scale will, and scheduling strategy adopts the mode of slip priority; Buffering for three tunnel; Priority number is made as 1,2,3, and 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, and it is minimum that the priority of promptly just having dispatched is become, and 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, converts parallel bit stream data the serial data of 270Mbps into, accomplishes the driving and the coupling output of ASI signal again through 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 up of circuit shown in Figure 1, can also otherwise constitute, it is two modules of those skilled in the art's convention.
The above is merely preferred embodiment of the present invention, and all equalizations of doing according to claim of the present invention change and modify, and all should belong to covering scope of the present invention.
Claims (1)
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), data buffer FIFO1, data buffer FIFO2, data buffer FIFO3, data dispatch module (1105); An one way word signal ASI1 and an other way word signal ASI2 are connected to the code stream synchronization module (1106) in the FPGA master control module (FPGA110) through two inputs of serial line interface input circuit respectively, and the output of the data dispatch module (1105) in the FPGA master control module (FPGA110) is connected to the output of serial output interface;
Described code stream synchronization module (1106) reaches the step-out differentiation synchronously with the signal of input, finds out the synchronous head byte of MPEG code stream, and the TS is synchronously flowed the bag that synthesizes 188 or 204 bytes, is beneficial to the processing of subsequent module; Replacement source code after said program matching detection module (1101) receives synchronously flows and is replaced source code and flows; Mate replacing and being replaced program identifier, 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 replacement; Program matching detection module output filtering marking signal is 1; With the filtration of the respective program that begins the source that is replaced, when the program that need not replace, this program filtering module (1102) is not handled the code stream of input;
Described program matching detection module (1101) is made up of PMD_PID comparator (11011), ES_PID extractor (11013), ES_PID comparator (11014), ES_PID filter (11012); Replacement source code after this module receives synchronously flows and is replaced source code and flows; Mate replacing and being replaced program identifier, at first carry out the coupling of PMT_PID, if mate successfully; Then carry out extraction and the comparison of ES_PID; If ES_PID also matees success, then will be replaced program data and send among the data buffer FIFO1, and notify program filtering module (1102) the programme information of coupling;
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 replacement; PID filter (11023) just will contain the data packet discarding of the PID of PID memory module (11021) storage, and other deposit among the data buffer FIFO2 with the irrelevant packet of replacement; When the program that need not replace, this program filtering module (1102) is not handled the code stream of input;
Described information on services modified module (1103) comprises following workflow: at first will extract the SDT in the replacement 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;
Described information on services modified module (1103) comprise SDT table extraction module (11031) and SDT table regenerate 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;
Described data dispatch module (1105) is to the program data of replacement, reject initial data, the newly-generated service describing table be replaced behind the code stream and be multiplexed into one tunnel new TS code stream output.
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 CN101977286A (en) | 2011-02-16 |
CN101977286B true 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) |
Families Citing this family (3)
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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5835493A (en) * | 1996-01-02 | 1998-11-10 | Divicom, Inc. | MPEG transport stream remultiplexer |
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002093921A1 (en) * | 2001-05-14 | 2002-11-21 | Scm Microsystems Gmbh | Simultaneous digital television streams with conditional access |
CN101821973B (en) * | 2007-06-25 | 2014-03-12 | 熵敏通讯公司 | Multi-format stream re-multiplexer for multi-pass, multi-stream, multiplexed transport stream processing |
-
2010
- 2010-11-30 CN CN201010565857A patent/CN101977286B/en not_active Expired - Fee Related
Patent Citations (7)
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 |
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN101977286A (en) | 2011-02-16 |
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 | |
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 | |
CN101009826A (en) | A device of the digital TV terminal for TS stream reuse | |
CN101977286B (en) | Digital television program replacing device | |
CN102238427B (en) | Digital television capable of searching network sources | |
CN103533311A (en) | High-definition network camera device | |
CN107533846A (en) | Dispensing device, sending method, reception device and method of reseptance | |
CN102611916A (en) | Digital video apparatus for multiplexing single program transport streams into a multiple program transport stream | |
KR101577815B1 (en) | Stream Generator for Digital Broadcasting and Method Thereof | |
CN101321293B (en) | Apparatus and method for implementing multi-path program multiplexing | |
CN2912169Y (en) | Device for digital TV terminal to realize TS flow multiplexing | |
US20160073142A1 (en) | Video Data Processing Method and Apparatus | |
CN102438098A (en) | Switch method for multiple sets of switch equipment | |
CN100568981C (en) | A kind of method of data synchronization of mobile multimedia broadcast system | |
CN106303580A (en) | A kind of TS streaming method and system | |
CN105900439A (en) | Method and apparatus for reproducing multimedia data | |
CN101217661A (en) | Inter-network packet modifier and related method thereof | |
CN202587238U (en) | Transport stream (TS) subtitle insertion system | |
CN201414201Y (en) | Broadcast level monitor with function of audio de-embedding | |
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 | |
JP4509908B2 (en) | Receiving station data broadcast sending system and receiving station data broadcast sending method |
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 |