Skip to content
Amarghosh Vadakkoot edited this page Jun 20, 2023 · 4 revisions

MP4Viewer is an ISO base media file format viewer. It parses the isobmf file and displays the metadata on the console or in a separate window. This was developed to analyze mp4 movie metadata while working on media playback.

The definitions of structures used in the code can be found in the publicly available standard ISO/IEC 14496-12 - ISO base media file format

Usage: cd into src folder and run

$ ./showboxes.py [-h] [-o {stdout,gui}] [-e] [-c {on,off}] iso-base-media-file

Positional arguments:
  iso-base-media-file   Path to iso media file

Optional arguments:
  -o {stdout,gui}       Select output format (console or windows). Default is console.
                        TODO: Add XML output
  -c {on,off}           Turn on/off colors in stdout; on by default.
  -e                    Long arrays such as sample sizes are truncated by default.
                        This flag expands them.
  -h, --help            Help!

MP4Viewer uses gtk in graphics mode and requires that pygtk3.0 be installed in the system for viewing results in a window. On MacOS, you can install it using brew install pygobject3

For more info, contact the author at amarghosh at gmail dot com

Clone this wiki locally