<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Not a complete failure</title>
	<atom:link href="http://aeroquartet.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://aeroquartet.com/wordpress</link>
	<description>by Benoît Joossen</description>
	<lastBuildDate>Sat, 23 Mar 2013 08:48:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Those GoPro HERO Videos that Cannot Could Not be Repaired</title>
		<link>http://aeroquartet.com/wordpress/2013/03/17/gopro-hero3-corrupt-videos-cannot-could-not-be-repaired/</link>
		<comments>http://aeroquartet.com/wordpress/2013/03/17/gopro-hero3-corrupt-videos-cannot-could-not-be-repaired/#comments</comments>
		<pubDate>Sun, 17 Mar 2013 18:56:43 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=426</guid>
		<description><![CDATA[p { text-align:justify }
Once upon a time, there was an action camera called GoPro. It quickly became the top seller of its category, with 9 millions cameras shipped since 2009, and made its CEO a mad billionaire.And since action cameras have a rough life, with no surprise did we start receiving several GoPro repair requests [...]]]></description>
			<content:encoded><![CDATA[<style>p { text-align:justify }</style>
<p>Once upon a time, there was an action camera called <a href="http://aeroquartet.com/movierepair/gopro%20hero">GoPro</a>. It quickly became the top seller of its category, with 9 millions cameras shipped since 2009, and made <a href="http://www.forbes.com/sites/ryanmac/2013/03/04/the-mad-billionaire-behind-gopro-the-worlds-hottest-camera-company/">its CEO a mad billionaire</a>.<br/>And since action cameras have a <a href="http://aeroquartet.com/wordpress/2011/11/21/action-takes-worth-crushing-a-camera-or-two/">rough life</a>, with no surprise did we start receiving several GoPro repair requests every day.</p>
<p>GoPro corrupt footage was routinely repaired, using deep parsing and re-indexing techniques.</p>
<h2>One Day&#8230;</h2>
<p>One day, we received a damaged GoPro file that couldn&#8217;t be cleanly repaired. Re-indexing seemed to work fine, and repaired videos were playable, but they were full of glitches, and <u>audio was repeated every couple of seconds</u>, like a mad echo effect.</p>
<p>At first we didn&#8217;t pay a lot of attention to this, we just said to the customer that the video could not be cleanly repaired due to presence of &#8220;alien data&#8221; inside the file. Alien data is material that should not be in the damaged file, and that makes re-indexing more difficult or even impossible. This is a bit like waste recycling that can only be efficient if waste has been properly triaged beforehand.</p>
<p>We were not wrong about &#8220;alien data&#8221; contamination, but not for the expected reasons&#8230; A few days later we received one, then two more damaged videos from different customers that were having the exact same symptoms:</p>
<ul>
<li>Damaged files preview perfectly with <a href="http://aeroquartet.com/movierepair/download">Treasured</a>.</li>
<li>However, after repair, it was a mix of clean and garbled video, with audio repeating (like echo) every two or three seconds.</li>
</ul>
<p>At this point I considered having discovered a new failure mode, and I guessed that it was probably a side effect of how new GoPro cameras operate.</p>
<h2>Cracking New GoPro</h2>
<p>The most intriguing fact about this failure mode is that audio repeats, so we started our investigation with audio.</p>
<div style="float:left"><img src="http://aeroquartet.com/img/goPro-clean1.JPG" width="150" style="box-shadow: 4px 4px 2px #777; margin-right: 20px"></div>
<p>After close examination, I noticed that not only audio was repeating, but video as well! The only difference is that secondary video wasn&#8217;t directly visible, indeed the glitches inside repaired video <u>are</u> our secondary video stream. So we have a camera that records two streams at once, both with same audio but incompatible video.</p>
<p>Does it sound familiar?</p>
<p>It didn&#8217;t for me at first, but when I read the list of changes in new GoPro firmware and cameras, everything became clear&#8230;</p>
<h3>LRV for Low Res Version</h3>
<p>It turns out that GoPro camera now records an LRV clip at the same time as the HD clip. The LRV file is a lower resolution version of the video recording used for preview purposes on the phone and tablet GoPro applications (less data to transfer wirelessly to the device running the application, and less decoding raw power required as well).</p>
<div style="float:left"><img src="http://aeroquartet.com/img/goPro-clean2.JPG" width="400" style="box-shadow: 4px 4px 2px #777; margin-right: 20px"></div>
<p>During recording, your GoPro camera produces two streams of videos, one high resolution (represented by big orange images on illustration, and one low resolution, whose volume is one fourth to one tenth, hence the small blue images.</p>
<h3>The Locker Room</h3>
<p>Now let&#8217;s figure out what happens when the camera writes the two streams on the SD card. In computers, but also in phones and cameras, a program called &#8220;file system&#8221; is in charge of storing data and keep track of where it is stored to be able to read it later.</p>
<p>You can think of the SD card as a locker room, with thousands of lockers, all of the same size. People who want to store their stuff give it the person in charge, the file system, who will put it in one or several lockers and keep track of what goes where.</p>
<p>During recording, every second the GoPro guy comes to the locker room with new boxes that he hands over to the file system: 4 orange boxes, that fill 4 lockers, and 4 small blue boxes, that fit in one locker. To go faster, the file system fills the lockers in rows, so orange and blue boxes are interleaved.</p>
<h3>Disaster Strikes</h3>
<p>Unfortunately, before our file system could write in the registry where boxes have been stored, fire alarms suddenly start shrieking, and everyone leaves the building. A few minutes later, people is authorized to go back to work, but our file system no longer remember where video has been stored. Our GoPro is desperate&#8230; and calls SoS!</p>
<h2>Cleaning up this Mess</h2>
<p>Finding footage is easy, just open all the lockers, put all items together, and pray. This is what Data Recovery utilities do. Unfortunately, this won&#8217;t work because besides <a href="http://aeroquartet.com/wordpress/2013/02/09/why-recovered-videos-wont-play/">fragmentation</a>, we have LRV data interleaved with HD video, that will cause glitches and echoing audio once fixed.</p>
<div align=center style="clear:both">
<img src="http://aeroquartet.com/img/goPro-clean3.JPG" width="400" style="box-shadow: 4px 4px 2px #777">
</div>
<p>As you have guessed, we now have two problems:</p>
<ul>
<li>Separating LRV from HD video</li>
<li>Re-indexing video</li>
</ul>
<h3>Triage</h3>
<p>There&#8217;s no such thing as orange and blue data. Both streams contain H.264 video and AAC audio and are nearly indistinguishable. Yet we need to surgically separate them. Cutting just one byte off would generate glitches in several frames.</p>
<p>Fortunately, two things makes triage possible:</p>
<ul>
<li>Streams are mixed in locker-sized chunks. Cuts can only happen every 131072 bytes exactly, at discrete locations.</li>
<li>Every H.264 frame starts with a pattern that informs of its exact bytes length, so we can verify whether it&#8217;s in one piece &#8211; or &#8211; whether 131072 bytes of &#8220;blue data&#8221; are contaminating the frame.</li>
</ul>
<p>Combining those two hints, I have managed to remove LRV from the raw data. Now we are back to the normal situation of a corrupt video in need of re-indexing.</p>
<h3>Amazing: Kayak Footage Restored!</h3>
<p>The final step is to re-index the cleaned &#8211; yet still corrupt &#8211; raw file. Needless to say, when you have cracked a new failure mode like this one, this is a lot of excitement the first time your repair program finally cranks out clean video.</p>
<p>The first video that I have managed to fix shows some guys paddling in kayaks, so I have decided to call this feat: to pull a kayak</p>
<div align=center><img src="http://aeroquartet.com/img/paddling.jpg" style="box-shadow: 4px 4px 2px #777"><br />
Frame from repaired clip, courtesy of Gordon Scott
</div>
</p>
<p>If ever you face a corrupt video problem with your GoPro, even if it&#8217;s not a &#8220;kayak&#8221;, just send us a request through <a href="http://aeroquartet.com/movierepair/download">Treasured</a> and we will do the paddling for you. <img src='http://aeroquartet.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/03/17/gopro-hero3-corrupt-videos-cannot-could-not-be-repaired/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just Reported: First Case of Corrupt Video from Canon EOS-1D C</title>
		<link>http://aeroquartet.com/wordpress/2013/02/28/just-reported-first-case-of-corrupt-video-from-new-canon-eos-1d-c/</link>
		<comments>http://aeroquartet.com/wordpress/2013/02/28/just-reported-first-case-of-corrupt-video-from-new-canon-eos-1d-c/#comments</comments>
		<pubDate>Thu, 28 Feb 2013 09:31:40 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=405</guid>
		<description><![CDATA[I have finally managed to put my hands on corrupt footage coming from new flagship Canon camera.
Canon claims that its EOS-1D C is the first 4K resolution DSLR camera.


I have examined the damaged footage: video is actually encoded in Motion JPEG, 4096 x 2160 and audio is in Linear PCM 16 bits.
At almost 3 MB [...]]]></description>
			<content:encoded><![CDATA[<p>I have finally managed to put my hands on corrupt footage coming from new flagship Canon camera.<br />
Canon claims that its EOS-1D C is the first 4K resolution DSLR camera.</p>
<div align="center"><img src="http://aeroquartet.com/img/CanonEOS-1D-C.jpg"></div>
<p><br/><br />
I have examined the damaged footage: video is actually encoded in Motion JPEG, 4096 x 2160 and audio is in Linear PCM 16 bits.<br />
At almost 3 MB per frame, the camera has to write its 4K/24p footage at an astonishing speed of <b>500 Mbits/s</b>. Needless to say, the fastest CompactFlash cards in the market can barely sustain this write speed, and actually the camera uses a Dual CF set-up to cope with that.</p>
<h2>Freeze, Zoom, Focus &#8230; Read the Newspaper!</h2>
<p>4K videos recorded by Canon EOS-1D C  produces images so detailed and sharp that you can crop 1% of a frame and still read the newspaper! A <a href="http://www.youtube.com/watch?v=qHepKd38pr0">Blade Runner-ish</a> performance!<br/></p>
<div align="center"><img src="http://aeroquartet.com/img/zoomed4K.jpg" title="frame from corrupt EOS-1D 4K video"><em>Highlighted image represents just 1% of the original video frame!</em></div>
<p><br/></p>
<h2>Repairing Corrupt 4K Videos</h2>
<p>Such demanding bandwidth and storage specs will inevitably cause problems. Corrupt videos will likely be produced by &#8220;usual suspects&#8221;:</p>
<ul>
<li>lack of space in card</li>
<li>lack of speed of card</li>
<li>camera failure in hot conditions</li>
</ul>
<p>At this point there is no evidence that firmware 1.0.2 is responsible of the failure. We will track the failures by firmware versions as we did during <a href="http://aeroquartet.com/wordpress/2011/11/12/does-fw1-2-5-fix-canon-7d-reliability-problem/">Canon 7D epidemic outbreak</a>.</p>
<p>The damaged footage that I have examined comes in a QuickTime MOV file, but without the moov atom at the end since recording did not end gracefully. This missing moov atom should contain the media tables and index that are needed for the video to be playable.</p>
<p>Fortunately, Motion JPEG media is easy to parse, thanks to the markers used to encode the image, in particular FFD8 (start of image) and FFD9 (end of image). With a standard re-indexing technique, we have managed to make the video playable, restoring original quality.</p>
<p>Therefore, as of February 2013&#8230;</p>
<ul>
<li><a href="http://aeroquartet.com/movierepair/download">Treasured</a> cannot detect and preview corrupt Canon EOS-1D C videos yet.<br/><em style="font-size:0.8em; margin-left:40px">we will try to update Treasured in March with Canon 4K detection and preview.</em></li>
<li>But we can repair Canon 4K videos if you send us a <a href="http://aeroquartet.com/movierepair">repair request</a> with Treasured.</li>
</ul>
<p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2013/02/28/just-reported-first-case-of-corrupt-video-from-new-canon-eos-1d-c" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/02/28/just-reported-first-case-of-corrupt-video-from-new-canon-eos-1d-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Recovered Videos won&#8217;t Play</title>
		<link>http://aeroquartet.com/wordpress/2013/02/09/why-recovered-videos-wont-play/</link>
		<comments>http://aeroquartet.com/wordpress/2013/02/09/why-recovered-videos-wont-play/#comments</comments>
		<pubDate>Sat, 09 Feb 2013 22:19:45 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=393</guid>
		<description><![CDATA[Many users of Treasured and MP4repair.org are very surprised to discover that their videos, after being recovered or undeleted by data recovery tools, still cannot open or play!
After having burnt days trying several tools and spent money on the most promising one, their recovered video files are still corrupt and they finally come to us [...]]]></description>
			<content:encoded><![CDATA[<p>Many users of <a href="http://aeroquartet.com/movierepair/download">Treasured</a> and <a href="http://mp4repair.org">MP4repair.org</a> are very surprised to discover that their videos, after being recovered or undeleted by data recovery tools, still cannot open or play!</p>
<p>After having burnt days trying several tools and spent money on the most promising one, their recovered video files are still corrupt and they finally come to us because only our diagnostics tools Treasured (or MP4repair.org) can preview them and give them some hope.</p>
<h2>Why does it work for my PDFs but not for my videos?</h2>
<p>Data recovery tools are usually good at undeleting small files, like PDFs, Word and Excel documents, or low-res images. But as file size increases, the chances of recovery plummet.<br />
Even for JPEG pictures in the 2 &#8211; 5 MB range, about <a href="http://www.forensicswiki.org/wiki/File_Carving#Fragmented_File_Recovery">15% of files appear missing or corrupted</a>.</p>
<p>For video files, whose size is usually in the hundreds of MB, and even in the tens of gigabytes for post-production formats, the chances of recovery are almost zero.</p>
<p>The reason is FRAGMENTATION: In your disk, everything is stored in fixed-sized &#8220;blocks&#8221;, like the shelves in the picture below. But if the file is big, it will not fit in one shelf. </p>
<p>Video files occupy many shelves. If the file is really big, let say 20 shelves, it&#8217;s not even possible to store it in contiguous shelves. In picture below, it&#8217;s obvious that really big files will end up spread over different walls.</p>
<div align="center"><img src="http://aeroquartet.com/img/fragmentation.jpg" style="box-shadow: 4px 4px 2px #777"></div>
<p></p>
<h2>Why Fragmentation Kills Recovery</h2>
<p>Fragmentated files are split into several pieces, each piece being stored at a different place. Data is no longer contiguous. </p>
<p>This is not a problem for the operating system, that knows where those pieces are stored. But after a file deletion or a disk failure, this &#8220;map&#8221; also disappears and the file is now lost in the middle of thousands of shelves.</p>
<p>All data recovery tools (except high-end forensics tools, more about that below) use simple <b>file carving</b> techniques to recover deleted data.</p>
<p>Most common technique is <b>Header/Footer</b> carving. It consists in identifying the beginning of a file of a certain type, using a signature or pattern. AVI files, for example, start with <b>RIFF</b> word. MP4 files have a movie atom at the end of the file (footer) that can easily be detected using pattern matching.</p>
<p>Once a header and a footer are found, the data recovery program <b>assumes</b> that all data in between is part of the video file. This will only be true is the file was stored in one piece, without fragmentation.</p>
<p>This rarely happens. Even in disks with plenty of space available, fragmentation often happens as a side effect of video recording. For example, XDCAM cameras write as the same time several files (MP4, BIN, PPN) and this causes a systematic fragmentation of the MP4 video file.</p>
<h2>Alien Data</h2>
<p>Therefore, any fragmented video file recovered will contain &#8220;alien data&#8221;.<br />
This will cause the following problems, from less serious to more serious:</p>
<ul>
<li>Glitches in video and audio.</li>
<li>Possible crashes during playback</li>
<li>Missing footage, footage from different clip inserted in video</li>
<li>File no longer opens due to inconsistency of video container</li>
<li>File not even recovered if software doesn&#8217;t find footer</li>
</ul>
<h2>Recovery is not Repair</h2>
<p>Data recovery tools are very good at restoring small files of many different formats, by identifying superficial features of the data (header signatures, footer patterns) and assuming that the file is not fragmented.</p>
<p>But this assumption is <b>not true for video files</b>. The only effective technique that can be used to recover fragmented files is called “deep carving”. </p>
<p>Tools implementing this technique are very few, very specialized, more expensive, slower, and are based on probabilistic algorithms specific to the video and audio formats to recover.</p>
<ul>
<li>Recovery tools achieve good results on small files, but not on videos, due to fragmentation.</li>
<li>Recovery tools can&#8217;t actually repair fragments of video files, because they can only identify generic and superficial file features</li>
<li>Video Repair tools are specialized. They are built to repair one type of videos only,for example Canon EOS 1080p24 or XDCAM 720p30.</li>
<li>Video Repair tools identify video frames and audio blocks deep inside the file and re-index them into a playable video.</li>
</ul>
<p>This is the reason why our repair service works when other generic recovery tools don&#8217;t: We build <b>specialized tools</b> that can assemble the puzzle, fit the parts of the disk together to restore a functional video file.</p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2013/02/09/why-recovered-videos-wont-play" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/02/09/why-recovered-videos-wont-play/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GoPro Freezing during Video Recording</title>
		<link>http://aeroquartet.com/wordpress/2013/01/31/gopro-freezing-during-video-recording/</link>
		<comments>http://aeroquartet.com/wordpress/2013/01/31/gopro-freezing-during-video-recording/#comments</comments>
		<pubDate>Thu, 31 Jan 2013 11:41:19 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=378</guid>
		<description><![CDATA[GoPro has recently shipped its new line-up of HERO3 cameras with impressive specs.
Users have started reporting problems with the camera in November 2012: One of the most annoying failure mode is the dreaded &#8220;lock up during video recording&#8221; that leaves you with a corrupt video. We are now receiving new damaged clips to fix every [...]]]></description>
			<content:encoded><![CDATA[<p>GoPro has recently shipped its new line-up of <a href="http://gopro.com/hd-hero3-cameras">HERO3 cameras</a> with impressive specs.</p>
<p>Users have started reporting problems with the camera in November 2012: One of the most annoying failure mode is the dreaded &#8220;lock up during video recording&#8221; that leaves you with a corrupt video. We are now receiving new damaged clips to fix every day.</p>
<div align=center><img src="http://aeroquartet.com/img/goProFreezing.jpg" alt="GoPro HERO3 freezing" style="box-shadow: 4px 4px 2px #777"></div>
<p></p>
<h3>Affected Firmware Versions</h3>
<p>Lock-up problems can be traced back to firmware versions that include <b>Protune</b> features. All GoPro models with Protune are affected.</p>
<p>As of January 2013:</p>
<ul>
<li>All GoPro HERO 3 cameras except White model (because it doesn&#8217;t include Protune)</li>
<li>GoPro HERO 2 cameras with Firmware upgrade 8.12.198 (October 2012) that enables Protune</li>
</ul>
<p>Two important points:</p>
<ul>
<li>Lock ups happen even if Protune mode is disabled.</li>
<li>GoPro HERO 2 firmware can be <a href="http://gopro.com/support/hd-hero2-firmware-update">downgraded to version 8.12.124</a>, without Protune.</li>
</ul>
<h3>Tip: Save $20 on GoPro Repairs with Treasured and MP4repair.org</h3>
<p>We have been busy in the last months catching up with new GoPro cameras. Current releases of <a href="http://aeroquartet.com/movierepair/download">Treasured</a> (Mac app) and <a href="http://mp4repair.org">MP4repair.org</a> (web app) can detect and preview corrupt GoPro videos, even from new models and formats.</p>
<p>However, GoPro special pricing is not always correctly applied. When video is identified as <u>Media: H.264</u> instead of <u>Brand: GoPro HERO</u>, price quote will be higher. We will fix that by end of February. </p>
<p>In the meantime, just add a comment in your repair request or send us an email to notify that it&#8217;s GoPro footage and we will apply the correct price to your repair.</p>
<div align=center><a href="http://aeroquartet.com/movierepair/download"><img src="http://aeroquartet.com/img/goProSave20.jpg" alt="GoPro HERO3 video repair"></a></div>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2013/01/31/gopro-freezing-during-video-recording" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/01/31/gopro-freezing-during-video-recording/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Corrupt Audio Files: How to Repair</title>
		<link>http://aeroquartet.com/wordpress/2013/01/15/corrupt-audio-files-how-to-fix/</link>
		<comments>http://aeroquartet.com/wordpress/2013/01/15/corrupt-audio-files-how-to-fix/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 13:55:26 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=359</guid>
		<description><![CDATA[Today we will provide a few tricks to recover corrupt audio files.
Whether you&#8217;re a professional using Apple&#8217;s Logic Studio or AVID Pro Tools, an extreme biker torturing the last GoPro camera or a video aficionado editing the last family gathering with Windows Movie Maker, you can end up fighting with a corrupt WAV, M4A, AIF [...]]]></description>
			<content:encoded><![CDATA[<p>Today we will provide a few tricks to recover corrupt audio files.</p>
<p>Whether you&#8217;re a professional using Apple&#8217;s Logic Studio or AVID Pro Tools, an extreme biker torturing the last GoPro camera or a video aficionado editing the last family gathering with Windows Movie Maker, you can end up fighting with a corrupt WAV, M4A, AIF or QuickTime MOV audio file.</p>
<p>Your fight is really unfair: Even if you are a skilled computer guy, you probably will spend hours on that, <b>to no avail</b>. Professional <a href="http://aeroquartet.com/movierepair/">video and audio repair services</a> exist for a reason. We have spent the last 5 years developing <a href="http://aeroquartet.com/movierepair/download">recovery tools for Mac</a> and a <a href="http://mp4repair.org">web video repair app</a> to give you predictable results.</p>
<p><b>You&#8217;ve been warned.</b></p>
<h2>Do It Yourself: Linear PCM Audio Repair</h2>
<div style="float:left"><img src="http://aeroquartet.com/movierepair/img/goggles2.jpg"></div>
<p>Note that the techniques below only work for Linear PCM format and for containers mentioned below. We won&#8217;t be able to repair an .m4a file containing AAC with those methods, for example.</p>
<ul>
<li><a href="http://aeroquartet.com/movierepair/corrupt-audio#PCM">How to repair a corrupt MOV file containing Linear PCM audio</a> using &#8220;Transplant&#8221; technique<br/>Note that if you have a good audio file with exactly same settings than damaged one, and whose size is bigger, you can use it as placeholder and skip step 1.</li>
<li><a href="http://aeroquartet.com/movierepair/aiff#Repair">How to repair a corrupt AIFF file</a> using &#8220;Container Correction&#8221; technique</li>
<li><a href="http://aeroquartet.com/movierepair/corrupt-wav">How to repair a corrupt WAV file</a> using &#8220;Container Correction&#8221; technique</li>
</ul>
<p>Unfortunately, repairing compressed audio formats like <a href="http://aeroquartet.com/movierepair/aac">AAC</a> or <a href="http://aeroquartet.com/movierepair/apple%20lossless%20audio%20(alac)">ALAC (Apple Lossless)</a> is much more complex and we&#8217;ll leave it for future posts.</p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2013/01/15/corrupt-audio-files-how-to-fix" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/01/15/corrupt-audio-files-how-to-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon 5D Mk III video files playing only first second of audio and black image</title>
		<link>http://aeroquartet.com/wordpress/2013/01/09/canon-5d-mk-iii-video-files-playing-only-first-second-of-audio-and-black-image/</link>
		<comments>http://aeroquartet.com/wordpress/2013/01/09/canon-5d-mk-iii-video-files-playing-only-first-second-of-audio-and-black-image/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 10:18:18 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=321</guid>
		<description><![CDATA[We are seeing a pattern with damaged Canon 5D Mark III videos:
Corrupt files are playable with usual tools (QuickTime Player, VLC) but video is black or gray and audio is OK during first second, then becomes white noise.
Note: With Treasured, our diagnostics app , you can preview those corrupt files and then repair them with [...]]]></description>
			<content:encoded><![CDATA[<p>We are seeing a pattern with damaged Canon 5D Mark III videos:<br />
Corrupt files are playable with usual tools (QuickTime Player, VLC) but video is black or gray and audio is OK during first second, then becomes white noise.</p>
<p>Note: With <a href="http://aeroquartet.com/movierepair/download">Treasured</a>, our diagnostics app , you can preview those corrupt files and then repair them with through our <a href="http://aeroquartet.com/movierepair/">Repair Service</a>. This post is not about repairing videos, but about understanding why we see this pattern.</p>
<p>Let&#8217;s do a post-mortem of an unplayable video and figure out why.</p>
<h2>Playing Detective</h2>
<p>With the help of an hexadecimal editor, we look at the beginning of the file. Trained eyes will see the normal header of a QuickTime .MOV movie. It contains a moov atom, which usually is at the end of the file. Strange&#8230;</p>
<pre>
0000000: 0000 0018 6674 7970 7174 2020 2007 0900  ....ftypqt   ...
0000010: 7174 2020 4341 4550 0001 7fe8 6d6f 6f76  qt  CAEP....moov
0000020: 0001 004a 7564 7461 0000 0026 434e 4356  ...Judta...&#038;CNCV
0000030: 4361 6e6f 6e41 5643 3030 3130 2f30 332e  CanonAVC0010/03.
0000040: 3030 2e30 302f 3030 2e30 302e 3030 0000  00.00/00.00.00..
0000050: 000c 434e 444d ffd8 ffd9 0001 0010 434e  ..CNDM........CN
0000060: 5448 0000 36e3 434e 4441 ffd8 ffe1 0e26  TH..6.CNDA.....&#038;
0000070: 4578 6966 0000 4949 2a00 0800 0000 0900  Exif..II*.......
</pre>
<p><br/><br />
If we have a moov atom, let&#8217;s check if it is consistent and what is inside it. For this we use Dumpster or Atom Inspector, two free apps that you can download from <a href="http://developer.apple.com">developer.apple.com</a> (free developer account required).</p>
<div style="float:right"><img src="http://aeroquartet.com/img/dumpsterMkIII.png"></div>
<p>Surprise, our moov atom is a valid! Complete with 3 tracks (video, audio, timecode) and metadata.<br />
This explains why the corrupt video file opens: the valid moov atom at the beginning of the file contains all the information required to configure the movie and the tracks, so QuickTime Player initializes and can start decoding media.</p>
<h2>One Second of Audio</h2>
<p>Now let&#8217;s look at our audio track. It corresponds to the second &#8216;trak&#8217; atom. Tables &#8217;stco&#8217; and &#8217;stsc&#8217; tell us where audio media is fetched. First entry of tables gives us: at address 98312, 48048 samples.</p>
<div style="position:absolute">
<img src="http://aeroquartet.com/img/dumpsterMkIII2.png"><br />
<br/></p>
<div style="width:410px; text-align:justify">Now let&#8217;s look at what we have at this address. Addr 98312 (hexadecimal 0&#215;18008) is just after &#8216;mdat&#8217; atom, and Linear PCM audio data starts here as expected.. Everything happens like in a valid movie file.</div>
<p><br/></p>
<pre style="font-size:10px">
0018000: 0bd1 afd4 6d64 6174 0b0c 0b0c bc0b bc0b  ....mdat........
0018010: 780b 780b 9b0b 9b0b 390b 390b 190a 190a  x.x.....9.9.....
0018020: 0109 0109 0d08 0d08 3507 3507 e106 e106  ........5.5.....
0018030: 3507 3507 4d07 4d07 a506 a506 b006 b006  5.5.M.M.........
0018040: 8007 8007 9607 9607 f706 f706 9306 9306  ................
0018050: 4b06 4b06 8b05 8b05 cf04 cf04 3a04 3a04  K.K.........:.:.
</pre>
</div>
<h2 style="clear:both">Black Video</h2>
<p>Now let&#8217;s looks at first video entry: Address is correct, but length is not. This explain the black image: H.264 cannot be correctly decoded. If you dig deeper, you see that audio and video tables don&#8217;t correspond to actual data inside the file. Maybe those tables refer to the last recorded video.</p>
<p>If you look at more corrupt videos, the same facts hold true. Everything can finally be explained: </p>
<ul>
<li>A fixed-length &#8216;moov&#8217; atom is written at the beginning of the file. This is why it can be open. </li>
<li>Audio and Video tables are wrong. This is why video is corrupt.</li>
<li>But since first Audio block is always at the same address, and has same length, it&#8217;s correctly reproduced.</li>
</ul>
<h2>What it tells about Canon 5D Mark III firmware</h2>
<p>Canon Mk III firmware writes a placeholder &#8216;moov&#8217; atom at the beginning at the file, then writes media data (video and audio) while camera is recording. This placeholder is not empty, it could actually be the same &#8216;moov&#8217; as in the last recorded video.</p>
<p>When recording ends, the camera overwrites the placeholder with real &#8216;moov&#8217; atom containing good media tables.</p>
<p>If this last operation doesn&#8217;t complete, the video is corrupt.</p>
<p>Cameras usually write the &#8216;moov&#8217; atom at the end of the file: Data is written in the same order as it is produced. But Canon 5D Mk3 firmware does it different as we have seen. This is possible because camera limitations dictate a maximum &#8216;moov&#8217; atom size, so the corresponding space can be &#8220;booked&#8221; at the beginning of the file (placeholder) and then overwritten.</p>
<p>I can only see one advantage to this: Since &#8216;moov&#8217; atom is at the beginning of the file, the file can be streamed. We talk of fast-start, streamable videos. This is important for Internet applications, but honestly I don&#8217;t see how this matters for Canon 5D workflows.</p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2013/01/09/canon-5d-mk-iii-video-files-playing-only-first-second-of-audio-and-black-image" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2013/01/09/canon-5d-mk-iii-video-files-playing-only-first-second-of-audio-and-black-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple&#8217;s new Fusion Drive and Video Repair</title>
		<link>http://aeroquartet.com/wordpress/2012/10/25/apples-new-fusion-drive-and-video-repair/</link>
		<comments>http://aeroquartet.com/wordpress/2012/10/25/apples-new-fusion-drive-and-video-repair/#comments</comments>
		<pubDate>Thu, 25 Oct 2012 20:56:49 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=311</guid>
		<description><![CDATA[One of the most exciting announcement during Apple Oct. 23 event was the &#8220;Fusion Drive&#8221;: A mix of solid state drive (SSD) and mechanical hard disk, that brings the best of the two worlds: High-speeds of SSDs and high-capacity of HDDs.
How the &#8220;magic&#8221; works is explained here.

The Catch
But if you read Apple&#8217;s technical note, you [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most exciting announcement during Apple Oct. 23 event was the &#8220;Fusion Drive&#8221;: A mix of solid state drive (SSD) and mechanical hard disk, that brings the best of the two worlds: High-speeds of SSDs and high-capacity of HDDs.</p>
<p>How the &#8220;magic&#8221; works is explained <a href="http://www.macobserver.com/tmo/article/digging-into-fusion-drive-details">here</a>.</p>
<div align="center"><img src="http://aeroquartet.com/img/fusiondrive.jpg" alt="Fusion Drive and Video"></div>
<h2>The Catch</h2>
<p>But if you read <a href="http://support.apple.com/kb/HT5446?viewlocale=en_US&#038;locale=en_US">Apple&#8217;s technical note</a>, you will see that this doesn&#8217;t work great for high-speed  video capture.</p>
<p>My understanding is that high-speed, high-volume writing operations have a serious bottleneck, because when the 4 GB SSD write cache is full, it has to be moved to the hard disk, and this causes some latency that probably drops frames during video capture.</p>
<h2>Video Repair?</h2>
<p>How does it affect video repair?</p>
<p>Video capture limitations will probably keep video professionals away from those Fusion Drives, at least for video capture. High-throughput Thunderbolt drives are a better fit. </p>
<p>But Fusion Drives will become mainstream among casual users. I fear that this will make our video repair job harder, in particular for <a href="http://aeroquartet.com/movierepair/deepmediascan">DeepMediaScan</a> jobs. (DeepMediaScan is used when footage is not found inside files, but scanned directly on disk)</p>
<p>With traditional disks, footage is written sequentially as the disk fills up, so it&#8217;s possible to for DeepMediaScan to extract it consistently.<br />
In a Fusion Drive, it&#8217;s more complex. Footage is written to an SSD cache and then, maybe it&#8217;s transferred to the hard disk, or maybe not. In the end, there is more fragmentation, and footage recovery is more challenging.</p>
<p>As soon as I get get my hands on a Mac with a Fusion Drive, I will carry out repair tests and provide advice about Fusion Drive usage.</p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2012/10/25/apples-new-fusion-drive-and-video-repair/" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div>
<p><br/> </p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2012/10/25/apples-new-fusion-drive-and-video-repair/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stop Whining and Start Measuring</title>
		<link>http://aeroquartet.com/wordpress/2012/10/20/stop-whining-and-start-measuring/</link>
		<comments>http://aeroquartet.com/wordpress/2012/10/20/stop-whining-and-start-measuring/#comments</comments>
		<pubDate>Sat, 20 Oct 2012 10:24:09 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=305</guid>
		<description><![CDATA[Last month, I have started to collect data about how visitors are browsing our website. Just standard analytics at work here.
First surprise: 40% of Treasured downloads are from Windows users, who will obviously never be able to run our Mac video recovery app.
Despite clearly stating on the website that this is a Mac app, a [...]]]></description>
			<content:encoded><![CDATA[<p>Last month, I have started to collect data about how visitors are browsing our website. Just standard analytics at work here.</p>
<p><strong>First surprise:</strong> 40% of Treasured downloads are from Windows users, who will obviously never be able to run our Mac video recovery app.</p>
<p>Despite clearly stating on the website that this is a Mac app, a lot of Windows people is reaching the big Download button. This is not cluelessness, just the standard practice in a &#8220;we don&#8217;t read, we scan&#8221; world.</p>
<div align="center"><img src="http://aeroquartet.com/img/analytics.jpg"></div>
<p><strong>Second surprise:</strong> Among Mac people with a fresh copy of Treasured just downloaded, only 60% perform a diagnostics on a damaged video. In other words, 40% never get any value from the software.</p>
<p>I could give more examples. Every time I have measured a new metric related to our repair service use, I have discovered that it was grossly inefficient.</p>
<p>The most amazing thing: Those problems are usually very easy to fix. You can just add a warning for Windows guys trying to download Treasured and redirect them to MP4repair.org, for example.</p>
<p>This is a real eye-opener. Don&#8217;t start working on hard problems until you get the basic stuff right. </p>
<p>The Secret: Measuring</p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2012/10/20/stop-whining-and-start-measuring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to School Update</title>
		<link>http://aeroquartet.com/wordpress/2012/09/04/back-to-school-update/</link>
		<comments>http://aeroquartet.com/wordpress/2012/09/04/back-to-school-update/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 19:43:34 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[Movie Repair]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=295</guid>
		<description><![CDATA[All Aero Quartet crew members are now back to work!
This summer has been long and hot as usual, but we managed to keep the boat afloat (despite a  small breach during last week end).
Video Repair Backlog
We have about 30 cases pending. This is roughly the same volume as last year, and it took us [...]]]></description>
			<content:encoded><![CDATA[<p>All Aero Quartet crew members are now back to work!</p>
<p>This summer has been long and hot as usual, but we managed to keep the boat afloat (despite a <a href="http://mp4repair.org/blog/2012/09/04/website-outage/"> small breach during last week end</a>).</p>
<h3>Video Repair Backlog</h3>
<p>We have about 30 cases pending. This is roughly the same volume as last year, and it took us around 10 days to go back to normal.</p>
<p>This is now our priority. Our apologies to people who are still waiting.</p>
<h3>Treasured 2.7</h3>
<p>New <a href="http://aeroquartet.com/movierepair/download.html">Treasured 2.7</a> has been released in early August:</p>
<ul>
<li>Preview for Canon EOS 5D Mark III corrupt videos</li>
<li>Fixed small problems with OS X Mountain Lion</li>
<li>Improved support for iPhone 4S, REDCODE, AVCHD, and IMX video formats</li>
</ul>
<h3>Projects</h3>
<p>We also want to finish important stuff before Xmas:</p>
<ul>
<li>Our video repair service is being localized in 2 new languages</li>
<li><a href="http://simplemoviex.com/SimpleMovieX/">SimpleMovieX</a> update for Mountain Lion</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2012/09/04/back-to-school-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Slow Agony of QuickTime 7</title>
		<link>http://aeroquartet.com/wordpress/2012/07/15/the-slow-agony-of-quicktime-7/</link>
		<comments>http://aeroquartet.com/wordpress/2012/07/15/the-slow-agony-of-quicktime-7/#comments</comments>
		<pubDate>Sun, 15 Jul 2012 12:45:26 +0000</pubDate>
		<dc:creator>Benoit Joossen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://aeroquartet.com/wordpress/?p=286</guid>
		<description><![CDATA[With Mac OS X 10.7.4 update, QuickTime 7 (and all apps using good old QuickTime API) is showing green screen on paused H264 videos. QuickTime X behaves correctly.

This problem is affecting on a daily basis thousands of people still using QuickTime for mission-critical video tasks, but was not considered important enough by Apple to be [...]]]></description>
			<content:encoded><![CDATA[<p>With Mac OS X 10.7.4 update, QuickTime 7 (and all apps using good old QuickTime API) is <a href="https://discussions.apple.com/thread/3949174?start=0&#038;tstart=0">showing green screen on paused H264 videos</a>. QuickTime X behaves correctly.</p>
<div align="center"><img src="http://aeroquartet.com/wikim/images/qt-agony.png" alt="QuickTime 7 problems no longer fixed" /></div>
<p>This problem is affecting on a daily basis thousands of people still using QuickTime for mission-critical video tasks, but was not considered important enough by Apple to be solved during 10.7.4 development.</p>
<p>One year after Final Cut X getting free of its QuickTime roots, does this mean the Apple no longer cares about QuickTime legacy? Sure, QuickTime 7 stills runs on Mac OS X 10.8, but it&#8217;s safe to bet that future OS X releases will not support 32-bit technologies, and this will automatically put the nail on the QuickTime API coffin.</p>
<p>As a vendor relying heavily on QuickTime API, this is a top concern. We have already taken the first steps to cut our dependency on the 21 years old technology that brought multimedia to computers. Our services and apps are being rewritten to be platform-agnostic and we think that by 2013 we will be ready.</p>
<div class="fb-like" data-href="http://aeroquartet.com/wordpress/2012/07/15/the-slow-agony-of-quicktime-7/" data-send="false" data-layout="button_count" data-width="160" data-show-faces="false"></div>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://aeroquartet.com/wordpress/2012/07/15/the-slow-agony-of-quicktime-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
