DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   Canon EOS Full Frame for HD (https://www.dvinfo.net/forum/canon-eos-full-frame-hd/)
-   -   Tool for processing corrupt Quicktime files (https://www.dvinfo.net/forum/canon-eos-full-frame-hd/239302-tool-processing-corrupt-quicktime-files.html)

Tramm Hudson July 19th, 2009 02:36 PM

Tool for processing corrupt Quicktime files
 
I have a Quicktime from my 5D that was corrupted by my code trying to adjust timing parameters while recording. It won't open in the camera, nor in any of the usual tools, including the very forgiving VLC. Does anyone have any suggestions for tools that will allow recovery of the frames near the end of the file to verify the fps?

Sample corrupt file, featuring a watch face with a second hand to verify correct timing.

Tom Daigon July 19th, 2009 03:42 PM

AE No Go
 
Tramm, I tried opening it with After Effects CS3 which is my go to swiss army knife for problematic files (and way cool effects). No go. It said the file was unrecognizable. Same for FCP and Quictime.
(Dont forget about 29.97 ;-) )

Dan Chung July 19th, 2009 05:52 PM

Tramm,

Will the file play in the camera?

Dan

Tom Daigon July 19th, 2009 06:31 PM

"It won't open in the camera, nor in any of the usual tools..."

A quote from Tramm.

Tramm Hudson July 19th, 2009 06:32 PM

Quote:

Originally Posted by Dan Chung (Post 1173771)
Will the file play in the camera?

No, unfortunately not.

I'm trying to figure out if anything has actually changed in the recording or if my code only messed up the Quicktime header, before I spend too much time chasing down the code that uses those parameters in the mvr_struct.

Chris Barcellos July 19th, 2009 06:53 PM

Can't seem to download the file, to check it out, but the title it is showing is getting me fired up.... !! I didn't think you were trying to go there yet..... Is there a limit to download activity on that site ? Wonder if Youtube or Vimeo could convert it. I would try a cineform coversion if I could down load it.

Tom Daigon July 19th, 2009 09:13 PM

It downloaded just fine for me, but as I said the tools I use for troublesome video could
not open it and gave an error of unknown file type.

Ray Bell July 20th, 2009 05:17 AM

There may be some info in this thread that might help...

http://www.dvinfo.net/conf/cineform-...ge-please.html

Robert Esmonde July 20th, 2009 06:17 AM

Tramm,

don't want to overburden you with links but found this and thought it might help.

web3null: how to fix a broken quicktime mov file

Jay Bloomfield July 20th, 2009 09:06 AM

I'd start with looking over the QT file format specification:

http://developer.apple.com/documenta.../qtff/qtff.pdf

and then downloading one of the freeware QT metadata editors/viewers. Since there are a number of them for both PCs and Macs, you best bet is to use Google to suit your OS. The next step would be to examine all the various atoms and entries for the video track and see if you see any problems. It also may be possible to change key entries in the trak atom, such that the corrupted frames are not read.

Have you tried QT Player Pro? Sometimes that will read MOV files with corrupted entries. VLC and most other players usually just give up and show no video window.

Thomas Richter July 20th, 2009 05:32 PM

Robert and Jay,
thank you very much for your input. I used it to modify the file in a Hex editor (fix atom length) and then copy and paste the media data (so called moov box or moov Atom) into the file.

It opens fine now!!! The disappointment was that it showed blank (dark green screen in Quicktime, white in TMPEG Enc).

I don't have a 5D, so if anyone has, it would be great if someone could make a file with c.a. 40 mb available, then I could paste perfectly fitting media data (clip length wise). I had to use the media info from a much smaller file.

Tramm,

does that mean you are beginning to play with the framerates? I totally missed this thread based on it's comparatively low-key title.

If you intend to corrupt more files in future I may be able to code you a small fixing software ;)


If someone else is interested reproducing the fix: (WARNING - very geeky)
Correct the first unsigned Int32 specifying the length of the second Atom to match the file length minus the length of the first Atom (first Atom has a length of 24 bytes). So from the 25th byte it should read 00 00 00 08 and changed to 02 AF 01 87.
Then paste the media data (moov Atom) of another 5D file at the end. Try to get one that is close in size or slightly smaller.

So when you are done, the file should have three atoms: FTYP, MDAT and MOOV


Will post the file tomorrow (it's very late here in Europe now).

Thomas

Tramm Hudson July 20th, 2009 06:11 PM

Quote:

Originally Posted by Thomas Richter (Post 1174185)
does that mean you are beginning to play with the framerates? I totally missed this thread based on it's comparatively low-key title.

It was deliberately low-key to avoid getting everyone's hopes up. While looking for something related to bracketing I saw code in the mvrRecStart() function that used a value in the mvr_struct to write values into the Quicktime header (and maybe the DIGIC engine). The tantalizing bits were that the computed values were 3000/100 == 30.00, 30000/1001 = 29.97 and 5994/100 = 59.94.

So I added some code that wrote new values into the structure when movie recording started to see if it would do the right thing. It still isn't clear if it did it or not, or if this is even the route to go down for adjusting the frame rate. There are lots of places where fps==30 seem to be hardcoded (like in mvrRecstart() and SetVideoInformation()).

Chris Barcellos July 20th, 2009 08:10 PM

Finally downloaded.

Corrupt in Cineform, won't convert.

Corrupt in Virtual dub

Currupt in Vegas.

Jay Bloomfield July 20th, 2009 08:23 PM

I just checked the file with QT Atom Viewer and the mdat atom is corrupt. Everything beyond that in the file cannot be read properly, because the length of each atom entry is stored with each atom and if the length doesn't match the atom's actual data length, the entire atom is corrupt.

If the MOV file metadata is corrupt, you are stuck using a hex editor (I use HHD Neo). Else, Apple's own Dumpster is the best way to edit MOV files, on a PC, except for Vista x64.

Tom Daigon July 20th, 2009 08:30 PM

It sounds like Thomas & Jay maybe on to something that addresses things more at a software level rather then the variety of apps we have all tried with no success.


All times are GMT -6. The time now is 07:10 PM.

DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network