Encoding Guide
Backed by FFmpeg, Remotion allows you to configure a variety of encoding settings. The goal of this page is to help you navigate through the settings and to help you choose the right one.
Choosing a codec
Remotion supports 5 video codecs: h264 (default), h265, vp8, vp9 and prores. While H264 will work well in most cases, sometimes it's worth going for a different codec. Refer to the table below to see the advantages and drawbacks of each codec.
| Codec | File extension | File size | Encoding time | Browser compatibility |
|---|---|---|---|---|
H.264 also known as MPEG-4 | .mp4, .mov or .mkv | Medium | Very fast | Very good |
H.265 also known as HEVC | .mp4 or .hevc | Medium | Fast | Very poor |
| VP8 | .webm | Small | Slow | Okay |
| VP9 | .webm | Very small | Very slow | Okay |
| ProRes | .mov | Large | Fast | None |
info
Click on a browser compatibility link to see exactly which browsers are supported on caniuse.com.
You can set a config using Config.setCodec() in the config file or the --codec CLI flag.