Hello.

I have a corrupt h264 mp4 video which does not have a moov file.
I can reconstruct the moov file manually by looking into the mdat atom and using a hex editor to find all the video and audio heuristics relating to start and stop NAL code and also other things like chunk_offset.

I am also comparing moov data from another non-corrupted video file produced from the same camera. This is making things easy to reconstruct the moov file manually for the corrupted mp4 video.

I was able to find about 90% of all of the chunk_offset values in the mdat atom of the corrupted file which does not have the moov file using the hex editor using heuristics.

Now how can I add these chunk_offset values into the co64 atom? 
I extracted the co64 atom using mp4extract but have no idea how to modify the values, the hex editor can not recognize any texts of numbers or what not that embeds the chunk_offset's values... maybe I need to change the character encoding?

Here is what the hex editor shows (I'm using "imhex" editor):

![hex-mp4](https://user-images.githubusercontent.com/61344181/224529783-0231b21b-7d2f-48ea-8209-8b378e665ade.jpg)

Thanks.
How can I change the values for stco's "chunk_offset"?
This is a GitHub Issue
repo:Bento4
owner:axiomatic-systems
Title : How can I change the values for stco's "chunk_offset"?
Issue date:

--- start body ---
Hello.

I have a corrupt h264 mp4 video which does not have a moov file.
I can reconstruct the moov file manually by looking into the mdat atom and using a hex editor to find all the video and audio heuristics relating to start and stop NAL code and also other things like chunk_offset.

I am also comparing moov data from another non-corrupted video file produced from the same camera. This is making things easy to reconstruct the moov file manually for the corrupted mp4 video.

I was able to find about 90% of all of the chunk_offset values in the mdat atom of the corrupted file which does not have the moov file using the hex editor using heuristics.

Now how can I add these chunk_offset values into the co64 atom? 
I extracted the co64 atom using mp4extract but have no idea how to modify the values, the hex editor can not recognize any texts of numbers or what not that embeds the chunk_offset's values... maybe I need to change the character encoding?

Here is what the hex editor shows (I'm using "imhex" editor):

![hex-mp4](https://user-images.githubusercontent.com/61344181/224529783-0231b21b-7d2f-48ea-8209-8b378e665ade.jpg)

Thanks.
--- end body ---
