- repairing corrupt mp4 (and jpeg) video files
- Posted by GS on September 22nd, 2007
I was on vacation and was using my Sony DSC M1 camera, which was showing
low battery, but this is usually not a problem, just use it sparingly
and you can often squeeze a few extra pictures and some short video
clips from it.
Except this time, and as luck would have it, they are pictures and video
of my youngest 2 girls catching their first fish. I took a few stills
and they showed fine on the cameras lcd, and also a few short clips.
However when I went to view them later on the camera after I got back to
civilization and recharged it none of the cameras or pictures or video
would show up. the file were there with what looked like the proper file
sizes so I downloaded them to my laptop. One jpeg shows up on a preview
screen when showing thumbnails but will not load. The others dont show
anything, same with the mp4 files, even though the files are there and
the sizes look ok.
I am assuming that some header information is missing or something like
that. At the least I'd like to recover the jpegs, I though they would be
easier but everything I've tried has yielded no results. The mp4 files I
would really like to get, as your kids first fish is a special moment.
This one especially because my 7 yr old hooked a 2lb trout, which is a
monster in this particular creek, and was hanging on to the rod for dear
life fighting the fish and the current while I was catching it on video.
So, anyone know of good utilities that may recover all or some of these
files? Or a place that will do it for me? These are special enough to me
I'll pay someone to do it if there is no utility out there that will do
it. I recall reading some time back about an mp4 utility that would at
least let me get the video out of the files, which is better than nothing.
thanks in advance
- Posted by Frank on September 22nd, 2007
On Sat, 22 Sep 2007 06:55:37 GMT, in 'rec.video.desktop',
in article <repairing corrupt mp4 (and jpeg) video files>,
GS <GS@canada.com> wrote:
From the headers of your message, I assume that you're a Windows user.
Therefore, most all of the specifics of what I've written below are
based upon this premise. If you're a Mac user, the same general
principles apply, but you would be using different software.
Having dealt with data loss/corruption on Memory Stick PRO Duo media
(I do a lot of PSP work), the absolute first thing that you should do
is *not* to write any further files on the card. Preserve the card as
it is, such as if it contained critical evidence in an important legal
proceeding and you needed to turn the card over for a formal forensics
analysis.
I would strongly suggest that you start by checking the integrity of
the card's file system. If you have a computer - notebook or desktop -
that has a card slot that accepts Memory Stick PRO Duo cards that's
great. Else, perhaps you have a USB card reader that accepts Memory
Stick PRO Duo cards.
I use an old SanDisk model SDDR-107 MobileMate MS+, although the newer
model SDDR-108 will also do the job just fine. Here are some links.
SanDisk model SDDR-107 MobileMate MS+ at Amazon (J&R)
http://www.amazon.com/SanDisk-MOBILE.../dp/B00064V6XK
SanDisk model SDDR-107 MobileMate MS+ at J&R
http://www.jr.com/JRProductPage.process?Product=4015471
SanDisk model SDDR-108 MobileMate Memory Stick Plus at SanDisk
http://www.sandisk.com/Products/Item...lusReader.aspx
You can also probably pick up a suitable reader locally, which would
be faster than ordering over the Net.
What you want to do is connect the card to your computer either via a
built-in card slot or through the use of a USB reader/adapter similar
to one of the ones that I've just mentioned. Do not insert the card
into the camera and then connect the camera to the computer. Use the
direct-attach method with either a built-in card slot or a USB card
reader/adapter. We want to take the camera out of the equation.
Once the card is directly attached to your computer and recognized by
Windows, the operating system will dynamically assign a drive letter
(E:. F:, etc.) to the media so that you can access it via ordinary
Windows applications.
The first step is to see if Windows Explorer (explorer.exe) is happy
with the card. See if Windows Explorer can properly display the
directory structure, list of files, etc.
Then run either ChkDsk (Check Disk) or ScanDisk - depending upon your
version of Windows - on the card and see if it reports any errors in
the file system. If no errors are reported, the probability of
successful file recovery is good, but not guaranteed, unfortunately,
as some individual files may be corrupt even though the file system is
intact.
If ChkDsk/ScanDisk reports errors, then you have to make an important
decision at this point: do you tell ChkDsk/ScanDisk to repair the
errors and then attempt file recovery operations, or do you go
directly to the file recovery step, knowing that you're dealing with a
corrupt file structure.
This is an important decision because if ChkDsk/ScanDisk repairs file
system errors, you may lose all possibility of recovering *any* files
off of the media including, possibly, files which are perfectly okay
and have no internal errors whatsoever.
You will have to make this choice. I cannot advise you on this. If I
had your card in my physical possession and were being paid ($) to
recover your files, I know what I would do, but that's not the
situation here; I'm merely offering free advice to you based upon my
personal experience.
After you make this decision and you're done with ChkDsk/ScanDisk, you
might want to use Windows Explorer and/or command line interface (CLI)
Copy commands to try to copy individual files off of the Memory Stick
and onto your computer's hard disk drive (HDD).
Note: be certain to do a Copy operation and not a Move operation, as
you don't want to write to the card until you've completed the entire
recovery process. This is especially true if ChkDsk/ScanDisk reported
errors and you choose not to correct them.
Once you've got some files on your HDD, try to open and display them
in various applications to determine whether or not the files are
corrupt.
Checking the individual files in multiple applications is a good idea
because some applications will ignore certain errors and display a
"bad" (slightly damaged) file, thus lulling you into believing that
the file is fine when in fact it's not. And then you don't discover
the problem until a month later when you try to use the file in some
other application and receive an error message that the file is
corrupt, damaged, not a valid file, unrecognized, etc. when you try to
open it. Meanwhile, you've formatted the Memory Stick and no longer
have access to the original file so as to attempt to conduct a proper
recovery.
Most likely, you'll be able to successfully recover some files using
this copy method, but some will turn out to be corrupt, even if you
were able to copy them without any error messages appearing during the
copy operation. For those files, I would suggest use of a software
recovery approach.
Although there are lots of data recovery programs out there, here are
two that I can recommend. One is a free download called PC Inspector
Smart Recovery from Convar of Germany.
http://www.pcinspector.de/Sites/smar...htm?language=1
The other is a collection of utility/recovery programs offered by Sony
for working with Memory Stick flash memory cards. I have a copy of
this software suite, but don't recall from where I got it, else I'd
post a link (they may have come off of a CD that Sony sent to me, I'm
not sure - and I'm still on my first cup of coffee). If you want a
copy, please contact me via e-mail and I'll see what I can do for you
(no charge).
Note that generally speaking, it will be easier to recover .jpg image
files than .mp4 movie files.
Commercial data recovery services can be expensive. A top example is
Kroll and their Ontrack division.
Kroll
http://www.kroll.com/
Kroll/Ontrack
http://www.krollontrack.com/
Ontrack Data Recovery
http://www.ontrackdatarecovery.com/
Kroll/Ontrack has locations worldwide and does quality work. Back in
July 2006, Kroll acquired a company called Homeland Solutions, which
offers an interesting variety of courses.
http://www.homeland-solutions.net/Co...scriptions.htm
The folks at Convar (mentioned above) are also good, having done data
recovery work for the NSA.
http://www.convar.de/
I realize that these JPEGs and MPEG-4 files are important to you, but
in this case I would recommend self-recovery rather than engagement of
a commercial data recovery service.
Hope that this helps, and good luck!
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).
- Posted by Steve King on September 22nd, 2007
"Frank" <frank@nojunkmail.humanvalues.net> wrote in message
news:0ks9f3dnbbqk317s5o8usp6ippt5sufbse@4ax.com...
What a cool newsgroup this is! While I'm generally familiar with the
operations you describe, I'm going to add this post to my searchable
computer stuff document. Thanks for taking the time to post such a
comprehensive reply to the OP.
Steve King
- Posted by GS on September 22nd, 2007
Frank wrote:
But I am a bit discouraged after reading it, here's why:
Because we were in a locatio where getting another MSPro card on short
notice was out of the question, I had to copy the unreadable files over
to my laptop and continue using the card for vacation pictures. I don't
use the sony software for transfer, I just use windows explorer to copy
them. In hindsight I realize I should have left the files on as there
was probably enough room on the 2gb card for the rest of our holiday,
but I deleted them once they were on my laptops hdd and that is where
they sit.
I have put the msp card in the card reader in my epson printer since
then and ran several file recovery programs on it, as well as the bad
files on my hdd, all to no avail. The various programs I tried found
hundreds of older files on the msp media, but not the bad files.
I'm pretty sure a file repair is more what I need than a file recovery.
Right after I got home I read a forum thread somewhere (unfortunatly
forgot to bookmark it) about this very thing and someone had said there
are some programs out there that allow you to go in an "spoof" the
header info in the jpegs, as that is what the files are likely missing.
There was also an mp4 utility I am still trying to find info on that
would import a corrupt mp4 file and strip out the video stream. IIRC it
was on the 3ivx page but it seems down for some reason.
In any case, thanks again for all the great info, I'll start checking
into it and see what I can find out.
- Posted by Frank on September 22nd, 2007
On Sat, 22 Sep 2007 09:30:08 -0500, in 'rec.video.desktop',
in article <Re: repairing corrupt mp4 (and jpeg) video files>,
"Steve King" <steveSPAMBLOCK@stevekingSPAMBLOCK.net> wrote:
You're welcome, Steve. Although I was NOT awake when I wrote what I
did, I just hope that it can help the OP. I'm a bit concerned that the
OP said that "the files are there and the sizes look ok". Makes me
wonder if the camera was functioning properly. Some devices act
strangely when battery power gets low. That's why I had some concern
with regard to file system corruption.
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).
- Posted by Frank on September 22nd, 2007
On Sat, 22 Sep 2007 17:55:04 GMT, in 'rec.video.desktop',
in article <Re: repairing corrupt mp4 (and jpeg) video files>,
GS <GS@canada.com> wrote:
You're quite welcome.
Oh, oh, and oh.
Yes, that's understandable. Not all of those deleted files are
recoverable, though, since the space that they once occupied may have
since been allocated to other (newer, more recently created) files. If
the bad files didn't show up, then chances are that they've been
overridden.
Agreed, and I don't really have an application to suggest to you.
Okay, and again, good luck to you on this.
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).
- Posted by Frank on September 22nd, 2007
On Sat, 22 Sep 2007 17:55:04 GMT, in 'rec.video.desktop',
in article <Re: repairing corrupt mp4 (and jpeg) video files>,
GS <GS@canada.com> wrote:
Forgot to mention, with regard to future use of the card in question,
I would recommend connecting it directly to your computer via either a
built-in card slot or one of the USB card reader/adapters that I
mentioned (instead of in a printer) and running either ChkDsk (Check
Disk) or ScanDisk on it to see if any errors are reported. If the card
has a corrupt file system, you don't want to use it for saving photos
or videos.
Also, once you've gotten all of the files that you want/need off of
the card, you should probably reformat it in the camera, not on your
computer, before using it again.
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).
- Posted by GS on September 23rd, 2007
Frank wrote:
thanks - I have a little usb adapter for my sd card my Pentax *ist uses,
and they also make one for MSP so I'm going to grab one tomorrow. I did
run chkdsk /f on the disk, and it checks out ok. One other thing I found
out when I was downloading Sonys rescue software for this card was that
it is a (very convincing) knock-off, despite being in a Sony package. It
has worked more or less ok the rest of the time though, but there was
one other jpeg where 1/2 the data is missing. That'll be the last one I
get off of ebay in any case. I'm going to the city tomorrow so I'm going
to pick up another Sony card.
- Posted by Frank on September 23rd, 2007
On Sun, 23 Sep 2007 00:09:45 GMT, in 'rec.video.desktop',
in article <Re: repairing corrupt mp4 (and jpeg) video files>,
GS <GS@canada.com> wrote:
Great. The old SanDisk one that I use (SDDR-107 MobileMate MS+) has
never failed me.
That's good. It means that creating additional files on the card
wasn't a bad thing to do.
May I ask exactly how you were able to determine that the card was a
knock-off? I'd like to know, just for future reference.
I assume that Sony's software stated that it wasn't genuine, possibly
because the MagicGate DRM firmware wasn't correctly implemented? Or
did you try to download from Sony Europe
(http://www.sonydigital-link.com/memstick/downloads/) and it didn't
like the Lot Number that you entered?
I've heard of people purchasing phoney cards - Compact Flash, Memory
Stick, Secure Digital, etc. - off of eBay, but usually what happens,
or so I'm told, is that the cards don't work at all. Apparently, this
card of yours did work, at least up to a point.
Because of all of the PSP-related work that I've done, I've had to buy
a number of Memory Stick PRO Duo cards, but all of them came from a
reputable local dealer (J&R) and were purchased in person by my
assistant, never over the Web, and all of them were either Sony brand
or SanDisk brand, which is essentially the same thing since SanDisk
manufactures the Sony-branded cards for Sony, which is what I suspect
will also be happening with the new PCIe ExpressCard/34 SxS PRO cards
that Sony will be using in their new model PMW-EX1 XDCAM EX camcorder.
If I ever thought even for a moment that buying Memory Stick PRO Duo
cards was a money pit, I know that the SxS PRO cards will be a real
treat. At almost $500 for the 8 GB cards and almost $900 for the 16 GB
cards, it will be like buying Panasonic P2 cards, a disease that I've
managed to avoid.
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).
- Posted by GS on September 23rd, 2007
Frank wrote:
I did a search on "Sony M2GST" after the the sony software download page
kept saying my model number was wrong. 3rd on the search list was this
page:
http://reviews.ebay.ca/FAKE-Sony-Mem...00000001236041
From this article I found out that there was an extra T on the model
number, and how to spot the counterfeits even though they look like they
are in genuine packaging.
Once I downloaded the software it worked on the card just fine though.
Even though mine is a knock off, it seems to work fine, but I'm going to
give it to my son and take my original 1gb card back from him. I'm
heading stateside in a couple of weeks so I'll see if I can pick up a
good deal with our dollar more or less at par, although at Best Buy I
can get a 4gb sandisk for $60 on sale this week.
- Posted by Frank on September 23rd, 2007
On Sun, 23 Sep 2007 17:40:36 GMT, in 'rec.video.desktop',
in article <Re: repairing corrupt mp4 (and jpeg) video files>,
GS <GS@canada.com> wrote:
Thank you for that link. Very informative. There are several people
that I'll be passing it on to.
That Convar software that I previously mentioned (PC Inspector Smart
Recovery) might be worth trying as well.
So you're going to stick your son with the fake stick? Some parent!
(Just kidding.)
I haven't checked prices lately, but I think that sounds good.
--
Frank, Independent Consultant, New York, NY
[Please remove 'nojunkmail.' from address to reply via e-mail.]
Read Frank's thoughts on HDV at http://www.humanvalues.net/hdv/
(also covers AVCHD and XDCAM EX).