Skip to main content

Contributing to Remotion

We welcome contributions to Remotion!

What we merge​

File an issue before you contribute a pull request. In case we cannot accept your contribution, we can still consider your bug report or feature request.

Include evidence that the change works, as a before-and-after comparison. This can be a test that fails without the change and passes with it. For changes that are visible to users, for example in the Remotion Studio, add screenshots or a video recording.

For a bigger change, also reach out to Jonny Burger ([email protected], Discord: @jonnyburger) first, so we can agree on the approach before time is spent on it.

We can't review or merge every pull request:

  • We may close pull requests that don't fit our current priorities or would add too much maintenance work.
  • A contribution must be worth more to Remotion than the time we need to review it. We are not interested in contribution farming. This is when someone searches the code for problems only to get a pull request merged. We want fixes for problems that users found while using Remotion. We close farmed pull requests without a comment.
  • We may solve the problem in our own pull request if a smaller or different fix fits better. In that case, we close the original pull request and link to ours.

Listings such as the Showcase and the Resources page are curated. The Showcase page states whether we currently take submissions.

Pull request limit​

GitHub allows contributors without write access to have one open pull request in this repository at a time. The next one can be opened once the previous one is merged or closed.

We exempt customers and trusted contributors from this limit. Contact us if it gets in your way.

Using AI agents​

Pull requests written with AI coding agents are welcome. The repository contains Agent Skills that help agents follow our conventions.

The author of a pull request is responsible for it, regardless of who wrote the code:

  • Reproduce the problem before fixing it.
  • Run the change and check the result yourself.
  • Read the whole diff and remove what is not needed.

We close pull requests that were generated in bulk or not reviewed by their author.

License​

Please note that since we charge for Remotion when companies are using it, this is a commercial project.
By sending pull requests, you agree that we can use your code changes in a commercial context.

Furthermore, also note that you cannot redistribute this project. Please see LICENSE.md for what's allowed and what's not.

This project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Setup​

1 Remotion uses Bun v1.4.3 as the package manager for development in this repository. The version must be at least 1.4.3.

curl -fsSL https://bun.com/install | bash -s "bun-v1.4.3"

2 Clone the Remotion repository:

git clone --depth=1 https://github.com/remotion-dev/remotion.git && cd remotion
note

The full Git history of Remotion is large. To save time and disk space, we recommend adding --depth=1 to only clone the most recent main branch.

3 Install all dependencies:

bun i

4 Build the project initially:

bun run build

5 Rebuild whenever a file changes:

bun run watch

6 You can start making changes!

Testing your changes​

You can start the Testbed using

cd packages/example
bun run dev

You can render a test video using

cd packages/example
bunx remotion render

You can run tests using

bun run test

in either a subpackage to run tests for that package or in the root to run all tests.

Running the @remotion/player testbed​

You can test changes to @remotion/player by starting the Player testbed:

cd packages/player-example
bun run dev

For information about testing Remotion components, please consult the Testing Remotion components page.

Running documentation​

You can run the Docusaurus server that powers the docs using:

cd packages/docs
bun run start

Running the CLI​

You can test changes to the CLI by moving to packages/example directory and using bunx to execute the CLI:

cd packages/example
# Example - Get available compositions
bunx remotion compositions
# Example - Render command
bunx remotion render ten-frame-tester --output ../../out/video.mp4

Testing Remotion Lambda​

In packages/example, there is a runlambda.sh script that will rebuild the code for the Lambda function, remove any deployed Lambda functions, deploy a new one and render a video.
You need to put your AWS credentials in a .env file of the packages/example directory.

cd packages/example
sh ./runlambda.sh
note

This will delete any Lambda functions in your account!

Troubleshooting​

If your bun run build throws errors, oftentimes it is because of caching issues. You can resolve many of these errors by running

bun run clean

in the root directory. Make sure to beforehand kill any bun run watch commands, as those might regenerate files as you clean them!

Developing new transition presentations​

To develop new transition presentations, see here.

Developing Rust parts​

To develop the Rust parts of Remotion, see here.

See also​