Importing assets in Remotion
The public folder
Place assets in thepublic/ folder at your project root.
Using staticFile()
You MUST usestaticFile() to reference files from the public/ folder:
Using with components
Images:Remote URLs
Remote URLs can be used directly withoutstaticFile():
Important notes
- Remotion components (
<Img>,<Video>,<Audio>) ensure assets are fully loaded before rendering - Special characters in filenames (
#,?,&) are automatically encoded