CN102768834A - Method for decoding audio frequency frames - Google Patents
Method for decoding audio frequency frames Download PDFInfo
- Publication number
- CN102768834A CN102768834A CN2012100750297A CN201210075029A CN102768834A CN 102768834 A CN102768834 A CN 102768834A CN 2012100750297 A CN2012100750297 A CN 2012100750297A CN 201210075029 A CN201210075029 A CN 201210075029A CN 102768834 A CN102768834 A CN 102768834A
- Authority
- CN
- China
- Prior art keywords
- frame
- audio
- dependence
- audio frequency
- master data
- 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.)
- Granted
Links
Images
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a method for decoding audio frequency frames, which comprises the following steps: obtaining an mp3 (Moving Picture Experts Group-1 Layer 3) audio file; generating an audio index of the mp3 audio file, analyzing the mp3 audio file, and obtaining the value range of accumulative initial positions of each frame of audio master data as well as values of offset positions of each frame of audio master data; calculating the difference value between a initial value of the value range of the accumulative initial positions of each frame of audio master data and a value of the offset position of corresponding master data, taking the difference value as a dependence reference value, judging that the dependence relation exists or not based on that whether the dependence reference value of each frame is within the value range of the accumulative initial positions of other frames of audio master data; sequentially decoding all frames having the dependence relation with each frame, and obtaining audio sample data of each frame. Through the audio frame decoding method provided by the invention, the producing efficiency and quality are significantly improved.
Description
Technical field
The present invention relates to the audio decoder field, relate in particular to a kind of method that realizes the audio frame decoding.
Background technology
Mp3 file is made up of frame (frame), and frame is the minimum composition unit of mp3 file.The full name of MP3 should be the MPEG1Layer-3 audio file; MPEG (Moving Picture Experts Group) is translated into dynamic image expert group in Chinese, refer in particular to dynamic image expert compression standard, and the mpeg audio file is the sound part in the MPEG1 standard; Also be the mpeg audio layer; It is divided into three layers according to compression quality and coding complexity, i.e. Layer-1, Layer2, Layer3, and corresponding MP1, MP2, these three kinds of audio files of MP3 respectively; And, use the coding of different levels according to different purposes.The level of mpeg audio coding is high more, and scrambler is more complicated, and compressibility is also high more; The compressibility of MP1 and MP2 was respectively 4: 1 and 6: 1-8: 1; The compressibility of MP3 is then up to 10: 1-12: 1, that is to say the music of one minute CD Quality; Uncompressed needs the storage space of 10MB, and through having only about 1MB behind the MP3 compressed encoding.What but MP3 adopted sound signal is the lossy compression method mode; In order to reduce the audio distortions degree, MP3 has taked " sense organ coding techniques ", earlier audio file is carried out spectrum analysis when promptly encoding; Filter noise level with filtrator then; Each that then will be left through the mode that quantizes is broken up arrangement, forms at last to have the mp3 file of higher compression ratios, and makes the file after the compression when playback, can reach the sound effect of comparison near former source of sound.
Be the flv or the mp4 file of mp3 coded format for audio frequency in the prior art; All be directly to obtain audio frame Audio Frame according to time tag; But can't carry out correct decoding to the data of current point in time; So to some audio files that directly blocks from the mp3 synchronous head, a few frame audio frequency of file beginning also be can't be correct decoding.
Summary of the invention
The embodiment of the invention provides a kind of method that realizes the audio frame decoding, has greatly improved the efficient and the quality of making.
The technical scheme of the embodiment of the invention is achieved in that
A kind of method that realizes the audio frame decoding may further comprise the steps:
Obtain dynamic image expert compression standard audio frequency the 3rd aspect mp3 audio file;
Generate the audio index of said mp3 audio file, and resolve said mp3 audio file, obtain numerical range and the numerical value of each frame audio frequency master data deviation post of the accumulative total reference position of each frame audio frequency master data;
The difference of starting value and the numerical value of corresponding master data deviation post of numerical range of accumulative total reference position of calculating said each frame audio frequency master data is as relying on reference point; Whether in the numerical range of the accumulative total reference position of other frame audio frequency master datas, judged whether dependence according to the dependence reference point of each frame;
To there be all frames of dependence to decode in order with each frame, obtain the audio sampling data of said each frame.
According to the technical scheme of the embodiment of the invention, embodiment of the present invention through judging the dependence between each frame, and is decoded through dependence, thereby can correctly be decoded to audio frame, has improved make efficiency and fabricating quality greatly.
Description of drawings
Technical scheme for the clearer explanation embodiment of the invention; The accompanying drawing of required use is done simple the introduction in will describing embodiment below; Conspicuous, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
A kind of process flow diagram of realizing the method for audio frame decoding that Fig. 1 is provided for the embodiment of the invention one;
A kind of process flow diagram of realizing the method for audio frame decoding that Fig. 2 is provided for the embodiment of the invention two.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, complete description; Obvious described embodiment only is a part of embodiment of the present invention, is not whole embodiment, based on the embodiment among the present invention; Those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one
Fig. 1 is a kind of process flow diagram of realizing the method for audio frequency transcoding that the embodiment of the invention provided.As shown in Figure 1, this method may further comprise the steps:
The audio index of step 102, the said mp3 audio file of generation; And resolve said mp3 audio file; Obtain numerical range and the numerical value of each frame audio frequency master data deviation post of the accumulative total reference position of each frame audio frequency master data; In two adjacent frames, the starting value of the numerical range of the accumulative total reference position numerical value of a frame after the end value of the numerical range of the accumulative total reference position numerical value of former frame equals.
The embodiment of the invention has realized audio frame is carried out correct decoding, has improved make efficiency and fabricating quality greatly.
Embodiment two
Fig. 2 is a kind of process flow diagram of realizing the method for audio frequency transcoding that the embodiment of the invention provided.As shown in Figure 2, this method may further comprise the steps:
The audio index of step 202, the said mp3 audio file of generation; And resolve said mp3 audio file; Obtain numerical range and the numerical value of each frame audio frequency master data deviation post of the accumulative total reference position of each frame audio frequency master data; In two adjacent frames, the starting value of the numerical range of the accumulative total reference position numerical value of a frame after the end value of the numerical range of the accumulative total reference position numerical value of former frame equals.
The embodiment of the invention has realized audio frame is carried out correct decoding, has improved make efficiency and fabricating quality greatly.
Through the description of above embodiment, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
In a word, the above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1. a method that realizes the audio frame decoding is characterized in that, may further comprise the steps:
Obtain dynamic image expert compression standard audio frequency the 3rd aspect mp3 audio file;
Generate the audio index of said mp3 audio file, and resolve said mp3 audio file, obtain numerical range and the numerical value of each frame audio frequency master data deviation post of the accumulative total reference position of each frame audio frequency master data;
The difference of starting value and the numerical value of corresponding master data deviation post of numerical range of accumulative total reference position of calculating said each frame audio frequency master data is as relying on reference point; Whether in the numerical range of the accumulative total reference position of other frame audio frequency master datas, judged whether dependence according to the dependence reference point of each frame;
To there be all frames of dependence to decode in order with each frame, obtain the audio sampling data of said each frame.
2. a kind of according to claim 1 method of audio frame decoding is characterized in that the said dependence that judged whether comprises:
When said dependence reference point was in the numerical range of the accumulative total reference position of other frame audio frequency master datas, then both had dependence;
When said dependence reference point is not in the numerical range in the accumulative total reference position of other frame audio frequency master datas, then there is not dependence with other frames.
3. like the method for the said a kind of audio frame decoding of claim 2, it is characterized in that the numerical range of the accumulative total reference position of said each frame audio frequency master data comprises:
In two adjacent frames, the starting value of the numerical range of the accumulative total reference position numerical value of a frame after the end value of the numerical range of the accumulative total reference position numerical value of former frame equals.
4. a kind of according to claim 1 method of audio frame decoding is characterized in that said MP3 audio file comprises: the flv of mp3 coded format or mp4 file.
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 true CN102768834A (en) | 2012-11-07 |
CN102768834B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703027A (en) * | 2015-03-17 | 2015-06-10 | 华为技术有限公司 | Decoding method and decoding device for video frame |
CN111580772A (en) * | 2013-10-22 | 2020-08-25 | 弗劳恩霍夫应用研究促进协会 | Concept for combined dynamic range compression and guided truncation prevention for audio devices |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000182332A (en) * | 1998-12-15 | 2000-06-30 | Matsushita Electric Ind Co Ltd | Reproducing device of multi-track disk 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 |
EP1365410A1 (en) * | 2002-05-20 | 2003-11-26 | Teac Corporation | Compressed audio data editing method and apparatus |
CN1467726A (en) * | 2002-07-11 | 2004-01-14 | ӡ�����Ƽ��ɷ�����˾ | Input buffer management for the playback control for media players |
US20040024592A1 (en) * | 2002-08-01 | 2004-02-05 | Yamaha Corporation | Audio data processing apparatus and audio data distributing apparatus |
CN1826635A (en) * | 2003-07-21 | 2006-08-30 | 弗兰霍菲尔运输应用研究公司 | Audio file format conversion |
US20070255888A1 (en) * | 2006-04-26 | 2007-11-01 | Quanta Computer Inc. | Method and apparatus for managing input data buffer of MP3 decoder |
CN101075458A (en) * | 2006-05-17 | 2007-11-21 | 广达电脑股份有限公司 | Method and device for controlling MP3 decode and inputting data to buffer |
CN101183874A (en) * | 2007-12-13 | 2008-05-21 | 上海广电(集团)有限公司中央研究院 | Robust audio decoding method |
US20100145714A1 (en) * | 2004-07-28 | 2010-06-10 | Via Technologies, Inc. | Methods and apparatuses for bit stream decoding in mp3 decoder |
CN102522088A (en) * | 2011-11-25 | 2012-06-27 | 展讯通信(上海)有限公司 | Decoding method and device of audio frequency |
-
2012
- 2012-03-21 CN CN201210075029.7A patent/CN102768834B/en not_active Expired - Fee Related
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000182332A (en) * | 1998-12-15 | 2000-06-30 | Matsushita Electric Ind Co Ltd | Reproducing device of multi-track disk 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 |
US7215611B2 (en) * | 2002-05-20 | 2007-05-08 | Teac Corporation | Compressed audio data editing method and apparatus |
EP1365410A1 (en) * | 2002-05-20 | 2003-11-26 | Teac Corporation | Compressed audio data editing method and apparatus |
CN1467726A (en) * | 2002-07-11 | 2004-01-14 | ӡ�����Ƽ��ɷ�����˾ | Input buffer management for the playback control for media players |
CN1279530C (en) * | 2002-07-11 | 2006-10-11 | 联发科技股份有限公司 | Input buffer management for the playback control for media players |
US20040024592A1 (en) * | 2002-08-01 | 2004-02-05 | Yamaha Corporation | Audio data processing apparatus and audio data distributing apparatus |
CN1826635A (en) * | 2003-07-21 | 2006-08-30 | 弗兰霍菲尔运输应用研究公司 | Audio file format conversion |
US20100145714A1 (en) * | 2004-07-28 | 2010-06-10 | Via Technologies, Inc. | Methods and apparatuses for bit stream decoding in mp3 decoder |
US20070255888A1 (en) * | 2006-04-26 | 2007-11-01 | Quanta Computer Inc. | Method and apparatus for managing input data buffer of MP3 decoder |
CN101075458A (en) * | 2006-05-17 | 2007-11-21 | 广达电脑股份有限公司 | Method and device for controlling MP3 decode and inputting data to buffer |
CN101183874A (en) * | 2007-12-13 | 2008-05-21 | 上海广电(集团)有限公司中央研究院 | Robust audio decoding method |
CN102522088A (en) * | 2011-11-25 | 2012-06-27 | 展讯通信(上海)有限公司 | Decoding method and device of audio frequency |
Non-Patent Citations (2)
Title |
---|
蒋学鑫: ""MP3实时编解码系统的研究研发"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
谷洁平 等: ""频谱中包含语音分类的信息量"", 《第九届中国语音学学术会议》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111580772A (en) * | 2013-10-22 | 2020-08-25 | 弗劳恩霍夫应用研究促进协会 | Concept for combined dynamic range compression and guided truncation prevention for audio devices |
CN111580772B (en) * | 2013-10-22 | 2023-09-26 | 弗劳恩霍夫应用研究促进协会 | Concept for combined dynamic range compression and guided truncation prevention for audio devices |
US12051432B2 (en) | 2013-10-22 | 2024-07-30 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Concept for combined dynamic range compression and guided clipping prevention for audio devices |
CN104703027A (en) * | 2015-03-17 | 2015-06-10 | 华为技术有限公司 | Decoding method and decoding device for video frame |
CN104703027B (en) * | 2015-03-17 | 2018-03-27 | 华为技术有限公司 | The coding/decoding method and device of frame of video |
US10708581B2 (en) | 2015-03-17 | 2020-07-07 | Huawei Technologies Co., Ltd. | Video frame decoding method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN102768834B (en) | 2018-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6538128B2 (en) | Efficient Coding of Audio Scenes Including Audio Objects | |
TWI603322B (en) | Method of decoding a bitstream including a transport channel, audio decoding device, non-transitory computer-readable storage medium, method of encoding higher-order ambient coefficients to obtain a bitstream including a transport channel and audio encod | |
KR101854964B1 (en) | Transforming spherical harmonic coefficients | |
JP5162588B2 (en) | Speech coding system | |
CN106463121A (en) | Higher order ambisonics signal compression | |
JP2006031012A (en) | Multichannel audio data encoding method, multichannel audio data decoding method, multichannel audio data encoding apparatus, multichannel audio data decoding apparatus, medium with recorded program for encoding multichannel audio data, and recording medium with recorded program for decoding multichannel audio data | |
TWI615834B (en) | Encoding device and method, decoding device and method, and program | |
KR20100095585A (en) | A method and an apparatus for processing a signal | |
CA2717584A1 (en) | Method and apparatus for processing an audio signal | |
JP2009510514A5 (en) | ||
CN1249669C (en) | Method and apparatus for using time frequency related coding and/or decoding digital audio frequency | |
JP2005157390A (en) | Method and apparatus for encoding/decoding mpeg-4 bsac audio bitstream having ancillary information | |
US20110038423A1 (en) | Method and apparatus for encoding/decoding multi-channel audio signal by using semantic information | |
US20080288263A1 (en) | Method and Apparatus for Encoding/Decoding | |
CN104036788B (en) | The acoustic fidelity identification method of audio file and device | |
KR20190040063A (en) | Quantizer with index coding and bit scheduling | |
JP2004199075A (en) | Stereo audio encoding/decoding method and device capable of bit rate adjustment | |
US9111524B2 (en) | Seamless playback of successive multimedia files | |
JP2004184975A (en) | Audio decoding method and apparatus for reconstructing high-frequency component with less computation | |
US20130117031A1 (en) | Audio data encoding method and device | |
CN102768834A (en) | Method for decoding audio frequency frames | |
US20220335961A1 (en) | Audio signal encoding method and apparatus, and audio signal decoding method and apparatus | |
CN102768844B (en) | A kind of method of audio code stream splicing | |
CN102769715A (en) | Method and system for cutting code stream | |
KR20080010980A (en) | Method and apparatus for encoding/decoding |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180626 |