Skip to content

πŸŽ₯ Make videos programmatically with React

updte

Jonny Burgera10499d852cd
diff --git a/packages/STATS.md b/packages/STATS.md
index 3f9ee9d7dd..1f00bade8c 100644
--- a/packages/STATS.md
+++ b/packages/STATS.md
@@ -1,5 +1,4 @@
# Download statistics
-
Monthly downloads of Remotion packages
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/animated-emoji.svg?style=flat&color=black&label=@remotion/animated-emoji)](https://npmcharts.com/compare/@remotion/animated-emoji?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/animation-utils.svg?style=flat&color=black&label=@remotion/animation-utils)](https://npmcharts.com/compare/@remotion/animation-utils?minimal=true)
@@ -47,6 +46,7 @@ Monthly downloads of Remotion packages
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/rive.svg?style=flat&color=black&label=@remotion/rive)](https://npmcharts.com/compare/@remotion/rive?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/rounded-text-box.svg?style=flat&color=black&label=@remotion/rounded-text-box)](https://npmcharts.com/compare/@remotion/rounded-text-box?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/serverless.svg?style=flat&color=black&label=@remotion/serverless)](https://npmcharts.com/compare/@remotion/serverless?minimal=true)
+[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/sfx.svg?style=flat&color=black&label=@remotion/sfx)](https://npmcharts.com/compare/@remotion/sfx?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/shapes.svg?style=flat&color=black&label=@remotion/shapes)](https://npmcharts.com/compare/@remotion/shapes?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/skia.svg?style=flat&color=black&label=@remotion/skia)](https://npmcharts.com/compare/@remotion/skia?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/streaming.svg?style=flat&color=black&label=@remotion/streaming)](https://npmcharts.com/compare/@remotion/streaming?minimal=true)
@@ -63,4 +63,4 @@ Monthly downloads of Remotion packages
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/webcodecs.svg?style=flat&color=black&label=@remotion/webcodecs)](https://npmcharts.com/compare/@remotion/webcodecs?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/whisper-web.svg?style=flat&color=black&label=@remotion/whisper-web)](https://npmcharts.com/compare/@remotion/whisper-web?minimal=true)
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/zod-types.svg?style=flat&color=black&label=@remotion/zod-types)](https://npmcharts.com/compare/@remotion/zod-types?minimal=true)
-[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/zod-types-v3.svg?style=flat&color=black&label=@remotion/zod-types-v3)](https://npmcharts.com/compare/@remotion/zod-types-v3?minimal=true)
+[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/zod-types-v3.svg?style=flat&color=black&label=@remotion/zod-types-v3)](https://npmcharts.com/compare/@remotion/zod-types-v3?minimal=true)
diff --git a/packages/docs/components/TableOfContents/api.tsx b/packages/docs/components/TableOfContents/api.tsx
index 6ea3cd8687..43aa965a58 100644
--- a/packages/docs/components/TableOfContents/api.tsx
+++ b/packages/docs/components/TableOfContents/api.tsx
@@ -154,7 +154,7 @@ export const TableOfContents: React.FC = () => {
<p>Zod types enabling Remotion Studio UI</p>
<ZodTypesTableOfContents />
<h2>@remotion/sfx</h2>
- <p>Sound effects for Remotion</p>
+ <p>Sound effects library</p>
<SfxTableOfContents />
<h2>@remotion/light-leaks</h2>
<p>Light leak effects</p>
diff --git a/packages/docs/docs/audio/sfx.mdx b/packages/docs/docs/audio/sfx.mdx
new file mode 100644
index 0000000000..ca2fd709f5
--- /dev/null
+++ b/packages/docs/docs/audio/sfx.mdx
@@ -0,0 +1,62 @@
+---
+image: /generated/articles-docs-audio-sfx.png
+title: Sound effects
+sidebar_label: Sound effects
+crumb: Audio
+---
+
+You can add sound effects to your Remotion video using the [`<Audio>`](/docs/media/audio) tag.
+
+## Using `@remotion/sfx`
+
+The [`@remotion/sfx`](/docs/sfx) package provides a collection of ready-to-use sound effects:
+
+```tsx twoslash title="MyComp.tsx"
+import {whoosh, whip} from '@remotion/sfx';
+import {Audio, Sequence} from 'remotion';
+
+const MyVideo = () => {
+ return (
+ <>
+ <Sequence from={0} durationInFrames={30}>
+ <Audio src={whip} />
+ </Sequence>
+ <Sequence from={30} durationInFrames={30}>
+ <Audio src={whoosh} />
+ </Sequence>
+ </>
+ );
+};
+```
+
+See the [full list of available sounds](/docs/sfx).
+
+## Using the CDN directly
+
+You can also use the [`remotion.media`](https://remotion.media/#category-sound-effects) CDN URLs directly without installing the package:
+
+```tsx twoslash title="MyComp.tsx"
+import {Audio} from 'remotion';
+
+const MyVideo = () => {
+ return <Audio src="https://remotion.media/whoosh.wav" />;
+};
+```
+
+## Finding more sound effects
+
+The following sites are good resources for free sound effects:
+
+- [freesound.org](https://freesound.org) β€” Large community-driven library, many CC0-licensed sounds
+- [kenney.nl](https://kenney.nl) β€” High-quality game audio assets, all CC0
+- [soundcn.xyz](https://www.soundcn.xyz/) β€” Curated collection of UI and interaction sounds
+- [ElevenLabs](https://elevenlabs.io/sound-effects) β€” Generate sound effects by describing them
+
+## Contributing
+
+Want to add a new sound effect? See the [contributing guide](/docs/contributing/sfx).
+
+## See also
+
+- [`@remotion/sfx`](/docs/sfx)
+- [Importing audio](/docs/audio/importing)
diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.ts
index 334f5d1d8f..eb6b9e16ba 100644
--- a/packages/docs/sidebars.ts
+++ b/packages/docs/sidebars.ts
@@ -938,6 +938,7 @@ const sidebars: SidebarsConfig = {
'audio/pitch',
'audio/from-video',
'audio/visualization',
+ 'audio/sfx',
'audio/exporting',
'audio/order-of-operations',
],
diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.ts
index fbe16894a6..34107d80cd 100644
--- a/packages/docs/src/data/articles.ts
+++ b/packages/docs/src/data/articles.ts
@@ -386,6 +386,15 @@ export const articles = [
noAi: false,
slug: 'audio/pitch',
},
+ {
+ id: 'audio/sfx',
+ title: 'Sound effects',
+ relativePath: 'docs/audio/sfx.mdx',
+ compId: 'articles-docs-audio-sfx',
+ crumb: 'Audio',
+ noAi: false,
+ slug: 'audio/sfx',
+ },
{
id: 'speed',
title: 'Controlling playback speed',
diff --git a/packages/docs/static/generated/articles-docs-audio-sfx.png b/packages/docs/static/generated/articles-docs-audio-sfx.png
new file mode 100644
index 0000000000..e783250541
Binary files /dev/null and b/packages/docs/static/generated/articles-docs-audio-sfx.png differ
diff --git a/packages/example-videos/README.md b/packages/example-videos/README.md
index 9e6954fb82..5d6177db6b 100644
--- a/packages/example-videos/README.md
+++ b/packages/example-videos/README.md
@@ -1,5 +1,5 @@
# @remotion/example-videos
-
+
## Usage
-
+
This is an internal package and has no documentation.
diff --git a/packages/example/README.md b/packages/example/README.md
index 3123f870d9..d9e7dd5d9b 100644
--- a/packages/example/README.md
+++ b/packages/example/README.md
@@ -1,5 +1,5 @@
# @remotion/example
-
+
## Usage
-
+
This is an internal package and has no documentation.
diff --git a/packages/it-tests/src/monorepo/package-metadata.test.ts b/packages/it-tests/src/monorepo/package-metadata.test.ts
index 14339ffa73..a4151cf24a 100644
--- a/packages/it-tests/src/monorepo/package-metadata.test.ts
+++ b/packages/it-tests/src/monorepo/package-metadata.test.ts
@@ -89,34 +89,33 @@ test('All packages should have a README.md file', () => {
const readme =
[
`# @remotion/${pkg}`,
- description ? ' ' : null,
+ description ? '' : null,
description ?? null,
- ' ',
+ '',
docs
? `[![NPM Downloads](https://img.shields.io/npm/dm/${name}.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/${name}?minimal=true)`
: null,
- docs ? ' ' : null,
+ docs ? '' : null,
docs ? '## Installation' : null,
- docs ? ' ' : null,
+ docs ? '' : null,
docs ? '```bash' : null,
docs ? `npm install ${name} --save-exact` : null,
docs ? '```' : null,
- docs ? ' ' : null,
+ docs ? '' : null,
docs
? 'When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.'
: null,
docs
? 'Remove the `^` character from the version number to use the exact version.'
: null,
- docs ? ' ' : null,
+ docs ? '' : null,
'## Usage',
- ' ',
+ '',
docs
? 'See the [documentation](' + docs + ') for more information.'
: 'This is an internal package and has no documentation.',
- pkg === 'webcodecs' ? webcodecsLicenseDisclaimer : null,
]
- .filter(Boolean)
+ .filter(t => t !== null)
.join('\n') + '\n';
if (pkg === 'convert') {
diff --git a/packages/player-example/README.md b/packages/player-example/README.md
index ea2514dd3e..c361763962 100644
--- a/packages/player-example/README.md
+++ b/packages/player-example/README.md
@@ -1,5 +1,5 @@
# @remotion/player-example
-
+
## Usage
-
+
This is an internal package and has no documentation.
diff --git a/packages/sfx/README.md b/packages/sfx/README.md
index b46d9e78da..01f21d4212 100644
--- a/packages/sfx/README.md
+++ b/packages/sfx/README.md
@@ -1,6 +1,6 @@
# @remotion/sfx
-Sound effects for Remotion
+Sound effect library
[![NPM Downloads](https://img.shields.io/npm/dm/@remotion/sfx.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/sfx?minimal=true)
diff --git a/packages/sfx/package.json b/packages/sfx/package.json
index 8fbb648dd4..8ca04d047e 100644
--- a/packages/sfx/package.json
+++ b/packages/sfx/package.json
@@ -1,7 +1,7 @@
{
"name": "@remotion/sfx",
"version": "4.0.428",
- "description": "Sound effects for Remotion",
+ "description": "Sound effect library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/esm/index.mjs",
diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.ts
index 0e658480d8..a477ab1c57 100644
--- a/packages/studio-shared/src/package-info.ts
+++ b/packages/studio-shared/src/package-info.ts
@@ -208,7 +208,7 @@ export const descriptions: {[key in Pkgs]: string | null} = {
design: 'Design system',
'light-leaks': 'Light leak effects for Remotion',
vercel: 'Render Remotion videos on Vercel Sandbox',
- sfx: 'Sound effects for Remotion',
+ sfx: 'Sound effect library',
};
export const installableMap: {[key in Pkgs]: boolean} = {
'svg-3d-engine': false,
diff --git a/packages/webcodecs/README.md b/packages/webcodecs/README.md
index 89aa781d50..8fe07193db 100644
--- a/packages/webcodecs/README.md
+++ b/packages/webcodecs/README.md
@@ -16,15 +16,3 @@ Remove the `^` character from the version number to use the exact version.
## Usage
See the [documentation](https://remotion.dev/webcodecs) for more information.
-
-## License
-
-This package is licensed under the [Remotion License](/docs/license).
-We consider a team of 4 or more people a "company".
-
-**For "companies"**: A Remotion Company license needs to be obtained to use this package.
-In a future version of `@remotion/webcodecs`, this package will also require the purchase of a newly created "WebCodecs Conversion Seat". [Get in touch](https://remotion.dev/contact) with us if you are planning to use this package.
-
-**For individuals and teams up to 3**: You can use this package for free.
-
-This is a short, non-binding explanation of our license. See the [License](https://remotion.dev/docs/license) itself for more details.