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
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000006835 compression Effects 0.000 claims abstract description 12
- 238000007906 compression Methods 0.000 claims abstract description 12
- 241001269238 Data Species 0.000 claims abstract description 8
- 206010016256 fatigue Diseases 0.000 claims 1
- 238000005070 sampling Methods 0.000 abstract description 4
- 230000001360 synchronised effect Effects 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 1
- 101000969688 Homo sapiens Macrophage-expressed gene 1 protein Proteins 0.000 description 1
- 102100021285 Macrophage-expressed gene 1 protein Human genes 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000013139 quantization Methods 0.000 description 1
- 210000000697 sensory organ Anatomy 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010183 spectrum analysis Methods 0.000 description 1
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 (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA3262112A1 (en) * | 2013-10-22 | 2025-02-28 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Concept for combined dynamic range compression and guided clipping prevention for audio devices |
| CN104703027B (en) * | 2015-03-17 | 2018-03-27 | 华为技术有限公司 | The coding/decoding method and device of frame of video |
| CN114299972B (en) * | 2021-12-30 | 2025-06-17 | 北京字跳网络技术有限公司 | Audio processing method, device, equipment and storage medium |
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 / playback method and apparatus |
| 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 | Audio data processing method and apparatus |
| 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 | 广达电脑股份有限公司 | Method and apparatus for controlling input data buffer of MP3 decoder |
| 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 | |
| CN101836250B (en) | A method and an apparatus for processing a signal | |
| EP3127109B1 (en) | Efficient coding of audio scenes comprising audio objects | |
| CN105229732B (en) | The high efficient coding of audio scene including audio object | |
| 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 | |
| TWI878331B (en) | Method of generating a bitstream, method of decoding a bitstream, system for processing an audio signal, and non-transitory computer-readable medium | |
| KR20130126700A (en) | Devices for adaptively encoding and decoding a watermarked signal | |
| CN105706165A (en) | Noise padding for multi-channel audio encoding | |
| JP2018072846A (en) | Bandwidth expansion of harmonic audio signals | |
| CN1237507C (en) | Editing of audio signals | |
| CN1240048C (en) | Audio coding | |
| CN109243471B (en) | Method for quickly coding digital audio for broadcasting | |
| CN102768834B (en) | A kind of realization decoded method of audio frame | |
| US9111524B2 (en) | Seamless playback of successive multimedia files | |
| CN1867969B (en) | Method and apparatus for encoding or decoding audio signal | |
| CN101641733A (en) | Method and apparatus for encoding audio signal, and method and apparatus for decoding audio signal | |
| CN101292428B (en) | Method and apparatus for encoding/decoding | |
| US20130117031A1 (en) | Audio data encoding method and device | |
| KR101786863B1 (en) | Frequency band table design for high frequency reconstruction algorithms | |
| CN102768844B (en) | A kind of method of audio code stream splicing | |
| Hidayat | Reformat the file uncompressed into lossy based on audio compression method using Huffman shift coding scheme | |
| CN115312069B (en) | Audio encoding and decoding method, device, computer readable medium and electronic device | |
| US12057130B2 (en) | Audio signal encoding method and apparatus, and audio signal decoding method and apparatus |
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 |