CN1960509B - Method for implementing error isolation when transmitting mobile multimedia broadcasting media data - Google Patents
Method for implementing error isolation when transmitting mobile multimedia broadcasting media data Download PDFInfo
- Publication number
- CN1960509B CN1960509B CN200610112076A CN200610112076A CN1960509B CN 1960509 B CN1960509 B CN 1960509B CN 200610112076 A CN200610112076 A CN 200610112076A CN 200610112076 A CN200610112076 A CN 200610112076A CN 1960509 B CN1960509 B CN 1960509B
- Authority
- CN
- China
- Prior art keywords
- media data
- data unit
- unit
- data
- header information
- 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
- Mobile Radio Communication Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本发明公开了一种在传输移动多媒体广播媒体数据时实现错误隔离的方法,适用于移动广播网络中,包括如下步骤:(1)在发送端将媒体数据分割成多个独立的媒体数据单元;(2)将每个媒体数据单元的长度信息记录在所述媒体数据的包头信息中;(3)在每个媒体数据单元之间添加同步码来分隔;(4)将包含包头信息、各媒体数据单元,以及媒体数据单元之间的同步码的媒体数据发送到接收终端。应用本发明所述的方法,使终端在接收到媒体数据后,在出现误码的情况下,能够正确分割不同的数据块以使错误不会扩散,从而实现媒体数据的错误隔离。
The invention discloses a method for realizing error isolation when transmitting mobile multimedia broadcast media data, which is suitable for a mobile broadcast network and includes the following steps: (1) dividing media data into a plurality of independent media data units at a sending end; (2) record the length information of each media data unit in the header information of the media data; (3) add a synchronization code between each media data unit to separate; (4) include the header information, each media The data unit, and the media data of the synchronization code between the media data units are sent to the receiving terminal. Applying the method described in the present invention enables the terminal to correctly divide different data blocks in case of code errors after receiving media data so that errors will not spread, thereby realizing error isolation of media data.
Description
技术领域technical field
本发明涉及移动多媒体广播或手机电视技术领域,尤其涉及一种在传输移动多媒体广播媒体数据时实现错误隔离的方法,适用于移动广播网络中。The invention relates to the technical field of mobile multimedia broadcasting or mobile phone television, in particular to a method for realizing error isolation when transmitting mobile multimedia broadcasting media data, which is applicable to mobile broadcasting networks.
背景技术Background technique
移动多媒体广播是近年来兴起的一种多媒体播放技术。通过手持的终端,在高速移动的情况下,可以观看电视。终端通过无线协议,接收到节目单,并可以选择自己有权利收看的频道,从而可以接收所选择频道的多媒体数据,实现在移动终端上观看电视。Mobile multimedia broadcasting is a multimedia playback technology that has emerged in recent years. With a handheld terminal, you can watch TV while moving at high speed. The terminal receives the program list through the wireless protocol, and can select the channel it has the right to watch, so that it can receive the multimedia data of the selected channel, and realize watching TV on the mobile terminal.
系统发射的空中数据,被分成不同的频道,通过复用技术来分别传输,终端可以接收相关的数据,通过终端上的播放器,实现电视的正常播放。The air data transmitted by the system is divided into different channels and transmitted separately through the multiplexing technology. The terminal can receive the relevant data, and realize the normal broadcasting of the TV through the player on the terminal.
对于同一个频道,需要发送视频数据、音频数据,视频数据被分割成数个视频单元,同样,音频数据也被分割成数个音频单元,每个单元之间需要能够区分开来,并且要使得一个单元的错误不能影响另一个单元。这就需要一种实现错误隔离的方法。For the same channel, video data and audio data need to be sent. The video data is divided into several video units. Similarly, the audio data is also divided into several audio units. Each unit needs to be distinguishable, and to make An error in one unit cannot affect another unit. This requires a way to achieve error isolation.
目前,常用的实现错误隔离的方法有如下两种:At present, there are two commonly used methods to implement error isolation as follows:
1.TS(传输流)方式,TS协议是MPEG(Moving Picture Expert Group,运动图像专家组)标准中的一种,它把一个基本的视频、音频单元放在多个固定188字节大小的包里传送,由于视频单元与音频单元的大小能刚好填满这些固定大小的TS包,这就需要大量的填充数据。1. TS (Transport Stream) mode, the TS protocol is one of the MPEG (Moving Picture Expert Group) standards, it puts a basic video and audio unit in multiple fixed 188-byte packets Since the size of the video unit and the audio unit can just fill up these fixed-size TS packets, a large amount of padding data is required.
2.ISMA(互联网流媒体联盟)方式,ISMA规范是用RTP(实时传输协议)传送媒体信息,RTP包的大小是可变的,每个视频、音频单元可以放在不同的RTP包传送,这种方式适合在IP网络上使用。2. ISMA (Internet Streaming Media Alliance) method. The ISMA specification uses RTP (Real-time Transport Protocol) to transmit media information. The size of the RTP packet is variable, and each video and audio unit can be transmitted in a different RTP packet. This method is suitable for use on IP networks.
TS方式由于包的大小固定,需要浪费一些带宽资源,效率比较低,而ISMA方式只能在IP网络上使用。这两种方法都是用独立的包来分割视频音频数据的。The TS method needs to waste some bandwidth resources because the size of the packet is fixed, and the efficiency is relatively low, while the ISMA method can only be used on the IP network. Both of these methods use independent packets to segment video and audio data.
发明内容Contents of the invention
本发明所要解决的技术问题在于提供一种在传输移动多媒体广播媒体数据时实现错误隔离的方法,使终端在接收到媒体数据后,在出现误码的情况下,能够正确分割不同的数据块以使错误不会扩散。The technical problem to be solved by the present invention is to provide a method for implementing error isolation when transmitting mobile multimedia broadcast media data, so that after receiving the media data, the terminal can correctly divide different data blocks in the event of a bit error. so that errors do not propagate.
为了解决上述技术问题,本发明提供了一种在传输移动多媒体广播媒体数据时实现错误隔离的方法,适用于移动广播网络中,包括如下步骤:In order to solve the above-mentioned technical problem, the present invention provides a kind of method that realizes error isolation when transmitting mobile multimedia broadcasting media data, is applicable to in mobile broadcasting network, comprises the following steps:
(1)在发送端将媒体数据分割成多个独立的媒体数据单元;(1) Divide the media data into multiple independent media data units at the sending end;
(2)将每个媒体数据单元的长度信息记录在所述媒体数据的包头信息中;(2) recording the length information of each media data unit in the header information of the media data;
(3)在每个媒体数据单元之间添加同步码来分隔;(3) Add synchronization code between each media data unit to separate;
(4)将包含包头信息、各媒体数据单元,以及媒体数据单元之间的同步码的媒体数据发送到接收终端。(4) Send the media data including header information, media data units, and synchronization codes between the media data units to the receiving terminal.
其中,进一步包括:(5)接收终端根据包头信息中记录的各媒体数据单元的长度信息,和/或同步码,还原出各个媒体数据单元.Among them, it further includes: (5) The receiving terminal restores each media data unit according to the length information of each media data unit recorded in the header information and/or the synchronization code.
其中,所述步骤(5)包括:(51A)接收终端根据接收到的包头信息中记录的各媒体数据单元的长度信息,从接收到的数据中切割出每一个媒体数据单元。Wherein, the step (5) includes: (51A) The receiving terminal cuts out each media data unit from the received data according to the length information of each media data unit recorded in the received header information.
其中,所述步骤(5)包括:(51B)接收终端在接收到的媒体数据中搜索同步码,以两个同步码之间的数据作为媒体数据单元。Wherein, the step (5) includes: (51B) The receiving terminal searches for the synchronization code in the received media data, and uses the data between two synchronization codes as the media data unit.
其中,所述步骤(5)包括:(51)接收终端根据接收到的包头信息中记录的各媒体数据单元的长度信息,从接收到的数据中切割出每一个媒体数据单元;Wherein, the step (5) includes: (51) the receiving terminal cuts out each media data unit from the received data according to the length information of each media data unit recorded in the received header information;
(52)检验所述切割出的当前媒体数据单元的前若干字节是否是同步码,并检验下一个媒体数据单元的前若干字节是否是同步码,如果检验结果不正确,则不使用所述根据长度信息切割出的媒体数据单元,而是在接收到的媒体数据中搜索同步码,以两个同步码之间的数据作为该媒体数据单元。(52) Check whether the first several bytes of the current media data unit cut out are synchronization codes, and check whether the first several bytes of the next media data unit are synchronization codes, if the check result is incorrect, then do not use all Instead of the media data unit cut out according to the length information described above, the synchronization code is searched in the received media data, and the data between two synchronization codes is used as the media data unit.
其中,所述媒体数据包括视频数据和/或音频数据。Wherein, the media data includes video data and/or audio data.
其中,所述步骤(1)中,每帧媒体数据都可以切割成一个或多个媒体数据单元。Wherein, in the step (1), each frame of media data can be cut into one or more media data units.
其中,所述步骤(1)中,以任意时间间隔将媒体数据分割成多个独立的媒体数据单元。Wherein, in the step (1), the media data is divided into multiple independent media data units at any time interval.
本发明所述的一种在传输移动多媒体广播媒体数据时实现错误隔离的方法,适用于移动广播网络中,是在发送媒体数据时,通过长度字段、同步码来共同分割每个媒体数据,可以防止出现误码,以保证能够正确分割出媒体数据单元,从而实现媒体数据的错误隔离。A method for implementing error isolation when transmitting mobile multimedia broadcast media data according to the present invention is applicable to mobile broadcast networks. When sending media data, each media data is jointly divided by a length field and a synchronization code, which can Bit errors are prevented to ensure that media data units can be correctly segmented, thereby implementing error isolation of media data.
附图说明Description of drawings
图1是根据本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离方法的流程方框示意图;Fig. 1 is a schematic flow block diagram of a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention;
图2是根据本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离的方法中视频数据错误隔离的示意图;2 is a schematic diagram of video data error isolation in a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention;
图3是根据本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离的方法中音频数据错误隔离的示意图。Fig. 3 is a schematic diagram of audio data error isolation in a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明做详细描述。The present invention will be described in detail below in conjunction with the accompanying drawings.
参考图1,为本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离方法的流程方框示意图。具体过程如下:Referring to FIG. 1 , it is a schematic flow block diagram of a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention. The specific process is as follows:
步骤110:在发送端将媒体数据分割成多个独立的媒体数据单元;Step 110: Divide the media data into multiple independent media data units at the sending end;
步骤120:将每个媒体数据单元的长度信息记录在所述媒体数据的包头信息中;Step 120: Record the length information of each media data unit in the header information of the media data;
步骤130:在每个媒体数据单元之间添加同步码来分隔;Step 130: adding a synchronization code between each media data unit to separate;
步骤140:将包含包头信息、各媒体数据单元,以及媒体数据单元之间的同步码的媒体数据发送到接收终端。Step 140: Send the media data including the packet header information, each media data unit, and the synchronization code between the media data units to the receiving terminal.
参考图2,为本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离的方法中视频数据错误隔离的示意图.视频数据由视频包头、多个同步码、多个视频单元组成,视频数据可以分割成多个独立的视频单元,1帧可以切割成1个视频单元或多个视频单元.视频数据错误隔离的具体过程如下:Referring to Fig. 2, it is a schematic diagram of video data error isolation in a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention. Video data consists of a video packet header, a plurality of synchronization codes, and a plurality of video units The video data can be divided into multiple independent video units, and one frame can be divided into one video unit or multiple video units. The specific process of video data error isolation is as follows:
在发送端将视频数据分割成多个独立的视频单元,再将每个视频单元的长度信息记录在所述视频数据的包头信息中,通过在每个视频单元之间添加同步码来分隔视频单元,然后将包含包头信息、各视频单元,以及视频单元之间的同步码的视频数据发送到接收终端。At the sending end, the video data is divided into multiple independent video units, and then the length information of each video unit is recorded in the header information of the video data, and the video units are separated by adding synchronization codes between each video unit , and then send the video data including the header information, each video unit, and the synchronization code between the video units to the receiving terminal.
接收终端又根据包头信息中记录的各视频单元的长度信息,和/或同步码,还原出各个视频单元。还原过程为:接收终端根据接收到的包头信息中记录的各视频单元的长度信息,从接收到的数据中切割出每一个视频单元,然后检验所述切割出的当前视频单元的前若干字节是否是同步码,并检验下一个视频单元的前若干字节是否是同步码,如果检验结果为正确,则使用该当前视频单元,如果检验结果不正确,则不使用所述根据长度信息切割出的视频单元,而是在接收到的视频数据中搜索同步码,以两个同步码之间的数据作为该视频单元。The receiving terminal restores each video unit according to the length information of each video unit recorded in the header information and/or the synchronization code. The restoration process is: the receiving terminal cuts out each video unit from the received data according to the length information of each video unit recorded in the received packet header information, and then checks the first few bytes of the cut out current video unit Whether it is a sync code, and check whether the first few bytes of the next video unit are sync codes, if the check result is correct, then use the current video unit, if the check result is not correct, then do not use the cut out according to the length information Instead, search for the sync code in the received video data, and use the data between the two sync codes as the video unit.
参考图3,为本发明实施例所述的一种在传输移动多媒体广播媒体数据时实现错误隔离的方法中音频数据错误隔离的示意图。音频数据由音频包头、多个同步码、多个音频单元组成,音频数据可以分割成多个独立的音频单元,时间间隔为任意值,可以调整,可以是50ms作为一个音频单元,也可以是100ms作为一个音频单元。音频数据错误隔离的具体过程如下:Referring to FIG. 3 , it is a schematic diagram of audio data error isolation in a method for implementing error isolation when transmitting mobile multimedia broadcast media data according to an embodiment of the present invention. Audio data consists of audio packet headers, multiple synchronization codes, and multiple audio units. Audio data can be divided into multiple independent audio units. The time interval is any value and can be adjusted. It can be 50ms as an audio unit or 100ms. as an audio unit. The specific process of audio data error isolation is as follows:
在发送端将音频数据分割成多个独立的音频单元,再将每个音频单元的长度信息记录在所述音频数据的包头信息中,通过在每个音频单元之间添加同步码来分隔音频单元,然后将包含包头信息、各音频单元,以及音频单元之间的同步码的音频数据发送到接收终端。At the sending end, the audio data is divided into multiple independent audio units, and the length information of each audio unit is recorded in the header information of the audio data, and the audio units are separated by adding synchronization codes between each audio unit , and then send the audio data including the header information, each audio unit, and the synchronization code between the audio units to the receiving terminal.
接收终端又根据包头信息中记录的各音频单元的长度信息,和/或同步码,还原出各个音频单元。还原过程为:接收终端根据接收到的包头信息中记录的各音频单元的长度信息,从接收到的数据中切割出每一个音频单元,然后检验所述切割出的当前音频单元的前若干字节是否是同步码,并检验下一个音频单元的前若干字节是否是同步码,如果检验结果为正确,则使用该当前音频单元,如果检验结果不正确,则不使用所述根据长度信息切割出的音频单元,而是在接收到的音频数据中搜索同步码,以两个同步码之间的数据作为该视频单元。The receiving terminal restores each audio unit according to the length information of each audio unit recorded in the header information and/or the synchronization code. The restoration process is: the receiving terminal cuts out each audio unit from the received data according to the length information of each audio unit recorded in the received packet header information, and then checks the first few bytes of the cut out current audio unit Whether it is a synchronous code, and check whether the first few bytes of the next audio unit are synchronous codes, if the verification result is correct, then use the current audio unit, if the verification result is incorrect, then do not use the audio unit, but search for the sync code in the received audio data, and use the data between the two sync codes as the video unit.
另外,具所知视频单元之间的同步码要求不会在视频码流中出现,音频单元之间的同步码要求不会在音频码流中出现,或者说,同步码在视频数据、音频数据中不会出现。本发明所述实施例选择了3字节长度的同步码,为“0x00 00 01”。In addition, the synchronization code requirement between known video units will not appear in the video code stream, and the synchronization code requirement between audio units will not appear in the audio code stream, or in other words, the synchronization code will not appear in the video data, audio data will not appear in . The embodiment of the present invention selects a synchronization code with a length of 3 bytes, which is "0x00 00 01".
下面通过一个实例对本发明做进一步描述。The present invention will be further described below through an example.
在本实例中,每个数据通道有128Kbit/s的速率,1个频道包括了2个数据通道,可以有256Kbit/s的速率。In this example, each data channel has a rate of 128Kbit/s, and one channel includes 2 data channels, which can have a rate of 256Kbit/s.
这个频道的总长度是32K字节,其中:视频数据共有22.5K字节,音频数据长8K字节。音频数据包括2个音轨,每个音轨有32Kbit/s。帧频为25赫兹,切割成25个视频单元,音频100ms为1个音频单元,切割成20个音频单元。每个视频单元、音频单元之间通过使用本发明所述的错误隔离方法,提高了媒体传送的安全性能。The total length of this channel is 32K bytes, of which: the video data has a total of 22.5K bytes, and the audio data has a length of 8K bytes. The audio data includes 2 audio tracks, each with 32Kbit/s. The frame rate is 25 Hz, cut into 25 video units, and the audio frequency of 100ms is 1 audio unit, cut into 20 audio units. By using the error isolation method described in the present invention between each video unit and audio unit, the security performance of media transmission is improved.
如上所述,这样一个电视频道,可以满足1个QVGA分辨率、25帧的H264或AVS-M的视频数据的传输,和2个32Kbit/s的AAC音轨数据的传输,能够为用户提供高质量的音频流移动广播电视节目。As mentioned above, such a TV channel can satisfy the transmission of one H264 or AVS-M video data with QVGA resolution and 25 frames, and the transmission of two AAC audio track data at 32Kbit/s, which can provide users with high Quality audio streaming mobile broadcast TV programs.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610112076A CN1960509B (en) | 2006-08-29 | 2006-08-29 | Method for implementing error isolation when transmitting mobile multimedia broadcasting media data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200610112076A CN1960509B (en) | 2006-08-29 | 2006-08-29 | Method for implementing error isolation when transmitting mobile multimedia broadcasting media data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1960509A CN1960509A (en) | 2007-05-09 |
| CN1960509B true CN1960509B (en) | 2010-05-12 |
Family
ID=38071963
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200610112076A Expired - Fee Related CN1960509B (en) | 2006-08-29 | 2006-08-29 | Method for implementing error isolation when transmitting mobile multimedia broadcasting media data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1960509B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| ES2655846T3 (en) * | 2012-10-11 | 2018-02-21 | Samsung Electronics Co., Ltd. | Device and procedure for delivering and receiving multimedia data in a hybrid network |
| CN104661049A (en) * | 2013-11-25 | 2015-05-27 | 乐视网信息技术(北京)股份有限公司 | Transmission method and transmission system for transport stream, streaming media server and terminal |
| CN111354384A (en) * | 2020-02-27 | 2020-06-30 | 北京奇艺世纪科技有限公司 | GIF picture generation method, playing method and device and electronic equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1520190A (en) * | 1997-06-27 | 2004-08-11 | ���ǵ�����ʽ���� | Multimedia Multiplexing Method |
| CN1528076A (en) * | 2001-02-20 | 2004-09-08 | ������������ʽ���� | multiplexing device, separating device |
-
2006
- 2006-08-29 CN CN200610112076A patent/CN1960509B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1520190A (en) * | 1997-06-27 | 2004-08-11 | ���ǵ�����ʽ���� | Multimedia Multiplexing Method |
| CN1528076A (en) * | 2001-02-20 | 2004-09-08 | ������������ʽ���� | multiplexing device, separating device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1960509A (en) | 2007-05-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| RU2292657C2 (en) | Quantization of time on basis of clock impulses | |
| US20050018615A1 (en) | Media transmitting method, media receiving method, media transmitter and media receiver | |
| CN102196319A (en) | Live streaming service system and realization method | |
| CN101616060B (en) | Method and system for switching multicast to unicast for IPTV terminal | |
| CN100531398C (en) | Method for realizing multiple audio tracks in mobile multimedia broadcast system | |
| CN101272200B (en) | Multimedia stream synchronization caching method and system | |
| CN102882620B (en) | Information processor and information processing method | |
| CN100518074C (en) | Method for implementing multiple video strems in mobile multimedia broadcast | |
| CN1960485B (en) | Method for playing back video and audio synchronistically in mobile media broadcast | |
| CN1960509B (en) | Method for implementing error isolation when transmitting mobile multimedia broadcasting media data | |
| CN1972408A (en) | A data transmission method for mobile multimedia broadcasting system | |
| CN101202613A (en) | A terminal for clock synchronization | |
| CN1972454A (en) | Mobile multimedia broadcasting real-time traffic flow packaging method | |
| CN1964485B (en) | A method for fast broadcasting of multimedia broadcasting channel | |
| CN105359534A (en) | Broadcasting transmission/reception apparatus and broadcasting transmission/reception method | |
| CN100473171C (en) | A Method of Clock Synchronization in Broadcasting Network | |
| WO2008022499A1 (en) | A packetting method of a mobile multimedia broadcasting real-time strame | |
| CN100536568C (en) | Method for differentiating transmissions of control information and media information in mobile multimedia broadcast | |
| CN1972166B (en) | An audio stream transport method of mobile multimedia broadcast system | |
| CN100544448C (en) | A Clock Synchronization System for Mobile Multimedia Network | |
| CN100551063C (en) | A method for fast broadcasting of multimedia broadcasting channel | |
| CN101594531A (en) | Simplified transfer method for signal flow between transmitter and electronic device | |
| US8811478B2 (en) | Data transmission method and apparatus | |
| CN1960228B (en) | Method for multiplexing aerial channels of mobile multimedia broadcast | |
| CN1960520B (en) | Method for transferring auxiliary data in mobile multimedia broadcasting |
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: 20100512 Termination date: 20170829 |