CN100479529C - Conversion method of multiplexing protocols in broadcast network - Google Patents
Conversion method of multiplexing protocols in broadcast network Download PDFInfo
- Publication number
- CN100479529C CN100479529C CNB2006101596629A CN200610159662A CN100479529C CN 100479529 C CN100479529 C CN 100479529C CN B2006101596629 A CNB2006101596629 A CN B2006101596629A CN 200610159662 A CN200610159662 A CN 200610159662A CN 100479529 C CN100479529 C CN 100479529C
- Authority
- CN
- China
- Prior art keywords
- bag
- conversion method
- broadcast network
- pes
- video
- 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 method comprises: extracting the PES packet from TS packet; extracting the PTS or DTS from the PES extended packet, and converting the PTS and DTS into the time stamp in multiplexing frame; extracting the ES packet from PES, and according to the CMMB multiplexing protocol, filling the video ES packet into the video unit, or filling the audio ES packet into the audio unit; encapsulating the multiplexing frame and transmitting it.
Description
Technical field
The present invention relates to a kind of Mobile Multimedia Broadcasting or mobile TV technology, specifically, relate to a kind of conversion method of multiplexing protocols in broadcast network.
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 the CMMB program.
Summary of the invention
Technical problem solved by the invention provides a kind of conversion method of multiplexing protocols in broadcast network, makes the TS program can be directly changed into the program of CMMB multiplex protocol.
Technical scheme is as follows:
A kind of conversion method of multiplexing protocols in broadcast network comprises the steps:
(1) from the TS bag, takes out the PES bag;
(2) from the PES extension header, take out PTS or DTS, convert the timestamp in the multiplexed frame to;
(3) 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;
(4) encapsulation multiplexed frame and transmission.
Further, in the step (1),, video PES bag in the TS stream or audio frequency PES bag are extracted respectively according to the PID among the TS.
Further, step (1) is specially:
(11) read PAT and PMT, isolate one road program, obtain the TS bag of corresponding program, and in buffering area, sort;
(12) according to the indication in TS packet header, judge whether a plurality of TS can form a complete PES, if, execution in step (2), otherwise execution in step (11).
Further, step (2) is specially:
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.
Further, in the step (2), described timestamp 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), form a multiplexed frame in the described setting-up time.
Further, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
Further, in the step (4), described multiplexed frame length 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 conversion method of multiplexing protocols in broadcast network comprises the steps:
1, takes out the PES bag in the TS 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, from the PES extension header, take out PTS or DTS, 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.
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 (10)
1, a kind of conversion method of multiplexing protocols in broadcast network comprises the steps:
(1) from the TS bag, takes out the PES bag;
(2) from the PES extension header, take out PTS or DTS, convert the timestamp in the multiplexed frame to;
(3) 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;
(4) encapsulation multiplexed frame and transmission.
2, the conversion method of multiplexing protocols in broadcast network according to claim 1 is characterized in that, in the step (1), according to the PID among the TS, video PES bag in the TS stream or audio frequency PES bag is extracted respectively.
3, the conversion method of multiplexing protocols in broadcast network according to claim 1 is characterized in that, step (1) is specially:
(11) read PAT and PMT, isolate one road program, obtain the TS bag of corresponding program, and in buffering area, sort;
(12) according to the indication in TS packet header, judge whether a plurality of TS can form a complete PES, if, execution in step (2), otherwise execution in step (11).
4, the conversion method of multiplexing protocols in broadcast network according to claim 1 is characterized in that, step (2) is specially:
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.
5, the conversion method of multiplexing protocols in broadcast network according to claim 4 is characterized in that, in the step (2), described timestamp is used to set the demonstration time of video data or voice data, realizes the synchronous of video or voice playing.
6, the conversion method of multiplexing protocols in broadcast network according to claim 1 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).
7, the conversion method of multiplexing protocols in broadcast network according to claim 6 is characterized in that, in the step (3), forms a multiplexed frame in the described setting-up time.
According to the conversion method of claim 6 or 7 each described multiplexing protocols in broadcast network, it is characterized in that 8, in the step (3), described setting-up time is 0.25 second, 0.5 second or 1 second.
9, the conversion method of multiplexing protocols in broadcast network according to claim 1 is characterized in that, in the step (4), the length of described multiplexed frame is the 32K byte.
10, the conversion method of multiplexing protocols in broadcast network according to claim 1 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 |
---|---|---|---|
CNB2006101596629A CN100479529C (en) | 2006-09-30 | 2006-09-30 | Conversion method of multiplexing protocols in broadcast network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101596629A CN100479529C (en) | 2006-09-30 | 2006-09-30 | Conversion method of multiplexing protocols in broadcast network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1960501A CN1960501A (en) | 2007-05-09 |
CN100479529C true CN100479529C (en) | 2009-04-15 |
Family
ID=38071957
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101596629A Expired - Fee Related CN100479529C (en) | 2006-09-30 | 2006-09-30 | Conversion method of multiplexing protocols in broadcast network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100479529C (en) |
Cited By (1)
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 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101321293B (en) * | 2007-06-06 | 2010-08-18 | 中兴通讯股份有限公司 | Apparatus and method for implementing multi-path program multiplexing |
JP5487697B2 (en) * | 2009-04-20 | 2014-05-07 | ソニー株式会社 | Network server, media format conversion method, and media format conversion system |
CN102045534B (en) * | 2009-10-26 | 2013-11-06 | 中兴通讯股份有限公司 | System, method and device for processing video information based on 3G (The 3rd Generation Telecommunication) mobile communication technology |
CN106657113B (en) * | 2016-12-30 | 2019-07-05 | 中广热点云科技有限公司 | A kind of conversion method and system of multiplexing protocols in broadcast network |
CN108566552B (en) * | 2018-04-20 | 2021-05-25 | 四川长虹网络科技有限责任公司 | Multimedia playing method and system suitable for digital set top box |
CN110798731A (en) * | 2019-11-15 | 2020-02-14 | 北京字节跳动网络技术有限公司 | Video data processing method and device, electronic equipment and computer readable medium |
-
2006
- 2006-09-30 CN CNB2006101596629A patent/CN100479529C/en not_active Expired - Fee Related
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN1960501A (en) | 2007-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101179736B (en) | Method for converting transmission stream program to China mobile multimedia broadcasting program | |
US10455260B2 (en) | Transmitting method, receiving method, transmitting device, and receiving device | |
JP4668515B2 (en) | Metadata transmission apparatus and method synchronized with multimedia contents | |
US11064229B2 (en) | Transmitting device, receiving device, transmitting method and receiving method | |
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 | |
JP5575949B2 (en) | Broadcast data transmission method and apparatus | |
JP6302274B2 (en) | Transmitting apparatus and receiving apparatus | |
CN1235406C (en) | System and data format for providing seamless stream switching in digital video decoder | |
CN100479529C (en) | Conversion method of multiplexing protocols in broadcast network | |
CN100401784C (en) | Data synchronization method and apparatus for digital multimedia data receiver | |
CN1871800A (en) | Method and an apparatus for mapping an MPEG transport stream into IP packets for WLAN broadcast | |
KR100358119B1 (en) | The data streaming apparatus and method for digital databroadcasting service | |
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 | |
CN101729908A (en) | Synchronous multiplexing method for video and audio of transmission stream | |
CN1960328B (en) | Method for packaging real time stream of mobile multimedia broadcast | |
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 | |
CN101151902A (en) | Device and method for initializing decoder in digital broadcasting receiver | |
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 | |
CN101267572B (en) | A program stream conversion method and device | |
CN101179737B (en) | Method of converting compound protocol in multimedia broadcasting network |
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: 20090415 Termination date: 20170930 |