CN102768834B - A kind of realization decoded method of audio frame - Google Patents
A kind of realization decoded method of audio frame Download PDFInfo
- Publication number
- CN102768834B CN102768834B CN201210075029.7A CN201210075029A CN102768834B CN 102768834 B CN102768834 B CN 102768834B CN 201210075029 A CN201210075029 A CN 201210075029A CN 102768834 B CN102768834 B CN 102768834B
- Authority
- CN
- China
- Prior art keywords
- audio
- frame
- initial position
- dependence
- numberical range
- 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
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a kind of realization decoded methods of audio frame, include the following steps:Obtain dynamic image expert's compression standard audio third level mp3 audio files;The audio index of the mp3 audio files is generated, and parses the mp3 audio files, obtains the numberical range of the accumulative initial position of each frame audio master data and the numerical value of each frame audio master data deviation post;It calculates the initial value of the numberical range of the accumulative initial position of each frame audio master data and the difference of the numerical value of corresponding master data deviation post is used as dependence reference point, according to the dependence reference point of each frame whether in the numberical range of the accumulative initial position of other frame audio master datas, dependence is judged whether there is;All frames for having dependence with each frame are sequentially decoded, obtain the audio sampling data of each frame.By using audio frame coding/decoding method provided by the invention, the efficiency and quality of making are greatly improved.
Description
Technical field
The present invention relates to audio decoder field more particularly to a kind of realization decoded methods of audio frame.
Background technology
Mp3 file is made of frame (frame), and frame is the composition unit of mp3 file minimum.The full name of MP3 should be
MPEG1Layer-3 audio files, it is special that MPEG (Moving Picture Experts Group) is translated into dynamic image in Chinese
Family's group, refers in particular to dynamic image expert's compression standard, mpeg audio file is the voice parts in MPEG1 standards, is also MPEG sounds
Frequency layer, it is divided into three layers, i.e. Layer-1, Layer2, Layer3, and right respectively according to compression quality and coding complexity
These three audio files of MP1, MP2, MP3 are answered, and according to different purposes, use the coding of different levels.Mpeg audio encodes
Level it is higher, encoder is more complicated, and compression ratio is also higher, and the compression ratio of MP1 and MP2 are respectively 4: 1 and 6: 1-8: 1, and MP3
Compression ratio be then up to 10: 1-12: 1, that is to say, that the music of one minute CD Quality, the uncompressed storage for needing 10MB are empty
Between, and there was only 1MB or so after MP3 compressed encodings.But MP3 to audio signal using lossy compression mode, in order to
Audio distortions degree is reduced, MP3 takes " sense organ coding techniques ", that is, first carries out spectrum analysis to audio file when encoding, then
Filter noise level with filter, then by way of quantization by it is remaining each break up arrangement, eventually form with compared with
The mp3 file of high compression ratio, and compressed file is enable to reach the sound effect of relatively former source of sound in playback.
It is flv the or mp4 files of mp3 coded formats for audio in the prior art, is all directly to be obtained according to time tag
Audio frame Audio Frame, but the data of current point in time can not correctly be decoded, to more directly from
The audio file that mp3 synchronous heads block, a few frame audios of file beginning are also correctly to decode.
Invention content
The embodiment of the present invention provides a kind of realization decoded method of audio frame, greatly improves the efficiency and matter of making
Amount.
What the technical solution of the embodiment of the present invention was realized in:
A kind of realization decoded method of audio frame, includes the following steps:
Obtain dynamic image expert's compression standard audio third level mp3 audio files;
The audio index of the mp3 audio files is generated, and parses the mp3 audio files, obtains each frame audio master
The numerical value of the numberical range of the accumulative initial position of data and each frame audio master data deviation post;
Calculate the initial value of the numberical range of the accumulative initial position of each frame audio master data and corresponding main number
It is used as according to the difference of the numerical value of deviation post and relies on reference point, according to the dependence reference point of each frame whether in other frames audio master
In the numberical range of the accumulative initial position of data, dependence is judged whether there is;
All frames for having dependence with each frame are sequentially decoded, obtain the audio sample of each frame
Data.
Technical solution according to embodiments of the present invention, embodiments of the present invention, by judging the dependence between each frame
Relationship, and pass through dependence and be decoded, so as to be correctly decoded to audio frame, greatly improve producing efficiency
And production quality.
Description of the drawings
For the clearer technical solution for illustrating the embodiment of the present invention, required use in being described below to embodiment
Attached drawing be briefly described, it is clear that, the accompanying drawings in the following description is only some embodiments of the present invention, for this
For the those of ordinary skill of field, without creative efforts, others are can also be obtained according to these attached drawings
Attached drawing.
A kind of flow chart for realizing the decoded method of audio frame that Fig. 1 is provided by the embodiment of the present invention one;
A kind of flow chart for realizing the decoded method of audio frame that Fig. 2 is provided by the embodiment of the present invention two.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Whole description, it is clear that described embodiment be only the present invention part of the embodiment, the embodiment being not all of, based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of not making the creative labor
Example, shall fall within the protection scope of the present invention.
Embodiment one
The flow chart of a kind of method for realizing audio transcoding that Fig. 1 is provided by the embodiment of the present invention.It as shown in Figure 1, should
Method includes the following steps:
Step 101 obtains dynamic image expert's compression standard audio third level mp3 audio files, and the mp3 includes:
Flv the or mp4 files of mp3 coded formats or the audio file blocked from mp3 synchronous heads.
The audio index of step 102, the generation mp3 audio files, and the mp3 audio files are parsed, it obtains each
The numerical value of the numberical range of the accumulative initial position of frame audio master data and each frame audio master data deviation post, adjacent two
In a frame, the end value of the numberical range of the accumulative initial position numerical value of former frame is equal to the accumulative initial position numerical value of a later frame
Numberical range initial value.
Step 103, calculate each frame audio master data accumulative initial position numberical range initial value with it is right
Whether the difference for the numerical value of master data deviation post answered is as reference point is relied on, according to the dependence reference point of each frame at other
In the numberical range of the accumulative initial position of frame audio master data, dependence is judged whether there is.Specifically:Ginseng is relied on when described
During according to value in the numberical range of the accumulative initial position of other frame audio master datas, then the two has dependence;When described
Rely on reference point not in the numberical range of the accumulative initial position of other frame audio master datas when, then not with other frames exist according to
The relationship of relying.
Step 104 is sequentially decoded all frames for having dependence with each frame, obtains each frame
Audio sampling data.
The embodiment of the present invention, which realizes, correctly decodes audio frame, greatly improves producing efficiency and makes matter
Amount.
Embodiment two
The flow chart of a kind of method for realizing audio transcoding that Fig. 2 is provided by the embodiment of the present invention.It as shown in Fig. 2, should
Method includes the following steps:
Step 201 obtains dynamic image expert's compression standard audio third level mp3 audio files, and the mp3 includes:
Flv the or mp4 files of mp3 coded formats or the audio file blocked from mp3 synchronous heads.
The audio index of step 202, the generation mp3 audio files, and the mp3 audio files are parsed, it obtains each
The numerical value of the numberical range of the accumulative initial position of frame audio master data and each frame audio master data deviation post, adjacent two
In a frame, the end value of the numberical range of the accumulative initial position numerical value of former frame is equal to the accumulative initial position numerical value of a later frame
Numberical range initial value.
Step 203, calculate each frame audio master data accumulative initial position numberical range initial value with it is right
Whether the difference for the numerical value of master data deviation post answered is as reference point is relied on, according to the dependence reference point of each frame at other
In the numberical range of the accumulative initial position of frame audio master data, dependence is judged whether there is.
Step 204, when it is described dependence reference point in the numberical range of the accumulative initial position of other frame audio master datas
When, then the two has dependence, and all frames for having dependence with each frame are sequentially decoded, and obtains described each
The audio sampling data of a frame.
Step 205, when it is described dependence reference point not in the numberical range of the accumulative initial position of other frame audio master datas
When interior, then not with other frames there are dependence, which can individually be decoded, and obtain the audio sampling data of the frame.
The embodiment of the present invention, which realizes, correctly decodes audio frame, greatly improves producing efficiency and makes matter
Amount.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on such understanding, this hair
Bright technical solution can be embodied in the form of software product, which can be stored in a non-volatile memories
Medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in, it is used including some instructions so that a computer equipment (can be
Personal computer, server or network equipment etc.) perform method described in each embodiment of the present invention.
In short, the foregoing is merely illustrative of the preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in the present invention's
Within protection domain.
Claims (4)
- A kind of 1. realization decoded method of audio frame, which is characterized in that include the following steps:Obtain dynamic image expert's compression standard audio third level mp3 audio files;The audio index of the mp3 audio files is generated, and parses the mp3 audio files, obtains each frame audio master data The numberical range of accumulative initial position and the numerical value of each frame audio master data deviation post;Initial value and the corresponding master data for calculating the numberical range of the accumulative initial position of each frame audio master data are inclined Whether the difference of the numerical value of pan position is as reference point is relied on, according to the dependence reference point of each frame in other frame audio master datas Accumulative initial position numberical range in, judge whether there is dependence;All frames for having dependence with each frame are sequentially decoded, obtain the audio sample number of each frame According to.
- 2. a kind of decoded method of audio frame as described in claim 1, which is characterized in that described to judge whether there is dependence packet It includes:When the dependence reference point is in the numberical range of the accumulative initial position of other frame audio master datas, then the two has Dependence;When it is described dependence reference point not in the numberical range of the accumulative initial position of other frame audio master datas when, then not with its There are dependences for his frame.
- 3. a kind of decoded method of audio frame as claimed in claim 2, which is characterized in that each frame audio master data is tired out The numberical range of meter initial position includes:In two adjacent frames, the end value of the numberical range of the accumulative initial position numerical value of former frame is equal to the accumulative of a later frame The initial value of the numberical range of initial position numerical value.
- 4. a kind of decoded method of audio frame as described in claim 1, which is characterized in that the MP3 audio files include:mp3 Flv the or mp4 files of coded format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210075029.7A CN102768834B (en) | 2012-03-21 | 2012-03-21 | A kind of realization decoded method of audio frame |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210075029.7A CN102768834B (en) | 2012-03-21 | 2012-03-21 | A kind of realization decoded method of audio frame |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102768834A CN102768834A (en) | 2012-11-07 |
CN102768834B true CN102768834B (en) | 2018-06-26 |
Family
ID=47096213
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210075029.7A Expired - Fee Related CN102768834B (en) | 2012-03-21 | 2012-03-21 | A kind of realization decoded method of audio frame |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102768834B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6588899B2 (en) | 2013-10-22 | 2019-10-09 | フラウンホッファー−ゲゼルシャフト ツァ フェルダールング デァ アンゲヴァンテン フォアシュンク エー.ファオ | Concept for combined dynamic range compression and induced clipping prevention for audio equipment |
CN104703027B (en) * | 2015-03-17 | 2018-03-27 | 华为技术有限公司 | The coding/decoding method and device of frame of video |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3397152B2 (en) * | 1998-12-15 | 2003-04-14 | 松下電器産業株式会社 | Multi-track disc reproducing apparatus and reproducing method thereof |
JP2001016585A (en) * | 1999-06-30 | 2001-01-19 | Kdd Corp | Video storage/reproduction method and device |
EP1148727A1 (en) * | 2000-04-05 | 2001-10-24 | THOMSON multimedia | Method and device for decoding a digital video stream in a digital video system using dummy header insertion |
JP2003337596A (en) * | 2002-05-20 | 2003-11-28 | Teac Corp | Method and device for processing audio data |
US7317867B2 (en) * | 2002-07-11 | 2008-01-08 | Mediatek Inc. | Input buffer management for the playback control for MP3 players |
US7363230B2 (en) * | 2002-08-01 | 2008-04-22 | Yamaha Corporation | Audio data processing apparatus and audio data distributing apparatus |
TWI236232B (en) * | 2004-07-28 | 2005-07-11 | Via Tech Inc | Method and apparatus for bit stream decoding in MP3 decoder |
DE10339498B4 (en) * | 2003-07-21 | 2006-04-13 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Audio file format conversion |
TW200741537A (en) * | 2006-04-26 | 2007-11-01 | Quanta Comp Inc | Method and apparatus for managing input data buffer of MP3 decoder |
CN100538853C (en) * | 2006-05-17 | 2009-09-09 | 广达电脑股份有限公司 | The method and the device of the Input Data Buffer of control MP3 decoding device |
CN101183874A (en) * | 2007-12-13 | 2008-05-21 | 上海广电(集团)有限公司中央研究院 | Robust audio decoding method |
CN102522088B (en) * | 2011-11-25 | 2013-10-23 | 展讯通信(上海)有限公司 | Decoding method and device of audio frequency |
-
2012
- 2012-03-21 CN CN201210075029.7A patent/CN102768834B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102768834A (en) | 2012-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7038747B2 (en) | Decoding audio bitstreams with improved spectral band replication metadata within at least one filling element | |
JP6538128B2 (en) | Efficient Coding of Audio Scenes Including Audio Objects | |
CN105474309B (en) | The device and method of high efficiency object metadata coding | |
EP3127109B1 (en) | Efficient coding of audio scenes comprising audio objects | |
JP2005157390A (en) | Method and apparatus for encoding/decoding mpeg-4 bsac audio bitstream having ancillary information | |
KR101548846B1 (en) | Devices for adaptively encoding and decoding a watermarked signal | |
AU2006272127A1 (en) | Concept for bridging the gap between parametric multi-channel audio coding and matrixed-surround multi-channel coding | |
CA2717584A1 (en) | Method and apparatus for processing an audio signal | |
RU2010140362A (en) | METHOD AND DEVICE FOR PROCESSING AN AUDIO SIGNAL | |
JP2009510514A5 (en) | ||
BRPI0514650B1 (en) | METHODS FOR CODING AND DECODING AUDIO SIGNALS, AUDIO SIGNAL ENCODER AND DECODER | |
CN103548080A (en) | Hybrid audio signal encoder, hybrid audio signal decoder, method for encoding audio signal, and method for decoding audio signal | |
MX2014004797A (en) | Lossless energy encoding method and apparatus, audio encoding method and apparatus, lossless energy decoding method and apparatus, and audio decoding method and apparatus. | |
TWI325234B (en) | Encoder, decoder, method for lossless encoding of information values describing an audio signal, method for decoding an encoded representation of information values describing an audio signal, computer program and storage medium | |
KR20160003058A (en) | Efficient coding of audio scenes comprising audio objects | |
US20080288263A1 (en) | Method and Apparatus for Encoding/Decoding | |
JP2019529979A (en) | Quantizer with index coding and bit scheduling | |
ES2248549T3 (en) | EDITION OF AUDIO SIGNALS. | |
CN109243471B (en) | Method for quickly coding digital audio for broadcasting | |
KR102390360B1 (en) | Backward-compatible integration of harmonic transposer for high frequency reconstruction of audio signals | |
CN102768834B (en) | A kind of realization decoded method of audio frame | |
US9111524B2 (en) | Seamless playback of successive multimedia files | |
US20130117031A1 (en) | Audio data encoding method and device | |
JP2004184975A (en) | Audio decoding method and apparatus for reconstructing high-frequency component with less computation | |
KR101387808B1 (en) | Apparatus for high quality multiple audio object coding and decoding using residual coding with variable bitrate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180626 |
|
CF01 | Termination of patent right due to non-payment of annual fee |