Skip to content

πŸŽ₯ Make videos programmatically with React

License Disclaimer

Jonny Burgerf35546344c92
diff --git a/packages/docs/components/TableOfContents/api.tsx b/packages/docs/components/TableOfContents/api.tsx
index 912025264d..4e08b2e963 100644
--- a/packages/docs/components/TableOfContents/api.tsx
+++ b/packages/docs/components/TableOfContents/api.tsx
@@ -11,6 +11,7 @@ import {TableOfContents as SkiaTableOfContents} from '../../docs/skia/TableOfCon
import {TableOfContents as StudioTableOfContents} from '../../docs/studio/TableOfContents';
import {TableOfContents as TailwindTableOfContents} from '../../docs/tailwind/TableOfContents';
import {TableOfContents as ThreeTableOfContents} from '../../docs/three/TableOfContents';
+import {TableOfContents as WebcodecsTableOfContents} from '../../docs/webcodecs/TableOfContents';
import {TableOfContents as AnimationUtilsTableOfContents} from '../TableOfContents/animation-utils';
import {TableOfContents as BundlerTableOfContents} from '../TableOfContents/bundler';
import {TableOfContents as CloudrunTableOfContents} from '../TableOfContents/cloudrun';
@@ -146,6 +147,9 @@ export const TableOfContents: React.FC = () => {
<h2>@remotion/media-parser</h2>
<p>A pure JavaScript library for parsing video files</p>
<MediaParserTableOfContents />
+ <h2>@remotion/webcodecs</h2>
+ <p>Converting media using WebCodecs</p>
+ <WebcodecsTableOfContents />
</div>
);
};
diff --git a/packages/docs/docs/webcodecs/LicenseDisclaimer.tsx b/packages/docs/docs/webcodecs/LicenseDisclaimer.tsx
new file mode 100644
index 0000000000..f756c74871
--- /dev/null
+++ b/packages/docs/docs/webcodecs/LicenseDisclaimer.tsx
@@ -0,0 +1,35 @@
+import React from 'react';
+
+export const LicenseDisclaimer: React.FC = () => {
+ return (
+ <>
+ <div>
+ This package is licensed under the{' '}
+ <a href="/docs/license">Remotion License</a>.<br />
+ We consider a team of 4 or more people a "company".
+ </div>
+ <br />
+ <div>
+ <strong>For "companies"</strong>: A Remotion Company license needs to be
+ obtained to use this package.
+ <br /> In a future version of{' '}
+ <a>
+ <code>@remotion/webcodecs</code>
+ </a>
+ , this package will also require the purchase of a newly created
+ "WebCodecs Conversion Seat". <a href="/contact">Get in touch</a> with us
+ if you are planning to use this package.
+ </div>
+ <br />
+ <div>
+ <strong>For individuals and teams up to 3:</strong> You can use this
+ package for free.
+ </div>
+ <br />
+ <div>
+ This is a short, non-binding explanation of our license. See the{' '}
+ <a href="/docs/license">License</a> itself for more details.
+ </div>
+ </>
+ );
+};
diff --git a/packages/docs/docs/webcodecs/UnstableDisclaimer.tsx b/packages/docs/docs/webcodecs/UnstableDisclaimer.tsx
new file mode 100644
index 0000000000..b2acb24f4d
--- /dev/null
+++ b/packages/docs/docs/webcodecs/UnstableDisclaimer.tsx
@@ -0,0 +1,9 @@
+export const UnstableDisclaimer: React.FC = () => {
+ return (
+ <div>
+ This package is experimental.
+ <br />
+ We might change the API at any time, until we remove this notice.
+ </div>
+ );
+};
diff --git a/packages/docs/docs/webcodecs/convert-media.mdx b/packages/docs/docs/webcodecs/convert-media.mdx
index 9aa0499c3a..4255c9345f 100644
--- a/packages/docs/docs/webcodecs/convert-media.mdx
+++ b/packages/docs/docs/webcodecs/convert-media.mdx
@@ -10,9 +10,17 @@ crumb: '@remotion/webcodecs'
_Part of the [`@remotion/webcodecs`](/docs/webcodecs) package._
-:::warning
-**Unstable API**: This package is experimental. We might change the API at any time, until we remove this notice.
-:::
+import {LicenseDisclaimer} from './LicenseDisclaimer';
+import {UnstableDisclaimer} from './UnstableDisclaimer';
+
+<details>
+ <summary>πŸ’Ό Important License Disclaimer</summary>
+ <LicenseDisclaimer />
+</details>
+<details>
+ <summary>🚧 Unstable API</summary>
+ <UnstableDisclaimer />
+</details>
Re-encodes a video using [WebCodecs](https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API) and [`@remotion/media-parser`](/docs/media-parser).
diff --git a/packages/docs/docs/webcodecs/index.mdx b/packages/docs/docs/webcodecs/index.mdx
index ccb50e824d..eb6313117d 100644
--- a/packages/docs/docs/webcodecs/index.mdx
+++ b/packages/docs/docs/webcodecs/index.mdx
@@ -13,20 +13,16 @@ _available from v4.0.229_
This package provides APIs for converting videos in the browser.
It leverages [`@remotion/media-parser`](/docs/media-parser) to parse the video and audio data, and then uses the [WebCodecs API](https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API) to encode the video.
-:::warning
-**Unstable API**: This package is experimental. We might change the API at any time, until we remove this notice.
-:::
+import {LicenseDisclaimer} from './LicenseDisclaimer';
+import {UnstableDisclaimer} from './UnstableDisclaimer';
-## License
+## πŸ’Ό License Disclaimer
-While this package is in experimental state, it is licensed under the [Remotion License](https://remotion.dev/license).
-Individuals and teams of less than 4 people can use it for free.
-For larger teams, a company license must be purchased. Read the license for details.
+<LicenseDisclaimer />
-Once this package matures and becomes stable, we might change the license to require a higher tier of the company license.
-[Contact us](/contact) if you are interested in using `@remotion/webcodecs` in your company right now.
+## 🚧 Unstable API Warning
-Individuals and teams of less than 4 people will continue to be able use `@remotion/webcodecs` for free even when it becomes stable.
+<UnstableDisclaimer />
## Installation
diff --git a/packages/it-tests/src/monorepo/package-metadata.test.ts b/packages/it-tests/src/monorepo/package-metadata.test.ts
index f5020f8941..4fae925ce2 100644
--- a/packages/it-tests/src/monorepo/package-metadata.test.ts
+++ b/packages/it-tests/src/monorepo/package-metadata.test.ts
@@ -72,6 +72,20 @@ test('All packages should have a README.md file', () => {
const name = pkg === 'create-video' ? 'create-video' : `@remotion/${pkg}`;
+ const webcodecsLicenseDisclaimer = [
+ '',
+ '## License',
+ 'This package is licensed under the [/docs/license](Remotion 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 [https://remotion.dev/docs/license](License) itself for more details.',
+ ].join('\n');
+
const readme =
[
`# @remotion/${pkg}`,
@@ -94,6 +108,7 @@ test('All packages should have a README.md file', () => {
docs
? 'See the [documentation](' + docs + ') for more information.'
: 'This is an internal package and has no documentation.',
+ pkg === 'webcodecs' ? webcodecsLicenseDisclaimer : null,
]
.filter(Boolean)
.join('\n') + '\n';
diff --git a/packages/studio-shared/src/package-info.ts b/packages/studio-shared/src/package-info.ts
index 82dd548e15..105a00acbb 100644
--- a/packages/studio-shared/src/package-info.ts
+++ b/packages/studio-shared/src/package-info.ts
@@ -209,7 +209,7 @@ export const apiDocs: {[key in Pkgs]: string | null} = {
studio: 'https://www.remotion.dev/docs/studio/api',
transitions: 'https://www.remotion.dev/transitions',
'animated-emoji': 'https://www.remotion.dev/docs/animated-emoji',
- webcodecs: null,
+ webcodecs: 'https://remotion.dev/webcodecs',
convert: 'https://convert.remotion.dev',
captions: 'https://remotion.dev/docs/captions',
'openai-whisper': 'https://www.remotion.dev/docs/openai-whisper',
diff --git a/packages/webcodecs/README.md b/packages/webcodecs/README.md
index db4835738f..662f7dc6af 100644
--- a/packages/webcodecs/README.md
+++ b/packages/webcodecs/README.md
@@ -16,3 +16,14 @@ Remove the `^` character from the version number to use the exact version.
## Usage
This is an internal package and has no documentation.
+
+## License
+This package is licensed under the [/docs/license](Remotion 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 [https://remotion.dev/docs/license](License) itself for more details.