Step 2: You Could Just Read These Files, But ITunes Renames Them

iTunes renames all your files xxxxxxx.mddata.  So all you need to do is figure out the original file name extension and you will be able to view the file.

First, be sure to make a copy of the entire directory and work only on the copy.

From a command prompt, you can use the command file, which reads a file and figures out what sort of data it actually contains.  Then you can rename the file with the proper extension so your operating system will recognize it and can open it.  For example, voicemail is stored as an Adaptive Multi-Rate Codec (GSM telephony) .amr file.  If you rename a file with this extension, Quicktime will open it.

The Macintosh command prompt includes the file command as part of the operating system.

On Windows, you have to download and install the file command manually.  This program is one possibility using the windows command prompt.

Another possibility is cygwin which installs a unix-like command shell that includes the file command  (This is what I used, since I already had it installed).

Once you have the command installed you would type something like:
file *.mddata
to see what sort of file each mddata file actually is.

Here is some of the results from my iPhone:
f879f904659340b84f23853b997e0a13b8db608f.mddata: Adaptive Multi-Rate Codec (GSM telephony)
f8d2d53f86ac550432e597654a2b5d456524a5ca.mddata: Apple binary property list
f936b60c64de096db559922b70a23faa8db75dbd.mddata: SQLite 3.x database
fb3108570150f89af665302ff4d3c25027c149b9.mddata: PNG image data, 127 x 127, 16-bit/color RGB, non-interlaced
fb520955c98189505f20d2af90a46a1ced8c2e9c.mddata: data
fb5933a1d7f0155d2656a00f4ed5e6c63429262a.mddata: JPEG image data, JFIF standard 1.01
fb7786ced1add24313fa258c8e1ed041e24d52a4.mddata: Apple binary property list
fc5e3306c70847e0c7eff69da7a33a2ec978e516.mddata: JPEG image data, EXIF standard 2.21
fdff09f7f56b266b40c42606bc71a06fac258007.mddata: ASCII text

Quicktime will open the following files:
change extension to .amr: Adaptive Multi-Rate Codec (GSM telephony)
change extension to .jpeg: JPEG image data, EXIF standard 2.21
change extension to .png: PNG image data, 127 x 127, 16-bit/color RGB, non-interlaced
change extension to .mpeg: ISO Media, MPEG v4 system, iTunes AAC-LC
change extension to .mpeg: ISO Media, Apple QuickTime movie

sqlite browser
will open SQLite 3.x database files.

.mdinfo files and some of the .mddata files are Apple binary property list.  This page talks about how to read them.  Here is some source code.  Or use this program.

<p>Hello Alan, it doesn't seem to work anymore. I guess you need to update this tutorial. I was also trying to transfer few voicemails (birthday wishes from friends and family) from my iPhone 6s to my computer and found this useful guide via Google search: <a href="http://www.easyphonerecovery.com/how-to-save-iphone-voicemails-to-pc-mac.html" rel="nofollow">Transfer iPhone Voicemails to Your PC or Mac</a> and the app/software recommended here did the job for me.</p><p>Apart from voicemails, it allows to transfer other content like music, videos, photos, sms, contacts, etc, between iPhone and computer. I find it pretty useful to manage my iPhone and iPad pro. You can also give it a try!</p>
<p>All of these solutions are a lot of work. The easiest way is to use Bulk Rename Utility and VLC player which are both free for this purpose. In Bulk Rename Utility navigate to a copy of the backup file in the menu on the left. select all files in the box on the right. In the seventh box &quot;add (7)&quot; there is a box called Suffix. In the Suffix box put in &quot;.amr&quot; (without the quotes). then hit rename. All the files should have the suffix .amr now. Open the files in VLC player files with duration are either videos or the voice mails. Only problem is you have to sort through them yourself.</p>
<p>Yesterday, I found a better method to save voicemails from iPhone to computer. You can have a try.</p><p><a href="http://www.recovery-tool.com/ios-recovery/save-iphone-voicemails.html" rel="nofollow">http://www.recovery-tool.com/ios-recovery/save-iph...</a></p>
<p>Great article, thanks! Here's also a way to <a href="https://www.wideanglesoftware.com/support/touchcopy/copying-visual-voice-mail-from-an-iphone-to-your-computer.php" rel="nofollow">save voicemails directly from your iPhone to your computer</a>, without needing sync your iPhone or doing an iTunes backup. Hope you find it useful.</p>
<p>Well. Good share. But you also can <a href="http://goo.gl/Y1K5p2" rel="nofollow">save iPhone voicemail</a> by this way. It will be more easy than other way.</p>
<p>Thanks for the tips! </p><p>On a Mac, you can navigate to the listed directory (I suggest working on a backup copy) via Terminal and run this command to get the voice-mails in AMR format in a sub-folder named &quot;vm&quot;:</p><p>file * | grep 'Adaptive Multi-Rate Codec' | awk '{ FS = &quot;:&quot; } { print $1 }' | xargs -I file mv file ./vm/file.amr</p>
<p>Hello,</p><p>I tried the above command line in Bash, while in the directory that has my phone's backup file, and it didn't produce any files in the vm directory (which is also in same directory as the backup file). Bash took the command as it didn't balk any errors, what am I doing wrong?</p><p>Thanks!! </p>
<p>This worked well for me, after I remembered to create the vm folder! thx</p>
<br>Here is the command I used in the Windows 7 command prompt:<br><br>@for %f in (*) do @(for /F &quot;usebackq tokens=1,2* delims=; &quot; %g in (`file %f`) do @(if %h==Adaptive copy %g %g.amr))<br><br>When I run that, I get a message (that endlessly scrolls) that says&quot; 'file' is not recognized as an internal or external command&quot;<br><br>I tried installing &quot;File&quot; from the site you suggested, but it must not have installed. Any ideas?<br><br>Thanks very much,<br><br>Jon<br>
Yes, the script above uses gnuwin32 file program that you have to install.<br> <br> Here is a cygwin version that does the same thing:<br> <br> for f in *; do file $f | grep -q Adaptive; if [ $? == 0 ]; then cp $f $f.amr;<br> fi; done<br> <br> It checks all the files in the current directory. &nbsp;If the file contains&nbsp;Adaptive Multi-Rate Codec (GSM telephony), it renames the file to add a .amr extension.<br> <br>
Hi Alan,<br><br>Thanks for providing a command line for renaming the files to *.amr in Cygwin. However, when I entered that, nothing happens.<br><br>Here is the command as entered in Cygwin...the directory with the itunes backup files is a529*<br><br>Jon@JON-YALE-OPLEX /home/a52933419a0fa72b7716fed06fea5dae7fdf6447<br>$ for f in *; do file $f | grep -q Adaptive; if [ $? == 0 ]; then cp $f $f.amr; fi; done<br><br>I appreciate your help
<p>Did you cd to the correct directory before running the command?</p><p>Did you check if it added a .amr extension to any of the files?</p><p>The command itself doesn't print any output.</p><p>In cygwin, you can just type:</p><p>file *</p><p>in the correct directory and then look for files with Adaptive Multi-Rate Codec (GSM telephony) and rename them with the .amr extension manually.</p>
<p>Yes I cd'd to the directory with the files. The command you gave didn't add the .amr extension, but I noticed a comment from SmithersJR who suggested a command to run on a Mac that would rename the codec files:</p><p>file * | grep 'Adaptive Multi-Rate Codec' | awk '{ FS = &quot;:&quot; } { print $1 }' | xargs -I file mv file ./vm/file.amr</p><p>So I created a directory vm and ran the command. At first I didn't think it had worked, but because I am so unfamiliar with Cygwin and its directory structure, I couldn't at first locate where I had created the vm directory, so I figured the command had failed. As I was looking around to see if your command had added the extension (it had not), I found the vm directory, did ls on that directory and, voila!, the re-named files are there. I should be able to run that same command changing 'Adaptive...' to 'JPEG' and 'vm' to something like 'Images' and be able to extract all of the .jpg image files. </p><div><a href="https://www.instructables.com/id/How-to-Download-Voicemail-from-an-iPhone/step2/You-could-just-read-these-files-but-iTunes-renames/#" rel="nofollow">flag</a></div>
<p>I glad you got something to work for you!</p>
This really helped me. Thanks. <br>On Windows, I find that all the files have no extension (i.e. no .mddata extension). Here's the command line I used to copy all the voicemails to .amr files: <br>@for %f in (*.) do @(for /F &quot;usebackq tokens=1,2* delims=; &quot; %g in (`file %f`) do @(if %h==Adaptive copy %g %g.amr)) <br>If you put it in a batch file, you'll need to double up some of the % signs. <br>The backups seem to include deleted or old voicemails. Next time, I will explore ways to zero in on the ones I want to save.
<p>This command line doesn't seem to work...I get a message that there is a &quot;syntax error near unexpected token `(' &quot; I'm a cygwin newbie, so I'd appreciate any help you can offer!</p><p>Thanks</p>
Richard Owen used a Windows Command Prompt (not cygwin) for the command above. I just tried it on Windows7 and it works great!<br> I changed the beginning to:<br> @for %f in (*) ...<br> (removed the period) so it would find all my files
I'm glad you found it useful.<br>Looks like Apple has changed how it saves files. My latest backups don't have an extension either.<br>
I've got a problem with saving the SMS files in an arranged way since the extensions are gone. The only way to see the SMS chats (without jailbreaking my iPhone or buying any software) seems to open the backup file with editor, which is nonsense. <br>Could you help me? <br> <br> <br>I am using an iPhone 3GS and a Windows Vista PC.

About This Instructable




More by Alan Nishioka:How to make ice spikes How to Download Voicemail from an iPhone How to Repair a Hughes HDVR2 Tivo Power Supply 
Add instructable to: