How to open first n bytes of file in hexadecimal and edit it?

Posted by Larssend on Super User See other posts from Super User or by Larssend
Published on 2011-06-26T13:57:43Z Indexed on 2011/06/26 16:24 UTC
Read the original article Hit count: 286

Filed under:
|
|

I want to edit some .avi videos (cut them, to be precise) in VirtualDub but it failed to open the files. They are encoded in xvid, which I have installed, and play in KMPlayer without problem. Also, all other xvid videos can be opened and cut just fine by VirtualDub.

I suspect there's something wrong in the first few bytes of these particular videos (the magic number?). This means I have to open the offending files in a hex editor and make some necessary adjustments to the header. Problem is, they are very large (> 3 GB each) and take very long time to open in UltraEdit.

Can UltraEdit open just the first few bytes of a file? If not, do you know of an application that can do that?

Edit: I'm using Windows XP.

© Super User or respective owner

Related posts about headers

Related posts about hex-editor