CN101179736B - Method for converting transmission stream program to China mobile multimedia broadcasting program - Google Patents
Method for converting transmission stream program to China mobile multimedia broadcasting program Download PDFInfo
- Publication number
- CN101179736B CN101179736B CN200610138262XA CN200610138262A CN101179736B CN 101179736 B CN101179736 B CN 101179736B CN 200610138262X A CN200610138262X A CN 200610138262XA CN 200610138262 A CN200610138262 A CN 200610138262A CN 101179736 B CN101179736 B CN 101179736B
- Authority
- CN
- China
- Prior art keywords
- program
- transport stream
- bag
- multimedia broadcasting
- mobile multimedia
- 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
Abstract
The invention discloses a method for converting the transport stream program into Chinese mobile multimedia broadcasting program, which comprises the following steps: reading PAT and PMT to acquire and sort the transport package of the corresponding program, then taking out the PES package from the transport package; taking out the PES package from the MPEG transport package when the TS forms one complete PES; taking out the PTS or DTS from the PES packet header and transforming into the time-stamp in the frames; taking out the ES package from the PES and according to the requirements of CMMB Reuse Protocol filling the video frequency ES package into the video unit or filling the audio frequency ES package into the audio unit to form a reuse frame in the setting time; encapsulating and sending the reuse frame.
Description
Technical field
The present invention relates to a kind of Mobile Multimedia Broadcasting or mobile TV technology, specifically, relate to the method that a kind of transport stream program converts the China Mobile multimedia broadcasting program to.
Background technology
Mobile Multimedia Broadcasting is a kind of Play Technique for Multimedia of rising in recent years.By hand-held terminal, under the situation of high-speed mobile, can watch TV.Terminal receives programme by wireless protocols, and can select the channel of oneself having the right to watch, thereby can accept to select the multi-medium data of channel, is implemented in and sees TV on the portable terminal.
The aerial data of system emission are divided into different channels, and the data of each channel comprise again: three types of video, audio frequency and auxiliary datas, terminal can receive relevant data, by the player on the terminal, realizes the normal play of TV.
Air-launched data format has multiple multiplexing method, needs to do format conversion between the different multiplexing methods, and main multiplexing method has now:
First, TS (transport stream) mode, the TS agreement is a kind of in MPEG (Motion Picture Experts Group) standard, it is placed on auxiliary data, video, audio frequency in the TS bag of fixing 188 byte-sized and transmits, the reproduction time that has comprised each data block in the TS bag is to guarantee the normal play of video/audio.
The second, RTP (RTP) mode is the method that transmits auxiliary data, video, voice data in IP network, and the size of bag is fixing, and the time stamp by each packet header guarantees the time synchronized play, guarantees the broadcast order that wraps by sequence number.
But, in existing television network broadcast, can not realize that the TS program is directly changed into CMMB (China Mobile multimedia broadcasting) program.
Summary of the invention
Technical problem solved by the invention provides the method that a kind of transport stream program converts the China Mobile multimedia broadcasting program to, the TS program is directly changed into the program of CMMB multiplex protocol on existing equipment.
Technical scheme is as follows:
A kind of transport stream program converts the method for China Mobile multimedia broadcasting program to, comprises the steps:
(1) reads program correlation table and program correspondence table, obtain the transport stream packets of corresponding program, and in buffering area, sort, from transport stream packets, take out the packetized elementary stream bag;
(2) when transport stream is formed a complete packetized elementary stream, from Motion Picture Experts Group's transport stream packets, take out the packetized elementary stream bag, represent timestamp or decoded time stamp in the packetized elementary stream extension header are taken out, convert the timestamp in the multiplexed frame to;
(3) the basic stream bag in the taking-up packetized elementary stream according to the requirement of China Mobile multimedia broadcasting multiplex protocol, is inserted video unit with the video-frequency basic flow bag, perhaps audio frequency is flowed substantially bag and inserts audio unit, forms a multiplexed frame in setting-up time;
(4) encapsulation multiplexed frame and transmission.
Further, in the step (1),, video packetized elementary stream bag in the transport stream or audio frequency packetized elementary stream bag are extracted respectively according to the group character in the transport stream.
Further, in the step (2), the timestamp in the described multiplexed frame is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing.
Further, step (3) further comprises:
Judge according to the timestamp in the multiplexed frame whether the data encapsulation in the setting-up time finishes; If the data encapsulation in the setting-up time finishes, execution in step (4), otherwise, execution in step (1).
Further, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
Further, in the step (4), the length of described multiplexed frame is the 32K byte.
Further, step (4) further comprises: after the multiplexed frame encapsulation is finished, and execution in step (1).
Technical solution of the present invention converts the program of TS multiplex mode to the program of the multiplex mode of CMMB (China Mobile multimedia broadcasting) standard code; and can change different video compression algorithms and audio compression algorithm; realized that the TS program is directly changed into the function of CMMB program, has protected the equipment of existing TS.
Description of drawings
Fig. 1 is the schematic diagram that mpeg transport stream PES bag is transformed into multiplexed frame
Fig. 2 is that H.264 mpeg transport stream converts the H.264 schematic diagram of multiplexed frame to;
Fig. 3 is the schematic diagram that H.264 mpeg transport stream converts the AVS multiplexed frame to;
Fig. 4 is the flow chart that mpeg transport stream is transformed into multiplexed frame.
Embodiment
As shown in Figure 1, TS is according to the PID among the TS (group character) video PES (packetized elementary stream) bag in the TS stream and audio frequency PES (packetized elementary stream) bag to be extracted respectively to the conversion of multiplexed frame, remove the PES head again, take out ES (basic stream) bag, be repackaged into video data unit, audio data unit in the multiplexed frame, common 1 PES bag can be divided into one or more video data units, audio data unit.Simultaneously, the PTS (representing timestamp) of the Option head of PES or DTS (decoded time stamp) corresponding conversion are become the demonstration time of block of video data and audio data block, thereby realize the synchronous of video and voice playing.
As shown in Figure 2, encoder output transport stream is H.264 given transcoder, and transcoder does not need to change the information source compression algorithm, but need do the conversion that transmission flows to multiplex protocol.
As shown in Figure 3, encoder output transport stream is H.264 given transcoder, and transcoder need also need to do the conversion that transmission flows to multiplex protocol H.264 converting AVS (advanced video/audio encoding and decoding algorithm) encryption algorithm to.
Transcoder among Fig. 2 and Fig. 3 is a separate equipment, also can be a module in the equipment.Transcoder is used to finish the function of protocol conversion, the optional translation function of finishing the information source compression algorithm.
As shown in Figure 4, the TS program conversion method that converts the CMMB program to comprises the steps:
1, reads PAT and PMT, obtain the TS bag of corresponding program, and in buffering area, sort, from the TS bag, take out the PES bag.
Step S401: because one road TS may comprise multi-channel program, read program correlation table (PAT, Program Association Table) and program correspondence table (PMT, Program Map Tables) earlier, isolate a road wherein specific program, obtain the TS bag of corresponding program.According to the group character among the TS (PID), video PES bag in the TS stream or audio frequency PES bag are extracted respectively, and in buffering area, sort.
Step S402: judge whether to obtain a complete PES bag.
According to the indication in TS packet header, judge whether a plurality of TS can form a complete PES, if, execution in step 403, otherwise execution in step 401.
2, when TS forms a complete PES, from the mpeg transport stream bag, take out the PES bag, PTS in the PES extension header or DTS are taken out, convert the timestamp in the multiplexed frame to.
Step S403: from one group of mpeg transport stream bag, take out a PES bag, in the PES extension header represent timestamp (PTS) or decoded time stamp (DTS) takes out, convert the timestamp in the multiplexed frame to.This timestamp is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing.
3, the ES that takes out among the PES wraps, and according to the requirement of CMMB multiplex protocol, video ES bag is inserted video unit, perhaps the audio ES bag is inserted audio unit, forms a multiplexed frame in setting-up time.
Step S404: take out the ES bag among the PES, if the ES bag is a video data, video ES bag is inserted video unit; If the ES bag is a voice data, then the audio ES bag is inserted audio unit.
Step S405:, judge whether the data encapsulation of one section setting-up time finishes according to the timestamp in the multiplexed frame.
This setting-up time can be set according to actual needs, and setting-up time can be set at 0.25 second, 0.5 second or 1 second.In this preferred embodiment, this setting-up time is 1 second, if data encapsulation end in 1 second, execution in step S406, otherwise, execution in step 401.
4, encapsulation multiplexed frame and transmission.
Step S406: current multiplexed frame encapsulation is finished, and this multiplexed frame is sent to other equipment or does further processing, then, gets back to step S401, obtains next TS bag.
By said method, can become the CMMB multiplex protocol to the most frequently used TS protocol conversion at present, make that the equipment in the existing television network broadcast can continue to use, avoided overlapping investment.
Row cite an actual example below, and the present invention is described further.
In the present embodiment, a service channel has the video and the audio stream of 31.5K byte, and video data rate is 27.5K byte each second, and audio data rate is 4K byte each second.
The video and the audio stream of the H.264 encoder output 31.5K byte of TS, the TS that has been divided into a lot of 188 bytes wraps, and through behind the transcoding, forms a multiplexed frame per 1 second, and the length of a multiplexed frame is the 32K byte.Wherein, long 37 bytes in packet header, the video-data fragment total length is the 27.5K byte, the audio data section total length is the 4K byte, for the part of not enough 32K byte, can fill complete 0.
Such television channel can provide quality quite satisfied mobile broadcast television program to the user with the H264 of QVGA resolution, 25 frames or the video Data Transmission of AVS.
Claims (7)
1. a transport stream program converts the method for China Mobile multimedia broadcasting program to, comprises the steps:
(1) reads program correlation table and program correspondence table, obtain the transport stream packets of corresponding program, and in buffering area, sort, from transport stream packets, take out the packetized elementary stream bag;
(2) when transport stream is formed a complete packetized elementary stream, from Motion Picture Experts Group's transport stream packets, take out the packetized elementary stream bag, represent timestamp or decoded time stamp in the packetized elementary stream extension header are taken out, convert the timestamp in the multiplexed frame to;
(3) the basic stream bag in the taking-up packetized elementary stream according to the requirement of China Mobile multimedia broadcasting multiplex protocol, is inserted video unit with the video-frequency basic flow bag, perhaps audio frequency is flowed substantially bag and inserts audio unit, forms a multiplexed frame in setting-up time;
(4) encapsulation multiplexed frame and transmission.
2. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, in the step (1),, video packetized elementary stream bag in the transport stream or audio frequency packetized elementary stream bag are extracted respectively according to the group character in the transport stream.
3. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, in the step (2), the timestamp in the described multiplexed frame is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing.
4. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, step (3) further comprises:
Judge according to the timestamp in the multiplexed frame whether the data encapsulation in the setting-up time finishes; If the data encapsulation in the setting-up time finishes, execution in step (4), otherwise, execution in step (1).
5. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
6. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, in the step (4), the length of described multiplexed frame is the 32K byte.
7. transport stream program according to claim 1 converts the method for China Mobile multimedia broadcasting program to, it is characterized in that, step (4) further comprises: after the multiplexed frame encapsulation is finished, and execution in step (1).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610138262XA CN101179736B (en) | 2006-11-08 | 2006-11-08 | Method for converting transmission stream program to China mobile multimedia broadcasting program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610138262XA CN101179736B (en) | 2006-11-08 | 2006-11-08 | Method for converting transmission stream program to China mobile multimedia broadcasting program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101179736A CN101179736A (en) | 2008-05-14 |
CN101179736B true CN101179736B (en) | 2010-07-14 |
Family
ID=39405791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200610138262XA Expired - Fee Related CN101179736B (en) | 2006-11-08 | 2006-11-08 | Method for converting transmission stream program to China mobile multimedia broadcasting program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101179736B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179737B (en) * | 2006-11-08 | 2010-12-08 | 中兴通讯股份有限公司 | Method of converting compound protocol in multimedia broadcasting network |
CN101646130A (en) * | 2008-08-07 | 2010-02-10 | 中兴通讯股份有限公司 | Synchronizing method between multimedia broadcast-multicast service network elements of multiplex channel |
US8068423B2 (en) * | 2008-09-09 | 2011-11-29 | Ericsson Television, Inc | Packet scheduling system for digital video broadcasting |
WO2010063147A1 (en) * | 2008-12-03 | 2010-06-10 | 中兴通讯股份有限公司 | Method and mobile terminal for sharing mobile phone television program |
CN101951506B (en) * | 2010-09-17 | 2014-03-12 | 中兴通讯股份有限公司 | System and method for realizing synchronous transmitting and receiving of scalable video coding service |
CN102098542A (en) * | 2010-12-15 | 2011-06-15 | 中兴通讯股份有限公司 | Multi-media data transmission method, system and device |
CN103503402A (en) * | 2011-12-12 | 2014-01-08 | 华为技术有限公司 | RTP media data processing method and device |
CN102647584A (en) * | 2012-04-26 | 2012-08-22 | 广州盈可视电子科技有限公司 | Video file generation method and system |
CN103002326B (en) * | 2012-11-22 | 2017-11-10 | 新奥特(北京)视频技术有限公司 | A kind of noninterlaced voice data read method and device |
CN106790044B (en) * | 2016-12-19 | 2020-04-17 | 北京数码视讯科技股份有限公司 | Method and device for converting TS (transport stream) code stream into RTP (real-time transport protocol) code stream |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1316133A (en) * | 1999-06-30 | 2001-10-03 | 索尼公司 | Method and apparatus for transcoding, and medium |
CN1349719A (en) * | 1999-12-30 | 2002-05-15 | 皇家菲利浦电子有限公司 | Method and apparatus for converting data streams |
CN1581965A (en) * | 2003-07-31 | 2005-02-16 | 三星电子株式会社 | Device for separating a single program transport stream from a multiple program transport stream |
-
2006
- 2006-11-08 CN CN200610138262XA patent/CN101179736B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1316133A (en) * | 1999-06-30 | 2001-10-03 | 索尼公司 | Method and apparatus for transcoding, and medium |
CN1349719A (en) * | 1999-12-30 | 2002-05-15 | 皇家菲利浦电子有限公司 | Method and apparatus for converting data streams |
CN1581965A (en) * | 2003-07-31 | 2005-02-16 | 三星电子株式会社 | Device for separating a single program transport stream from a multiple program transport stream |
Non-Patent Citations (1)
Title |
---|
JP特开2006-173760A 2006.06.29 |
Also Published As
Publication number | Publication date |
---|---|
CN101179736A (en) | 2008-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101179736B (en) | Method for converting transmission stream program to China mobile multimedia broadcasting program | |
US10848796B2 (en) | Transmitting method, receiving method, transmitting device, and receiving device | |
JP4668515B2 (en) | Metadata transmission apparatus and method synchronized with multimedia contents | |
KR101639358B1 (en) | Transmission apparatus and method, and reception apparatus and method for providing 3d service using the content and additional image seperately transmitted with the reference image transmitted in real time | |
US11064229B2 (en) | Transmitting device, receiving device, transmitting method and receiving method | |
JP6302274B2 (en) | Transmitting apparatus and receiving apparatus | |
US7499469B2 (en) | Method and system for generating digital video broadcast (DVB) transport stream from direct satellite system (DSS) transport stream | |
JP5575949B2 (en) | Broadcast data transmission method and apparatus | |
CN100479529C (en) | Conversion method of multiplexing protocols in broadcast network | |
CN100401784C (en) | Data synchronization method and apparatus for digital multimedia data receiver | |
KR100358119B1 (en) | The data streaming apparatus and method for digital databroadcasting service | |
US11722714B2 (en) | Transmitting method, receiving method, transmitting device and receiving device | |
CN1972454A (en) | Mobile multimedia broadcasting real-time traffic flow packaging method | |
WO2008022501A1 (en) | A realizing method of multi-video streams broadcast in mobile multimedia | |
CN101179738B (en) | Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol | |
US10506265B2 (en) | Transmitting method, receiving method, transmitting device and receiving device | |
CN1960328B (en) | Method for packaging real time stream of mobile multimedia broadcast | |
KR20040017830A (en) | System and method for broadcast of independently encoded signals on atsc channels | |
CN101151902A (en) | Device and method for initializing decoder in digital broadcasting receiver | |
KR101131836B1 (en) | ASI Switcher for digital advertisement inserter | |
CN1862693A (en) | Reproducing method | |
US20040190629A1 (en) | System and method for broadcast of independently encoded signals on atsc channels | |
CN101179737B (en) | Method of converting compound protocol in multimedia broadcasting network | |
US8832773B2 (en) | System and method for transport PID broadcast scheme | |
KR100710393B1 (en) | method for decording packetized streams |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100714 Termination date: 20171108 |