MP4 Box Explorer is a readonly VS Code custom editor for inspecting MP4, M4S, and fragmented MP4 files. It parses ISO Base Media File Format box structure with mp4box and displays the result as a searchable, expandable tree inside VS Code.
Use it when you need to quickly inspect media file structure, offsets, sizes, nested boxes, and parsed field values without leaving your editor.
- Opens
.mp4and.m4sfiles in anMP4 Box Previewcustom editor. - Shows box type, box name, size, byte offset, parsed fields, and nested child boxes.
- Filters boxes by type, name, property name, property value, or parsed binary value.
- Expands and collapses the full box tree for faster navigation.
- Summarizes binary fields as hex, ASCII, integer values, and FourCC guesses where useful.
- Copies parsed property values or raw hex values from the preview.
- Uses VS Code theme colors so the preview follows your active editor theme.
.mp4.m4s
The extension is intended for MP4-family files that can be parsed by mp4box, including fragmented MP4 content.
Install MP4 Box Explorer from the Visual Studio Code Marketplace, then open an .mp4 or .m4s file in VS Code.
If you are installing a local .vsix build instead:
code --install-extension mp4-box-explorer-<version>.vsix- Open an
.mp4or.m4sfile in VS Code. - If VS Code prompts for an editor, choose
MP4 Box Preview. - Use
Expand all,Collapse all, and the filter field to navigate the parsed box tree. - Use field-level
Copyactions to copy displayed values or raw hex values.
MP4 Box Explorer reads the selected media file from your local workspace so it can parse and render the box tree. It does not send file contents, file names, paths, telemetry, or usage data to any external service.
- The preview is readonly; it does not edit, repair, rewrite, or export media files.
- Parsing runs in the extension host and reads the selected file into memory, so very large files may be slow or memory-intensive.
- Parser coverage and box field names come from
mp4box. - Invalid or partially supported files may only show boxes parsed before a parse warning occurred.
Requirements:
- Node.js compatible with the dependencies in
package-lock.json. - VS Code
1.100.0or newer.
Common commands:
npm install
npm run check
npm run compile
npm run watch
npm run packageTo publish the extension, make sure you are authenticated for the REDspace publisher and run:
npm run publishDebugging:
- Open this folder in VS Code.
- Run
npm install. - Start the
Run Extensiondebug configuration. - In the Extension Development Host window, open an
.mp4or.m4sfile.
Contributions are welcome. See CONTRIBUTING.md for development setup, verification steps, and pull request guidelines.
MIT. See LICENSE.