Cell phone Recording recovery and AMR structure analysis

Source: Internet
Author: User

At present, mobile phone data recovery has become mainstream because of the existence of the deletion of the problem caused by the removal of the phone completely turned into a spell luck, look at the character. Phone recovery often hit the phone need to restore the recording and the demand is large, has not been studied AMR, often peer feedback so recently did some testing and research.

Because the mobile phone recording format is more, 3GP. Amr. OGG. Wma. WAV and other formats, currently only for AMR Research and successfully developed the AMR fragment extraction tool.

First look at AMR's audio structure and coding:

1.AMR codec type

AMR is generally referred to as AMR-NB, which is 8kHz sampling, there are 8 kinds of bit rate codec algorithm. In addition there are AMR-WB, that is, 16kHz sampling, 9 bit rate encoding algorithm. Due to the high sampling rate of the AMR-WB, the complexity is about twice times the size of AMR. Amr and AMR-WB belong to speech codec, the encoding effect of audio is not good, in order to improve the audio encoding effect, appeared amr-wb+. Amr-wb+ can support a higher sampling rate, the speech and audio using different encoding algorithm, the speech using ACELP encoding, audio using transform encoding. The amr-wb+ encoding of audio at low bit rate is comparable to that of he aac+. amr-wb+ contains AMR-WB, but is more complex.

2.amr-nb

The AMR codec is a multi-mode codec it supports 8 narrow band speech encoding modes with bit rates between 4.75 and 12.2 Kbps. The sampling frequency used in AMR are 8000 Hz and the speech encoding are performed on Ms speech frames. Therefore, each encoded AMR speech frame represents samples of the original of speech.

AMR-NB supports 8 bit rates, namely 4.75, 5.15, 5.9, 6.7, 7.4, 7.95, 10.2, 12.2kbps.

The sampling rate of the AMR-NB is 8000Hz, which is 8,000 samples per second, which means sampling 8,000 samples. The interval for each frame is 20ms, so 50 frames of data are sampled in 1 seconds. So each frame of data contains 8000/50 = 160 samples.

3.amr-wb

Similar to AMR, the AMR-WB codec is also a multi-mode speech codec. AMR-WB supports 9 wide band speech coding modes with respective bit rates ranging from 6.6 to 23.85 Kbps. The sampling frequency used in AMR-WB are 16000 Hz and the speech processing are performed on Ms frames. This means, each AMR-WB encoded frame represents the speech samples.

AMR-WB supports 9 bit rates, namely 6.6, 8.85, 12.65, 14.25, 15.85, 18.25, 19.85, 23.05, 23.85kbps.

The sampling rate of the AMR-NB is 16000Hz, which is 16,000 samples per second, which means sampling 16,000 samples. The interval for each frame is 20ms, so 50 frames of data are sampled in 1 seconds. So each frame of data contains 16000/50 = 320 samples.
The above is AMR standard documentation:

1 AMRFile Header

AMRFile supports mono and multichannel. The header of mono and multichannel files is different. Mono (AMR-NB) contains only oneMagic Number; multi-Channel (AMR-WB) containsMagic Numberand a +Bit ofChanel Description Field, multi-channel case +Bit channel description character, front -bits are reserved characters and must be set to0At last4Bits indicate the number of channels used. Multichannel file header length is larger than mono file header length4A byte.

1. Mono :

amr-nb file header: "#! Amr\n "(or 0x2321414d520a in hexadecimal) ( part of quotation marks )

amr-wb file header:"#! Amr-wb\n "(or 0x2321414d522d57420a in hexadecimal). (in quotation marks)

2. multi-Channel:

The multi-Channel header contains a magic number and a 32bit channle description domain.



The following for the Android 4.3 mobile phone recording test, recorded a 770K recording, delete it in the phone, the removal of the winhex image before and after the comparison, found that only the directory and other information is completely clear, the actual underlying debris still exists:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/9D/wKioL1XVPdXCAYmlAAffSI6EXK4289.jpg "style=" float: none; "title=" fat.jpg "alt=" Wkiol1xvpdxcaymlaaffsi6exk4289.jpg "/>


The above can be seen after the Fat table area is removed and determined to be emptied.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/71/9D/wKioL1XVPhiBGqTnAAltC8oR2Eg497.jpg "title=" Fatt.jpg "alt=" wkiol1xvphibgqtnaaltc8or2eg497.jpg "/> The audio head here for AMR seems to have been cleared as well.


Use our gadget to do the removal of the image directly Amr fragment extraction of the selected image, in the selection of the location of the fragment save, the software can be directly in the corresponding format fragment extraction:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/A1/wKiom1XVPDryz8kiAABUEBPQgCY457.jpg "title=" Amrrrr.jpg "alt=" Wkiom1xvpdryz8kiaabuebpqgcy457.jpg "/>


Approximate extraction 5 minutes after extraction, extract the file size of 767K, played after playback determined as the previously deleted recordings.

tested Super andR-studio and other common tools can not scan the removal of this AMR recording, generally we will think that the data in the deletion is erasedthe!!!
 

currently testing 4.1 4.3 other Android platforms to delete recordings have been successful!!


A Data Recovery center: www.uuhf.net Product Station:www.sysfix.cn

QQ : 714724035 540773559

This article is from the "sqlrecovery" blog, make sure to keep this source http://sqlrecovery.blog.51cto.com/9576880/1686317

Cell phone Recording recovery and AMR structure analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.