get-video-resolution
Drop a file, pick a sample stream, or paste a URL. You get resolution, codec, framerate, HDR, rotation, bit depth and every audio and subtitle track the container declares. It reads about a megabyte of headers and stops, so a 40 GB video costs roughly what a 4 MB one does.
npm i @oscnord/get-video-resolution
Playground
or
Remote URLs need CORS headers from the host. Local files have no such restriction.
Samples
// VideoInfo appears here