Media Info Viewer
Show duration, resolution and bitrate of audio / video files.
What is Media Info Viewer
The Media Info Viewer reads metadata from audio and video files — duration, video resolution and aspect ratio, estimated bitrate, and whether the browser can play it. It uses only the HTMLMediaElement API, so no heavy libraries (like ffmpeg) are needed, and the file is never uploaded (up to 500 MB).
File
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Size limit
- 200 MB
- Offline
- Works with the network disconnected
Read from the container, not by playing the file
The file's MP4 boxes are parsed directly — the moov atom, track headers, timescale and sample tables — so duration, resolution, codec, frame rate and bitrate are available without decoding a single frame. That is why the result appears instantly even for a large file.
A file whose moov atom sits at the end (common for recordings interrupted before finalisation) may report nothing until the whole file is read, and a truncated download will fail to parse. If a player opens a file but this tool cannot read it, the container is damaged rather than the video.
The numbers that explain quality
Bitrate is the honest measure: resolution and codec are settings, bitrate is what was actually spent per second of video. Two files at 1080p can differ by a factor of five in bitrate, and that difference is what you see in fast-moving scenes.
Frame rate interacts with it. Doubling the frame rate at a fixed bitrate halves the bits per frame, so motion looks worse despite the higher number on the spec sheet. That is why 60fps footage at a low bitrate can look worse than 30fps at the same bitrate.
Aspect ratio versus display ratio
Stored dimensions and displayed dimensions can differ: anamorphic content is encoded at one width and stretched by a sample aspect ratio on playback. Reporting only the stored size gives a shape that is not what the viewer sees.
Rotation metadata adds another layer — a phone video is often stored landscape with a rotation flag, so the stored 1920×1080 is displayed as 1080×1920. Any pipeline that resizes by stored dimensions and drops the flag produces a sideways video.
How to use it
- 1.Choose an audio or video file
- 2.Run to read the metadata
- 3.Review or copy the values
How Media Info Viewer works under the hood
Audio and video work on containers and codecs, which are different layers. Extracting audio copies encoded samples; compressing video must decode and re-encode every frame. That difference explains the speed gap between the two tools.
- 1
Demux the container
mp4box reads the MP4 boxes (ftyp, moov, mdat) and exposes the individual tracks without touching their encoded data.
- 2
Extract or decode
Audio extraction copies the AAC samples straight into a new container. Compression decodes each frame through WebCodecs' VideoDecoder.
- 3
Re-encode if needed
Frames are scaled on a canvas and re-encoded with VideoEncoder at the chosen bitrate and resolution; audio is re-encoded to AAC or MP3.
- 4
Mux the result
mp4-muxer writes a fresh MP4 with a correct index, so the output seeks properly in any player.
Processing pipeline
Why compression is CPU-bound
Decoding and re-encoding a 10-minute 1080p video means processing roughly 18,000 frames twice. WebCodecs uses hardware acceleration when the browser exposes it, but the tab still does the work — expect minutes, and keep the tab in the foreground. This is also why the free tier caps duration rather than file count.
Extraction is lossless
Pulling audio out of a video does not re-encode it, so the sound is bit-for-bit what was in the original. Converting to MP3, however, does re-encode and is lossy; if you need an exact copy, choose the original codec (AAC/M4A) rather than MP3.
Cut points land on keyframes
A compressed video stores full frames only at keyframes; the frames between them depend on earlier ones. Trimming therefore snaps to the nearest keyframe unless the clip is re-encoded, which is why a trim can start a fraction of a second late. Re-encoding costs quality and time; snapping costs a few frames.
Verify it yourself
The file is read by the browser, not uploaded. Watch the network panel during a run.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Can it show the codec (H.264 etc.)?
No — browsers do not expose codec details. You get container info, duration, resolution and an estimated bitrate.
Why can't it read my MKV or AVI?
If the browser cannot decode the codec, metadata cannot be read. Use MP4, WebM or MOV instead.
What this kind of conversion cannot keep
Video and audio are processed with the browser's own codecs (WebCodecs where available, otherwise a JavaScript encoder). It is slower than a native app because it runs on one thread in a sandbox, but the file is never uploaded — which is the only reason to accept the trade.
More in Video & Audio
On this page
- What is Media Info Viewer
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →