CN101968962B - FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method - Google Patents

FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method Download PDF

Info

Publication number
CN101968962B
CN101968962B CN2010102877414A CN201010287741A CN101968962B CN 101968962 B CN101968962 B CN 101968962B CN 2010102877414 A CN2010102877414 A CN 2010102877414A CN 201010287741 A CN201010287741 A CN 201010287741A CN 101968962 B CN101968962 B CN 101968962B
Authority
CN
China
Prior art keywords
data
coding
hamming
aac
error correction
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
CN2010102877414A
Other languages
Chinese (zh)
Other versions
CN101968962A (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN2010102877414A priority Critical patent/CN101968962B/en
Publication of CN101968962A publication Critical patent/CN101968962A/en
Application granted granted Critical
Publication of CN101968962B publication Critical patent/CN101968962B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a free advanced audio coder(FAAC) and AAC audio decoder (FAAD2)-based single track constant bit rate audio realtime coding and decoding error correcting method, which mainly comprises that: a coder performs Hamming coding of fixed and variable frame headers, the Hamming coding of ID-SCE, SCETAG, a global scale factor and ID-END in a group, and Hamming coding of side information, packs a data area according to the size of a padding data area, performs Hamming coding of each data packet, separates check bit data from Hamming codes and stores the check bit data in the padding data area in turn; and a decoder acquires check bit data from the packing data area and performs the Hamming code error checking and correcting of corresponding data bits. On the premise of ensuring the structural integrity of an advanced audio coding (AAC) frame, the method has the capability of correcting errors of AAC data frames.

Description

A kind of audio frequency real time codec error correction method of the monophony fixed bit rate based on FAAC and FAAD2
Technical field
The present invention relates to a kind of audio frequency real time codec error correction method of the monophony fixed bit rate based on FAAC and FAAD2, its error correction method has error correcting capability to the AAC Frame, belongs to the communications field.
Background technology
Advanced audio (Advanced Audio Coding; Be called for short AAC) be the sensing audio compression coding and decoding technology of new generation that on the MP3 basis, grows up; This technological synthesis the advantage of multiple main flow audio encoding and decoding technique; Have signal compression than high, reconstruction tonequality is good, characteristics such as encoding-decoding process high modularization and sound channel flexible configuration.
In the real time codec system; The AAC Frame is in transmission course; Cannot occur error code with avoiding, adopt CRC to carry out error detection, if error code takes place; The AAC scrambler must retransmit the continuity that the error code Frame could guarantee the decoding output audio, but adopts the method can cause transmitting controlling mechanism complicacy, system resource increase, poor robustness.In fact; Under the prerequisite that guarantees the hardware platform reliability, data bit error rate in transmission link is very low, therefore can take in the AAC code stream, to add error checking and correction information; Guarantee to carry out error correction behind the data error code; Obtain the proper data frame, make the decoding output audio not interrupt, and the transmission controlling mechanism unaffected, do not increase system resource, robustness is high.
Summary of the invention
In order to guarantee the AAC correctness of data frame, the invention provides a kind of audio frequency real time codec error correction method of the monophony fixed bit rate based on FAAC and FAAD2.This error correction method mainly comprises: scrambler carries out the hamming coding respectively to fixing and variable frame head; ID_SCE, SCETAG, the global proportionality factor and ID_END are classified as one group carry out the hamming coding; Side information hamming coding; Divide into groups according to the size in padding data district in the data field, every group of data are carried out the hamming coding; From each Hamming code, isolate the check bit data, deposit the padding data district successively in; Demoder obtains the check bit data from the padding data district, and corresponding data bit is carried out Hamming code debugging and error correction.The present invention has error correcting capability to the AAC Frame under the prerequisite that guarantees AAC frame structure integrality.Concrete steps are following:
The step 1 scrambler carries out the hamming coding respectively to fixing and variable frame head;
The step 2 scrambler is classified as one group with ID_SCE, SCETAG, the global proportionality factor and ID_END and carries out the hamming coding;
The step 3 scrambler carries out the hamming coding to side information;
The step 4 scrambler divides into groups the data field according to the size in padding data district, every group of data are carried out the hamming coding;
The step 5 scrambler is isolated the check bit data from each Hamming code, deposit the padding data district successively in;
The step 6 demoder obtains the check bit data from the padding data district, and corresponding data bit is carried out Hamming code debugging and error correction.
Wherein, In the described step 1: the AAC scrambler is accomplished a frame pulse coded modulation (Pulse Code Modulation; Abbreviation PCM) after the digital coding, more fixing and variable frame head are carried out the hamming coding respectively, the AAC data frame format is the audio data transport stream form in the present invention.
Wherein, In the described step 4: fixed bit rate of the present invention is 128kbps; The AAC scrambler is fixing to the required bit number of dissimilar coding audio signals, and the size in padding data district is also fixing, therefore need rationally divide into groups to the data field after encoding according to the size in padding data district; Use the hamming coding afterwards; Deposit the verification bit data in the padding data district, guarantee the integrality of AAC frame structure, on the AAC decorder platform that does not have corresponding Hamming code debugging and error correction, also can carry out normal decoder.
Wherein, in the described step 5: after the check bit data deposit the padding data district successively in and refer to that one group of data are accomplished the hamming coding, isolate the check bit data and deposit the padding data district in, cover the padding data of corresponding bits number, then handle one group of data.
Wherein, In the described step 6: after the AAC demoder receives the AAC Frame; At first carry out normal decoder, make mistakes, then carry out Hamming code debugging and error correction from the padding data district taking-up check bit data of error data frame like decoding; Then the Frame after the error correction is decoded again, the travelling speed that therefore requires the AAC demoder is 2 times of real-time decoding at least.
Principle of the present invention: add Hamming code error checking and correction information in the padding data district of AAC Frame, under the prerequisite that guarantees AAC frame structure integrality, the AAC Frame is had error correcting capability.
The present invention's advantage compared with prior art is:
1, do not destroy the frame structure of AAC;
2, the transmission controlling mechanism is unaffected, not increase system resource, robustness high.
Description of drawings
Fig. 1 is the error correction method overall schematic that the present invention proposes;
Fig. 2 is a coding process flow diagram of the present invention;
Fig. 3 is a padding data frame structure 1 of the present invention;
Fig. 4 is a padding data frame structure 2 of the present invention;
Fig. 5 is a padding data frame structure 3 of the present invention;
Fig. 6 is decoding process figure of the present invention.
Embodiment
Below in conjunction with accompanying drawing, technical scheme of the present invention is further specified.
The invention provides a kind of audio frequency real time codec error correction method of the monophony fixed bit rate based on FAAC and FAAD2.Referring to accompanying drawing 1; This error correction method mainly comprises: scrambler carries out hamming coding (110) respectively to fixing (101) and variable (102) frame head; ID_SCE (103), SCETAG (104), the global proportionality factor (105) and ID_END (109) are classified as one group carry out the hamming coding; Side information (106) hamming coding, divide into groups according to the size of padding data district (108) data field (107), and every group of data are carried out the hamming coding; From each Hamming code, isolate the check bit data, deposit padding data district (108) successively in; Demoder obtains the check bit data from the padding data district, and corresponding data bit is carried out Hamming code debugging and error correction (111).The present invention has error correcting capability to the AAC Frame under the prerequisite that guarantees AAC frame structure integrality.
The treatment scheme of coded program is referring to accompanying drawing 2, and the AAC scrambler is at first accomplished normal coding (201); Judge that then whether padding data is more than or equal to 15 (202); If less than 15, then can't carry out hamming coding (203) to these frame data; Otherwise, continue to judge that whether padding data is more than or equal to 25 (204); If less than 25, then adopt padding data frame structure 1 to carry out hamming coding (205) to these frame data; Otherwise, continue to judge that whether padding data is more than or equal to 39 (206); If less than 39, then adopt padding data frame structure 2 to carry out hamming coding (207) to these frame data; Otherwise, adopt padding data frame structure 3 to carry out hamming coding (208) to these frame data.
Padding data adopts padding data frame structure 1 to carry out the hamming coding more than or equal to 15 and less than 25 o'clock, referring to accompanying drawing 3,3bit check mark (301)=100 is set at first; Then, to 28bit fixedly frame head use the 6bit check bit to carry out the hamming coding, deposit the 6bit check bit in check information 1 (302) afterwards; Then, use the 6bit check bit to carry out the hamming coding, deposit the 6bit check bit in check information 2 (303) at last the variable frame head of 28bit.
Padding data adopts padding data frame structure 2 to carry out the hamming coding more than or equal to 25 and less than 39 o'clock, referring to accompanying drawing 4,3bit check mark (401)=110 is set at first; Then, to 28bit fixedly frame head use the 6bit check bit to carry out the hamming coding, deposit the 6bit check bit in check information 1 (402) afterwards; Secondly, use the 6bit check bit to carry out the hamming coding to the variable frame head of 28bit; Deposit the 6bit check bit in check information 2 (403) afterwards; Then, ID_SCE, SCETAG, the global proportionality factor and ID_END are classified as one group, use the 5bit check bit to carry out the hamming coding; Deposit the 5bit check bit in check information 3 (404) afterwards; At last, use the 5bit check bit to carry out the hamming coding, deposit the 5bit check bit in check information 4 (405) after the completion side information.
Padding data adopted padding data frame structure 3 to carry out the hamming coding more than or equal to 39 o'clock, referring to accompanying drawing 4,3bit check mark (501)=111 was set at first; 6bit verification group number is set, and the computing method hereinafter of verification group number is introduced; The 2bit grouping information is set, and the computing method hereinafter of grouping information is introduced; Then, to 28bit fixedly frame head use the 6bit check bit to carry out the hamming coding, deposit the 6bit check bit in check information 1 (504) afterwards; Secondly, use the 6bit check bit to carry out the hamming coding to the variable frame head of 28bit; Deposit the 6bit check bit in check information 2 (505) afterwards; Then, ID_SCE, SCETAG, the global proportionality factor and ID_END are classified as one group, use the 5bit check bit to carry out the hamming coding; Deposit the 5bit check bit in check information 3 (506) afterwards; Next step uses the 5bit check bit to carry out the hamming coding to side information, deposits the 5bit check bit in check information 4 (507) afterwards; At last, the hamming coding is divided into groups to carry out in the data field, deposits check bit in residual buffer district (508) after the completion.
The computing method of grouping information and verification group number are following: the bit number=padding data number-3bit check information-6bit verification group number-2bit grouping information-6bit check information 1-6bit check information 2-5bit check information 3-5bit check information 4 that a) can be used for data field hamming coding; B) 2bit grouping information, the expression data field is divided into groups totally 4 types, and 00 representative is 57bit for every group; Need 6 bit check bit, 01 representative is 120bit for every group, needs 7 bit check bit; 10 representatives are 247bit for every group, need 8 bit check bit, and 11 representatives are 502bit for every group; Need 9 bit check bit, and last group data bit number is not enough after dividing into groups, then zero padding; C) according to the bit number that can be used for data field hamming coding divided into groups in the data field, group forming criterion is at first to divide into groups at most; Secondly maximum to the data verification.For example, can be used for bit number=16 of data field hamming coding, then 00,01 and 10 type packet; Packet count all is 2, but 10 type packet can be carried out verification to 2*247bit; So 2bit grouping information=10; The data field has 2 groups of data need carry out the hamming coding, and current data frame has 6 groups of data need carry out the hamming coding, so 6bit verification group number=000110.
The AAC scrambler is sent to transmission link with data after accomplishing coding, obtains the AAC Frame in the AAC demoder in the transmission link and decodes, and treatment scheme is referring to accompanying drawing 6.After the AAC demoder obtains the AAC Frame, at first decode (601); Then judge whether correct decoding (602); If correct the decoding then end, otherwise utilize the check information in the padding data district to carry out debugging and error correction (603); Decode once more (604).
The english abbreviation that occurs in the Figure of description, its implication is following:
CRC: CRC;
ID_SCE: monophony identification identifier;
SCETAG: monophony label;
ID_END: end identifier.

Claims (5)

1. audio frequency real time codec error correction method based on the monophony fixed bit rate of FAAC and FAAD2, it is characterized in that: this method specifically may further comprise the steps:
(1) scrambler carries out the hamming coding respectively to fixing and variable frame head;
(2) scrambler is classified as one group with monophony identification identifier (ID_SCE), monophony label (SCETAG), the global proportionality factor and end identifier (ID_END) and carries out hamming coding;
(3) scrambler carries out the hamming coding to side information;
(4) scrambler divides into groups the data field according to the size in padding data district, and every group of data are carried out the hamming coding;
(5) scrambler is isolated the check bit data from each Hamming code, deposits the padding data district successively in;
(6) demoder obtains the check bit data from the padding data district, and corresponding data bit is carried out Hamming code debugging and error correction.
2. the audio frequency real time codec error correction method of a kind of monophony fixed bit rate based on FAAC and FAAD2 according to claim 1; It is characterized in that: in the described step (1): the AAC scrambler is accomplished after the frame PCM digital coding; Again fixing and variable frame head are carried out the hamming coding respectively, the AAC data frame format is the audio data transport stream form in the present invention.
3. the audio frequency real time codec error correction method of a kind of monophony fixed bit rate based on FAAC and FAAD2 according to claim 1; It is characterized in that: in the described step (4): fixed bit rate of the present invention is 128kbps; The AAC scrambler is unfixing to the required bit number of dissimilar coding audio signals; The size in padding data district is unfixing yet; Therefore need rationally divide into groups to the data field after encoding according to the size in padding data district, use the hamming coding afterwards, deposit the verification bit data in the padding data district; Guarantee the integrality of AAC frame structure, on the AAC decorder platform that does not have corresponding Hamming code debugging and error correction, also can carry out normal decoder.
4. the audio frequency real time codec error correction method of a kind of monophony fixed bit rate based on FAAC and FAAD2 according to claim 1; It is characterized in that: in the described step (5): after the check bit data deposit the padding data district successively in and refer to that one group of data are accomplished the hamming coding; Isolate the check bit data and deposit the padding data district in; Cover the padding data of corresponding bits number, then handle one group of data.
5. the audio frequency real time codec error correction method of a kind of monophony fixed bit rate based on FAAC and FAAD2 according to claim 1; It is characterized in that: in the described step (6): after the AAC demoder receives the AAC Frame; At first carry out normal decoder; Make mistakes like decoding; Then carry out Hamming code debugging and error correction from the padding data district taking-up check bit data of error data frame, then the Frame after the error correction is decoded again, the travelling speed that therefore requires the AAC demoder is 2 times of real-time decoding at least.
CN2010102877414A 2010-09-19 2010-09-19 FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method Expired - Fee Related CN101968962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102877414A CN101968962B (en) 2010-09-19 2010-09-19 FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102877414A CN101968962B (en) 2010-09-19 2010-09-19 FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method

Publications (2)

Publication Number Publication Date
CN101968962A CN101968962A (en) 2011-02-09
CN101968962B true CN101968962B (en) 2012-03-21

Family

ID=43548106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102877414A Expired - Fee Related CN101968962B (en) 2010-09-19 2010-09-19 FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method

Country Status (1)

Country Link
CN (1) CN101968962B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117616A (en) * 2011-03-04 2011-07-06 北京航空航天大学 Real-time coding and decoding error correction method for unformatted code stream of advanced multi-band excitation (AMBE)-2000 vocoder

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2830822B2 (en) * 1996-02-09 1998-12-02 日本電気株式会社 Error correction method in high-speed communication
US6052812A (en) * 1998-01-07 2000-04-18 Pocketscience, Inc. Messaging communication protocol
US6430722B1 (en) * 1998-01-23 2002-08-06 Hughes Electronics Corporation Forward error correction scheme for data channels using universal turbo codes
WO2006047339A2 (en) * 2004-10-22 2006-05-04 Marvell World Trade Ltd. Encoding and error correction system for enhanced performance of legacy communications networks
CN101159510B (en) * 2007-11-16 2011-09-28 海能达通信股份有限公司 Method for improving dependability of information bit transmission
CN101656593B (en) * 2009-09-15 2013-05-22 中国人民解放军国防科学技术大学 Forward error correction coding method, forward error correction decoding method and device thereof

Also Published As

Publication number Publication date
CN101968962A (en) 2011-02-09

Similar Documents

Publication Publication Date Title
US7936785B2 (en) Apparatus for generating and interpreting a data stream modified in accordance with the importance of the data
US7809018B2 (en) Apparatus for generating and interpreting a data stream with segments having specified entry points
CN101312387B (en) Data transmission apparatus, data transmission device, data reception device and data transmission system
US8103942B2 (en) Data transmission apparatus, data transmission device, data reception device and data transmission system
US8555146B2 (en) FEC streaming with aggregation of concurrent streams for FEC computation
US8161347B1 (en) Interleaving parity bits into user bits to guarantee run-length constraint
CN101702639B (en) Check value calculation method and device of cyclic redundancy check
CN108777606B (en) Decoding method, apparatus and readable storage medium
US20100262887A1 (en) High Integrity Data Network System and Method
AU2014227460B2 (en) Maximal transition hamming codes
US8638515B2 (en) Writing data to a storage medium
CN102685469A (en) Audio-video transmission code stream framing method based on moving picture experts group-2 (MPEG-2) advanced audio coding (AAC) and H.264
CN101779379B (en) Encoding and decoding using generalized concatenated codes (GCC)
EP3972135A1 (en) Apparatus and method for sending/receiving packet in multimedia communication system
CN110782906B (en) Audio data recovery method and device and Bluetooth equipment
CN104639294A (en) Improved CRC (Cyclic Redundancy Check) realization method
CN101968962B (en) FAAC and FAAD2-based single track constant bit rate audio realtime coding and decoding error correcting method
US20150169397A1 (en) Extension of product codes with applications to tape and parallel channels
CN101848055A (en) Method and device for correcting data
JP2005523638A (en) A diversity scheme for error control coding in systems with prioritized data.
CN111835494B (en) Multi-channel network data transmission system and method
KR102109589B1 (en) Overhead minimized coding technique and hardware implementation method including transmission/reception error correction technique for high-speed serial interface
TWI379203B (en) Usb cryptographic device and method for error correction
JP2000244460A (en) Transmission line error code addition and detecting device
JPH04114517A (en) Data transmission method

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120321

Termination date: 20120919