Getting video duration with Mediabunny
Mediabunny can extract the duration of a video file. It works in browser, Node.js, and Bun environments.Getting video duration
Usage
Using with local files
For local files, useFileSource instead of UrlSource: