How can I view the "code" of a .mp4 video file?

Matt picture Matt · Oct 8, 2015 · Viewed 8.9k times · Source

I know that my terminology is not correct, but I am a complete novice when it comes to video.

I have a regular .mp4 video file. I use MP4Box to segment the video file so I can play it back using a video player that supports MPEG dash. It is not segmented by creating multiple smaller video files. It creates a new, large video file that is a bit larger than the old video file.

I want to compare the regular video file with the dashed video file and see what MP4Box does to it to segment it. I believe that it is adding some type of header to the new video file. Obviously when I open it up in a text editor, it is unreadable. How can I go about comparing these files?

Answer

Daniel picture Daniel · Oct 12, 2015

Using a hex editor would be one way, but there are also tools which are more convenient. In my opinion, isoviewer is the best of them as it reads even segmented files. Also the hex representation is displayed. It is a Java application and hence works on Mac, Windows, and Linux.

Your resulting video might be bigger as e.g. a sidx box needs to be present if you use one "internal segmented" file instead of physically chunked files.

You could also create physical chunks by using -segment-name segment_ in your MP4Box command, as described in this blog post. It creates chunks named segment_NUMBER, i.e. segment_1.m4s, segment_2.m4s, etc.

If you want to create MPEG-DASH content without hassle, you could also use platforms like zencoder or bitcodin, which also offers a free plan.