Skip to content

Commit

Permalink
docs: add installation tutorial (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarthificial authored May 10, 2023
1 parent 55dc9f3 commit 150c7cf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,27 @@
# Motion Canvas Exporters

The official exporters for [Motion Canvas](https://motion-canvas.io).

## Installation

1. In an existing Motion Canvas project, install the exporter package:
```sh
npm install @motion-canvas/ffmpeg
```
2. Add the exporter as a plugin in your `vite.config.ts`:

```diff
import {defineConfig} from 'vite';
import motionCanvas from '@motion-canvas/vite-plugin';
+ import ffmpeg from '@motion-canvas/ffmpeg';

export default defineConfig({
plugins: [
motionCanvas(),
+ ffmpeg(),
],
});
```

3. Pick the exporter in the Video Settings tab:
![Video Settings](./images/video-settings-tab.png)
Binary file added images/video-settings-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 150c7cf

Please sign in to comment.