Render Remotion videos blazingly fast (up to 6x) using Github Actions Matrix.
- Fork this repository.
- Run the
Render video by matrix
workflow under Actions tab. - Set your desired number of workers (Recommended: <50).
- Call this workflow in your project as shown below.
- Specify the required parameters:
num_of_workers
,remotion_composition_id
,remotion_entry_point
- The rendered video will be uploaded as an artifact.
name: Call Remotion-Matrix-Renderer
on: push
jobs:
call-workflow-in-another-repo:
uses: yuvraj108c/Remotion-Matrix-Renderer/.github/workflows/render-video-matrix.yml@master
with:
num_of_workers: 10
remotion_composition_id: Main
remotion_entry_point: src/index.js
total_frames | num_of_workers | render_time |
---|---|---|
9000 | 1 | 31m 22s |
9000 | 10 | 6m 17s |
9000 | 20 | 5m 7s |
9000 | 50 | 6m 42s |
9000 | >100 | failed |
- Rendering speed is highly dependent on the number of available github runners.
- Rendering on private repositories can consume your free github actions minutes quickly.
- Using a high
num_of_workers
(>100) can result in http failures.