Page 1 of 2

Recovery of Canon 5D Mark II HD Video Files

Posted: Tue Mar 10, 2009 3:41 pm
by smete
The original thread can be found at:
http://www.techsupportforum.com/hardwar ... ost2015096
Please see the end of tutorial for details on 2 bugs with the code.

--- Canon 5D Mark II HD Video File Recovery Tutorial ---
by smete AND THANKS TO RAPTOR_PA

So for all those who might end up corrupting or accidentally deleting your flash drive and are looking to recover lost movie files shot by Canon 5D Mark II, here is the tutorial:

1. Download R-studio from http://www.r-studio.com/
(It would be wise to use to first demo the product and make sure it'll find the files before purchasing it)
2. Install the program on a drive that you are NOT trying to recover from
3. Open the R-studio program folder (most likely C:\Program Files\R-Studio)
4. Create a new .txt file and name it FileTypes.xml
5. Open the XML file with notepad
6. Copy and paste the following code:

<?xml version="1.0" encoding="utf-8"?>

<FileTypeList>

<!-- Search for Canon 5D Mark II -->

<FileType id="5627" group="Custom" description="Canon5DMKII HD Video" features="TXT_ANSI">

<Signature offset="0" from="begin" count="1">\x00\x00\x00\x18\x66\x74\x79\x70\x71\x74\x20\x20\x20\x07\x09\x00</Signature>

<Signature offset="17" from="end" count="1">\x56\x43\x61\x6E\x6F\x6E\x41\x56\x43\x30\x30\x30\x31\x00\x00\x00\x00</Signature>

</FileType>

</FileTypeList>

7. Save the XML file.
8. Open R-studio
9. Select the drive to scan
10. From the program menu choose Drive > Scan
11. R-Studio confuses Canon5DmkII's vieo files with a 3G video format so to prevent that I'd recommend scanning only for these video files even if you have other media and scanning for other files in a different scan.
To do that, in Scan dialog box, make sure the box
"Extra Search for Known File Types" is selected
then press Known File Types button and make sure everything is deselected except "Canon5DMKII HD Video" under "Custom". Click OK.
12. I'd recommend saving the scan info file by choosing a location for the file in the Scan dialog box.
13. Make sure "Detailed" scan option is selected and press Scan

R-Studio should be able to find the files. Once you make sure R-Studio does to job, go ahead and purchase a license so that you can recover the files and copy them to your hard drive.
It is likely that in addition to all your lost files, r-studio will find one extra file that is unusually large and will be the last file in number. you should disregard this file.

14. Once you've recovered the files, you'll need to rename them as .mov files

--- END ---

Bugs:
One is that R-Studio finds one additional file that is unusually large. My whole lost footage was 4.7GB the last file in the list is 10GB. Maybe this is because it starts from the beginning of first file and goes on till the end of last file and gets everything in between.
Secondly, I don't know how to make this so that the file extensions are .mov and need no renaming.

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Wed Mar 11, 2009 6:54 am
by Alt
Thank you for the post.
I'd rather change the FileType line to:
<FileType id="5627" group="Custom" description="Canon5DMKII HD Video" extension="mov">
to have those files the .mov extension and avoid that last long file.

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Sun Sep 27, 2009 8:40 pm
by minto
i hope this won't sound ignorant but will this same xml code work for the mac version?

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Mon Sep 28, 2009 3:52 am
by Alt
Yes, these code applies to all file systems.

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Thu Feb 18, 2010 4:49 am
by AA
hey ive got an important question....
why couldnt i select the camera in the program?
theres no custom in the menu.....

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Thu Feb 18, 2010 6:14 am
by Alt
AA wrote:hey ive got an important question....
why couldnt i select the camera in the program?
theres no custom in the menu.....
A camera is not a regular data storage device. Its data storage is not accessible at the level R-Studio requires to recover files.

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Sun Nov 06, 2011 8:54 pm
by CLDonovan
Hello

I am trying this method of recovery on a 5D MKII CF card

When I attempt to recover the .mov footage
the files are recognized as a .mp4 and approximately 10x their normal size
I also do not see the "Custom" category created by the XML file
which I placed in "C:\Program Files (x86)\R-Studio" on Vista64

Any thoughts?

Thanks!
Chris

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Mon Nov 07, 2011 3:38 am
by Alt
1. R-Studio can find the beginning of a standard mp4 file and not its end. That's why the custom known file type description file is preferable.
2. Did you load the file on the Main panel of the R-Studio settings?

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Mon Nov 07, 2011 7:32 am
by CLDonovan
Thank you for the quick reply :)

I was under the impression that the xml file of user settings was being load from the root of the program file based on the previous poster's experiences
and didn't realize that that there was an option under settings to point to the file

Once I did that I was in business
I used the <FileType id="5627" group="Custom" description="Canon5DMKII HD Video" extension="mov"> as suggested earlier
I referred to creating custom file types doc to verify that I was making the signatures correctly
(http://www.r-tt.com/Articles/Creating_C ... ndex.shtml)
and only noted a minor change to the signature, where my end signature my files read "..x32\x00\x00\x00\x00" instead of "..x31\x00\x00\x00\x00"

Files are exporting now, the first two seem normal, no glitches (which I noted with the mp4)
The files are still about 10x larger than usual, but I am hoping a quick batch through Adobe media encoder will bring them back down to a manageable size.

yay!

Re: Recovery of Canon 5D Mark II HD Video Files

Posted: Wed Feb 10, 2016 9:09 am
by polio
Hi there, this is just what I need but I am having problems

I am trying to use this code in my xml file:

<?xml version="1.0" encoding="utf-8"?>
<FileTypeList>
<!-- Search for Canon 5D Mk II -->

<FileType id="5627" group=“Custom” description="Canon5DMKII HD Video" features="MOV">

<Signature offset="0" from="begin" count="1">\x00\x00\x00\x18\x66\x74\x79\x70\x71\x74\x20\x20\x20\x07\x09\x00</Signature>

<Signature offset="17" from="end" count="1">\x56\x43\x61\x6E\x6F\x6E\x41\x56\x43\x30\x30\x30\x31\x32\x00\x00\x00\x00</Signature>

</FileType>
</FileTypeList>


I am getting a "Failed to load File Type Definitions" error, what am I doing wrong ?

Thanks in advance