CN101179738B - Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol - Google Patents

Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol Download PDF

Info

Publication number
CN101179738B
CN101179738B CN 200610138266 CN200610138266A CN101179738B CN 101179738 B CN101179738 B CN 101179738B CN 200610138266 CN200610138266 CN 200610138266 CN 200610138266 A CN200610138266 A CN 200610138266A CN 101179738 B CN101179738 B CN 101179738B
Authority
CN
China
Prior art keywords
video
time
multiplexed frame
multimedia broadcasting
bag
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
Application number
CN 200610138266
Other languages
Chinese (zh)
Other versions
CN101179738A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN 200610138266 priority Critical patent/CN101179738B/en
Publication of CN101179738A publication Critical patent/CN101179738A/en
Application granted granted Critical
Publication of CN101179738B publication Critical patent/CN101179738B/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 discloses a conversion method from the TS into the CMMB Reuse Protocol, which comprises the following steps: taking out the video PES or audio PES in a time-stamp respectively according to the grouping identifier in the TS; taking out the PES package from the MPEG transport package; taking out the PTS or DTS from the PES packet header and transforming into the time-stamp in the frames, the TS is used to set the presentation time of the video data or the audio data and to realize the synchronization of the video and audio broadcasting; 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 within the set time limit; judging whether the data encapsulation within the set time limit is finished or not according to the time-stamp in the reuse frame; encapsulating and sending the reuse frame if the data encapsulation in the setting time is finished.

Description

A kind of transmission flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol
Technical field
The present invention relates to a kind of Mobile Multimedia Broadcasting or mobile TV technology, specifically, relate to the conversion method that a kind of transmission flows to the China Mobile multimedia broadcasting multiplex protocol.
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 conversion method that a kind of transmission flows to the China Mobile multimedia broadcasting multiplex protocol, makes the TS program can be directly changed into the program of CMMB multiplex protocol.
Technical scheme is as follows:
Transmission flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, comprises the steps:
(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;
(2) 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 packet header are taken out, convert the timestamp in the multiplexed frame to, described timestamp is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing;
(3) according to the requirement of China Mobile multimedia broadcasting multiplex protocol, the video-frequency basic flow bag is inserted video unit, perhaps audio frequency is flowed substantially bag and insert audio unit, in setting-up time, form a multiplexed frame;
(4) 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 (5), otherwise, execution in step (1);
(5) encapsulation multiplexed frame and transmission.
Further, step (1) is specially:
(11) read program correlation table and program correspondence table, isolate one road program, obtain the transport stream packets of corresponding program, and in buffering area, sort;
(12) according to the indication in transport stream packet header, judge whether a plurality of transport stream can form a complete packetized elementary stream, if, execution in step (2), otherwise execution in step (11).
Further, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
Further, in the step (5), the length of described multiplexed frame is the 32K byte.
Further, further comprise: (6) after multiplexed frame encapsulation is finished, 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, TS comprises the steps: to the conversion method of CMMB multiplex protocol
1,, video PES bag in the TS stream or audio frequency PES bag are extracted respectively according to the PID among the TS.
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, take out the PES bag from the mpeg transport stream bag, PTS in the PES extension header or DTS are taken out, convert the timestamp in the multiplexed frame to, timestamp is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing.
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, according to the requirement of CMMB multiplex protocol, video ES bag is inserted video unit, perhaps the audio ES bag is inserted audio unit, in setting-up time, form a multiplexed frame.
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.
4, 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 5, otherwise, execution in step 1.
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.
5, the data encapsulation in setting-up time finishes, and the encapsulation multiplexed frame also sends.
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 (5)

1. a transmission flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, comprises the steps:
(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;
(2) 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 packet header are taken out, convert the timestamp in the multiplexed frame to, 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;
(3) according to the requirement of China Mobile multimedia broadcasting multiplex protocol, the video-frequency basic flow bag is inserted video unit, perhaps audio frequency is flowed substantially bag and insert audio unit, in setting-up time, form a multiplexed frame;
(4) 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 (5), otherwise, execution in step (1);
(5) encapsulation multiplexed frame and transmission.
2. transmission according to claim 1 flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, it is characterized in that, step (1) is specially:
(11) read program correlation table and program correspondence table, isolate one road program, obtain the transport stream packets of corresponding program, and in buffering area, sort;
(12) according to the indication in transport stream packet header, judge whether a plurality of transport stream can form a complete packetized elementary stream, if, execution in step (2), otherwise execution in step (11).
3. transmission according to claim 1 flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, it is characterized in that, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
4. transmission according to claim 1 flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, it is characterized in that, in the step (5), the length of described multiplexed frame is the 32K byte.
5. transmission according to claim 1 flows to the conversion method of China Mobile multimedia broadcasting multiplex protocol, it is characterized in that, further comprises: (6) after multiplexed frame encapsulation is finished, execution in step (1).
CN 200610138266 2006-11-08 2006-11-08 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol Expired - Fee Related CN101179738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610138266 CN101179738B (en) 2006-11-08 2006-11-08 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610138266 CN101179738B (en) 2006-11-08 2006-11-08 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol

Publications (2)

Publication Number Publication Date
CN101179738A CN101179738A (en) 2008-05-14
CN101179738B true CN101179738B (en) 2010-12-01

Family

ID=39405793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610138266 Expired - Fee Related CN101179738B (en) 2006-11-08 2006-11-08 Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol

Country Status (1)

Country Link
CN (1) CN101179738B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
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
CN103501457B (en) * 2013-09-23 2016-10-05 深圳市创维软件有限公司 The method and apparatus that a kind of program is play
CN106937137B (en) * 2015-12-30 2020-07-14 惠州市伟乐科技股份有限公司 Method for synchronizing audio and video of multichannel digital audio coding
CN106657113B (en) * 2016-12-30 2019-07-05 中广热点云科技有限公司 A kind of conversion method and system of multiplexing protocols in broadcast network

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
JP特开2006-173760A 2006.06.29

Also Published As

Publication number Publication date
CN101179738A (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
JP6302274B2 (en) Transmitting apparatus and receiving apparatus
JP5575949B2 (en) Broadcast data transmission method and apparatus
US20200236410A1 (en) Transmitting device, receiving device, transmitting method and receiving method
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
KR20090060530A (en) Method and apparatus for transmitting/receiving enhanced media data in digital multimedia broadcast system
WO2008028367A1 (en) A method for realizing multi-audio tracks for mobile mutilmedia broadcasting system
CN1972454A (en) Mobile multimedia broadcasting real-time traffic flow packaging method
CN100518074C (en) Method for implementing multiple video strems in mobile multimedia broadcast
CN1972453A (en) A data flow packaging method of mobile multimedia broadcasting system
CN101179738B (en) Conversion method from transmission stream to China mobile multimedia broadcasting multiplex protocol
CN1960328B (en) Method for packaging real time stream of mobile multimedia broadcast
US10506265B2 (en) Transmitting method, receiving method, transmitting device and receiving device
KR20040017830A (en) System and method for broadcast of independently encoded signals on atsc channels
KR101131836B1 (en) ASI Switcher for digital advertisement inserter
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
KR100710393B1 (en) method for decording packetized streams
WO2008022500A1 (en) A method for transmitting the control information and the media information of the mobile multimedia broadcast differentially
JP4373802B2 (en) Program transmission method, program transmission apparatus, program transmission system, and program transmission program

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: 20101201

Termination date: 20171108