CN101198053B - Video data self-adapting partition device in encoder - Google Patents
Video data self-adapting partition device in encoder Download PDFInfo
- Publication number
- CN101198053B CN101198053B CN 200610161971 CN200610161971A CN101198053B CN 101198053 B CN101198053 B CN 101198053B CN 200610161971 CN200610161971 CN 200610161971 CN 200610161971 A CN200610161971 A CN 200610161971A CN 101198053 B CN101198053 B CN 101198053B
- Authority
- CN
- China
- Prior art keywords
- video
- data
- unit
- length
- adapting
- 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
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention provides a video data self-adapting dividing device in an encoder, wherein, the encoder receives channel data; the video data self-adapting dividing device divides M video frames; one or a plurality of video units are obtained after respectively dividing each video frame; each video unit comprises a plurality of macro blocks; the video units are then used for filling data blocks of physical layers, and each physical layer is guaranteed to comprise a plurality of video units. The video data self-adapting dividing device of the invention is combined with the characteristics of physical channels through self-adapting dividing video data units and by full utilization of data dividing method of information sources and meets as possible the requirement that an image strip or a subdivision is filled in a physical data package, thereby video errors are isolated in the image strip or the subdivision under the condition of abnormality of channels, consequently the invention has the advantages of effective avoidance of expansion of image flaws, improvement of image subjective quality and obvious improvement of anti-error capacity of video data.
Description
Technical field
The invention belongs to Mobile Multimedia Broadcasting or technical field of mobile TV, the video data self-adapting partition device in particularly a kind of encoder.
Background technology
Mobile Multimedia Broadcasting is a kind of Play Technique for Multimedia of rising in recent years.The user under the situation of high-speed mobile, can watch TV by hand-held terminal.Terminal receives programme by wireless protocols, can select the channel of oneself having the right to watch, thereby can receive the multi-medium data of selecting 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: 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.
During transmission, video data is cut into some little data blocks.In order to strengthen the anti-error code capacity of video data, need the cutting method of regulation video data, can realize wrong recovery more easily and cover during with the assurance decoding terminals.
And have the channels of video data method for packing now, and often only consider the characteristics of physical channel,, machine cuts video code flow rigid according to the capacity of packet do not considered the video content correlation.Existing cutting method often inaccuracy arrives macro block, general way is: if 1 picture frame is too big, with regard to the rigid fixed size that cuts into, the IP bag maximum of IP network is generally only asked 1500 bytes, will adopt the method for hard cutting, each bag fixed size 1500 byte, if in the TS bag, also be the cutting method that adopts fixed size, in the TS bag that can be placed on fixed size, rather than an integer macro block cuts.Occur when unusual at channel like this, in view of spatial domain, the relativity of time domain of information source compression, mistake can be unfavorable for that image is hidden in spatial spread, even amplifies flaw.
Summary of the invention
The technical problem to be solved in the present invention provides the video data self-adapting partition device in a kind of encoder in a kind of multi-media broadcasting system, improves the ability of the anti-error code of video data.
The present invention proposes the video data self-adapting partition device in a kind of encoder, encoder receives channel data, video data self-adapting partition device cuts M frame of video, each frame of video is cut apart respectively, obtain one or more video units, each video unit comprises an integer macro block, fills the physics layer data block with video unit then, guarantees to comprise in each physical layer data piece an integer video unit.
The size of described physical layer data piece is provided with according to the physical layer modulation mode.
Described video data self-adapting partition device is filled to its remaining space less than given threshold value V with video unit with the physical layer data piece.
Described remaining space is filled with 0x00.
The size of described threshold value V is that code device if can not utilize remaining space, is just filled remaining space in coding by the decision of the code device of encoder.
This device also comprises can use data length computing unit, first comparing unit, second comparing unit, the first assignment unit, the second assignment unit, cutter unit and cycle criterion unit, wherein:
(b1) can use the data length computing unit before video data is cut, calculate earlier in the channel data of this less important transmission, first video unit is as the length H of all information in front, the length that comprises packet header, video paragraph header, if the front has encapsulated the data of other channels, also count together, H is divided by the length W of physical layer data piece, and its remainder is the data length H0 that has used in the current physical layer data block;
(b2) can use the data length computing unit to calculate spendable data length L1=W-H0 in the current physical layer data block, first comparing unit judges that whether W-H0 is more than or equal to given threshold value V, if, execution in step (b3), otherwise, make H0=0 by the first assignment unit, L1=W, execution in step (b3);
(b3) whether second comparing unit judges the remaining data length L of current image frame more than or equal to L1, if, execution in step (b4), otherwise execution in step (b5);
(b4) the second assignment unit makes the current video unit length L 2=L1 that will cut apart, H0=0, L=L-L1, execution in step (b6);
(b5) the second assignment unit makes current video element length L2=L, H0=H0+L, the length of the next frame of video of L=, execution in step (b6);
(b6) cutter unit cuts out the block of video data that length is L2 from frame of video;
(b7) cycle criterion unit judges L=0 whether, if, then loop ends, otherwise, return step (b2) and carry out.
Video data self-adapting partition device of the present invention cuts video data unit by self adaptation, make full use of the data dividing method of information source, combine with physical channel characteristics, satisfy a band or a subregion fills in a physical data bag as far as possible, thereby occur when unusual at channel, video error is isolated in a band or the subregion, effectively avoid the expansion of image flaw, improve the image subjective quality, and the anti-error code capacity of video data is significantly improved.
Description of drawings
Fig. 1 is the schematic diagram that Media Stream of the present invention transmits in service channel;
Fig. 2 is the schematic diagram of adaptive video data cutting of the present invention;
Fig. 3 is the flow chart of encoder cutting video data of the present invention.
Embodiment
Figure 1 shows that the schematic diagram that Media Stream transmits in service channel, wherein, the corresponding channel of service channel, a channel sends 1 secondary data every a Fixed Time Interval, and this time interval can be 1 second, also can be the other times value.
The data of a channel are made up of packet header, video-data fragment, speech data section and ancillary data sections.Packet header must provide, and wherein mainly is some control informations.Video-data fragment, speech data section and ancillary data sections all can be selected to occur, and one or more can occur, and whether these 3 data segments occur and can judge from the control field in packet header.
Video-data fragment is made up of video paragraph header, a N video data unit, and N can change, and determines the occurrence of N according to actual needs.The video paragraph header comprises length, reproduction time, attribute field of each video data unit etc.
Fig. 2 is the schematic diagram of adaptive video data cutting of the present invention, is finished by video data self-adapting partition device and cuts apart, and the video data in 1 second comprises M frame of video, and its principle is:
(1) each frame of video can cut into one or more video units;
(2) video units can not comprise the data of 2 frames.
Promptly be the base unit of video data encapsulation with the band, do not cross over picture frame, a video unit is put a band.So-called band is exactly the set of a plurality of macro blocks, just the payload user data of 1 video unit.
The data that physical layer transmits are made up of a plurality of physical layer data pieces, and the size of each physical layer data piece is fixed as W, and each piece has the identical error rate.Can be placed in each physical layer data piece after the video unit cutting, its principle is with adapting to automatically:
(1) physical layer data piece can comprise one or more video units;
(2) video units can not transmit in 2 physical layer data pieces;
(3) video units comprise 1 macro block at least, if 1 physical layer data piece remaining space is not enough put into 1 macro block, then do not put into video unit, and fill 0x00;
(4) the big or small W of physical layer data piece is provided with according to the parameter of physical channel, and for a kind of modulation system, W is a fixed size.
Macro block is meant 16 * 16 image block, and the size of 1 macro block is variable, and for the image of 300KBit/s speed, the mean size of a macro block is 5 bytes.The size of filling is that code device if can not utilize remaining space, is just filled remaining space in coding by the code device decision of encoder.
The reference value of W is 576 bytes or 864 bytes, according to the modulation system decision of physical channel.
Fig. 3 is the flow chart of encoder cutting video data of the present invention, and the implication of map parameter is: H0 is the data length that has been used in the current physical layer data block; L2 is the length of the current video unit that will cut apart; L is the remaining data length of current video frame; L1 is the remaining data length of physical layer data piece, just the spendable data length of current physical layer data block; V is the threshold value of minimum video unit length, desirable 5 bytes; W is the length of each physical layer data piece.This cutting procedure is finished by video data self-adapting partition device, this device comprises can use data length computing unit, first comparing unit, second comparing unit, the first assignment unit, the second assignment unit, cutter unit and cycle criterion unit, and this is cut apart flow process and comprises following steps:
When 1) video data being cut beginning, by using the data length computing unit to calculate earlier in the channel data of this less important transmission, the length H of first video unit all information in front, the length that comprises packet header, video paragraph header, if the front has encapsulated the data of other channels, also count together, H0 is the remainder of H divided by W, and this moment, L equaled first frame of video length;
2) can use the data length computing unit to calculate spendable data length L1=W-H0 in the current physical layer data block; Whether first comparing unit judges W-H0 more than or equal to threshold value V, if, execution in step 3), otherwise the first assignment unit makes H0=0, L1=W, execution in step 3);
Because macro block is the least unit of video data, the length of each macro block approximately is 5 bytes, if remaining space is less than V, then remaining space can't be filled a macro block, then give current video unit remaining space, fill 0 by current video unit, do not distribute to next video unit.
3) second comparing unit judges whether L>L1 sets up, if, execution in step 4), otherwise execution in step 5);
4) the second assignment unit makes the current video unit length L 2=L1 that will cut apart, H0=0, L=L-L1, execution in step 6);
That is: the remaining data length L of current image frame is greater than the remaining data length L1 of physical layer data piece, and current image frame is not cut apart and finished in this case, and next time, circulation continued to cut apart present frame.As first video unit of first frame among Fig. 2, in this case, next time, the H0 value of circulation was 0;
5) the second assignment unit makes the current video unit length L 2=L that will cut apart, H0=H0+L, the length of the next frame of video of L=, execution in step 6);
That is: the remaining data length L of current image frame is less than the remaining data length L1 of physical layer data piece, last video unit as first frame among Fig. 2, in this case, current image frame has been cut apart and has been finished, and next time, circulation will begin to cut apart next picture frame.
6) cutter unit cuts out the block of video data that length is L2 from frame of video;
Whether 7) cycle criterion unit judges L=0, if expression has not had remaining view data, and then loop ends, otherwise, return step 2) carry out.
In the above-mentioned partitioning scheme, because the macro block of video data is a least unit, average 5 byte-sized.A video unit can not just fill up the data block of 576 bytes, and the data block of each 576 byte all has a filling, about general 5 bytes.
The benefit of above-mentioned adaptive video data cutting method is: when transmitting owing to physical layer, transmit 1 physical layer data piece 1 time, the error rate of each physical layer data piece equates, error code between each physical layer data piece does not influence each other, during transmission, may lose 1 physical layer data piece for 1 time, in such cutting mode, the physical layer data piece always comprises an integer macro block, data between the different physical layer data pieces are separate, the loss of data of 1 physical layer data piece, do not influence the decoding of the video data of other physical layer data pieces, make error code can not spread, decoder can be realized error correction and code error shielding to greatest extent, can improve the anti-error code capacity of system greatly.
The present invention's one example is as follows, and in this example, a service channel has the speed of 256Kbit/s.
The total length of this channel is the 32K byte, wherein: long 37 bytes in packet header; The video-data fragment total length is the 26.8K byte; The audio data section total length is the 4.1K byte; The ancillary data sections total length is the 1K byte.For the part of not enough 32K byte, can fill complete 0.
The size of each data block of physical channel is 576 bytes, and video data cuts into a plurality of video units and is placed in the physical channel data piece of a plurality of 576 bytes, totally 55 video units.
Such television channel can provide the video data of 212Kbit/s speed, and the caption data of the voice data of 32Kbit/s speed and 8Kbit/s speed can satisfy the transmission of the video data of the H264 of QVGA resolution, 25 frames or AVS-M.In the mobile broadcast television program that suitable satisfactory quality is provided to the user, can provide captions for the user, be presented on the screen by terminal.
Claims (5)
1. the video data self-adapting partition device in the encoder, encoder receives channel data, video data self-adapting partition device cuts M frame of video, each frame of video is cut apart respectively, obtain one or more video units, each video unit comprises an integer macro block, fills the physics layer data block with video unit then, guarantees to comprise in each physical layer data piece an integer video unit; Described self-adapting partition device also comprises can use data length computing unit, first comparing unit, second comparing unit, the first assignment unit, the second assignment unit, cutter unit and cycle criterion unit, wherein:
(b1) can use the data length computing unit before video data is cut, calculate earlier in the channel data of this less important transmission, the length H of first video unit all information in front, the length that comprises packet header, video paragraph header, if the front has encapsulated the data of other channels, also count together, H is divided by the length W of physical layer data piece, and its remainder is the data length H0 that has used in the current physical layer data block;
(b2) can use the data length computing unit to calculate spendable data length L1=W-H0 in the current physical layer data block, first comparing unit judges that whether W-H0 is more than or equal to given threshold value V, if, execution in step (b3), otherwise, make H0=0 by the first assignment unit, L1=W, execution in step (b3);
(b3) whether second comparing unit judges the remaining data length L of current image frame more than or equal to L1, if, execution in step (b4), otherwise execution in step (b5);
(b4) the second assignment unit makes the current video unit length L 2=L1 that will cut apart, H0=0, L=L-L1, execution in step (b6);
(b5) the second assignment unit makes current video element length L2=L, H0=H0+L, the length of the next frame of video of L=, execution in step (b6);
(b6) cutter unit cuts out the block of video data that length is L2 from frame of video;
(b7) cycle criterion unit judges L=0 whether, if, then loop ends, otherwise, return step (b2) and carry out.
2. self-adapting partition device as claimed in claim 1 is characterized in that: the size of described physical layer data piece is provided with according to the physical layer modulation mode.
3. self-adapting partition device as claimed in claim 1 is characterized in that: described video data self-adapting partition device is filled to its remaining space less than given threshold value V with video unit with the physical layer data piece.
4. self-adapting partition device as claimed in claim 3 is characterized in that: described remaining space is filled with 0x00.
5. self-adapting partition device as claimed in claim 3 is characterized in that: the size of described threshold value V is that code device if can not utilize remaining space, is just filled remaining space in coding by the decision of the code device of encoder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610161971 CN101198053B (en) | 2006-12-08 | 2006-12-08 | Video data self-adapting partition device in encoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200610161971 CN101198053B (en) | 2006-12-08 | 2006-12-08 | Video data self-adapting partition device in encoder |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101198053A CN101198053A (en) | 2008-06-11 |
CN101198053B true CN101198053B (en) | 2010-05-19 |
Family
ID=39548147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200610161971 Expired - Fee Related CN101198053B (en) | 2006-12-08 | 2006-12-08 | Video data self-adapting partition device in encoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101198053B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101998141B (en) * | 2008-06-19 | 2013-06-05 | 华为技术有限公司 | Method, device and system for packaging, encoding and decoding video data |
CN102111240A (en) * | 2009-12-29 | 2011-06-29 | 财团法人工业技术研究院 | Method and device for data block partitioning and method and device for data coding |
CN102594786A (en) * | 2011-01-04 | 2012-07-18 | 英属维京群岛商速位互动股份有限公司 | Multi-medial interactive system and client device |
CN103294726A (en) * | 2012-03-05 | 2013-09-11 | 日电(中国)有限公司 | Method and equipment for processing video file |
CN107038011B (en) * | 2016-02-04 | 2021-04-06 | 中兴通讯股份有限公司 | Method and device for adjusting display fluency, and mobile terminal |
CN115134339B (en) * | 2022-06-28 | 2024-07-02 | 京东方科技集团股份有限公司 | Media file processing method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6154780A (en) * | 1996-12-18 | 2000-11-28 | Intel Corporation | Method and apparatus for transmission of a flexible and error resilient video bitstream |
CN1511420A (en) * | 2001-11-09 | 2004-07-07 | 松下电器产业株式会社 | Moving picture coding method and apparatus |
CN1822529A (en) * | 2005-02-18 | 2006-08-23 | 日立通讯技术株式会社 | Baseband demodulation architecture for self-adaptive modulation method |
-
2006
- 2006-12-08 CN CN 200610161971 patent/CN101198053B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6154780A (en) * | 1996-12-18 | 2000-11-28 | Intel Corporation | Method and apparatus for transmission of a flexible and error resilient video bitstream |
CN1511420A (en) * | 2001-11-09 | 2004-07-07 | 松下电器产业株式会社 | Moving picture coding method and apparatus |
CN1822529A (en) * | 2005-02-18 | 2006-08-23 | 日立通讯技术株式会社 | Baseband demodulation architecture for self-adaptive modulation method |
Non-Patent Citations (1)
Title |
---|
2. |
Also Published As
Publication number | Publication date |
---|---|
CN101198053A (en) | 2008-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11706467B2 (en) | Broadcast signal transmitting apparatus and broadcast signal transmitting method | |
US11895357B2 (en) | Broadcasting signal transmission device, broadcasting signal reception device, broadcasting signal transmission method, and broadcasting signal reception method | |
US20210314076A1 (en) | Apparatus for transmitting broadcast signals, apparatus for receiving broadcast signals, method for transmitting broadcast signals and method for receiving broadcast signals | |
US10893304B2 (en) | Apparatus for receiving broadcast signal and method for receiving broadcast signal | |
US9998890B2 (en) | Method and apparatus for content navigation in digital broadcast radio | |
US20170272691A1 (en) | Broadcast signal transmission device, broadcast signal reception device, broadcast signal transmission method, and broadcast signal reception method | |
US20190268397A1 (en) | Apparatuses and methods for transmitting or receiving a broadcast content via one or more networks | |
JP6449897B2 (en) | Broadcast signal generation processing method and broadcast signal receiver | |
US10181928B2 (en) | Rate adaptation method using bit error rate for multimedia service and apparatus therefor | |
CN101198053B (en) | Video data self-adapting partition device in encoder | |
JP2018532294A (en) | Broadcast signal transmitting apparatus, broadcast signal receiving apparatus, broadcast signal transmitting method, and broadcast signal receiving method | |
US20180048854A1 (en) | Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal | |
US10728590B2 (en) | Apparatus and method for transmitting and receiving broadcast signal | |
US10516771B2 (en) | Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal and method for receiving broadcast signal | |
US10341036B2 (en) | Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method | |
CN1972454A (en) | Mobile multimedia broadcasting real-time traffic flow packaging method | |
KR20160108342A (en) | Method and apparatus for multiplexing layered coded contents | |
CN1960328B (en) | Method for packaging real time stream of mobile multimedia broadcast | |
CN102104795A (en) | Method for multiplexing program stream (PS) paths into transport stream (TS) path based on moving picture experts group (MPEG)-2 | |
WO2008016213A1 (en) | Digital broadcasting system and method | |
CN1968410A (en) | Adaptive video data splitting method | |
CN101212413A (en) | Mobile multimedia broadcast data transmission method | |
CN105491394A (en) | Method and device for sending MMT packet and method for receiving MMT packet |
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: 20100519 Termination date: 20171208 |
|
CF01 | Termination of patent right due to non-payment of annual fee |