remotion-dev / skills
remotion-multimedia
Work with audio, video, and mixed media assets in Remotion compositions.
Install
npx skills add https://github.com/remotion-dev/skills --skill remotion-multimedia- metadata
- tags: duration, video, length, time, seconds
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
Video files from the public/ directory
Make sure to wrap the file path in staticFile():
In Node.js and Bun
Use FilePathSource instead of UrlSource to read a file from disk:
For a File from a file input or drag and drop, use new BlobSource(file) instead.