Hah: This is going to be fun.
First, you're going to have to be reading in binary mode.
Second, you're going to have to scratch of up on little and big endian notation.
Third, you'll find out the strpos etc completely aren't binary safe.
My recommendation?
Do a GFY search on my name, find where I posted my movie anti-piracy script.
It's got a bunch of classes written exactly for this: loading a movie, and doing binary searches inside the movie, and pulling out data.
That will probably sold your problem entirely.
|