By PatrickE
I apologize this my be very scattered because I frankly don’t have any idea where to begin and I have had trouble sleeping lately.
Theres a code in HEX form “00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20” that reappears every few 100 K it can be 300 or 700 in a file. The main files are around 2GB.
So there are a lot of these separate files.
I have been searching for a code to split the file at every occurrence of “00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20”.
00 00 01 BA ** ** ** ** ** ** ** ** C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20.
* = Random digit.
C3 F8 00 00 01 BB 00 12 80 C4 E1 00 E1 7F B9 E0 E8 B8 C0 20 – bits are necessary to stay the same. The first 12 bits do need to be included but can be random.
Back Story to problem:
I have a 500GB HD that had a 40GB HFS+ partition that i was using to transfer files from an old Dell PC to my Mac. Well I needed to reformat it I no longer remember why.
Well somehow the partition map got messed up and instead formatted the HFS 450GB partition. Which had all my home videos on it.
I found an application called disk drill and used that to recover all the data.
I am not sure if everything was found but it seems like it may have reconstructed the important stuff.
My problem with resolution:
Well the videos are all jumbled up, bits and pieces of Mpeg2 videos are mixed together.
I figured out where the files need to be split via a app called HEX Fiend.
And turns out there is a type of timecode used in the mpeg 2 files binary data. So using that I was able to correct 2 video files. Took me a week.
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

