A lightweight media server for Remotion projects that helps manage media assets outside of the bundle.
- Keep your Remotion bundle size small
- Manage media files separately from your bundle
- Simple and efficient media serving
- No need to bundle large media files in
./public
# Download to current directory
curl -fsSL https://raw.githubusercontent.com/hylarucoder/revid-serve/main/install.sh | bash
If you prefer not to use the automatic installation script, you can download and install manually:
- Visit the Releases page
- Download the version for your system
- Rename and make it executable:
mv revid-serve-* revid-serve chmod +x revid-serve
-
Start the media server:
./revid-serve -d ./media
-
Add the
mediaFile
utility function:function mediaFile(path: string) { // change to your media server base url return `http://localhost:8080/${path}`; }
-
Use it in your code:
const video = mediaFile("videos/intro.mp4"); const image = mediaFile("images/background.png");