π₯ Make videos programmatically with React
updte
Jonny Burgera10499d852cd
diff --git a/packages/STATS.md b/packages/STATS.mdindex 3f9ee9d7dd..1f00bade8c 100644--- a/packages/STATS.md+++ b/packages/STATS.md@@ -1,5 +1,4 @@# Download statistics-Monthly downloads of Remotion packages[](https://npmcharts.com/compare/@remotion/animated-emoji?minimal=true)[](https://npmcharts.com/compare/@remotion/animation-utils?minimal=true)@@ -47,6 +46,7 @@ Monthly downloads of Remotion packages[](https://npmcharts.com/compare/@remotion/rive?minimal=true)[](https://npmcharts.com/compare/@remotion/rounded-text-box?minimal=true)[](https://npmcharts.com/compare/@remotion/serverless?minimal=true)+[](https://npmcharts.com/compare/@remotion/sfx?minimal=true)[](https://npmcharts.com/compare/@remotion/shapes?minimal=true)[](https://npmcharts.com/compare/@remotion/skia?minimal=true)[](https://npmcharts.com/compare/@remotion/streaming?minimal=true)@@ -63,4 +63,4 @@ Monthly downloads of Remotion packages[](https://npmcharts.com/compare/@remotion/webcodecs?minimal=true)[](https://npmcharts.com/compare/@remotion/whisper-web?minimal=true)[](https://npmcharts.com/compare/@remotion/zod-types?minimal=true)-[](https://npmcharts.com/compare/@remotion/zod-types-v3?minimal=true)+[](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.tsxindex 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.mdxnew file mode 100644index 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.tsindex 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.tsindex 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.pngnew file mode 100644index 0000000000..e783250541Binary files /dev/null and b/packages/docs/static/generated/articles-docs-audio-sfx.png differdiff --git a/packages/example-videos/README.md b/packages/example-videos/README.mdindex 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.mdindex 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.tsindex 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? `[](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.mdindex 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.mdindex 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[](https://npmcharts.com/compare/@remotion/sfx?minimal=true)diff --git a/packages/sfx/package.json b/packages/sfx/package.jsonindex 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.tsindex 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.mdindex 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.## UsageSee 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.