Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 237
Matt Avatar asked Oct 08 '15 18:10

Matt


People also ask

How can I see the code of an MP4?

You may need to right-click the video title and select Play with VLC Media Player, if VLC is not your default video player. Once the video starts, select Tools > Codec Information. Here, you'll see the codec for the video.

Does MP4 have metadata?

MP4 files can contain metadata as defined by the format standard, and in addition, can contain Extensible Metadata Platform (XMP) metadata.


1 Answers

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.

like image 200
Daniel Avatar answered Oct 11 '22 13:10

Daniel