Skip to content

🎥 Make videos programmatically with React

organize example compositions

Jonny Burgerf98299bc8f84
diff --git a/packages/core/src/validation/validate-folder-name.ts b/packages/core/src/validation/validate-folder-name.ts
index 8e036ffc2a..c6a084883b 100644
--- a/packages/core/src/validation/validate-folder-name.ts
+++ b/packages/core/src/validation/validate-folder-name.ts
@@ -1,4 +1,8 @@
export const validateFolderName = (name: string | null) => {
+ if (name === undefined) {
+ throw new Error('You must pass a name to a <Folder />.');
+ }
+
if (name === null) {
return;
}
diff --git a/packages/eslint-config/src/auto-import-rules.ts b/packages/eslint-config/src/auto-import-rules.ts
index 7e28a84f34..2c08cf2e67 100644
--- a/packages/eslint-config/src/auto-import-rules.ts
+++ b/packages/eslint-config/src/auto-import-rules.ts
@@ -29,5 +29,6 @@ export const autoImports = {
Config: "import {Config} from 'remotion'",
Img: "import {Img} from 'remotion'",
IFrame: "import {IFrame} from 'remotion'",
+ Folder: "import {Folder} from 'remotion'",
styled: "import styled from 'styled-components'",
};
diff --git a/packages/example/src/BlackGradients/index.tsx b/packages/example/src/BlackGradients/index.tsx
deleted file mode 100644
index 27b605c915..0000000000
--- a/packages/example/src/BlackGradients/index.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react';
-import {SvgBlob} from './Blob';
-
-const BlackGradients: React.FC = () => {
- return (
- <div
- style={{flex: 1, background: 'linear-gradient(to right, #222, #2a2a2a)'}}
- >
- <SvgBlob
- style={{
- height: 450,
- width: 450,
- position: 'absolute',
- filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
- }}
- d="M39.4,-39.7C53,-25.9,67.1,-13,67,0C67,12.9,52.8,25.8,39.3,35.1C25.8,44.5,12.9,50.4,-0.2,50.5C-13.2,50.7,-26.4,45.1,-35.1,35.8C-43.8,26.4,-48.1,13.2,-52.2,-4.1C-56.3,-21.3,-60.1,-42.7,-51.4,-56.5C-42.7,-70.3,-21.3,-76.5,-4.2,-72.3C13,-68.1,25.9,-53.5,39.4,-39.7Z"
- gradient={['#B60DE0', '#5A9BFB']}
- />
- <SvgBlob
- style={{
- height: 300,
- width: 300,
- position: 'absolute',
- left: 450,
- top: 450,
- filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
- }}
- d="M52.2,-50.9C68.8,-35.7,84.1,-17.8,84.8,0.8C85.6,19.3,71.8,38.7,55.2,47.5C38.7,56.3,19.3,54.5,-1.4,55.9C-22,57.2,-44.1,61.7,-52.1,52.9C-60.1,44.1,-54.1,22,-52.8,1.3C-51.6,-19.5,-55,-38.9,-46.9,-54.2C-38.9,-69.5,-19.5,-80.6,-0.8,-79.8C17.8,-79,35.7,-66.2,52.2,-50.9Z"
- gradient={['#e95950', '#fccc63']}
- />
- <SvgBlob
- style={{
- height: 250,
- width: 250,
- position: 'absolute',
- left: 400,
- top: 370,
- filter: 'drop-shadow(0 0 5px rgba(0, 0, 0, 1)) blur(20px)',
- }}
- d="M35,-63C46.5,-54,57.7,-46.9,66.2,-36.7C74.6,-26.5,80.2,-13.3,78.2,-1.1C76.3,11,66.8,22,56.7,29.3C46.6,36.6,35.9,40.2,26.4,46.6C16.8,53.1,8.4,62.5,-0.6,63.6C-9.6,64.6,-19.2,57.3,-28,50.3C-36.8,43.4,-44.7,36.9,-56.4,28.6C-68.2,20.2,-83.8,10.1,-87.7,-2.3C-91.6,-14.7,-84,-29.4,-75.3,-43C-66.6,-56.7,-57,-69.3,-44.3,-77.6C-31.6,-85.9,-15.8,-89.8,-2,-86.3C11.7,-82.9,23.5,-72,35,-63Z"
- gradient={['rgb(131, 192, 98)', 'rgb(152, 215, 122)']}
- />
- </div>
- );
-};
-
-export default BlackGradients;
diff --git a/packages/example/src/Features/index.tsx b/packages/example/src/Features/index.tsx
deleted file mode 100644
index ce4add10c2..0000000000
--- a/packages/example/src/Features/index.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import {Video} from 'remotion';
-
-const Features: React.FC = () => {
- const tray = require('./tray.webm');
- const watermelon = require('./watermelon.webm');
- const textstickers = require('./textstickers.webm');
- return (
- <div
- style={{
- flex: 1,
- backgroundColor: 'white',
- justifyContent: 'center',
- alignItems: 'center',
- display: 'flex',
- }}
- >
- <Video src={tray} style={{height: 400, width: 400}} />
- <Video src={textstickers} style={{height: 700, width: 700}} />
- <Video src={watermelon} style={{height: 700, width: 700}} />
- </div>
- );
-};
-
-export default Features;
diff --git a/packages/example/src/Features/textstickers.webm b/packages/example/src/Features/textstickers.webm
deleted file mode 100644
index 3f82d7a6ae..0000000000
Binary files a/packages/example/src/Features/textstickers.webm and /dev/null differ
diff --git a/packages/example/src/Features/tray.webm b/packages/example/src/Features/tray.webm
deleted file mode 100644
index 383772b95e..0000000000
Binary files a/packages/example/src/Features/tray.webm and /dev/null differ
diff --git a/packages/example/src/Features/watermelon.webm b/packages/example/src/Features/watermelon.webm
deleted file mode 100644
index a7abde1676..0000000000
Binary files a/packages/example/src/Features/watermelon.webm and /dev/null differ
diff --git a/packages/example/src/HackerLogo/index.tsx b/packages/example/src/HackerLogo/index.tsx
deleted file mode 100644
index 4c531ad4bc..0000000000
--- a/packages/example/src/HackerLogo/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-const HackerLogo: React.FC = () => {
- return (
- <div
- style={{
- height: 1024,
- width: 1024,
- background: 'black',
- fontSize: 200,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- fontFamily: 'Roboto Condensed',
- }}
- >
- <span style={{color: 'white'}}>HACKER</span>
- </div>
- );
-};
-
-export default HackerLogo;
diff --git a/packages/example/src/NewPackAnnouncement/index.tsx b/packages/example/src/NewPackAnnouncement/index.tsx
deleted file mode 100644
index 41664e38ff..0000000000
--- a/packages/example/src/NewPackAnnouncement/index.tsx
+++ /dev/null
@@ -1,127 +0,0 @@
-import React, {useCallback, useEffect, useState} from 'react';
-import {continueRender, delayRender, Img, useCurrentFrame} from 'remotion';
-import styled from 'styled-components';
-
-const Title = styled.div`
- font-size: 80px;
- font-family: 'Roboto';
- color: white;
- font-weight: bold;
-`;
-
-const Subtitle = styled.div`
- font-family: 'Roboto';
- font-size: 50px;
- color: white;
- margin-top: 20px;
- margin-bottom: 80px;
-`;
-
-const Link = styled.div`
- color: white;
- font-size: 45px;
- font-family: 'Roboto';
-`;
-
-const getStickerScale = (frame: number, index: number): number => {
- const duration = 10;
- const start = index * 10;
- if (frame < start) {
- return 0;
- }
-
- if (frame > start + duration) {
- return 1;
- }
-
- return (frame - start) / duration;
-};
-
-const Rating: React.FC = () => {
- const [handle] = useState(() => delayRender());
- const [data, setData] = useState<null | {
- data: {
- pack: {
- name: string;
- id: string;
- publisher: string;
- stickers: {
- id: string;
- source: string;
- }[];
- };
- };
- }>(null);
-
- const fetchData = useCallback(async () => {
- const resource = await fetch('http://localhost:8000/packs/xoloi');
- const json = await resource.json();
- setData(json);
- }, []);
-
- useEffect(() => {
- continueRender(handle);
- }, [data, handle]);
-
- useEffect(() => {
- fetchData();
- }, [fetchData]);
- const frame = useCurrentFrame();
-
- if (!data) {
- return null;
- }
-
- return (
- <div
- style={{
- flex: 1,
- padding: 80,
- flexDirection: 'column',
- display: 'flex',
- background: 'linear-gradient(to bottom left, #5851db, #405de6)',
- }}
- >
- <div>
- <Title>New Pack available</Title>
- {data ? (
- <Subtitle>
- {data.data.pack.name} by {data.data.pack.publisher}
- </Subtitle>
- ) : null}
- {data
- ? data?.data.pack.stickers.slice(0, 12).map((d, i) => (
- // eslint-disable-next-line
- <Img
- key={d.id}
- src={`https://anysticker.imgix.net/${d.source}`}
- style={{
- height: 306,
- width: 306,
- transform: `scale(${getStickerScale(frame, i)})`,
- }}
- />
- ))
- : null}
- </div>
- <div style={{flex: 1}} />
- <div
- style={{
- display: 'flex',
- flexDirection: 'row',
- alignItems: 'center',
- opacity: frame < 140 ? 0 : frame > 160 ? 1 : (frame - 140) / 20,
- }}
- >
- <Img
- src="https://www.anysticker.app/logo-transparent.png"
- style={{height: 200, width: 200, marginRight: 40}}
- />
- <div style={{flex: 1}} />
- <Link>anysticker.app/{data.data.pack.id}</Link>
- </div>
- </div>
- );
-};
-
-export default Rating;
diff --git a/packages/example/src/ShadowCircles/index.tsx b/packages/example/src/ShadowCircles/index.tsx
deleted file mode 100644
index 1c91c55808..0000000000
--- a/packages/example/src/ShadowCircles/index.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from 'react';
-import {Circle} from './Circle';
-
-const ShadowCircles: React.FC = () => {
- return (
- <div style={{flex: 1, backgroundColor: 'white'}}>
- <Circle size={2400} />
- <Circle size={2000} />
- <Circle size={1800} />
- <Circle size={1600} />
- <Circle size={1400} />
- <Circle size={1200} />
- <Circle size={1000} />
- <Circle size={800} />
- <Circle size={600} />
- <Circle size={400} />
- <Circle size={200} />
- </div>
- );
-};
-
-export default ShadowCircles;
diff --git a/packages/example/src/StaggerType/index.tsx b/packages/example/src/StaggerType/index.tsx
deleted file mode 100644
index 53b893cb4e..0000000000
--- a/packages/example/src/StaggerType/index.tsx
+++ /dev/null
@@ -1,78 +0,0 @@
-import {mix} from 'polished';
-import React from 'react';
-import {useCurrentFrame, useVideoConfig} from 'remotion';
-import styled from 'styled-components';
-
-const Container = styled.div`
- background-color: white;
- flex: 1;
-`;
-
-const Label = styled.div`
- font-size: 260px;
- color: black;
- font-weight: 700;
- font-family: 'SF Pro Text';
- text-align: center;
- transform: scaleX(1);
- line-height: 1em;
-`;
-
-const StaggerType: React.FC = () => {
- const types = 4;
- const frame = useCurrentFrame();
- const videoConfig = useVideoConfig();
- return (
- <Container
- style={{
- flex: 1,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <div>
- {new Array(types)
- .fill(true)
- .map((_, i) => {
- return i;
- })
- .map((i) => {
- const ratio = i / types;
- const isSecondHalf = frame > videoConfig.durationInFrames / 2;
- const opacity = frame / (videoConfig.durationInFrames / 2) > ratio;
- const stroking = (() => {
- if (!isSecondHalf) {
- return i % 2 === 0;
- }
-
- return Math.ceil(frame / 10) % 2 === i % 2;
- })();
- const color = mix(ratio, '#fff', '#000');
- return (
- <Label
- key={i}
- style={{
- ...(stroking
- ? {}
- : {
- WebkitTextStrokeColor: color,
- WebkitTextStrokeWidth: 8,
- WebkitTextFillColor: 'white',
- }),
- opacity: Number(opacity),
- width: 2000,
- marginLeft: -(2000 - videoConfig.width) / 2,
- marginTop: -20,
- }}
- >
- beta
- </Label>
- );
- })}
- </div>
- </Container>
- );
-};
-
-export default StaggerType;
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 2693f89487..3b8a484302 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -28,361 +28,307 @@ export const Index: React.FC = () => {
const inputProps = getInputProps();
return (
<>
- <Folder name="nested-two">
- <Folder name="nested">
- <Folder name="my-folder">
- <Composition
- id="dynamic-duration-in-folder"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- // Change the duration of the video dynamically by passing
- // `--props='{"duration": 100}'`
- durationInFrames={inputProps?.duration ?? 20}
- />
- <Composition
- id="nested-in-folder"
- lazyComponent={() => import('./NestedSequences')}
- durationInFrames={200}
- fps={60}
- height={1080}
- width={1080}
- />
- </Folder>
- </Folder>
+ <Folder name="components">
+ <Composition
+ id="iframe"
+ lazyComponent={() => import('./IframeTest')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={10}
+ />
+ <Composition
+ id="looped"
+ lazyComponent={() => import('./LoopedVideo')}
+ durationInFrames={200}
+ fps={60}
+ height={1080}
+ width={1080}
+ />
+ <Composition
+ id="gif"
+ lazyComponent={() => import('./GifTest')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={150}
+ />
+ <Composition
+ id="stagger-test"
+ component={SeriesTesting}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
+
+ <Composition
+ id="freeze-example"
+ component={FreezeExample}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={300}
+ />
+ </Folder>
+ <Folder name="regression-testing">
+ <Composition
+ id="missing-img"
+ component={MissingImg}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={10}
+ />
+ <Composition
+ id="ten-frame-tester"
+ component={TenFrameTester}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={10}
+ />
+
+ <Composition
+ id="framer"
+ component={Framer}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+
+ <Composition
+ id="skip-zero-frame"
+ component={SkipZeroFrame}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
+
+ <Composition
+ id="scripts"
+ component={Scripts}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
</Folder>
- <Composition
- id="dynamic-duration"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- // Change the duration of the video dynamically by passing
- // `--props='{"duration": 100}'`
- durationInFrames={inputProps?.duration ?? 20}
- />
- <Composition
- id="nested"
- lazyComponent={() => import('./NestedSequences')}
- durationInFrames={200}
- fps={60}
- height={1080}
- width={1080}
- />
- <Composition
- id="looped"
- lazyComponent={() => import('./LoopedVideo')}
- durationInFrames={200}
- fps={60}
- height={1080}
- width={1080}
- />
- <Composition
- id="beta-text"
- component={BetaText}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={3 * 30}
- defaultProps={{
- word1: getInputProps().word1,
- }}
- />
- <Composition
- id="black-gradients"
- lazyComponent={() => import('./BlackGradients')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={30}
- />
- <Composition
- id="features"
- lazyComponent={() => import('./Features')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={4 * 30}
- />
+ <Folder name="creatives">
+ <Composition
+ id="drop-dots"
+ lazyComponent={() => import('./DropDots/DropDots')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={180 * 30}
+ />
+ <Composition
+ id="tiles"
+ lazyComponent={() => import('./Tiles')}
+ width={1080}
+ height={1920}
+ fps={30}
+ durationInFrames={90}
+ />
+ <Composition
+ id="title"
+ lazyComponent={() => import('./Title')}
+ width={1080}
+ height={1920}
+ fps={30}
+ durationInFrames={90}
+ defaultProps={{
+ line1: 'Test',
+ line2: 'text',
+ }}
+ />
+ <Composition
+ id="beta-text"
+ component={BetaText}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={3 * 30}
+ defaultProps={{
+ word1: getInputProps().word1,
+ }}
+ />
+ <Composition
+ id="react-svg"
+ lazyComponent={() => import('./ReactSvg')}
+ width={1920}
+ height={1080}
+ fps={60}
+ durationInFrames={300}
+ defaultProps={{
+ transparent: true,
+ }}
+ />
+ </Folder>
+ <Folder name="video-tests">
+ <Composition
+ id="video-testing-mp4"
+ component={VideoTesting}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ defaultProps={{
+ codec: 'mp4' as const,
+ }}
+ />
+ <Composition
+ id="video-testing-webm"
+ component={VideoTesting}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ defaultProps={{
+ codec: 'webm' as const,
+ }}
+ />
+ <Composition
+ id="remote-video"
+ component={RemoteVideo}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={600}
+ />
+ <Composition
+ id="2hrvideo"
+ component={InfinityVideo}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={2 * 60 * 60 * 30}
+ />
- <Composition
- id="hacker-logo"
- lazyComponent={() => import('./HackerLogo')}
- width={1024}
- height={1024}
- fps={1}
- durationInFrames={1}
- />
- <Composition
- id="rating"
- lazyComponent={() => import('./NewPackAnnouncement')}
- width={1080}
- height={1920}
- fps={30}
- durationInFrames={7 * 30}
- />
- <Composition
- id="react-svg"
- lazyComponent={() => import('./ReactSvg')}
- width={1920}
- height={1080}
- fps={60}
- durationInFrames={300}
- defaultProps={{
- transparent: true,
- }}
- />
- <Composition
- id="shadow-circles"
- lazyComponent={() => import('./ShadowCircles')}
- width={1080}
- height={1920}
- fps={30}
- durationInFrames={60}
- />
- <Composition
- id="stagger-type"
- lazyComponent={() => import('./StaggerType')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={45}
- />
- <Composition
- id="tiles"
- lazyComponent={() => import('./Tiles')}
- width={1080}
- height={1920}
- fps={30}
- durationInFrames={90}
- />
- <Composition
- id="title"
- lazyComponent={() => import('./Title')}
- width={1080}
- height={1920}
- fps={30}
- durationInFrames={90}
- defaultProps={{
- line1: 'Test',
- line2: 'text',
- }}
- />
- <Composition
- id="mdx-test"
- lazyComponent={() => import('./MdxTest')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={30 * 30}
- />
- <Composition
- id="iframe"
- lazyComponent={() => import('./IframeTest')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={10}
- />
- <Composition
- id="gif"
- lazyComponent={() => import('./GifTest')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={150}
- />
- <Composition
- id="missing-img"
- component={MissingImg}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={10}
- />
- <Composition
- id="audio-testing"
- lazyComponent={() => import('./AudioTesting')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={300}
- />
- <Composition
- id="audio-visualization"
- lazyComponent={() => import('./AudioVisualization')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={180 * 30}
- />
- <Composition
- id="drop-dots"
- lazyComponent={() => import('./DropDots/DropDots')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={180 * 30}
- />
- <Composition
- id="audio-testing-mute"
- lazyComponent={() => import('./AudioTestingMute')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={300}
- />
- <Composition
- id="ten-frame-tester"
- component={TenFrameTester}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={10}
- />
- <Composition
- id="video-testing-mp4"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- defaultProps={{
- codec: 'mp4' as const,
- }}
- />
- <Composition
- id="video-testing-webm"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- defaultProps={{
- codec: 'webm' as const,
- }}
- />
- <Composition
- id="framer"
- component={Framer}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="remote-video"
- component={RemoteVideo}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={600}
- />
- <Composition
- id="2hrvideo"
- component={InfinityVideo}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={2 * 60 * 60 * 30}
- />
- <Composition
- id="three-basic"
- component={ThreeBasic}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={600}
- />
- <Composition
- id="color-interpolation"
- component={ColorInterpolation}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="video-speed"
- component={VideoSpeed}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="skip-zero-frame"
- component={SkipZeroFrame}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="stagger-test"
- component={SeriesTesting}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="scripts"
- component={Scripts}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="freeze-example"
- component={FreezeExample}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={300}
- />
- <Composition
- id="offline-audio-buffer"
- lazyComponent={() => import('./OfflineAudioBuffer')}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="video-on-canvas"
- component={VideoOnCanvas}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="greenscreen"
- component={Greenscreen}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="22khz"
- component={TwentyTwoKHzAudio}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={90}
- />
- <Still id="Orb" component={OrbScene} width={2000} height={2000} />
- <Still
- id="static-demo"
- component={StaticDemo}
- width={1000}
- height={1000}
- />
- <Still id="font-demo" component={FontDemo} width={1000} height={1000} />
+ <Composition
+ id="video-speed"
+ component={VideoSpeed}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
+ <Composition
+ id="video-on-canvas"
+ component={VideoOnCanvas}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+ <Composition
+ id="greenscreen"
+ component={Greenscreen}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+ </Folder>
+ <Folder name="features">
+ <Composition
+ id="mdx-test"
+ lazyComponent={() => import('./MdxTest')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={30 * 30}
+ />
+ <Composition
+ id="color-interpolation"
+ component={ColorInterpolation}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={100}
+ />
+ <Still
+ id="static-demo"
+ component={StaticDemo}
+ width={1000}
+ height={1000}
+ />
+ <Still id="font-demo" component={FontDemo} width={1000} height={1000} />
+ <Composition
+ id="dynamic-duration"
+ component={VideoTesting}
+ width={1080}
+ height={1080}
+ fps={30}
+ // Change the duration of the video dynamically by passing
+ // `--props='{"duration": 100}'`
+ durationInFrames={inputProps?.duration ?? 20}
+ />
+ <Composition
+ id="nested"
+ lazyComponent={() => import('./NestedSequences')}
+ durationInFrames={200}
+ fps={60}
+ height={1080}
+ width={1080}
+ />
+ </Folder>
+ <Folder name="audio-tests">
+ <Composition
+ id="22khz"
+ component={TwentyTwoKHzAudio}
+ width={1920}
+ height={1080}
+ fps={30}
+ durationInFrames={90}
+ />
+ <Composition
+ id="offline-audio-buffer"
+ lazyComponent={() => import('./OfflineAudioBuffer')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={100}
+ />
+ <Composition
+ id="audio-testing-mute"
+ lazyComponent={() => import('./AudioTestingMute')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={300}
+ />
+ <Composition
+ id="audio-testing"
+ lazyComponent={() => import('./AudioTesting')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={300}
+ />
+ <Composition
+ id="audio-visualization"
+ lazyComponent={() => import('./AudioVisualization')}
+ width={1080}
+ height={1080}
+ fps={30}
+ durationInFrames={180 * 30}
+ />
+ </Folder>
+ <Folder name="three">
+ <Still id="Orb" component={OrbScene} width={2000} height={2000} />
+ <Composition
+ id="three-basic"
+ component={ThreeBasic}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={600}
+ />
+ </Folder>
</>
);
};