Skip to content

🎥 Make videos programmatically with React

YARX interview 1st draft

MehmetAdemi1af5e18155e9
diff --git a/packages/docs/static/img/Yarx.png b/packages/docs/static/img/Yarx.png
new file mode 100644
index 0000000000..090d963538
Binary files /dev/null and b/packages/docs/static/img/Yarx.png differ
diff --git a/packages/docs/success-stories/2021-09-16-makestories.md b/packages/docs/success-stories/2021-09-16-makestories.md
index 57483a5b86..cde3ef7f95 100644
--- a/packages/docs/success-stories/2021-09-16-makestories.md
+++ b/packages/docs/success-stories/2021-09-16-makestories.md
@@ -1,6 +1,6 @@
---
slug: makestories
-title: How MakeStories uses Remotion to render Web Stories
+title: How MakeStories Uses Remotion to Render Web Stories
image: /img/makestories.png
---
diff --git a/packages/docs/success-stories/2022-09-16-yarx.md b/packages/docs/success-stories/2022-09-16-yarx.md
new file mode 100644
index 0000000000..5b4258509b
--- /dev/null
+++ b/packages/docs/success-stories/2022-09-16-yarx.md
@@ -0,0 +1,41 @@
+---
+slug: yarx
+title: YARX Uses Remotion to Create Personalized Videos
+image: /img/Yarx.png
+---
+
+import {MuxVideo} from '../src/components/MuxVideo';
+
+_This is the second article in our series: Success Stories. We interview companies and creators that we find inspiring and which have successfully implemented Remotion in their stack. Let us know what you think!_
+
+[YARX](https://www.yarx.ch/start) is a young and dynamic company, which is specialized in the development of moblie and web apps. They also provide services for cloud computing and websites.
+
+<MuxVideo muxId="hLdLM7l5023LeVkVxPQ5XQLGWy901KRS00STwoMs4yInoU" style={{
+ width: '100%'
+}} controls poster="/img/Yarx.png"/>
+
+<p align="center"><em>A personlized video created by YARX. It shows Mark Kangogo, who won the Jungfrau-Marathon with an astonishing performance. </em></p>
+
+We are talking to founder Raphael Bollinger about how they are using Remotion to allow its clients create personlized videos of people attending sport events.
+
+**Hi Raphael! Tell us about Yarx. What are you doing?**
+
+Yarx is a startup founded by Andreas and me. We provide software solutions, mainly web applications, to our clients. We have special strengths in the media business. It all started with a project during our time at the university. One of our projects is for a film & photography agency that creates personalized videos for each attendee of events like ski competitions or marathons like the famous Jungfrau-Marathon.
+
+**You create for hundreds of people a personalized video when they attended an event. It seems like a good use case for programmatic videos. What did you use before you came across Remotion?**
+
+We started to do this with FFmpeg. This was a good starting point, we were able to create the personalized clips and add some audio to them, but after a while, our client had more wishes regarding the animations of these videos. With FFmpeg, we were very limited in creating beautiful animations as a video overlay. And this was when we started looking for a tool that matches our requirements. I’m sure during that time I saw a video of Jonny Burger on Twitter where he explained what Remotion is capable of. It seemed to be a solution to the challenge we were facing, and this convinced us to give it a try.
+
+**How does Yarx use Remotion in its infrastructure?**
+
+We use Remotion in an unconventional way. Because our backend is built on C#, we had to make a special implementation of Remotion within our existing architecture. When we want to render personalized videos, we start in the background with many virtual machines. On these machines we have a C# program running, within this program we have Remotion installed as a render engine. This enables us to render videos at a very high pace. Once the videos are rendered, they get pushed to our backend.
+
+**After having Remotion implemented in your stack and already used for client projects. What is your conclusion? What works well and are there any challenges?**
+
+There are no complaints. We didn’t compare it with other solutions, but as far as we are concerned everything works well and as supposed. One could say there is a steep learning curve involved especially when working together with a group of people. But this could also be caused by our unconventional approach I mentioned earlier.
+
+_Editors note: After this interview we feel confirmed to aim making it easier to use Remotion and embed it in existing architecture for example by continuously improving documentation, more educational content, and using pre-sets._
+
+---
+
+_Were you successful using Remotion? Let us know your story at [email protected]!_
diff --git a/packages/example/.eslintrc b/packages/example/.eslintrc
deleted file mode 100644
index 9ec5ca74c5..0000000000
--- a/packages/example/.eslintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "@remotion"
-}
diff --git a/packages/example/.prettierrc.js b/packages/example/.prettierrc.js
deleted file mode 100644
index 32eb24f3bf..0000000000
--- a/packages/example/.prettierrc.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = {
- singleQuote: true,
- bracketSpacing: false,
- useTabs: true,
- overrides: [
- {
- files: ['*.yml'],
- options: {
- singleQuote: false,
- },
- },
- ],
- plugins: [require.resolve('prettier-plugin-organize-imports')],
-};
diff --git a/packages/example/freeze.mp4 b/packages/example/freeze.mp4
deleted file mode 100644
index 62e819549d..0000000000
Binary files a/packages/example/freeze.mp4 and /dev/null differ
diff --git a/packages/example/gif.mp4 b/packages/example/gif.mp4
deleted file mode 100644
index 81f37dabb2..0000000000
Binary files a/packages/example/gif.mp4 and /dev/null differ
diff --git a/packages/example/jest.config.js b/packages/example/jest.config.js
deleted file mode 100644
index e178ecdc01..0000000000
--- a/packages/example/jest.config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = {
- preset: 'ts-jest',
- testEnvironment: 'node',
- testPathIgnorePatterns: ['dist'],
- testTimeout: 240000,
-};
diff --git a/packages/example/package.json b/packages/example/package.json
deleted file mode 100644
index a2122730c2..0000000000
--- a/packages/example/package.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "name": "@remotion/example",
- "private": true,
- "version": "3.2.16",
- "description": "",
- "license": "SEE LICENSE IN LICENSE.md",
- "author": "Jonny Burger",
- "main": "dist/index.js",
- "files": [
- "dist"
- ],
- "scripts": {
- "start": "remotion preview src/index.tsx --props src/my-props.json",
- "start-js": "remotion preview src/entry.jsx",
- "comps": "remotion compositions src/index.tsx",
- "lint": "eslint src --ext ts,tsx,js,jsx",
- "test": "vitest --run",
- "build": "tsc -d",
- "render": "remotion render src/index.tsx react-svg",
- "render-js": "remotion render src/entry.jsx framer",
- "render-gif": "remotion render src/index.tsx framer out/video.gif --codec=gif --every-nth-frame=2",
- "render-transparent": "remotion render src/index.tsx --image-format=png --pixel-format=yuva420p --codec=vp8 react-svg out/video.webm"
- },
- "dependencies": {
- "@babel/plugin-syntax-jsx": "7.12.13",
- "@babel/preset-env": "7.12.13",
- "@babel/preset-react": "7.12.13",
- "@mdx-js/react": "^1.6.21",
- "@react-three/drei": "^7.22.7",
- "@remotion/babel-loader": "3.2.16",
- "@remotion/bundler": "3.2.16",
- "@remotion/cli": "3.2.16",
- "@remotion/eslint-config": "3.2.16",
- "@remotion/eslint-plugin": "3.2.16",
- "@remotion/gif": "3.2.16",
- "@remotion/lambda": "3.2.16",
- "@remotion/lottie": "3.2.16",
- "@remotion/media-utils": "3.2.16",
- "@remotion/paths": "3.2.16",
- "@remotion/renderer": "3.2.16",
- "@remotion/three": "3.2.16",
- "@types/express": "^4.17.11",
- "@types/node": "^16.7.5",
- "@types/react": "18.0.1",
- "@types/styled-components": "^5.1.1",
- "@types/web": "0.0.48",
- "babel-loader": "^8.2.2",
- "lottie-web": "^5.9.6",
- "mdx-loader": "3.0.2",
- "polished": "^4.0.5",
- "prettier": "^2.0.5",
- "remotion": "3.2.16",
- "styled-components": "^5.1.1",
- "ts-unused-exports": "^7.0.1",
- "typescript": "^4.7.0",
- "vitest": "^0.18.0"
- },
- "devDependencies": {
- "@types/babel__core": "^7.1.12",
- "@types/babel__template": "^7.4.0",
- "@typescript-eslint/eslint-plugin": "5.18.0",
- "@typescript-eslint/parser": "5.18.0",
- "eslint": "8.13.0",
- "eslint-plugin-10x": "1.5.2",
- "eslint-plugin-react": "7.29.4",
- "eslint-plugin-react-hooks": "4.4.0",
- "prettier-plugin-organize-imports": "^2.3.4"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/packages/example/public/22khz.wav b/packages/example/public/22khz.wav
deleted file mode 100644
index f72c557011..0000000000
Binary files a/packages/example/public/22khz.wav and /dev/null differ
diff --git a/packages/example/public/balloons.json b/packages/example/public/balloons.json
deleted file mode 100644
index 3455bdbabf..0000000000
--- a/packages/example/public/balloons.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"5.7.13","fr":60,"ip":0,"op":190,"w":1400,"h":1400,"nm":"Halloween4","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"syes2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":81,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":126,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[23.598,4.338],[-16.144,12.513],[-14.406,-3.486],[-5.783,-9.989],[5.551,-10.333],[13.41,0.622]],"o":[[13.06,-15.846],[12.84,-9.954],[11.369,2.748],[5.304,9.168],[-6.815,12.675],[-27.865,-1.285]],"v":[[-60.747,25.943],[-16.719,-16.816],[26.301,-32.49],[50.867,-9.75],[55.196,21.422],[18.174,35.354]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[1016.351,648.256],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.588,-5.228],[-0.529,-9.563],[-2.631,-4.201],[-26.415,-19.799],[-0.591,17.05],[11.075,13.562]],"o":[[-8.602,5.235],[0.295,5.194],[17.663,28.208],[8.121,-15.849],[0.646,-18.677],[-11.088,-13.558]],"v":[[-28.393,-48.557],[-43.638,-24.21],[-38.246,-10.278],[32.714,58.061],[43.521,7.485],[31.676,-44.504]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[868.17,595.655],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"mouth Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":126,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":165,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.317,2.572],[-55.276,18.748],[-3.219,58.553],[13.379,-15.2],[1.988,11.645],[11.29,-14.437],[2.065,14.99],[13.311,-16.182],[4.956,16.23],[8.899,-17.054],[6.334,14.712],[1.491,-17.313],[7.875,10.834],[-1.962,-12.524]],"o":[[22.414,49.865],[55.282,-18.752],[-13.38,15.196],[-1.989,-11.659],[-11.301,14.427],[-6.001,-13.214],[-11.037,17.796],[-9.974,-12.898],[-4.967,18.206],[-8.578,-13.169],[-4.002,17.253],[-7.88,-10.845],[1.974,12.524],[-6.802,-0.536]],"v":[[-120.666,3.985],[16.998,59.13],[120.665,-77.878],[80.514,-32.268],[74.554,-67.213],[40.654,-23.918],[28.508,-66.494],[-8.082,-15.423],[-30.68,-59.515],[-51.564,-6.359],[-73.981,-48.265],[-82.225,3.686],[-105.874,-28.833],[-99.963,8.752]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[546.778,620.971],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"eyes Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":45,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":90,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-7.396,4.729],[-19.62,-29.593],[4.757,-6.698],[3.418,0.553],[3.092,1.532],[20.959,-9.584],[5.658,5.583],[-3.349,8.47]],"o":[[31.578,-20.161],[3.851,5.791],[-2.607,3.689],[-3.404,-0.546],[-18.538,-9.155],[-7.691,3.517],[-5.026,-4.942],[3.335,-8.474]],"v":[[-38.476,-16.268],[50.238,0.056],[52.279,22.001],[42.187,26.309],[32.713,22.262],[-29.641,29.118],[-52.01,30.845],[-53.511,6.705]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[593.479,470.1],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[7.389,-0.306],[10.089,-32.457],[-5.582,-2.562],[-2.79,2.184],[-2.306,2.765],[-20.077,3.744],[-3.576,7.127],[4.767,4.621]],"o":[[-31.53,1.33],[-1.975,6.351],[3.057,1.398],[2.789,-2.191],[13.781,-16.557],[7.361,-1.367],[3.173,-6.334],[-4.775,-4.616]],"v":[[24.553,-38.597],[-47.578,19.949],[-44.355,37.505],[-34.765,35.475],[-27.572,27.482],[27.256,0.095],[46.764,-10.272],[42.601,-29.199]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[440.244,517.803],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"mouth2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":126,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":165,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[700,700,0],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[11.047,0.956],[0.35,-0.144],[0.901,-1.041],[0.453,-0.618],[6.272,-1.931],[2.02,4.882],[0.962,4.226],[1.458,0.346],[11.15,-8.673],[-0.171,2.531],[1.951,12.662],[3.18,1.45],[13.157,-7.11],[0.926,1.658],[-0.976,17.147],[1.614,1.247],[12.07,-2.924],[0.343,1.504],[-0.344,14.485],[7.543,12.506],[-22.114,-32.028],[-40.746,1.47],[-15.773,3.874],[-20.658,19.937]],"o":[[-0.372,0.196],[-1.807,0.783],[-0.48,0.584],[-3.758,5.235],[-6.691,2.037],[-1.635,-3.985],[-1.457,-0.333],[-12.07,7.424],[-2.192,1.704],[0.879,-13.049],[-3.256,-1.326],[-12.922,7.606],[-1.69,0.913],[-8.038,-14.387],[-1.649,-1.216],[-11.946,3.538],[-1.422,0.347],[-3.057,-14.063],[-9.542,-10.892],[-13.918,42.095],[22.116,32.017],[15.849,-0.563],[26.731,-6.576],[-11.239,0.395]],"v":[[92.391,39.28],[91.312,39.895],[89.958,40.758],[88.632,42.688],[73.251,56.833],[59.978,46.164],[56.337,33.77],[51.953,32.747],[19.356,61.315],[14.203,58.736],[12.404,19.979],[2.697,15.895],[-36.016,38.817],[-40.639,37.952],[-45.022,-12.052],[-49.907,-15.751],[-85.63,-4.227],[-88.88,-5.848],[-86.097,-49.696],[-111.915,-84.732],[-98.622,33.936],[2.875,83.262],[50.47,75.383],[125.833,40.211]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[902.385,716.475],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"bag Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[700,856,0],"to":[0,-26,0],"ti":[0,26,0]},{"t":45,"s":[700,700,0]}],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[8.615,2.583]],"o":[[-8.625,-2.576],[0,0]],"v":[[12.924,3.867],[-12.924,-3.867]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[600.913,847.655],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.526,16.058]],"o":[[-3.854,-15.354],[0,0]],"v":[[3.306,23.664],[-3.306,-23.663]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[637.784,816.297],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[1.099,64.303]],"o":[[8.364,-64.161],[0,0]],"v":[[-33.274,90.516],[32.175,-90.516]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[704.139,727.834],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-17.84,-0.216]],"o":[[12.329,-13.789],[0,0]],"v":[[-24.055,10.932],[24.055,-10.716]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[631.898,872.32],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-72.516,-64.379],[37.905,51.972],[-22.914,63.997],[-5.819,-16.495]],"o":[[-59.257,-20.067],[-37.908,-51.984],[-3.878,17.642],[57.508,162.522]],"v":[[104.068,147.081],[-49.833,42.111],[-81.154,-147.081],[-71.512,-95.847]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.741000007181,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[427.43,668.832],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[8.866,-6.495],[0.807,-32.509],[-9.164,1.806],[-6.173,-2.765],[-5.894,5.98],[-2.047,7.553],[-2.082,-1.941],[-6.777,11.777],[5.942,8.88],[9.147,5.476],[5.053,9.556]],"o":[[-19.38,31.237],[8.961,-0.348],[7.598,-1.507],[5.99,2.686],[5.901,-5.981],[3.091,0.23],[7.722,7.206],[6.781,-11.763],[-5.926,-8.869],[-9.142,-5.468],[-10.992,6.035]],"v":[[-27.619,-40.056],[-58.87,58.621],[-34.688,41.174],[-17.901,51.129],[2.76,44.279],[14.133,22.897],[20.859,27.953],[52.089,16.019],[51.238,-17.908],[26.651,-37.659],[3.237,-58.622]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.573000021542,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[641.742,907.073],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.706,-1.381],[21.725,-6.242],[38.98,-2.594],[62.052,20.984],[-17.443,-15.86],[-18.995,-4.791],[-31.264,-1.11],[-15.794,2.006],[-8.282,1.082],[-8.244,1.997],[-14.345,4.732],[-12.963,34.525]],"o":[[-20.445,10.397],[-38.118,10.974],[-65.457,4.355],[14.777,20.992],[18.635,6.042],[30.146,7.602],[15.774,0.559],[8.275,-1.041],[8.346,-1.093],[14.579,-3.52],[16.955,-25.265],[-2.679,1.45]],"v":[[183.763,-52.337],[120.274,-27.564],[3.519,-8.568],[-191.806,-29.773],[-143.147,25.428],[-86.776,41.949],[5.462,56.126],[52.876,54.071],[77.711,51.585],[102.617,46.854],[145.888,33.926],[191.806,-56.686]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[558.172,763.575],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.748,-0.652],[19.6,-12.887],[20.15,-8.227],[41.021,-7.313],[73.322,12.96],[-8.701,-28.13],[-39.795,-2.524],[-20.201,0.653],[-21.125,2.373],[-39.801,16.604],[-30.398,23.646],[0.989,16.027],[8.238,24.08]],"o":[[-17.766,15.702],[-18.505,12.164],[-39.189,16.01],[-74.343,13.262],[0.8,26.411],[37.653,12.489],[20.094,1.275],[21.101,-0.669],[42.017,-4.706],[34.875,-14.564],[0.812,-15.688],[-1.539,-25.339],[-0.742,0.664]],"v":[[220.406,-106.169],[164.566,-62.793],[106.49,-32.732],[-14.375,1.923],[-238.266,2.747],[-224.433,84.76],[-107.675,106.689],[-47.182,107.517],[15.997,104.673],[139.501,72.388],[237.441,14.158],[237.277,-33.444],[222.604,-108.169]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[542.572,550.63],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[9.862,-7.646],[15.162,-9.48],[14.464,-6.695],[49.288,-2.895],[6.052,-24.753],[-35.318,7.701],[-36.026,14.11],[-34.972,21.448],[-17.442,14.956],[37.615,7.42]],"o":[[-14.238,11.061],[-13.668,8.54],[-45.751,21.155],[-11.582,20.861],[35.689,-0.331],[37.475,-8.161],[37.547,-14.702],[19.531,-11.998],[-25.779,-21.221],[-9.365,8.622]],"v":[[66.742,-67.805],[22.932,-36.272],[-19.341,-13.46],[-163.892,23.572],[-190.781,92.214],[-83.967,80.871],[25.104,43.829],[135.152,-7.765],[190.781,-48.005],[95.693,-92.214]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[503.056,384.674],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 9","np":2,"cix":2,"bm":0,"ix":9,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.58,3.984],[-17.896,10.432],[-2.689,1.697],[5.496,-1.099],[24.656,-19.862]],"o":[[19.116,-7.21],[2.745,-1.604],[-5.334,0.838],[-27.679,5.571],[10.803,-3.068]],"v":[[-15.85,10.457],[39.872,-15.909],[47.944,-20.956],[31.738,-18.081],[-47.943,20.956]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.486000001197,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[449.376,312.701],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 10","np":2,"cix":2,"bm":0,"ix":10,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[68.181,130.869],[-122.563,24.684],[-7.989,-131.206],[60.967,-5.235]],"o":[[-101.686,-195.127],[193.949,-39.041],[11.013,180.573],[-78.881,6.774]],"v":[[-173.28,128.982],[-34.783,-271.169],[263.953,-48.596],[104.049,303.437]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.969000004787,0.573000021542,0.118000000598,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[515.896,565.783],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 11","np":2,"cix":2,"bm":0,"ix":11,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-6.657,-16.803],[-5.001,-17.299],[20.816,-16.044],[21.149,-15.557],[4.214,-39.152],[-25.488,-28.314]],"o":[[-10.899,14.536],[6.588,16.657],[7.369,25.545],[-20.827,16.059],[-30.987,22.781],[-4.209,39.162],[0,0]],"v":[[55.865,-207.393],[48.834,-155.371],[75.162,-109.187],[44.99,-40.176],[-22.044,0.364],[-78.322,99.446],[-44.264,207.393]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[584.175,1089.951],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 12","np":2,"cix":2,"bm":0,"ix":12,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"bag2 Outlines","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.78],"y":[17.742]},"o":{"x":[0.318],"y":[0]},"t":45,"s":[100]},{"i":{"x":[0.722],"y":[1]},"o":{"x":[0.385],"y":[0.02]},"t":180,"s":[100]},{"t":189,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[700,856,0],"to":[0,-26,0],"ti":[0,26,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":45,"s":[700,700,0],"to":[0,0,0],"ti":[0,0,0]},{"t":180,"s":[700,700,0]}],"ix":2,"l":2},"a":{"a":0,"k":[700,700,0],"ix":1,"l":2},"s":{"a":0,"k":[81,81,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[2.9,-19.847],[4.72,-18.521],[28.38,8.632],[28.418,9.365],[25.324,-26.216],[-8.571,-47.938]],"o":[[-18.212,0.265],[-2.865,19.662],[-7.008,27.384],[-28.382,-8.639],[-41.631,-13.695],[-25.315,26.209],[0,0]],"v":[[164.64,-110.647],[129.617,-77.27],[129.253,-14.616],[63.143,8.512],[-22.154,-27.992],[-129.267,-7.969],[-156.069,110.647]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[639.495,1092.547],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-20.659,-6.039],[-4.555,2.608]],"o":[[15.608,15.265],[4.925,1.443],[0,0]],"v":[[-35.229,-17.546],[20.205,15.021],[35.229,14.938]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.075,0.035000000748,0.071000005685,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":2,"lj":1,"ml":10,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[792.133,965.742],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[9.858,3.47],[17.243,-8.645],[3.813,-4.953],[-4.074,-4.7],[-5.792,1.062],[-5.826,0.742],[0.351,-6.849],[-6.644,-2.504],[-11.081,3.28],[-1.257,-5.475],[-5.786,-0.838],[-4.259,7.714],[-3.318,-3.5],[-4.519,1.972],[1.36,7.403],[0,0]],"o":[[-17.656,7.846],[-5.682,2.852],[-3.827,4.947],[3.738,4.317],[5.757,-1.085],[-3.366,6.056],[-0.329,6.843],[10.737,4.06],[-1.065,5.54],[1.257,5.503],[8.964,1.288],[1.545,4.493],[3.311,3.497],[7.166,-3.106],[0,0],[-16.289,-4.706]],"v":[[7.867,-55.071],[-44.488,-30.333],[-59.843,-19.486],[-60.737,-2.43],[-44.482,1.496],[-27.445,-2.773],[-34.425,16.51],[-24.717,33.315],[7.585,23.906],[6.72,40.64],[17.966,52.221],[37.813,36.867],[44.305,49.521],[57.646,53.1],[63.232,32.915],[49.705,-40.336]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.779999976065,0.685999971278,0.745000023935,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[770.767,992.317],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 3","np":2,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-1.264,11.84],[1.93,23.118],[13.493,13.685],[10.346,3.167],[10.326,3.541],[9.885,5.272],[8.182,6.179],[9.425,15.3],[4.871,24.347],[-2.315,-37.671],[-9.584,-12.916],[-13.692,-9.651],[-13.864,-14.488],[-3.757,-8.097],[-1.353,-9.519],[1.306,-18.467],[-26.827,8.697]],"o":[[2.445,-22.702],[-1.67,-20.133],[-7.701,-7.809],[-10.435,-3.181],[-10.566,-3.634],[-8.994,-4.796],[-14.117,-10.653],[-12.745,-20.771],[-7.976,37.612],[4.699,15.124],[10.112,13.633],[15.966,11.257],[6.079,6.352],[4.026,8.652],[2.631,18.466],[22.761,1.02],[-1.841,-11.668]],"v":[[94.696,116.621],[104.932,49.041],[79.299,-2.088],[52.858,-18.147],[21.387,-26.947],[-9.246,-40.487],[-35.476,-56.409],[-70.828,-96.2],[-96.852,-164.882],[-104.546,-50.295],[-82.933,-7.962],[-46.646,27.699],[2.062,59.445],[16.928,81.162],[24.142,108.549],[20.342,163.862],[95.658,152.094]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[805.701,815.953],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 4","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.329,13.641],[9.652,21.99],[14.942,14.567],[23.131,3.833],[23.324,10.143],[10.106,6],[7.831,5.805],[8.464,19.542],[-1.854,13.761],[1.209,-2.508],[4.967,-18.82],[-21.015,-26.528],[-16.592,-8.916],[-10.532,-3.988],[-10.339,-2.717],[-8.402,-6.437],[-5.482,-7.296],[0.996,-20.573],[1.085,-22.073],[-1.237,-8.089],[-33.45,25.94]],"o":[[0.611,-24.158],[-8.601,-19.587],[-17.017,-16.578],[-24.862,-4.119],[-10.786,-4.696],[-8.367,-4.954],[-16.715,-12.387],[-5.654,-13.036],[-1.25,2.456],[-8.415,17.233],[4.816,34.22],[11.961,15.124],[9.947,5.338],[10.016,3.796],[10.03,2.639],[7.179,5.493],[11.934,15.908],[-1.072,22.11],[-0.432,8.306],[33.945,-12.147],[1.992,-13.4]],"v":[[151.85,98.104],[140.515,27.526],[103.603,-23.641],[42.474,-55.63],[-30.21,-74.097],[-60.946,-91.103],[-85.444,-106.918],[-123.064,-155.331],[-128.78,-196.073],[-132.51,-188.67],[-152.461,-134.365],[-114.882,-39.909],[-71.821,-5.051],[-41.181,9.263],[-10.438,18.056],[17.976,30.501],[36.964,50.554],[54.675,106.408],[43.662,171.444],[44.961,196.073],[147.811,138.576]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[865.211,768.92],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":2,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.133,6.468],[13.458,13.41],[19.985,11.116],[22.265,2.892],[20.796,9.233],[15.698,16.217],[11.492,19.469],[4.891,15.829],[9.775,-16.896],[0.494,-1.182],[-1.766,-12.098],[-5.778,-9.742],[-9.164,-7.687],[-9.294,-5.403],[-10.175,-4.744],[-11.995,-2.999],[-11.789,-1.695],[-11.116,-5.249],[-13.994,-16.227],[-6.645,-19.882],[1.36,-23.68],[1.038,-7.88],[-18.534,23.1],[-10.297,16.849]],"o":[[-8.45,-17.434],[-16.281,-16.206],[-19.957,-11.088],[-22.315,-2.896],[-20.562,-9.117],[-15.498,-16.007],[-8.354,-14.17],[-11.59,14.028],[0.514,0.849],[-4.74,11.277],[1.663,11.521],[6.176,10.377],[8.307,6.984],[9.721,5.64],[11.239,5.263],[11.562,2.879],[12.077,1.741],[19.16,9.061],[13.363,15.488],[7.487,22.406],[-0.46,7.958],[21.516,-17.779],[13.672,-16.99],[-2.308,-6.856]],"v":[[181.453,64.063],[147.906,17.972],[94.651,-25.354],[29.998,-42.552],[-35.953,-57.333],[-89.656,-98.924],[-131.466,-151.152],[-151.08,-196.35],[-183.114,-149.854],[-182.888,-146.776],[-187.669,-111.379],[-175.359,-79.835],[-153.479,-52.909],[-126.657,-34.851],[-97.213,-18.415],[-62.176,-6.3],[-27.167,0.372],[7.698,9.807],[57.099,48.54],[88.339,101.555],[95.454,172.628],[93.044,196.35],[153.629,134.95],[189.435,84.136]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[930.297,702.905],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.638,0.429],[42.793,6.726],[20.377,8.319],[15.643,12.377],[6.397,6.883],[5.804,8.142],[2.37,9.052],[-1.739,9.062],[0.707,-3.755],[-4.604,-10.68],[-8.299,-8.275],[-8.148,-6.966],[-9.192,-4.871],[-9.055,-3.645],[-10.814,-3.006],[-21.983,-0.186],[-33.222,-6.242],[19.264,21.159],[4.926,-0.498],[20.032,7.089],[15.272,36.222],[44.228,-50.773],[-11.176,-16.865],[-8.725,-9.545],[-10.181,-8.896],[-10.072,-5.378],[-11.096,-2.356],[-22.313,-4.26],[-10.031,-4.634],[-9.096,-6.915],[-13.836,-16.505],[-6.843,-18.04],[12.276,55.008]],"o":[[-42.745,-6.956],[-21.715,-3.4],[-18.17,-7.413],[-7.309,-5.798],[-6.766,-7.255],[-5.331,-7.471],[-2.335,-8.935],[0.72,-3.765],[-2.164,11.575],[4.726,10.961],[7.599,7.553],[7.969,6.801],[8.663,4.59],[10.435,4.201],[21.132,5.877],[33.738,0.285],[-7.597,-26.735],[-4.857,0.931],[-21.276,2.16],[-34.775,-12.308],[-72.595,-8.368],[5.846,19.534],[7.201,10.882],[9.164,10.021],[8.635,7.547],[10.078,5.39],[22.237,4.741],[10.792,2.067],[10.326,4.785],[16.989,12.881],[12.188,14.523],[38.1,-66.58],[-2.61,-0.584]],"v":[[175.772,-9.752],[46.589,-13.695],[-16.663,-31.75],[-67.94,-59.034],[-88.454,-78.177],[-108.3,-100.672],[-120.358,-126.349],[-120.343,-153.529],[-114.806,-152.451],[-111.797,-120.175],[-92.699,-92.411],[-70.09,-69.758],[-44.362,-52.122],[-17.466,-40.714],[14.404,-29.864],[79.317,-20.073],[181.054,-18.445],[140.597,-90.672],[125.937,-88.461],[63.853,-96.357],[-21.815,-169.169],[-195.92,-98.466],[-170.866,-43.57],[-146.642,-13.438],[-117.788,15.206],[-89.923,35.37],[-57.847,46.526],[9.546,56.433],[41.038,65.951],[70.078,83.933],[117.143,128.541],[145.874,177.536],[183.644,-8.216]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.877999997606,0.827000038297,0.859000052658,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[980.015,599.237],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":2,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-68.084,139.48],[-148.947,-62.867],[129.952,-161.749],[66.604,45.96]],"o":[[59.198,-121.251],[151.696,64.031],[-96.433,120.042],[-54.781,-37.818]],"v":[[-206.553,-119.03],[99.096,-247.12],[144.686,138.579],[-168.034,264.027]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.779999976065,0.685999971278,0.745000023935,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[939.241,699.276],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 8","np":2,"cix":2,"bm":0,"ix":8,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":190,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/example/public/bangers.woff2 b/packages/example/public/bangers.woff2
deleted file mode 100644
index 7e4a7fa22c..0000000000
Binary files a/packages/example/public/bangers.woff2 and /dev/null differ
diff --git a/packages/example/public/corrupted.mp4 b/packages/example/public/corrupted.mp4
deleted file mode 100644
index 70ff2ac2b5..0000000000
Binary files a/packages/example/public/corrupted.mp4 and /dev/null differ
diff --git a/packages/example/public/framer.webm b/packages/example/public/framer.webm
deleted file mode 100644
index 7b7c0095dc..0000000000
Binary files a/packages/example/public/framer.webm and /dev/null differ
diff --git a/packages/example/public/framermp4withoutfileextension b/packages/example/public/framermp4withoutfileextension
deleted file mode 100644
index 9934affe34..0000000000
Binary files a/packages/example/public/framermp4withoutfileextension and /dev/null differ
diff --git a/packages/example/public/giphy.gif b/packages/example/public/giphy.gif
deleted file mode 100644
index 9faaf009da..0000000000
Binary files a/packages/example/public/giphy.gif and /dev/null differ
diff --git a/packages/example/public/logo.png b/packages/example/public/logo.png
deleted file mode 100644
index a35f38446a..0000000000
Binary files a/packages/example/public/logo.png and /dev/null differ
diff --git a/packages/example/public/music.mp3 b/packages/example/public/music.mp3
deleted file mode 100644
index e80bf73822..0000000000
Binary files a/packages/example/public/music.mp3 and /dev/null differ
diff --git a/packages/example/public/nested/mp4.png b/packages/example/public/nested/mp4.png
deleted file mode 100644
index 2d36a37e67..0000000000
Binary files a/packages/example/public/nested/mp4.png and /dev/null differ
diff --git a/packages/example/public/pts-framermp4withoutfileextension.mp4 b/packages/example/public/pts-framermp4withoutfileextension.mp4
deleted file mode 100644
index b53293278b..0000000000
Binary files a/packages/example/public/pts-framermp4withoutfileextension.mp4 and /dev/null differ
diff --git a/packages/example/public/reverse-loader.json b/packages/example/public/reverse-loader.json
deleted file mode 100644
index f5157a25a4..0000000000
--- a/packages/example/public/reverse-loader.json
+++ /dev/null
@@ -1 +0,0 @@
-{"v":"5.6.10","fr":60,"ip":0,"op":120,"w":576,"h":576,"nm":"loop","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"O","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[288,288,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-26.51,0],[0,0],[0,-26.51],[26.51,0],[0,0],[0,26.51]],"o":[[0,0],[26.51,0],[0,26.51],[0,0],[-26.51,0],[0,-26.51]],"v":[[-24,-48],[24,-48],[72,0],[24,48],[-24,48],[-72,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":48,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":16,"ix":5},"lc":2,"lj":2,"bm":0,"d":[{"n":"d","nm":"dash","v":{"a":0,"k":135,"ix":1}},{"n":"g","nm":"gap","v":{"a":0,"k":62,"ix":2}},{"n":"o","nm":"offset","v":{"a":1,"k":[{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"t":102,"s":[197]}],"ix":7}}],"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"O","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[113]},{"t":95,"s":[180]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.33,"y":0},"t":60,"s":[420,144,0],"to":[133,95,0],"ti":[0,0,0]},{"i":{"x":0.67,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[479,370,0],"to":[-53,72,0],"ti":[221,0,0]},{"t":102,"s":[156,430.99999999999994,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-20,32],[-20,-32],[20,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Path 12","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.33],"y":[0]},"t":60,"s":[0]},{"i":{"x":[0.67],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":80,"s":[113]},{"t":95,"s":[180]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.33,"y":0},"t":60,"s":[156,432,0],"to":[-86.99,-49.979,0],"ti":[-55.026,59.948,0]},{"i":{"x":0.67,"y":1},"o":{"x":0.167,"y":0.167},"t":80,"s":[98.063,203.125,0],"to":[55.026,-59.948,0],"ti":[-219.01,-2.021,0]},{"t":102,"s":[420.125,144.25,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[-100,-100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-20,32],[-20,-32],[20,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"rd","nm":"Round Corners 1","r":{"a":0,"k":4,"ix":1},"ix":2,"mn":"ADBE Vector Filter - RC","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.14901960784313725,0.14901960784313725,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Path 12","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}],"markers":[]}
\ No newline at end of file
diff --git a/packages/example/remotion.config.js b/packages/example/remotion.config.js
deleted file mode 100644
index 9bfa0a6d5f..0000000000
--- a/packages/example/remotion.config.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import {Config} from 'remotion';
-
-Config.Rendering.setConcurrency(require('os').cpus().length);
-Config.Output.setOverwriteOutput(true);
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
deleted file mode 100644
index 4b94295e33..0000000000
--- a/packages/example/remotion.config.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import {Config} from 'remotion';
-import {webpackOverride} from './src/webpack-override';
-
-Config.Output.setOverwriteOutput(true);
-Config.Bundling.overrideWebpackConfig(webpackOverride);
diff --git a/packages/example/render-all.ts b/packages/example/render-all.ts
deleted file mode 100644
index 0eabf66d4d..0000000000
--- a/packages/example/render-all.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import {bundle} from '@remotion/bundler';
-import {getCompositions, renderMedia} from '@remotion/renderer';
-import {webpackOverride} from './src/webpack-override';
-
-const start = async () => {
- const bundled = await bundle(
- require.resolve('./src/index.tsx'),
- () => undefined,
- {
- webpackOverride,
- }
- );
-
- const compositions = await getCompositions(bundled);
-
- for (const composition of compositions) {
- console.log(`Rendering ${composition.id}...`);
- await renderMedia({
- codec: 'h264',
- composition,
- serveUrl: bundled,
- outputLocation: `out/${composition.id}.mp4`,
- });
- }
-};
-
-start()
- .then(() => {
- process.exit(0);
- })
- .catch((err) => {
- console.log(err);
- process.exit(1);
- });
diff --git a/packages/example/renderall.sh b/packages/example/renderall.sh
deleted file mode 100644
index cf6f4a74ad..0000000000
--- a/packages/example/renderall.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-compositions=($(npx remotion compositions src/index.tsx -q))
-
-
-for composition in "${compositions[@]}"
-do
- echo $composition
- npx remotion render src/index.tsx $composition $composition.mp4
-done
diff --git a/packages/example/src/22KhzAudio/index.tsx b/packages/example/src/22KhzAudio/index.tsx
deleted file mode 100644
index 1a7516056f..0000000000
--- a/packages/example/src/22KhzAudio/index.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import {Audio, Sequence} from 'remotion';
-import {AbsoluteFill, staticFile} from 'remotion';
-
-export const TwentyTwoKHzAudio = () => {
- const twenty = staticFile('22khz.wav');
- return (
- <AbsoluteFill>
- <Sequence from={1} durationInFrames={30}>
- <Audio src={staticFile('music.mp3')} />
- </Sequence>
- <Sequence from={31} durationInFrames={100}>
- <Audio src={twenty} />
- </Sequence>
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/AudioTesting/Base64.tsx b/packages/example/src/AudioTesting/Base64.tsx
deleted file mode 100644
index 23714e471e..0000000000
--- a/packages/example/src/AudioTesting/Base64.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import {Audio} from 'remotion';
-
-const Base64Audio: React.FC = () => {
- return (
- <Audio src="data:audio/mpeg;base64,/+MYxAAJcAV8AAgAABn//////+/gQ5BAMA+D4Pg+BAQBAEAwD4Pg+D4EBAEAQDAPg++hYBH///hUFQVBUFREDQNHmf///////+MYxBUGkAGIMAAAAP/29Xt6lUxBTUUzLjEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxDUAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV" />
- );
-};
-
-export default Base64Audio;
diff --git a/packages/example/src/AudioTesting/index.tsx b/packages/example/src/AudioTesting/index.tsx
deleted file mode 100644
index 0519b44a99..0000000000
--- a/packages/example/src/AudioTesting/index.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import {Audio, interpolate, Sequence, staticFile} from 'remotion';
-
-const AudioTesting: React.FC = () => {
- return (
- <div>
- <Sequence from={100} durationInFrames={100}>
- <Audio
- startFrom={100}
- endAt={200}
- src={staticFile('music.mp3')}
- volume={(f) =>
- interpolate(f, [0, 50, 100], [0, 1, 0], {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- })
- }
- />
- </Sequence>
- </div>
- );
-};
-
-export default AudioTesting;
diff --git a/packages/example/src/AudioTestingMute/index.tsx b/packages/example/src/AudioTestingMute/index.tsx
deleted file mode 100644
index d99335ec71..0000000000
--- a/packages/example/src/AudioTestingMute/index.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import React from 'react';
-import {
- Audio,
- Sequence,
- useCurrentFrame,
- useVideoConfig,
- Video,
-} from 'remotion';
-import movie from '../resources/framer-music.mp4';
-import music from '../resources/sound1.mp3';
-
-const AudioTestingMute: React.FC = () => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
-
- /**
- * Interleave music with the movie by muting each other
- * at certain points.
- */
- const getMuteState = React.useCallback(
- (type: 'movie' | 'music') => {
- const muteParts = [
- {start: Number(fps), end: 2 * fps},
- {start: 4 * fps, end: 5 * fps},
- ];
- const toMute = muteParts.some(
- (mp) => frame >= mp.start && frame <= mp.end
- );
- return type === 'movie' ? toMute : !toMute;
- },
- [fps, frame]
- );
-
- return (
- <div>
- <Video src={movie} muted={getMuteState('movie')} />
- <Sequence from={20} durationInFrames={200}>
- <Sequence from={20} durationInFrames={200}>
- <Sequence from={20} durationInFrames={200}>
- <Sequence from={20} durationInFrames={200}>
- <Sequence from={20} durationInFrames={200}>
- <Audio src={music} muted={getMuteState('music')} />
- <Audio src={music} muted={getMuteState('music')} />
- <Audio src={music} muted={getMuteState('music')} />
- </Sequence>
- </Sequence>
- </Sequence>
- </Sequence>
- </Sequence>
- </div>
- );
-};
-
-export default AudioTestingMute;
diff --git a/packages/example/src/AudioVisualization/index.tsx b/packages/example/src/AudioVisualization/index.tsx
deleted file mode 100644
index ebc4508455..0000000000
--- a/packages/example/src/AudioVisualization/index.tsx
+++ /dev/null
@@ -1,241 +0,0 @@
-import {useAudioData, visualizeAudio} from '@remotion/media-utils';
-import {transparentize} from 'polished';
-import React from 'react';
-import {
- AbsoluteFill,
- Audio,
- Img,
- interpolate,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import styled from 'styled-components';
-import DropDots from '../DropDots/DropDots';
-import music from '../resources/sound1.mp3';
-
-const Background = styled(Img)`
- height: 100%;
- width: 120%;
- margin-left: -15%;
-`;
-
-const Blur = styled(AbsoluteFill)`
- backdrop-filter: blur(5px);
-`;
-
-const FullSize = styled(AbsoluteFill)`
- display: flex;
- justify-content: center;
- align-items: center;
-`;
-
-const Orb = styled.div`
- height: 400px;
- width: 400px;
- border-radius: 200px;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 70px;
- font-family: --apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
- Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
- font-weight: bold;
- text-transform: lowercase;
- flex-direction: column;
-`;
-
-const Text: React.FC<{
- color: string;
- transform: string;
- blur: number;
-}> = ({color, transform, blur}) => {
- const frame = useCurrentFrame();
- const cool = (offset: number) => Math.sin((frame + offset) / 10);
- return (
- <AbsoluteFill
- style={{
- textAlign: 'center',
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- color,
- transform,
- filter: `blur(${blur}px)`,
- }}
- >
- <div
- style={{
- transform: `translateY(${cool(0) * 8}px)`,
- }}
- >
- Remotion
- </div>
- <div
- style={{
- transform: `translateY(${cool(5) * 8}px)`,
- }}
- >
- Nation
- </div>
- </AbsoluteFill>
- );
-};
-
-const AudioVisualization: React.FC = () => {
- const frame = useCurrentFrame();
- const {width, height, fps} = useVideoConfig();
- const audioData = useAudioData(music);
-
- if (!audioData) {
- return null;
- }
-
- const visualization = visualizeAudio({
- fps,
- frame,
- audioData,
- numberOfSamples: 32,
- });
-
- const scale =
- 1 +
- interpolate(visualization[1], [0.14, 1], [0, 0.6], {
- extrapolateLeft: 'clamp',
- });
-
- const backgroundScale =
- 1 + interpolate(visualization[visualization.length - 1], [0, 0.7], [0, 1]);
-
- const circlesOut = visualization.slice(4);
-
- const rgbEffect = interpolate(
- visualization[Math.floor(visualization.length / 3)],
- [0, 0.5],
- [0, 30]
- );
-
- const dropStart = 1989;
- const dropEnd = 3310;
-
- const dayInterpolation = [dropStart - 5, dropStart, dropEnd, dropEnd + 5];
-
- const day = interpolate(frame, dayInterpolation, [1, 0, 0, 1], {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- });
- const night = interpolate(frame, dayInterpolation, [0, 1, 1, 0], {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- });
-
- const orbRgb = Math.round(interpolate(day, [0, 1], [30, 255]));
- const textRgb = Math.round(interpolate(night, [0, 1], [0, 255]));
- const orbBackground = `rgb(${orbRgb}, ${orbRgb}, ${orbRgb})`;
- const textColor = `rgba(${textRgb}, ${textRgb}, ${textRgb}, 0.8)`;
-
- const onlySeconds = circlesOut.filter((_x, i) => i % 2 === 0);
- const circlesToUse = [...onlySeconds, ...onlySeconds];
- return (
- <div style={{flex: 1}}>
- <AbsoluteFill>
- <AbsoluteFill>
- <Background
- style={{transform: `scale(${backgroundScale})`, opacity: night}}
- src="https://fast-cdn.dynamicwallpaper.club/wallpapers%2Feq8ggec3apr%2Fthumbs%2F800%2F0.jpg?generation=1614257969409557&alt=media"
- />
- </AbsoluteFill>
- <AbsoluteFill>
- <Background
- style={{transform: `scale(${backgroundScale})`, opacity: day}}
- src="https://fast-cdn.dynamicwallpaper.club/wallpapers%2Feq8ggec3apr%2Fthumbs%2F800%2F4.jpg?generation=1614257969529252&alt=media"
- />
- </AbsoluteFill>
- </AbsoluteFill>
- <Blur />
- <DropDots
- opacity={night}
- volume={interpolate(visualization[1], [0, 0.24], [0, 1], {
- extrapolateLeft: 'clamp',
- })}
- />
-
- <Audio src={music} />
- <FullSize>
- {circlesToUse.map((v, i) => {
- const leftNeighbour =
- i === circlesToUse.length - 1
- ? circlesToUse[0]
- : circlesToUse[i + 1];
- const rightNeighbour =
- i === 0
- ? circlesToUse[circlesToUse.length - 1]
- : circlesToUse[i - 1];
- const a = (i / circlesToUse.length) * Math.PI * 2;
- const offset =
- (300 +
- Math.log(
- interpolate(
- (v + leftNeighbour + rightNeighbour) / 3,
- [0.0, 1],
- [0, 1],
- {
- extrapolateLeft: 'clamp',
- }
- ) * 600
- ) *
- 6) *
- day;
- const x = Math.sin(a) * offset;
- const y = Math.cos(a) * offset;
- return (
- <div
- style={{
- backgroundColor: 'white',
- height: 20,
- width: 20,
- borderRadius: 10,
- position: 'absolute',
- left: x + width / 2,
- top: y + height / 2,
- }}
- />
- );
- })}
- <Orb
- style={{
- transform: `scale(${scale})`,
- backgroundColor: orbBackground,
- boxShadow: `0 0 50px ${transparentize(0.5, textColor)}`,
- }}
- >
- <Text
- blur={2}
- color="rgba(255, 0, 0, 0.3)"
- transform={`translateY(${-rgbEffect}px) translateX(${
- rgbEffect * 2
- }px)`}
- />
- <Text
- blur={2}
- color="rgba(0, 255, 0, 0.3)"
- transform={`translateX(${rgbEffect * 3}px) translateY(${
- rgbEffect * 3
- }px)`}
- />
- <Text
- blur={2}
- color="rgba(0, 0, 255, 0.3)"
- transform={`translateX(${-rgbEffect * 3}px)`}
- />
- <Text
- blur={0}
- color={textColor}
- transform={`translateY(${rgbEffect}px)`}
- />
- </Orb>
- </FullSize>
- </div>
- );
-};
-
-export default AudioVisualization;
diff --git a/packages/example/src/BetaText/index.tsx b/packages/example/src/BetaText/index.tsx
deleted file mode 100644
index 4f45cabd82..0000000000
--- a/packages/example/src/BetaText/index.tsx
+++ /dev/null
@@ -1,160 +0,0 @@
-import {mix} from 'polished';
-import React from 'react';
-import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
-import styled from 'styled-components';
-
-const BRAND_GRADIENT = ['#5851db', '#405de6'];
-const solidBrand = mix(0.5, BRAND_GRADIENT[0], BRAND_GRADIENT[1]);
-const Label = styled.span<{
- outline: boolean;
-}>`
- font-size: 120px;
- font-family: ${(props) =>
- props.outline ? 'Altero Outline' : 'Altero-Regular'};
- text-align: center;
- transform: scaleX(1);
- line-height: 1em;
- margin-left: 10px;
- margin-right: 10px;
- display: inline-block;
-`;
-
-const lines = 7;
-const Row: React.FC<{
- videoWidth: number;
- i: number;
- text: string;
- zoom: number;
-}> = ({videoWidth, i, text, zoom}) => {
- const frame = useCurrentFrame();
- const videoConfig = useVideoConfig();
- const progress = spring({
- config: {
- damping: 30,
- mass: 1,
- stiffness: 40,
- overshootClamping: false,
- },
- fps: videoConfig.fps,
- from: 0,
- to: 1,
- frame,
- });
- const posX = interpolate(progress, [0, 1], [1, 0]);
-
- const dir = i % 2 === 0 ? -1 : 1;
- const color = mix(
- Math.min(1, (lines - i - 1) / lines),
- BRAND_GRADIENT[0],
- BRAND_GRADIENT[1]
- );
- return (
- <div
- style={{
- whiteSpace: 'nowrap',
- width: 10000,
- marginLeft: -(10000 - videoWidth) / 2 + posX * 1000 * dir,
- textAlign: 'center',
- color,
- opacity: 1 - zoom,
- }}
- >
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline={false} style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- <Label outline style={{transform: `scale(${progress})`}}>
- {text}
- </Label>
- </div>
- );
-};
-
-type Props = {
- word1: string;
-};
-
-const BetaText = ({word1}: Props): React.ReactNode => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
-
- const progress = spring({
- config: {
- damping: 30,
- mass: 1,
- stiffness: 40,
- overshootClamping: false,
- },
- fps: videoConfig.fps,
- from: 0,
- to: 1,
- frame: Math.max(0, frame - 70),
- });
- const scale = interpolate(progress, [0, 0.4], [1, 10]);
- const backgroundColor = mix(1 - progress, '#fff', solidBrand);
-
- return (
- <div
- style={{
- width: videoConfig.width,
- height: videoConfig.height,
- display: 'flex',
- transform: `scale(${scale})`,
- }}
- >
- <div
- style={{
- backgroundColor,
- flex: 1,
- }}
- >
- {new Array(17)
- .fill(true)
- .map((_, i) => i)
- .map((key) => {
- return (
- <Row
- key={key}
- zoom={progress}
- text={
- key === 7
- ? 'CET'
- : key === 5
- ? '5pm'
- : key === 3
- ? word1 ?? 'TOMORROW'
- : key === 1
- ? 'ANYSTICKER'
- : 'BETA'
- }
- i={key}
- videoWidth={videoConfig.width}
- />
- );
- })}
- </div>
- </div>
- );
-};
-
-export default BetaText;
diff --git a/packages/example/src/BlackGradients/Blob.tsx b/packages/example/src/BlackGradients/Blob.tsx
deleted file mode 100644
index 86ab3b7422..0000000000
--- a/packages/example/src/BlackGradients/Blob.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React, {useState} from 'react';
-import {random} from 'remotion';
-
-export const SvgBlob: React.FC<{
- style?: React.SVGProps<HTMLOrSVGElement>['style'];
- gradient: [string, string];
- d: string;
-}> = ({style, gradient, d}) => {
- const [id] = useState(() => random(null));
- return (
- <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" style={style}>
- <defs>
- <linearGradient id={String(id)} gradientTransform="rotate(90)">
- <stop offset="5%" stopColor={gradient[0]} />
- <stop offset="95%" stopColor={gradient[1]} />
- </linearGradient>
- </defs>
- <path fill={`url(#${id})`} d={d} transform="translate(100 100)" />
- </svg>
- );
-};
diff --git a/packages/example/src/ColorInterpolation/index.tsx b/packages/example/src/ColorInterpolation/index.tsx
deleted file mode 100644
index f1fd137fd2..0000000000
--- a/packages/example/src/ColorInterpolation/index.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from 'react';
-import {interpolateColors, useCurrentFrame} from 'remotion';
-
-export const ColorInterpolation: React.FC = () => {
- const frame = useCurrentFrame();
- return (
- <div
- style={{
- flex: 1,
- backgroundColor: interpolateColors(
- frame,
- [0, 50, 100],
- ['red', 'yellow', 'blue']
- ),
- }}
- />
- );
-};
diff --git a/packages/example/src/Context/index.tsx b/packages/example/src/Context/index.tsx
deleted file mode 100644
index 16e90f6278..0000000000
--- a/packages/example/src/Context/index.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import {createContext, useContext} from 'react';
-import {AbsoluteFill} from 'remotion';
-
-type RegressionTestContext = {
- hi: () => 'hithere';
-};
-
-export const MyCtx = createContext<RegressionTestContext>({
- hi: () => {
- throw new Error('context not provided');
- },
-});
-
-export const WrappedInContext: React.FC = () => {
- const value = useContext(MyCtx);
-
- return <AbsoluteFill>{value.hi()}</AbsoluteFill>;
-};
diff --git a/packages/example/src/CorruptVideo/index.tsx b/packages/example/src/CorruptVideo/index.tsx
deleted file mode 100644
index 1a5df6d731..0000000000
--- a/packages/example/src/CorruptVideo/index.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import {interpolate, OffthreadVideo, staticFile} from 'remotion';
-
-const CorruptVideo: React.FC = () => {
- return (
- <OffthreadVideo
- volume={(f) =>
- interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
- }
- src={staticFile('corrupted.mp4')}
- />
- );
-};
-
-export default CorruptVideo;
diff --git a/packages/example/src/DropDots/DropDots.tsx b/packages/example/src/DropDots/DropDots.tsx
deleted file mode 100644
index 8760ed85af..0000000000
--- a/packages/example/src/DropDots/DropDots.tsx
+++ /dev/null
@@ -1,159 +0,0 @@
-import {linearGradient} from 'polished';
-import {
- Img,
- interpolate,
- random,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-
-const gradients = [
- ['#845ec2', '#ff5e78'],
- ['rgb(40, 150, 114)', '#e6dd3b'],
- ['#e48900', '#be0000'],
- ['#fff600', '#f48b2a'],
- ['#23689b', '#487e95'],
- ['#9d0391', '#120078'],
-];
-
-const DropDots: React.FC<{
- opacity: number;
- volume: number;
-}> = ({opacity, volume}) => {
- const frame = useCurrentFrame();
-
- const cycle = 15;
- const iteration = Math.floor(frame / cycle);
- const {height, width} = useVideoConfig();
- const dots = new Array(process.env.NODE_ENV === 'development' ? 45 : 45)
- .fill(true)
- .map((_x, i) => {
- const startX = random(`x-${i}-${iteration}`) * width;
- const startY = random(`y-${i}-${iteration}`) * height;
- const startRotation = random(`rotation-${i}-${iteration}`) * 360;
- return {
- startX,
- endX:
- startX +
- interpolate(random(`x-end-${i}-${iteration}`), [0, 1], [-600, 600]),
- startY,
- endY:
- startY +
- interpolate(random(`y-end-${i}-${iteration}`), [0, 1], [-600, 600]),
- startRotation,
- endRotation:
- startRotation +
- interpolate(random(`rotatad-${i}`), [0, 1], [-180, 180]),
- size: interpolate(
- random(`size-${i}-${iteration}`),
- [0, 0.9, 0.901, 1],
- [40, 40, 160, 160]
- ),
-
- background:
- gradients[
- Math.floor(random(`color-${i}-${iteration}`) * gradients.length)
- ],
- opacity: interpolate(
- random(`opacity-${i}-${iteration}`),
- [0, 1],
- [0.83, 0.95]
- ),
- gradId: random(`gradient-${i}-${iteration}`),
- hasShine: random(`shine-${i}`) > 0.6,
- shineOpacity: random(`shine-opacity-${i}-${iteration}`) * 0.7,
- };
- });
- const progress = interpolate(frame % cycle, [0, cycle], [0, 1]);
- return (
- <div style={{width, height, opacity}}>
- {dots.map((d) => {
- const left = interpolate(progress, [0, 1], [d.startX, d.endX]);
- const top = interpolate(progress, [0, 1], [d.startY, d.endY]);
- const rotate = interpolate(
- progress,
- [0, 1],
- [d.startRotation, d.endRotation]
- );
- return (
- <div
- style={{
- position: 'absolute',
- left,
- top,
- transform: `rotate(${rotate}deg)`,
- }}
- >
- <svg
- style={{
- width: d.size * 2,
- height: d.size * 40,
- position: 'absolute',
- top: 0,
- }}
- preserveAspectRatio="none"
- viewBox="0 0 200 4000"
- >
- <defs>
- <filter id="f1" x="0" y="0">
- <feGaussianBlur in="SourceGraphic" stdDeviation="10" />
- </filter>
- <linearGradient id={`${d.gradId}`}>
- <stop
- stopColor={d.background[0]}
- stopOpacity={d.shineOpacity * volume}
- offset={0}
- />
- <stop
- stopColor={d.background[1]}
- stopOpacity={0.11 * volume}
- offset={1}
- />
- </linearGradient>
- </defs>
- {d.hasShine ? (
- <path
- d="M 50 50 L 0 4000 L 200 4000 z"
- fill={`url(#${d.gradId})`}
- filter="url(#f1)"
- />
- ) : null}
- </svg>
- <div
- style={{
- height: d.size,
- width: d.size,
- borderRadius: d.size / 2,
- opacity: d.opacity,
- zIndex: d.size,
- ...linearGradient({
- colorStops: d.background,
- }),
- boxShadow: `0 0 60px ${
- linearGradient({
- colorStops: d.background,
- }).backgroundColor
- }`,
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <Img
- style={{
- height: (d.size / 3) * 2,
- width: (d.size / 3) * 2,
- marginLeft: d.size * 0.05,
- opacity: 0.55,
- }}
- src="https://github.com/remotion-dev/logo/blob/main/monochromatic/element-0.png?raw=true"
- />
- </div>
- </div>
- );
- })}
- </div>
- );
-};
-
-export default DropDots;
diff --git a/packages/example/src/ErrorOnFrame10/index.tsx b/packages/example/src/ErrorOnFrame10/index.tsx
deleted file mode 100644
index 4f771519ed..0000000000
--- a/packages/example/src/ErrorOnFrame10/index.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import {AbsoluteFill, useCurrentFrame} from 'remotion';
-
-export const ErrorOnFrame10: React.FC = () => {
- const frame = useCurrentFrame();
- if (frame === 10) {
- const a = new Array(0.5);
- console.log(a);
- }
- return <AbsoluteFill />;
-};
diff --git a/packages/example/src/Fonts/index.tsx b/packages/example/src/Fonts/index.tsx
deleted file mode 100644
index 3fabb26aef..0000000000
--- a/packages/example/src/Fonts/index.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from 'react';
-import {AbsoluteFill, continueRender, delayRender, staticFile} from 'remotion';
-
-const waitForFont = delayRender();
-const font = new FontFace(
- `Bangers`,
- `url(${staticFile('bangers.woff2')}) format('woff2')`
-);
-
-font
- .load()
- .then(() => {
- document.fonts.add(font);
- continueRender(waitForFont);
- })
- .catch((err) => console.log('Error loading font', err));
-
-export const FontDemo: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- fontFamily: 'Bangers',
- fontSize: 300,
- }}
- >
- <h1>Font Demo</h1>
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/Framer/index.tsx b/packages/example/src/Framer/index.tsx
deleted file mode 100644
index 69d4de317b..0000000000
--- a/packages/example/src/Framer/index.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import {random, useCurrentFrame} from 'remotion';
-
-export function selectColor(color: string, frame: number): number {
- return Math.floor((random(`${color}-${frame}`) * 255) % 255);
-}
-
-export const Framer: React.FC = () => {
- const frame = useCurrentFrame();
-
- const red = selectColor('red', frame);
- const green = selectColor('green', frame);
- const blue = selectColor('blue', frame);
-
- return (
- <div
- style={{
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- background: 'white',
- flex: 1,
- borderTop: `100px solid rgb(${red}, ${green}, ${blue})`,
- paddingBottom: 100,
- }}
- >
- <h1 style={{fontSize: 120}}>{frame} 😁</h1>
- </div>
- );
-};
diff --git a/packages/example/src/FramerJs/index.jsx b/packages/example/src/FramerJs/index.jsx
deleted file mode 100644
index 98ef11e419..0000000000
--- a/packages/example/src/FramerJs/index.jsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import {useCurrentFrame, random} from 'remotion';
-
-function selectColor(color, frame) {
- return Math.floor((random(`${color}-${frame}`) * 255) % 255);
-}
-
-export const Framer = () => {
- const frame = useCurrentFrame();
-
- const red = selectColor('red', frame);
- const green = selectColor('green', frame);
- const blue = selectColor('blue', frame);
-
- return (
- <div
- style={{
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- background: 'white',
- flex: 1,
- borderTop: `100px solid rgb(${red}, ${green}, ${blue})`,
- paddingBottom: 100,
- }}
- >
- <h1 style={{fontSize: 120}}>{frame}</h1>
- </div>
- );
-};
diff --git a/packages/example/src/Freeze/FreezeExample.tsx b/packages/example/src/Freeze/FreezeExample.tsx
deleted file mode 100644
index 49e66eec0a..0000000000
--- a/packages/example/src/Freeze/FreezeExample.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from 'react';
-import {Freeze, Series, staticFile, Video} from 'remotion';
-
-export const FreezeExample: React.FC = () => {
- const video = staticFile('framermp4withoutfileextension');
-
- return (
- <Series>
- <Series.Sequence durationInFrames={25}>
- <Freeze frame={0}>
- <Video src={video} />
- </Freeze>
- </Series.Sequence>
- <Series.Sequence durationInFrames={50}>
- <Video src={video} />
- </Series.Sequence>
- <Series.Sequence durationInFrames={50}>
- <Freeze frame={126}>
- <Video src={video} />
- </Freeze>
- </Series.Sequence>
- </Series>
- );
-};
diff --git a/packages/example/src/GifTest/index.tsx b/packages/example/src/GifTest/index.tsx
deleted file mode 100644
index 4b378cc8eb..0000000000
--- a/packages/example/src/GifTest/index.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import {Gif} from '@remotion/gif';
-import {Sequence, staticFile, useVideoConfig} from 'remotion';
-
-const GifTest: React.FC = () => {
- const {width, height} = useVideoConfig();
- const giphy = staticFile('giphy.gif');
-
- return (
- <div style={{flex: 1, backgroundColor: 'black'}}>
- <Sequence from={0} durationInFrames={50}>
- <Gif src={giphy} width={width} height={height} fit="fill" />
- </Sequence>
-
- <Sequence from={50} durationInFrames={50}>
- <Gif
- src="https://media.giphy.com/media/xT0GqH01ZyKwd3aT3G/giphy.gif"
- width={width}
- height={height}
- fit="cover"
- />
- </Sequence>
-
- <Sequence from={100} durationInFrames={50}>
- <Gif
- src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif"
- width={width}
- height={height}
- fit="contain"
- />
- </Sequence>
- </div>
- );
-};
-
-export default GifTest;
diff --git a/packages/example/src/IframeTest/index.tsx b/packages/example/src/IframeTest/index.tsx
deleted file mode 100644
index 9d6875fa59..0000000000
--- a/packages/example/src/IframeTest/index.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react';
-import {IFrame, useVideoConfig} from 'remotion';
-
-const IFrameTest: React.FC = () => {
- const {width, height} = useVideoConfig();
- return <IFrame style={{width, height}} src="https://remotion.dev" />;
-};
-
-export default IFrameTest;
diff --git a/packages/example/src/LoopedVideo/index.tsx b/packages/example/src/LoopedVideo/index.tsx
deleted file mode 100644
index acc7411e2c..0000000000
--- a/packages/example/src/LoopedVideo/index.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from 'react';
-import {Loop, useCurrentFrame} from 'remotion';
-
-const LoopedVideo: React.FC = () => {
- return (
- <Loop durationInFrames={50} times={3} name="MyLoop">
- <Child />
- </Loop>
- );
-};
-
-const Child = () => {
- const frame = useCurrentFrame();
-
- return (
- <div
- style={{
- backgroundColor: 'white',
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- display: 'flex',
- fontSize: 50,
- }}
- >
- {frame}
- </div>
- );
-};
-
-export default LoopedVideo;
diff --git a/packages/example/src/Lottie/Cybertruck/index.tsx b/packages/example/src/Lottie/Cybertruck/index.tsx
deleted file mode 100644
index 31e1ae95a5..0000000000
--- a/packages/example/src/Lottie/Cybertruck/index.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import {Lottie, LottieAnimationData} from '@remotion/lottie';
-import {useEffect, useState} from 'react';
-import {
- AbsoluteFill,
- continueRender,
- delayRender,
- useVideoConfig,
-} from 'remotion';
-
-const LottieCybertruck = () => {
- const {height, width} = useVideoConfig();
- const [animationData, setAnimationData] =
- useState<LottieAnimationData | null>(null);
- const [handle] = useState(delayRender);
-
- useEffect(() => {
- // Credits: https://lottiefiles.com/11643-tesla-cybertruck
- fetch('https://assets2.lottiefiles.com/packages/lf20_RqpTFh.json')
- .then((res) => res.json())
- .then((data) => {
- setAnimationData(data);
- continueRender(handle);
- });
- }, [handle]);
-
- if (!animationData) {
- return null;
- }
-
- return (
- <AbsoluteFill style={{height, width}}>
- <Lottie
- loop
- animationData={animationData}
- playbackRate={10}
- style={{height, width}}
- />
- </AbsoluteFill>
- );
-};
-
-export default LottieCybertruck;
diff --git a/packages/example/src/Lottie/ExplodingBird/index.tsx b/packages/example/src/Lottie/ExplodingBird/index.tsx
deleted file mode 100644
index 4943c82dab..0000000000
--- a/packages/example/src/Lottie/ExplodingBird/index.tsx
+++ /dev/null
@@ -1,114 +0,0 @@
-import {Lottie} from '@remotion/lottie';
-import {useEffect, useState} from 'react';
-import {
- AbsoluteFill,
- continueRender,
- delayRender,
- Loop,
- Sequence,
- useVideoConfig,
-} from 'remotion';
-
-const paths = {
- // Credits: Christina Bublyk, Viktor Anisimov, Daniel Teasdale
- // Source: https://lottiefiles.com/blog/tips-and-tutorials/how-to-chain-interactions-lottie-interactivity
- bird: 'https://assets4.lottiefiles.com/packages/lf20_zyquagfl.json',
- // Credits: https://lottiefiles.com/34191-end-color
- end: 'https://assets4.lottiefiles.com/private_files/lf30_uezjhwrv.json',
-};
-
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-type PathsData = Record<keyof typeof paths, any> | null;
-
-// I don't know if all animations have the same shape
-interface Marker {
- tm: number;
- cm: string;
- dr: number;
-}
-
-const getFramesByName = (name: string, markers: Marker[] = []) => {
- return markers.find((m) => m.cm.includes(name))?.dr || 0;
-};
-
-const LottieExplodingBird = () => {
- const {height, width} = useVideoConfig();
- const [animationData, setAnimationData] = useState<PathsData>(null);
- const [handle] = useState(delayRender);
-
- useEffect(() => {
- Promise.all([
- fetch(paths.bird).then((res) => res.json()),
- fetch(paths.end).then((res) => res.json()),
- ]).then(([bird, end]) => {
- setAnimationData({bird, end});
- continueRender(handle);
- });
- }, [handle]);
-
- // Get the markers and frames from the data
- const markers = animationData?.bird?.markers;
- const birdNFrames = getFramesByName('bird', markers);
- const explosionNFrames = getFramesByName('explosion', markers);
- const feathersNFrames = getFramesByName('feathers', markers);
- // Computed variables
- const birdLoops = 6;
- const birdSpeed = 2;
- const explosionSpeed = 0.1;
- const feathersSpeed = 0.8;
- const birdDuration = Math.floor(birdNFrames / birdSpeed);
- const explosionFrom = birdDuration * birdLoops;
- const explosionDuration = Math.floor(explosionNFrames / explosionSpeed);
- const explosionStart = birdNFrames / explosionSpeed;
- const feathersFrom = explosionFrom + explosionDuration;
- const feathersDuration = Math.floor(feathersNFrames / feathersSpeed);
- const feathersStart = Math.ceil(
- (birdNFrames + explosionNFrames) / feathersSpeed
- );
- const endFrom = feathersFrom + feathersDuration;
-
- return (
- <AbsoluteFill style={{height, width}}>
- {animationData?.bird ? (
- <>
- <Loop durationInFrames={birdDuration} times={birdLoops}>
- <Lottie
- animationData={animationData.bird}
- playbackRate={birdSpeed}
- style={{height, width}}
- />
- </Loop>
- <Sequence from={explosionFrom} durationInFrames={explosionDuration}>
- <Sequence from={-explosionStart}>
- <Lottie
- animationData={animationData.bird}
- playbackRate={explosionSpeed}
- style={{height, width}}
- />
- </Sequence>
- </Sequence>
- <Sequence from={feathersFrom} durationInFrames={feathersDuration}>
- <Sequence from={-feathersStart}>
- <Lottie
- animationData={animationData.bird}
- playbackRate={feathersSpeed}
- style={{height, width}}
- />
- </Sequence>
- </Sequence>
- </>
- ) : null}
- {animationData?.end ? (
- <Sequence from={endFrom}>
- <Lottie
- animationData={animationData.end}
- playbackRate={2}
- style={{height, width}}
- />
- </Sequence>
- ) : null}
- </AbsoluteFill>
- );
-};
-
-export default LottieExplodingBird;
diff --git a/packages/example/src/Lottie/Halloween/Balloons.tsx b/packages/example/src/Lottie/Halloween/Balloons.tsx
deleted file mode 100644
index 7814672d8f..0000000000
--- a/packages/example/src/Lottie/Halloween/Balloons.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import {Lottie, LottieAnimationData} from '@remotion/lottie';
-import React, {useEffect, useState} from 'react';
-import {
- continueRender,
- delayRender,
- interpolate,
- Sequence,
- staticFile,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import './common.css';
-import HeaderAndCredits from './HeaderAndCredits';
-
-const Balloons = () => {
- const frame = useCurrentFrame();
- const {durationInFrames} = useVideoConfig();
- const opacity = interpolate(
- frame,
- [0, 5, durationInFrames - 20, durationInFrames],
- [0, 1, 1, 0]
- );
-
- const [handle] = useState(() => delayRender('Loading Lottie animation'));
-
- const [animationData, setAnimationData] =
- useState<LottieAnimationData | null>(null);
-
- useEffect(() => {
- // Credits: https://lottiefiles.com/81293-horror-ballons
- fetch(staticFile('balloons.json'))
- .then((data) => data.json())
- .then((json) => {
- setAnimationData(json);
- continueRender(handle);
- })
- .catch((err) => {
- console.log('Animation failed to load', err);
- });
- }, [handle]);
-
- if (!animationData) {
- return null;
- }
-
- return (
- <div style={{opacity, display: 'grid', alignContent: 'center', flex: 1}}>
- <Lottie
- animationData={animationData}
- playbackRate={2}
- style={{height: 700}}
- />
- </div>
- );
-};
-
-const LottieBalloons: React.FC = () => {
- const {height, width} = useVideoConfig();
-
- return (
- <div className="container" style={{height, width}}>
- <Sequence from={0}>
- <Balloons />
- </Sequence>
- <Sequence from={10}>
- <HeaderAndCredits author="Muhammad Yasir Ismail" />
- </Sequence>
- </div>
- );
-};
-
-export default LottieBalloons;
diff --git a/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx b/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx
deleted file mode 100644
index 8d553a7a72..0000000000
--- a/packages/example/src/Lottie/Halloween/HeaderAndCredits.tsx
+++ /dev/null
@@ -1,44 +0,0 @@
-import {
- AbsoluteFill,
- interpolate,
- spring,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import './common.css';
-
-const HeaderAndCredits = ({author}: {author: string}) => {
- const frame = useCurrentFrame();
- const {durationInFrames, fps} = useVideoConfig();
-
- const opacity = interpolate(
- frame,
- [0, 5, durationInFrames - 20, durationInFrames],
- [0, 1, 1, 0]
- );
- const scale = spring({
- fps,
- frame,
- from: 0.25,
- to: 1,
- config: {
- damping: 100,
- mass: 0.5,
- },
- });
- const posY = interpolate(frame, [0, 10], [100, 0], {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- });
-
- return (
- <AbsoluteFill className="content" style={{opacity}}>
- <h1 style={{transform: `scale(${scale})`}}>Happy Halloween!</h1>
- <span style={{transform: `translateY(${posY}%)`}}>
- Animation by {author}
- </span>
- </AbsoluteFill>
- );
-};
-
-export default HeaderAndCredits;
diff --git a/packages/example/src/Lottie/Halloween/Pumpkin.tsx b/packages/example/src/Lottie/Halloween/Pumpkin.tsx
deleted file mode 100644
index 00e08a4be4..0000000000
--- a/packages/example/src/Lottie/Halloween/Pumpkin.tsx
+++ /dev/null
@@ -1,66 +0,0 @@
-import {Lottie} from '@remotion/lottie';
-import {useEffect, useState} from 'react';
-import {
- AbsoluteFill,
- continueRender,
- delayRender,
- interpolate,
- Sequence,
- useCurrentFrame,
- useVideoConfig,
-} from 'remotion';
-import './common.css';
-import HeaderAndCredits from './HeaderAndCredits';
-
-const Pumpkin = () => {
- const frame = useCurrentFrame();
- const {durationInFrames} = useVideoConfig();
-
- const animationDelay = 1;
- const animationInput = frame - animationDelay;
- const animationOpacity = interpolate(
- animationInput,
- [0, 5, durationInFrames - 20, durationInFrames],
- [0, 1, 1, 0]
- );
-
- const [animationData, setAnimationData] = useState(null);
- const [handle] = useState(delayRender);
-
- useEffect(() => {
- // Credits: https://lottiefiles.com/37789-scary-halloween-pumpkin
- fetch('https://assets2.lottiefiles.com/packages/lf20_c5izbrx1.json')
- .then((res) => res.json())
- .then((data) => {
- setAnimationData(data);
- continueRender(handle);
- });
- }, [handle]);
-
- if (!animationData) {
- return null;
- }
-
- return (
- <AbsoluteFill style={{opacity: animationOpacity}}>
- <Lottie animationData={animationData} />
- </AbsoluteFill>
- );
-};
-
-const LottiePumpkin: React.FC = () => {
- const {durationInFrames, height, width} = useVideoConfig();
-
- return (
- <div className="container" style={{height, width}}>
- <Sequence from={0} durationInFrames={durationInFrames}>
- <Pumpkin />
- </Sequence>
- <Sequence from={30}>
- <HeaderAndCredits author="Roman Serebryakov" />
- </Sequence>
- </div>
- );
-};
-
-export default LottiePumpkin;
diff --git a/packages/example/src/Lottie/Halloween/common.css b/packages/example/src/Lottie/Halloween/common.css
deleted file mode 100644
index 9abeffc6c7..0000000000
--- a/packages/example/src/Lottie/Halloween/common.css
+++ /dev/null
@@ -1,33 +0,0 @@
-@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap');
-
-* {
- font-family: 'Creepster';
-}
-
-.container {
- background-color: black;
- display: flex;
- flex-direction: column;
- padding: 80px;
-}
-
-.content {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 40px;
-}
-
-.content h1 {
- color: white;
- font-size: 8rem;
- margin: 0;
- text-align: center;
-}
-
-.content span {
- color: white;
- font-size: 1.5rem;
- letter-spacing: 1.2px;
- text-align: center;
-}
diff --git a/packages/example/src/Lottie/Loader/index.tsx b/packages/example/src/Lottie/Loader/index.tsx
deleted file mode 100644
index 8237898988..0000000000
--- a/packages/example/src/Lottie/Loader/index.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import {getLottieMetadata, Lottie, LottieAnimationData} from '@remotion/lottie';
-import {useEffect, useState} from 'react';
-import {
- continueRender,
- delayRender,
- staticFile,
- useCurrentFrame,
-} from 'remotion';
-
-const LottieLoader = () => {
- const frame = useCurrentFrame();
- const [handle] = useState(() => delayRender('Loading Lottie animation'));
-
- const [animationData, setAnimationData] =
- useState<LottieAnimationData | null>(null);
-
- useEffect(() => {
- // Credits: https://lottiefiles.com/93004-reverse-loader
- fetch(staticFile('reverse-loader.json'))
- .then((data) => data.json())
- .then((json) => {
- setAnimationData(json);
- continueRender(handle);
- })
- .catch((err) => {
- console.log('Animation failed to load', err);
- });
- }, [handle]);
-
- if (!animationData) {
- return null;
- }
-
- const {durationInFrames: df} = getLottieMetadata(animationData) || {};
- const nLoop = df && frame > 0 ? Math.ceil(frame / df) : 1;
- const direction = nLoop % 2 === 0 ? 'backward' : 'forward';
-
- return <Lottie loop animationData={animationData} direction={direction} />;
-};
-
-export default LottieLoader;
diff --git a/packages/example/src/ManyAudio/index.tsx b/packages/example/src/ManyAudio/index.tsx
deleted file mode 100644
index 1e488329ae..0000000000
--- a/packages/example/src/ManyAudio/index.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from 'react';
-import {AbsoluteFill, Audio, staticFile} from 'remotion';
-
-export const ManyAudio: React.FC = () => {
- return (
- <AbsoluteFill>
- {new Array(32).fill(true).map((_, i) => {
- return <Audio src={staticFile('music.mp3?mus=' + i)} />;
- })}
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/MdxTest/hmm.mdx b/packages/example/src/MdxTest/hmm.mdx
deleted file mode 100644
index 144c7fc5df..0000000000
--- a/packages/example/src/MdxTest/hmm.mdx
+++ /dev/null
@@ -1,6 +0,0 @@
-## Hi there
-
-- List support
-- wow
-
-<div style={{color: 'green'}}>MDX</div>
diff --git a/packages/example/src/MdxTest/index.tsx b/packages/example/src/MdxTest/index.tsx
deleted file mode 100644
index 357b634db5..0000000000
--- a/packages/example/src/MdxTest/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-import {AbsoluteFill} from 'remotion';
-import Hi from './hmm.mdx';
-
-const MdxTest: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- backgroundColor: 'white',
- fontSize: 40,
- fontFamily: 'Helvetica',
- padding: 30,
- }}
- >
- <Hi />
- </AbsoluteFill>
- );
-};
-
-export default MdxTest;
diff --git a/packages/example/src/MissingImg/index.tsx b/packages/example/src/MissingImg/index.tsx
deleted file mode 100644
index 8c846c5d3c..0000000000
--- a/packages/example/src/MissingImg/index.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import React from 'react';
-import {Img} from 'remotion';
-
-export const MissingImg = (): React.ReactNode => {
- // eslint-disable-next-line @remotion/no-string-assets
- return <Img src="doesnotexist" />;
-};
diff --git a/packages/example/src/NestedSequences/index.tsx b/packages/example/src/NestedSequences/index.tsx
deleted file mode 100644
index 9127405e11..0000000000
--- a/packages/example/src/NestedSequences/index.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import React from 'react';
-import {Sequence, useCurrentFrame} from 'remotion';
-
-const NestedSequences: React.FC = () => {
- return (
- <Sequence from={20} durationInFrames={40}>
- <NestedTwo />
- </Sequence>
- );
-};
-
-const NestedTwo = () => {
- return (
- <Sequence from={20} durationInFrames={60}>
- <Child />
- </Sequence>
- );
-};
-
-const Child = () => {
- const frame = useCurrentFrame();
-
- return (
- <div
- style={{
- backgroundColor: 'white',
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- display: 'flex',
- fontSize: 50,
- }}
- >
- {frame}
- </div>
- );
-};
-
-export default NestedSequences;
diff --git a/packages/example/src/OfflineAudioBuffer/index.tsx b/packages/example/src/OfflineAudioBuffer/index.tsx
deleted file mode 100644
index 23996aed76..0000000000
--- a/packages/example/src/OfflineAudioBuffer/index.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import {AbsoluteFill, interpolate} from 'remotion';
-import {useCallback, useEffect, useState} from 'react';
-import {Audio, continueRender, delayRender, useVideoConfig} from 'remotion';
-import {audioBufferToDataUrl} from '@remotion/media-utils';
-
-const C4_FREQUENCY = 261.63;
-const sampleRate = 44100;
-
-export const OfflineAudioBufferExample: React.FC = () => {
- const [handle] = useState(() => delayRender());
- const [audioBuffer, setAudioBuffer] = useState<string | null>(null);
- const {fps, durationInFrames} = useVideoConfig();
- const lengthInSeconds = durationInFrames / fps;
-
- const renderAudio = useCallback(async () => {
- const offlineContext = new OfflineAudioContext({
- numberOfChannels: 2,
- length: sampleRate * lengthInSeconds,
- sampleRate,
- });
- const oscillatorNode = offlineContext.createOscillator();
- const gainNode = offlineContext.createGain();
- oscillatorNode.connect(gainNode);
- gainNode.connect(offlineContext.destination);
- gainNode.gain.setValueAtTime(0.5, offlineContext.currentTime);
-
- oscillatorNode.type = 'sine';
- oscillatorNode.frequency.value = C4_FREQUENCY;
-
- const {currentTime} = offlineContext;
- oscillatorNode.start(currentTime);
- oscillatorNode.stop(currentTime + lengthInSeconds);
-
- const buffer = await offlineContext.startRendering();
- setAudioBuffer(audioBufferToDataUrl(buffer));
-
- continueRender(handle);
- }, [handle, lengthInSeconds]);
-
- useEffect(() => {
- renderAudio();
- }, [renderAudio]);
-
- return (
- <AbsoluteFill>
- {audioBuffer && (
- <Audio
- src={audioBuffer}
- startFrom={0}
- endAt={100}
- volume={(f) =>
- interpolate(f, [0, 50, 100], [0, 1, 0], {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- })
- }
- />
- )}
- <AbsoluteFill
- style={{
- fontFamily: 'Helvetica, Arial',
- fontSize: 50,
- color: 'white',
- justifyContent: 'center',
- textAlign: 'center',
- }}
- >
- Render sound from offline audio buffer
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
-
-export default OfflineAudioBufferExample;
diff --git a/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx b/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
deleted file mode 100644
index 9e57edd374..0000000000
--- a/packages/example/src/OffthreadRemoteVideo/OffthreadRemoteVideo.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import {interpolate, OffthreadVideo} from 'remotion';
-
-export const OffthreadRemoteVideo: React.FC = () => {
- return (
- <OffthreadVideo
- volume={(f) =>
- interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
- }
- src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
- />
- );
-};
diff --git a/packages/example/src/Orb/Orb.tsx b/packages/example/src/Orb/Orb.tsx
deleted file mode 100644
index b1b598ec08..0000000000
--- a/packages/example/src/Orb/Orb.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-import {ContactShadows, MeshDistortMaterial} from '@react-three/drei';
-
-export const Orb = () => {
- return (
- <>
- <ambientLight intensity={2.5} />
- <pointLight position-z={-15} intensity={1} color="#F8C069" />
- <mesh>
- <sphereBufferGeometry args={[1, 64, 64]} />
- <MeshDistortMaterial
- color="black"
- envMapIntensity={1}
- clearcoat={1}
- clearcoatRoughness={0}
- metalness={0.1}
- // @ts-expect-error wrong types
- mass={2}
- tenstion={1000}
- friction={10}
- />
- </mesh>
- <ContactShadows
- rotation={[Math.PI / 2, 0, 0]}
- position={[0, -1.6, 0]}
- opacity={0.8}
- width={15}
- height={15}
- blur={2.5}
- far={1.6}
- />
- </>
- );
-};
diff --git a/packages/example/src/Orb/index.tsx b/packages/example/src/Orb/index.tsx
deleted file mode 100644
index f1f5d8f214..0000000000
--- a/packages/example/src/Orb/index.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import {ThreeCanvas} from '@remotion/three';
-import React from 'react';
-import {Orb} from './Orb';
-
-export const OrbScene: React.FC = () => {
- return (
- <ThreeCanvas
- width={2000}
- height={2000}
- gl={{
- alpha: false,
- antialias: false,
- stencil: false,
- depth: false,
- }}
- onCreated={(state) => state.gl.setClearColor('white')}
- >
- <ambientLight intensity={1.5} color={0xffffff} />
- <pointLight position={[10, 10, 0]} />
- <Orb />
- </ThreeCanvas>
- );
-};
diff --git a/packages/example/src/Paths/PathEvolve.tsx b/packages/example/src/Paths/PathEvolve.tsx
deleted file mode 100644
index 49fd55c35f..0000000000
--- a/packages/example/src/Paths/PathEvolve.tsx
+++ /dev/null
@@ -1,157 +0,0 @@
-import {evolvePath} from '@remotion/paths';
-import React from 'react';
-import {AbsoluteFill, spring, useCurrentFrame, useVideoConfig} from 'remotion';
-
-const path1 = 'M70.0708 -74.7021C120.649 196.82 515.72 572.643 1156.38 910.447';
-
-const path2 =
- 'M835.861 203.393C629.777 453.394 415.916 655.36 237.6 780.052C148.205 842.563 69.6438 884.304 6.78505 903.743C-57.91 923.749 -95.0356 917.089 -114.147 901.335C-133.259 885.58 -146.881 850.408 -139.586 783.084C-132.498 717.671 -106.514 632.589 -62.2091 532.908C26.1669 334.076 183.616 85.6076 389.701 -164.393C595.785 -414.394 809.646 -616.36 987.962 -741.051C1077.36 -803.563 1155.92 -845.303 1218.78 -864.742C1283.47 -884.749 1320.6 -878.089 1339.71 -862.334C1358.82 -846.58 1372.44 -811.407 1365.15 -744.083C1358.06 -678.67 1332.08 -593.589 1287.77 -493.908C1199.4 -295.075 1041.95 -46.6073 835.861 203.393Z';
-
-const PathEvolve: React.FC = () => {
- const {fps} = useVideoConfig();
- const frame = useCurrentFrame();
- const spr = spring({
- fps,
- frame,
- config: {
- damping: 200,
- },
- });
-
- const evolution1 = evolvePath(spr, path1);
- const evolution2 = evolvePath(spr, path2);
-
- return (
- <AbsoluteFill>
- <svg
- width="1080"
- height="1080"
- viewBox="0 0 1080 1080"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_9_2)">
- <g filter="url(#filter0_d_9_2)">
- <path
- d={path1}
- stroke="url(#paint0_linear_9_2)"
- strokeWidth="89.9167"
- shapeRendering="crispEdges"
- strokeDasharray={evolution1.strokeDasharray}
- strokeDashoffset={evolution1.strokeDashoffset}
- />
- </g>
- <g filter="url(#filter1_d_9_2)">
- <path
- d={path2}
- stroke="url(#paint1_linear_9_2)"
- strokeWidth="79.2391"
- shapeRendering="crispEdges"
- strokeDasharray={evolution2.strokeDasharray}
- strokeDashoffset={evolution2.strokeDashoffset}
- />
- </g>
- </g>
- <defs>
- <filter
- id="filter0_d_9_2"
- x="23.6248"
- y="-82.9353"
- width="1155.97"
- height="1037.65"
- filterUnits="userSpaceOnUse"
- colorInterpolationFilters="sRGB"
- >
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
- <feColorMatrix
- in="SourceAlpha"
- type="matrix"
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
- result="hardAlpha"
- />
- <feOffset dy="2.24792" />
- <feGaussianBlur stdDeviation="1.12396" />
- <feComposite in2="hardAlpha" operator="out" />
- <feColorMatrix
- type="matrix"
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
- />
- <feBlend
- mode="normal"
- in2="BackgroundImageFix"
- result="effect1_dropShadow_9_2"
- />
- <feBlend
- mode="normal"
- in="SourceGraphic"
- in2="effect1_dropShadow_9_2"
- result="shape"
- />
- </filter>
- <filter
- id="filter1_d_9_2"
- x="-258.175"
- y="-991.508"
- width="1741.91"
- height="2026.51"
- filterUnits="userSpaceOnUse"
- colorInterpolationFilters="sRGB"
- >
- <feFlood floodOpacity="0" result="BackgroundImageFix" />
- <feColorMatrix
- in="SourceAlpha"
- type="matrix"
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
- result="hardAlpha"
- />
- <feOffset dy="2.24792" />
- <feGaussianBlur stdDeviation="38.4956" />
- <feComposite in2="hardAlpha" operator="out" />
- <feColorMatrix
- type="matrix"
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
- />
- <feBlend
- mode="normal"
- in2="BackgroundImageFix"
- result="effect1_dropShadow_9_2"
- />
- <feBlend
- mode="normal"
- in="SourceGraphic"
- in2="effect1_dropShadow_9_2"
- result="shape"
- />
- </filter>
- <linearGradient
- id="paint0_linear_9_2"
- x1="571.918"
- y1="-147.714"
- x2="571.918"
- y2="942.075"
- gradientUnits="userSpaceOnUse"
- >
- <stop stopColor="#0B84F3" />
- <stop offset="1" stopColor="#0B84F3" stopOpacity="0.52" />
- </linearGradient>
- <linearGradient
- id="paint1_linear_9_2"
- x1="1294.73"
- y1="-144.472"
- x2="-309.635"
- y2="-195.201"
- gradientUnits="userSpaceOnUse"
- >
- <stop stopColor="#0B84F3" />
- <stop offset="1" stopColor="#0B84F3" stopOpacity="0.46" />
- </linearGradient>
- <clipPath id="clip0_9_2">
- <rect width="1080" height="1080" fill="white" />
- </clipPath>
- </defs>
- </svg>
- </AbsoluteFill>
- );
-};
-
-export default PathEvolve;
diff --git a/packages/example/src/Paths/PathMorph.tsx b/packages/example/src/Paths/PathMorph.tsx
deleted file mode 100644
index 0928c5a516..0000000000
--- a/packages/example/src/Paths/PathMorph.tsx
+++ /dev/null
@@ -1,35 +0,0 @@
-import {interpolatePath} from '@remotion/paths';
-import React from 'react';
-import {spring, useCurrentFrame, useVideoConfig} from 'remotion';
-
-const path1 =
- 'M94.5001 332C47.0001 233.5 -9.09994 56.1999 146.5 135C341 233.5 291 426 475.5 353C623.1 294.6 649.667 154 644.5 91C734.333 47 900.5 9.79997 846.5 213';
-const path2 =
- 'M94.1703 715.596C37.5 635.5 -9.42966 439.796 146.17 518.596C340.67 617.096 273 708.5 457.5 635.5C605.1 577.1 556 503.5 704 596.596C872.5 666.5 652 441 867.5 565.5';
-
-const PathMorph: React.FC = () => {
- const {fps} = useVideoConfig();
- const frame = useCurrentFrame();
-
- const progress = spring({
- fps,
- frame,
- config: {damping: 200},
- });
-
- const path = interpolatePath(progress, path1, path2);
-
- return (
- <svg
- width="1080"
- height="1080"
- viewBox="0 0 1080 1080"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path d={path} stroke="blue" strokeWidth="42" />
- </svg>
- );
-};
-
-export default PathMorph;
diff --git a/packages/example/src/ReactSvg/Arc.tsx b/packages/example/src/ReactSvg/Arc.tsx
deleted file mode 100644
index c2b2b88296..0000000000
--- a/packages/example/src/ReactSvg/Arc.tsx
+++ /dev/null
@@ -1,104 +0,0 @@
-import {getPointAtLength, getTangentAtLength} from '@remotion/paths';
-import React from 'react';
-import {useVideoConfig} from 'remotion';
-import {COLOR_1, COLOR_2} from './config';
-
-const rx = 170;
-const ry = 400;
-
-const arcLength = Math.PI * 2 * Math.sqrt((rx * rx + ry * ry) / 2);
-
-function ellipseToPath(cx: number, cy: number): string {
- let output = 'M' + (cx - rx).toString() + ',' + cy.toString();
- output +=
- 'a' +
- rx.toString() +
- ',' +
- ry.toString() +
- ' 0 1,0 ' +
- (2 * rx).toString() +
- ',0';
- output +=
- 'a' +
- rx.toString() +
- ',' +
- ry.toString() +
- ' 0 1,0 ' +
- (-2 * rx).toString() +
- ',0';
- return output;
-}
-
-const electronRadius = 6;
-
-export const Arc: React.FC<{
- progress: number;
- rotation: number;
- rotateProgress: number;
- electronProgress: number;
- electronOpacity: number;
-}> = ({
- progress,
- rotation,
- rotateProgress,
- electronProgress,
- electronOpacity,
-}) => {
- const config = useVideoConfig();
- const cx = config.width / 2;
- const cy = config.height / 2;
- const d = ellipseToPath(cx, cy);
- const tangent = getTangentAtLength(d, (electronProgress % 1) * arcLength);
- const pointAtLength = getPointAtLength(d, (electronProgress % 1) * arcLength);
- const move = (orig: number, x: number, y: number): number =>
- orig + x * tangent.x + y * tangent.y;
-
- const leftPointArrow = [
- move(pointAtLength.x, 0, electronRadius),
- move(pointAtLength.y, -electronRadius, 0),
- ];
- const midPoint = [move(pointAtLength.x, 60, 0), move(pointAtLength.y, 0, 60)];
- const rightPointArrow = [
- move(pointAtLength.x, 0, -electronRadius),
- move(pointAtLength.y, electronRadius, 0),
- ];
- return (
- <svg
- viewBox={`0 0 ${config.width} ${config.height}`}
- style={{
- position: 'absolute',
- transform: `rotate(${rotation * rotateProgress}deg)`,
- transformOrigin: `${config.width / 2}px ${config.height / 2}px`,
- }}
- >
- <defs>
- <linearGradient id="gradient" x1="0%" y1="0%" x2="0%" y2="100%">
- <stop offset="0%" stopColor={COLOR_1} />
- <stop offset="100%" stopColor={COLOR_2} />
- </linearGradient>
- </defs>
- <path
- d={d}
- fill="none"
- stroke="url(#gradient)"
- strokeDasharray={arcLength}
- strokeDashoffset={arcLength - arcLength * progress}
- strokeLinecap="round"
- strokeWidth={30}
- />
- <circle
- r={electronRadius}
- fill="#fff"
- cx={pointAtLength.x}
- cy={pointAtLength.y}
- style={{opacity: electronOpacity}}
- />
- <path
- d={`M${leftPointArrow[0]} ${leftPointArrow[1]} ${midPoint[0]} ${midPoint[1]} ${rightPointArrow[0]} ${rightPointArrow[1]} Z`}
- fill="white"
- strokeLinecap="round"
- style={{opacity: electronOpacity}}
- />
- </svg>
- );
-};
diff --git a/packages/example/src/ReactSvg/Atom.tsx b/packages/example/src/ReactSvg/Atom.tsx
deleted file mode 100644
index 6a17781039..0000000000
--- a/packages/example/src/ReactSvg/Atom.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from 'react';
-import {useVideoConfig} from 'remotion';
-import {COLOR_1, COLOR_2} from './config';
-
-export const Atom: React.FC<{
- scale: number;
-}> = ({scale}) => {
- const config = useVideoConfig();
- return (
- <svg
- viewBox={`0 0 ${config.width} ${config.height}`}
- style={{
- position: 'absolute',
- transform: `scale(${scale})`,
- }}
- >
- <defs>
- <linearGradient id="gradient2" x1="0%" y1="0%" x2="100%" y2="0%">
- <stop offset="0%" stopColor={COLOR_1} />
- <stop offset="100%" stopColor={COLOR_2} />
- </linearGradient>
- </defs>
- <circle
- r={70}
- cx={config.width / 2}
- cy={config.height / 2}
- fill="url(#gradient2)"
- />
- </svg>
- );
-};
diff --git a/packages/example/src/ReactSvg/Black.tsx b/packages/example/src/ReactSvg/Black.tsx
deleted file mode 100644
index 83c2f26bb4..0000000000
--- a/packages/example/src/ReactSvg/Black.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React from 'react';
-import {useVideoConfig} from 'remotion';
-
-export const Black: React.FC<{
- scale: number;
-}> = ({scale}) => {
- const config = useVideoConfig();
- return (
- <svg
- viewBox={`0 0 ${config.width} ${config.height}`}
- style={{
- position: 'absolute',
- transform: `scale(${0.8})`,
- opacity: scale,
- }}
- >
- <circle r={70} cx={config.width / 2} cy={config.height / 2} fill="#000" />
- </svg>
- );
-};
diff --git a/packages/example/src/ReactSvg/DotGrid.tsx b/packages/example/src/ReactSvg/DotGrid.tsx
deleted file mode 100644
index 72f11de49d..0000000000
--- a/packages/example/src/ReactSvg/DotGrid.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from 'react';
-import {useVideoConfig} from 'remotion';
-import styled from 'styled-components';
-
-const StyledSvg = styled.svg`
- position: absolute;
-`;
-
-export const DotGrid: React.FC = () => {
- const videoConfig = useVideoConfig();
-
- const dotSpacing = Math.ceil(videoConfig.width / 50);
- const rows = Math.ceil(videoConfig.height / dotSpacing);
- return (
- <StyledSvg viewBox={`0 0 ${videoConfig.width} ${videoConfig.height}`}>
- {new Array(50).fill(true).map((_, i) => {
- return new Array(rows).fill(true).map((_j, j) => {
- return (
- <circle
- // eslint-disable-next-line react/no-array-index-key
- key={j}
- r={2}
- cx={i * dotSpacing}
- cy={j * dotSpacing}
- fill="rgba(0, 0, 0, 0.1)"
- />
- );
- });
- })}
- </StyledSvg>
- );
-};
diff --git a/packages/example/src/ReactSvg/config.ts b/packages/example/src/ReactSvg/config.ts
deleted file mode 100644
index 69e9b331f1..0000000000
--- a/packages/example/src/ReactSvg/config.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-export const COLOR_1 = '#F1618E';
-export const COLOR_2 = '#F7A773';
diff --git a/packages/example/src/ReactSvg/index.tsx b/packages/example/src/ReactSvg/index.tsx
deleted file mode 100644
index 823c9e1871..0000000000
--- a/packages/example/src/ReactSvg/index.tsx
+++ /dev/null
@@ -1,124 +0,0 @@
-import React from 'react';
-import {Easing, interpolate, useCurrentFrame, useVideoConfig} from 'remotion';
-import {Arc} from './Arc';
-import {Atom} from './Atom';
-import {Black} from './Black';
-import {DotGrid} from './DotGrid';
-
-const ReactSvg: React.FC<{
- transparent: boolean;
-}> = ({transparent}) => {
- const frame = useCurrentFrame();
- const videoConfig = useVideoConfig();
- const start = 0;
- const developDuration = 60;
- const development = interpolate(
- frame,
- [start, developDuration + start],
- [0, 1],
- {
- easing: Easing.bezier(0.12, 1, 1, 1),
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- }
- );
-
- const rotateStart = developDuration + 5;
- const rotateDuration = 40;
- const rotationDevelopment = interpolate(
- frame,
- [rotateStart, rotateStart + rotateDuration],
- [0, 1],
- {
- easing: Easing.bezier(0.12, 1, 1, 1),
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- }
- );
-
- const electronStart = 0;
- const electronDuration = 1000;
- const electronDevelopment = interpolate(
- frame,
- [electronStart, electronStart + electronDuration],
- [0, 10]
- );
-
- const electronOpacity = interpolate(
- frame,
- [rotateStart, rotateStart + 20],
- [0, 1],
- {
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- }
- );
-
- const scaleOutStart = 220;
- const scaleOutEnd = scaleOutStart + 50;
-
- const scaleIn = interpolate(frame, [0, 30], [1.2, 1], {
- easing: Easing.ease,
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- });
-
- const scaleOut = interpolate(frame, [scaleOutStart, scaleOutEnd], [1, 70], {
- easing: Easing.bezier(0.8, 0.22, 0.96, 0.65),
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- });
-
- const scaleOutBlackDot = interpolate(
- frame,
- [scaleOutStart, scaleOutStart + 10],
- [0, 1],
- {
- easing: Easing.bezier(0.8, 0.22, 0.96, 0.65),
- extrapolateLeft: 'clamp',
- extrapolateRight: 'clamp',
- }
- );
-
- const scale = frame < 70 ? scaleIn : scaleOut;
-
- return (
- <div style={{flex: 1, backgroundColor: transparent ? undefined : 'white'}}>
- <div
- style={{
- position: 'absolute',
- width: videoConfig.width,
- height: videoConfig.height,
- transform: `scale(${scale})`,
- }}
- >
- {transparent ? null : <DotGrid />}
- <Arc
- rotateProgress={rotationDevelopment}
- progress={development}
- rotation={30}
- electronProgress={electronDevelopment}
- electronOpacity={electronOpacity}
- />
- <Arc
- rotateProgress={rotationDevelopment}
- rotation={90}
- progress={frame < rotateStart ? 0 : 1}
- electronProgress={electronDevelopment * 1.2 + 0.33}
- electronOpacity={electronOpacity}
- />
- <Arc
- rotateProgress={rotationDevelopment}
- rotation={-30}
- progress={frame < rotateStart ? 0 : 1}
- electronProgress={electronDevelopment + 0.66}
- electronOpacity={electronOpacity}
- />
- <Atom scale={rotationDevelopment} />
- {transparent ? null : <Black scale={scaleOutBlackDot} />}
- </div>
- </div>
- );
-};
-
-export default ReactSvg;
diff --git a/packages/example/src/ReallyLongVideo.tsx b/packages/example/src/ReallyLongVideo.tsx
deleted file mode 100644
index 84be7ff830..0000000000
--- a/packages/example/src/ReallyLongVideo.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import {interpolate, Loop, Video} from 'remotion';
-
-const InfinityVideo: React.FC = () => {
- return (
- <Loop durationInFrames={10 * 30 * 60}>
- <Video
- volume={(f) =>
- interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
- }
- src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
- />
- </Loop>
- );
-};
-
-export default InfinityVideo;
diff --git a/packages/example/src/RemoteVideo/index.tsx b/packages/example/src/RemoteVideo/index.tsx
deleted file mode 100644
index 6ed00fd38a..0000000000
--- a/packages/example/src/RemoteVideo/index.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import {interpolate, Video} from 'remotion';
-
-const RemoteVideo: React.FC = () => {
- return (
- <Video
- volume={(f) =>
- interpolate(f, [0, 500], [1, 0], {extrapolateRight: 'clamp'})
- }
- src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
- />
- );
-};
-
-export default RemoteVideo;
diff --git a/packages/example/src/Scripts/index.tsx b/packages/example/src/Scripts/index.tsx
deleted file mode 100644
index 3cec724a68..0000000000
--- a/packages/example/src/Scripts/index.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from 'react';
-import {AbsoluteFill} from 'remotion';
-
-// Test of Devanagari script and emojis,
-export const Scripts: React.FC = () => {
- return (
- <AbsoluteFill
- style={{
- backgroundColor: 'white',
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <h1>पूर्वोत्तर में बीजेपी का मजबूत चेहरा 😁</h1>
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/ShadowCircles/Circle.tsx b/packages/example/src/ShadowCircles/Circle.tsx
deleted file mode 100644
index e220df3c3c..0000000000
--- a/packages/example/src/ShadowCircles/Circle.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import {mix} from 'polished';
-import React from 'react';
-import {interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion';
-
-const makeSquircle = (w = 100, h = 100, curvature = 0.5): string => {
- const curveWidth = (w / 2) * (1 - curvature);
- const curveHeight = (h / 2) * (1 - curvature);
- return `
- M 0, ${h / 2}
- C 0, ${curveWidth} ${curveHeight}, 0 ${w / 2}, 0
- S ${w}, ${curveHeight} ${w}, ${h / 2}
- ${w - curveWidth}, ${h - 0} ${w / 2}, ${h}
- 0, ${w - curveHeight} 0, ${h / 2}
- `;
-};
-
-export const Circle: React.FC<{
- size: number;
-}> = ({size}) => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
- const progress = spring({
- config: {
- damping: 1000,
- mass: 0.7,
- stiffness: 10,
- overshootClamping: false,
- },
- fps: videoConfig.fps,
- frame,
- from: 0,
- to: 1,
- });
- const angle = interpolate(progress, [0, 1], [0, Math.PI * 2]);
- const squircleFactor = interpolate(progress, [0, 1], [0.5, 1.05]);
- const radius = videoConfig.width / 2;
- const left = videoConfig.width / 2 - size / 2;
- const top = videoConfig.height / 2 - size / 2;
- const x = radius * Math.cos(angle) + radius;
- const y = -radius * Math.sin(angle) + radius;
- const amountToMove = (videoConfig.width - size) * (1 - progress);
- const shade = 1 - Math.min(1, size / videoConfig.width);
- const color = mix(shade * 0.1, '#000', '#fff');
-
- return (
- <svg
- viewBox={`0 0 ${size} ${size}`}
- width={size}
- height={size}
- style={{
- position: 'absolute',
- left: left + amountToMove * x * 0.0003,
- top: top + amountToMove * y * 0.0003,
- WebkitFilter: 'drop-shadow(0 0 5px #5851db)',
- }}
- >
- <path d={makeSquircle(size, size, squircleFactor)} fill={color} />
- </svg>
- );
-};
diff --git a/packages/example/src/SkipZeroFrame/index.tsx b/packages/example/src/SkipZeroFrame/index.tsx
deleted file mode 100644
index 5faf388386..0000000000
--- a/packages/example/src/SkipZeroFrame/index.tsx
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from 'react';
-import {useCurrentFrame} from 'remotion';
-
-// Try to render using:
-// npx remotion render src/index.tsx skip-zero-frame --frames=10-20 skip.mp4
-
-export const SkipZeroFrame: React.FC = () => {
- const frame = useCurrentFrame();
-
- if (frame === 0 && process.env.NODE_ENV === 'production') {
- throw new Error('should not render frame 0');
- }
-
- return <div>{frame}</div>;
-};
diff --git a/packages/example/src/Spring/base-spring.tsx b/packages/example/src/Spring/base-spring.tsx
deleted file mode 100644
index 6bf2bcbf13..0000000000
--- a/packages/example/src/Spring/base-spring.tsx
+++ /dev/null
@@ -1,57 +0,0 @@
-import React from 'react';
-import {AbsoluteFill, spring, useCurrentFrame, useVideoConfig} from 'remotion';
-
-export const BaseSpring: React.FC = () => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
- return (
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <div
- style={{
- height: 200,
- width: 200,
- backgroundColor: 'red',
- borderRadius: 100,
- transform: `scale(${spring({
- frame,
- fps,
- config: {},
- })})`,
- }}
- />
- </AbsoluteFill>
- );
-};
-
-export const SpringWithDuration: React.FC = () => {
- const frame = useCurrentFrame();
- const {fps} = useVideoConfig();
- return (
- <AbsoluteFill
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- }}
- >
- <div
- style={{
- height: 200,
- width: 200,
- backgroundColor: 'red',
- borderRadius: 100,
- transform: `scale(${spring({
- frame,
- fps,
- config: {},
- durationInFrames: 90,
- })})`,
- }}
- />
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/StaggerTesting/index.tsx b/packages/example/src/StaggerTesting/index.tsx
deleted file mode 100644
index 67fdb2b00f..0000000000
--- a/packages/example/src/StaggerTesting/index.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import {FC} from 'react';
-import {Series} from 'remotion';
-import ReactSvg from '../ReactSvg';
-import Tiles from '../Tiles';
-
-const SeriesTesting: FC = () => {
- return (
- <Series>
- <Series.Sequence durationInFrames={10}>
- <Tiles />
- </Series.Sequence>
- <Series.Sequence durationInFrames={50}>
- <ReactSvg transparent={false} />
- </Series.Sequence>
- <Series.Sequence durationInFrames={80}>
- <Tiles />
- </Series.Sequence>
- </Series>
- );
-};
-
-export {SeriesTesting};
diff --git a/packages/example/src/StaticServer/index.tsx b/packages/example/src/StaticServer/index.tsx
deleted file mode 100644
index 48e4ad8f8c..0000000000
--- a/packages/example/src/StaticServer/index.tsx
+++ /dev/null
@@ -1,20 +0,0 @@
-import React, {useState} from 'react';
-import {continueRender, delayRender, Img, staticFile} from 'remotion';
-
-export const StaticDemo: React.FC = () => {
- const [handle1] = useState(() => delayRender('handle1'));
- const [handle2] = useState(() => delayRender('handle2'));
-
- return (
- <>
- <Img
- src={staticFile('logo.png')}
- onLoad={() => continueRender(handle1)}
- />
- <Img
- src={staticFile('/nested/mp4.png')}
- onLoad={() => continueRender(handle2)}
- />
- </>
- );
-};
diff --git a/packages/example/src/StillZoom/index.tsx b/packages/example/src/StillZoom/index.tsx
deleted file mode 100644
index a0d84bf1a5..0000000000
--- a/packages/example/src/StillZoom/index.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-export const StillZoom: React.FC = () => {
- return (
- <div
- style={{
- display: 'flex',
- flexWrap: 'wrap',
- background: '#ffffffaa',
- }}
- >
- {Array(396)
- .fill(null)
- .map((_, i) => (
- <div
- key={i}
- style={{
- width: '100px',
- height: '100px',
- outline: '1px solid rebeccapurple',
- fontSize: '3rem',
- }}
- >
- {i}
- </div>
- ))}
- </div>
- );
-};
diff --git a/packages/example/src/TenFrameTester/index.tsx b/packages/example/src/TenFrameTester/index.tsx
deleted file mode 100644
index 1346d7470b..0000000000
--- a/packages/example/src/TenFrameTester/index.tsx
+++ /dev/null
@@ -1,10 +0,0 @@
-import {AbsoluteFill, Audio, staticFile} from 'remotion';
-import ReactSvg from '../ReactSvg';
-
-// Short video that is fast to render for testing
-export const TenFrameTester: React.FC = () => (
- <AbsoluteFill>
- <ReactSvg transparent={false} />
- <Audio src={staticFile('music.mp3')} />
- </AbsoluteFill>
-);
diff --git a/packages/example/src/ThreeBasic/Mesh.tsx b/packages/example/src/ThreeBasic/Mesh.tsx
deleted file mode 100644
index e1d982e251..0000000000
--- a/packages/example/src/ThreeBasic/Mesh.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-import {interpolate, useCurrentFrame} from 'remotion';
-export const Mesh: React.FC = () => {
- const frame = useCurrentFrame();
- return (
- <mesh
- position={[0, 0, 0]}
- rotation={[frame * 0.06 * 0.5, frame * 0.07 * 0.5, frame * 0.08 * 0.5]}
- scale={interpolate(Math.sin(frame / 10), [-1, 1], [0.8, 1.2])}
- >
- <boxGeometry args={[100, 100, 100]} />
- <meshStandardMaterial
- color={[
- Math.sin(frame * 0.12) * 0.5 + 0.5,
- Math.cos(frame * 0.11) * 0.5 + 0.5,
- Math.sin(frame * 0.08) * 0.5 + 0.5,
- ]}
- />
- </mesh>
- );
-};
diff --git a/packages/example/src/ThreeBasic/index.tsx b/packages/example/src/ThreeBasic/index.tsx
deleted file mode 100644
index 48fbe6f96f..0000000000
--- a/packages/example/src/ThreeBasic/index.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import {ThreeCanvas} from '@remotion/three';
-import React from 'react';
-import {useVideoConfig} from 'remotion';
-import {Mesh} from './Mesh';
-
-const ThreeBasic: React.FC = () => {
- const {width, height} = useVideoConfig();
- return (
- <ThreeCanvas
- width={width}
- height={height}
- style={{backgroundColor: 'white'}}
- orthographic={false}
- camera={{fov: 75, position: [0, 0, 470]}}
- >
- <ambientLight intensity={0.15} />
- <pointLight args={[undefined, 0.4]} position={[200, 200, 0]} />
- <Mesh />
- </ThreeCanvas>
- );
-};
-
-export default ThreeBasic;
diff --git a/packages/example/src/Tiles/Tile.tsx b/packages/example/src/Tiles/Tile.tsx
deleted file mode 100644
index 9dfaf9c2b4..0000000000
--- a/packages/example/src/Tiles/Tile.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React from 'react';
-import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
-
-const size = 200;
-
-export const Tile: React.FC<{
- index: number;
-}> = ({index}) => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
- const springConfig: SpringConfig = {
- damping: 100,
- mass: 0.5,
- stiffness: 10,
- overshootClamping: true,
- };
- const scale = spring({
- config: springConfig,
- fps: videoConfig.fps,
- frame,
- from: 0,
- to: 1,
- });
- const rotate = spring({
- config: springConfig,
- fps: videoConfig.fps,
- from: 0,
- frame,
- to: 1,
- });
- return (
- <div
- style={{
- height: size,
- width: size,
- position: 'absolute',
- zIndex: 1000 - index,
- left: videoConfig.width / 2 - size / 2,
- top: videoConfig.height / 2 - size / 2,
- borderRadius: 20,
- background: 'radial-gradient(ellipse at bottom, white, #eee)',
- boxShadow: '0 0 3px rgba(0, 0, 0, 0.1)',
- transform: ` rotateZ(${index * 8 * rotate}deg) translateY(${
- index * 15
- }px) scale(${scale}`,
- justifyContent: 'center',
- alignItems: 'center',
- display: 'flex',
- }}
- />
- );
-};
diff --git a/packages/example/src/Tiles/index.tsx b/packages/example/src/Tiles/index.tsx
deleted file mode 100644
index 8dc295aa67..0000000000
--- a/packages/example/src/Tiles/index.tsx
+++ /dev/null
@@ -1,74 +0,0 @@
-import {mix} from 'polished';
-import React from 'react';
-import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
-import {Tile} from './Tile';
-
-const BRAND_GRADIENT = ['#5851db', '#405de6'];
-const solidBrand = mix(0.5, BRAND_GRADIENT[0], BRAND_GRADIENT[1]);
-
-const Tiles: React.FC = () => {
- const videoConfig = useVideoConfig();
- const frame = useCurrentFrame();
-
- const springConfig: SpringConfig = {
- damping: 50,
- mass: 0.1,
- stiffness: 10,
- overshootClamping: false,
- };
-
- const scale = spring({
- config: springConfig,
- from: 1,
- to: 3.3,
- fps: videoConfig.fps,
- frame,
- });
- const outerScale = spring({
- config: springConfig,
- from: 1,
- frame: Math.max(0, frame - 20),
- to: 3,
- fps: videoConfig.fps,
- });
- const rotate = spring({
- config: springConfig,
- fps: videoConfig.fps,
- frame: Math.max(0, frame - 20),
- from: -100,
- to: 0,
- });
- return (
- <div
- style={{
- backgroundColor: solidBrand,
- flex: 1,
- }}
- >
- <div
- style={{
- transform: `scale(${outerScale})`,
- width: videoConfig.width,
- height: videoConfig.height,
- }}
- >
- <div
- style={{
- transform: `scale(${scale}) rotate(${rotate}deg)`,
- width: videoConfig.width,
- height: videoConfig.height,
- }}
- >
- {new Array(40)
- .fill(true)
- .map((_, i) => i)
- .map((i) => {
- return <Tile key={i} index={i} />;
- })}
- </div>
- </div>
- </div>
- );
-};
-
-export default Tiles;
diff --git a/packages/example/src/Title/index.tsx b/packages/example/src/Title/index.tsx
deleted file mode 100644
index 091782f6f8..0000000000
--- a/packages/example/src/Title/index.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import React from 'react';
-import {spring, SpringConfig, useCurrentFrame, useVideoConfig} from 'remotion';
-
-export const Title: React.FC<{
- line1: string;
- line2: string;
-}> = ({line1, line2}) => {
- const {fps} = useVideoConfig();
- const frame = useCurrentFrame();
- const springConfig: SpringConfig = {
- damping: 10,
- mass: 0.1,
- stiffness: 100,
- overshootClamping: false,
- };
-
- const firstWord = spring({
- config: springConfig,
- from: 0,
- to: 1,
- fps,
- frame,
- });
- const secondWord = spring({
- config: springConfig,
- frame: Math.max(0, frame - 5),
- from: 0,
- to: 1,
- fps,
- });
- return (
- <div
- style={{
- flex: 1,
- justifyContent: 'center',
- alignItems: 'center',
- display: 'flex',
- backgroundColor: 'white',
- textAlign: 'center',
- }}
- >
- <div
- style={{
- fontSize: 110,
- fontWeight: 'bold',
- fontFamily: 'SF Pro Text',
- }}
- >
- <span
- style={{
- display: 'inline-block',
- transform: `scale(${firstWord})`,
- }}
- >
- {line1}
- </span>
- <span
- style={{transform: `scale(${secondWord})`, display: 'inline-block'}}
- >
- {' '}
- {line2}
- </span>
- </div>
- </div>
- );
-};
-
-export default Title;
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
deleted file mode 100644
index 4eb2e2c986..0000000000
--- a/packages/example/src/Video.tsx
+++ /dev/null
@@ -1,507 +0,0 @@
-import {alias} from 'lib/alias';
-import React from 'react';
-import {Composition, Folder, getInputProps, Still} from 'remotion';
-import {TwentyTwoKHzAudio} from './22KhzAudio';
-import BetaText from './BetaText';
-import {ColorInterpolation} from './ColorInterpolation';
-import {MyCtx, WrappedInContext} from './Context';
-import CorruptVideo from './CorruptVideo';
-import {ErrorOnFrame10} from './ErrorOnFrame10';
-import {FontDemo} from './Fonts';
-import {Framer} from './Framer';
-import {FreezeExample} from './Freeze/FreezeExample';
-import {ManyAudio} from './ManyAudio';
-import {MissingImg} from './MissingImg';
-import {OffthreadRemoteVideo} from './OffthreadRemoteVideo/OffthreadRemoteVideo';
-import {OrbScene} from './Orb';
-import InfinityVideo from './ReallyLongVideo';
-import RemoteVideo from './RemoteVideo';
-import {Scripts} from './Scripts';
-import {SkipZeroFrame} from './SkipZeroFrame';
-import {BaseSpring, SpringWithDuration} from './Spring/base-spring';
-import {SeriesTesting} from './StaggerTesting';
-import {StaticDemo} from './StaticServer';
-import {StillZoom} from './StillZoom';
-import {TenFrameTester} from './TenFrameTester';
-import ThreeBasic from './ThreeBasic';
-import {VideoOnCanvas} from './VideoOnCanvas';
-import {Greenscreen} from './VideoOnCanvas/greenscreen';
-import {VideoSpeed} from './VideoSpeed';
-import {VideoTesting} from './VideoTesting';
-
-if (alias !== 'alias') {
- throw new Error('should support TS aliases');
-}
-
-// Use it to test that UI does not regress on weird CSS
-// import './weird-css.css';
-
-export const Index: React.FC = () => {
- const inputProps = getInputProps();
- return (
- <>
- <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="spring">
- <Composition
- id="base-spring"
- component={BaseSpring}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="spring-with-duration"
- component={SpringWithDuration}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- </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}
- />
- <Composition
- id="many-audio"
- component={ManyAudio}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={30}
- />
- <Composition
- id="error-on-frame-10"
- component={ErrorOnFrame10}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={1000000}
- />
- <MyCtx.Provider
- value={{
- hi: () => 'hithere',
- }}
- >
- <Still
- id="wrapped-in-context"
- component={WrappedInContext}
- width={1280}
- height={720}
- />
- </MyCtx.Provider>
- </Folder>
- <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={{
- offthread: false,
- codec: 'mp4' as const,
- }}
- />
- <Composition
- id="video-testing-mp4-offthread"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- defaultProps={{
- offthread: true,
- codec: 'mp4' as const,
- }}
- />
- <Composition
- id="OffthreadRemoteVideo"
- component={OffthreadRemoteVideo}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- <Composition
- id="video-testing-webm"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- defaultProps={{
- offthread: false,
- codec: 'webm' as const,
- }}
- />
- <Composition
- id="video-testing-webm-offthread"
- component={VideoTesting}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- defaultProps={{
- offthread: true,
- codec: 'webm' as const,
- }}
- />
- <Composition
- id="remote-video"
- component={RemoteVideo}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={600}
- />
- <Composition
- id="corrupt-video"
- component={CorruptVideo}
- width={1280}
- height={720}
- fps={30}
- durationInFrames={2000}
- />
- <Composition
- id="2hrvideo"
- component={InfinityVideo}
- width={1920}
- height={1080}
- fps={30}
- durationInFrames={2 * 60 * 60 * 30}
- />
-
- <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="still-tests">
- <Still
- id="still-zoom"
- component={StillZoom}
- width={1800}
- height={2200}
- />
- </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-testing-base64"
- lazyComponent={() => import('./AudioTesting/Base64')}
- 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>
- <Folder name="lottie">
- <Composition
- id="cybertruck"
- lazyComponent={() => import('./Lottie/Cybertruck')}
- durationInFrames={500}
- fps={30}
- height={850}
- width={850}
- />
- <Composition
- id="halloween-balloons"
- lazyComponent={() => import('./Lottie/Halloween/Balloons')}
- durationInFrames={90}
- fps={30}
- height={1080}
- width={1080}
- />
- <Composition
- id="halloween-pumpkin"
- lazyComponent={() => import('./Lottie/Halloween/Pumpkin')}
- durationInFrames={150}
- fps={30}
- height={1200}
- width={1600}
- />
- <Composition
- id="exploding-bird"
- lazyComponent={() => import('./Lottie/ExplodingBird')}
- durationInFrames={300}
- fps={30}
- height={850}
- width={850}
- />
- <Composition
- id="loader"
- lazyComponent={() => import('./Lottie/Loader')}
- durationInFrames={240}
- fps={60}
- height={576}
- width={576}
- />
- </Folder>
- <Folder name="paths">
- <Composition
- id="path-evolve"
- lazyComponent={() => import('./Paths/PathEvolve')}
- durationInFrames={500}
- fps={30}
- height={1080}
- width={1080}
- />
- <Composition
- id="path-morph"
- lazyComponent={() => import('./Paths/PathMorph')}
- durationInFrames={500}
- fps={30}
- height={1080}
- width={1080}
- />
- </Folder>
- </>
- );
-};
diff --git a/packages/example/src/VideoOnCanvas/greenscreen.tsx b/packages/example/src/VideoOnCanvas/greenscreen.tsx
deleted file mode 100644
index e500f636e6..0000000000
--- a/packages/example/src/VideoOnCanvas/greenscreen.tsx
+++ /dev/null
@@ -1,68 +0,0 @@
-import {useVideoConfig, Video} from 'remotion';
-import {useCallback, useEffect, useRef} from 'react';
-import React from 'react';
-import {AbsoluteFill} from 'remotion';
-
-export const Greenscreen: React.FC = () => {
- const video = useRef<HTMLVideoElement>(null);
- const canvas = useRef<HTMLCanvasElement>(null);
- const {width, height} = useVideoConfig();
-
- const onVideoFrame = useCallback(() => {
- if (
- !canvas.current ||
- !video.current ||
- !video.current.requestVideoFrameCallback
- ) {
- return;
- }
-
- const context = canvas.current.getContext('2d');
-
- if (!context) {
- return;
- }
-
- context.drawImage(video.current, 0, 0, width, height);
- const imageFrame = context.getImageData(0, 0, width, height);
- const {length} = imageFrame.data;
-
- for (let i = 0; i < length; i += 4) {
- const red = imageFrame.data[i + 0];
- const green = imageFrame.data[i + 1];
- const blue = imageFrame.data[i + 2];
- if (green > 100 && red < 100 && blue < 100) {
- imageFrame.data[i + 3] = 0;
- }
- }
-
- context.putImageData(imageFrame, 0, 0);
-
- video.current.requestVideoFrameCallback(() => onVideoFrame());
- }, [height, width]);
-
- useEffect(() => {
- if (!video.current || !video.current.requestVideoFrameCallback) {
- return;
- }
-
- video.current.requestVideoFrameCallback(() => onVideoFrame());
- }, [onVideoFrame]);
-
- return (
- <AbsoluteFill>
- <AbsoluteFill>
- <Video
- ref={video}
- style={{opacity: 0}}
- startFrom={300}
- crossOrigin="anonymous"
- src="https://remotion-assets.s3.eu-central-1.amazonaws.com/just-do-it.mp4"
- />
- </AbsoluteFill>
- <AbsoluteFill>
- <canvas ref={canvas} width={width} height={height} />
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/VideoOnCanvas/index.tsx b/packages/example/src/VideoOnCanvas/index.tsx
deleted file mode 100644
index 236dd63e0c..0000000000
--- a/packages/example/src/VideoOnCanvas/index.tsx
+++ /dev/null
@@ -1,54 +0,0 @@
-import {useVideoConfig, Video} from 'remotion';
-import {useCallback, useEffect, useRef} from 'react';
-import React from 'react';
-import {AbsoluteFill} from 'remotion';
-
-export const VideoOnCanvas: React.FC = () => {
- const video = useRef<HTMLVideoElement>(null);
- const canvas = useRef<HTMLCanvasElement>(null);
- const {width, height} = useVideoConfig();
-
- const onVideoFrame = useCallback(() => {
- if (
- !canvas.current ||
- !video.current ||
- !video.current.requestVideoFrameCallback
- ) {
- return;
- }
-
- const context = canvas.current.getContext('2d');
-
- if (!context) {
- return;
- }
-
- context.filter = 'grayscale(100%)';
- context.drawImage(video.current, 0, 0, width, height);
- video.current.requestVideoFrameCallback(() => onVideoFrame());
- }, [height, width]);
-
- useEffect(() => {
- if (!video.current || !video.current.requestVideoFrameCallback) {
- return;
- }
-
- video.current.requestVideoFrameCallback(() => onVideoFrame());
- }, [onVideoFrame]);
-
- return (
- <AbsoluteFill>
- <AbsoluteFill>
- <Video
- ref={video}
- style={{opacity: 0}}
- startFrom={300}
- src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
- />
- </AbsoluteFill>
- <AbsoluteFill>
- <canvas ref={canvas} width={width} height={height} />
- </AbsoluteFill>
- </AbsoluteFill>
- );
-};
diff --git a/packages/example/src/VideoSpeed/index.tsx b/packages/example/src/VideoSpeed/index.tsx
deleted file mode 100644
index 1f6226fbfd..0000000000
--- a/packages/example/src/VideoSpeed/index.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from 'react';
-import {Video} from 'remotion';
-import framer from '../resources/framer-music.mp4';
-
-export const VideoSpeed: React.FC = () => {
- return (
- <div
- style={{
- display: 'flex',
- justifyContent: 'center',
- alignItems: 'center',
- flex: 1,
- }}
- >
- <Video src={framer} playbackRate={2} startFrom={20} />
- </div>
- );
-};
diff --git a/packages/example/src/VideoTesting/index.tsx b/packages/example/src/VideoTesting/index.tsx
deleted file mode 100644
index f8842ce775..0000000000
--- a/packages/example/src/VideoTesting/index.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import {
- OffthreadVideo,
- Sequence,
- staticFile,
- useVideoConfig,
- Video,
-} from 'remotion';
-
-export const VideoTesting: React.FC<{
- codec: 'mp4' | 'webm';
- offthread: boolean;
-}> = ({codec, offthread}) => {
- const {durationInFrames} = useVideoConfig();
- const videoMp4 = staticFile('framermp4withoutfileextension');
- const videoWebm = staticFile('framer.webm');
-
- const Comp = offthread ? OffthreadVideo : Video;
-
- return (
- <div>
- <Sequence from={0} durationInFrames={durationInFrames}>
- <Comp src={codec === 'mp4' ? videoMp4 : videoWebm} />
- </Sequence>
- </div>
- );
-};
diff --git a/packages/example/src/entry.jsx b/packages/example/src/entry.jsx
deleted file mode 100644
index 4eb49213b4..0000000000
--- a/packages/example/src/entry.jsx
+++ /dev/null
@@ -1,4 +0,0 @@
-import {registerRoot} from 'remotion';
-import {Index} from './video-js';
-
-registerRoot(Index);
diff --git a/packages/example/src/index.tsx b/packages/example/src/index.tsx
deleted file mode 100644
index 405a452d3b..0000000000
--- a/packages/example/src/index.tsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import {registerRoot} from 'remotion';
-import {Index} from './Video';
-
-// Should be able to defer registerRoot()
-setTimeout(() => {
- registerRoot(Index);
-}, 500);
diff --git a/packages/example/src/lib/alias.ts b/packages/example/src/lib/alias.ts
deleted file mode 100644
index d4cbb03d9d..0000000000
--- a/packages/example/src/lib/alias.ts
+++ /dev/null
@@ -1 +0,0 @@
-export const alias = 'alias';
diff --git a/packages/example/src/mdx-support.ts b/packages/example/src/mdx-support.ts
deleted file mode 100644
index 3c8c141026..0000000000
--- a/packages/example/src/mdx-support.ts
+++ /dev/null
@@ -1 +0,0 @@
-declare module '*.mdx';
diff --git a/packages/example/src/my-props.json b/packages/example/src/my-props.json
deleted file mode 100644
index df68a9c2e9..0000000000
--- a/packages/example/src/my-props.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "hello": "world"
-}
diff --git a/packages/example/src/resources/framer-24fps.mp4 b/packages/example/src/resources/framer-24fps.mp4
deleted file mode 100644
index b6f27dbfc8..0000000000
Binary files a/packages/example/src/resources/framer-24fps.mp4 and /dev/null differ
diff --git a/packages/example/src/resources/framer-music.mp4 b/packages/example/src/resources/framer-music.mp4
deleted file mode 100644
index f8b324fcbb..0000000000
Binary files a/packages/example/src/resources/framer-music.mp4 and /dev/null differ
diff --git a/packages/example/src/resources/framer.mp4 b/packages/example/src/resources/framer.mp4
deleted file mode 100644
index fd6fb9bd65..0000000000
Binary files a/packages/example/src/resources/framer.mp4 and /dev/null differ
diff --git a/packages/example/src/resources/sound1.mp3 b/packages/example/src/resources/sound1.mp3
deleted file mode 100644
index 0db7e1631b..0000000000
Binary files a/packages/example/src/resources/sound1.mp3 and /dev/null differ
diff --git a/packages/example/src/resources/sound2.mp3 b/packages/example/src/resources/sound2.mp3
deleted file mode 100644
index 63ddcba23f..0000000000
Binary files a/packages/example/src/resources/sound2.mp3 and /dev/null differ
diff --git a/packages/example/src/simulate-lambda.ts b/packages/example/src/simulate-lambda.ts
deleted file mode 100644
index 68d012a7c4..0000000000
--- a/packages/example/src/simulate-lambda.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import {bundle} from '@remotion/bundler';
-import {
- combineVideos,
- getCompositions,
- RenderInternals,
- renderMedia,
-} from '@remotion/renderer';
-import path from 'path';
-import {webpackOverride} from './webpack-override';
-
-const start = async () => {
- const bundled = await bundle('./src/index.tsx', () => undefined, {
- webpackOverride,
- });
-
- const comps = await getCompositions(bundled);
-
- const filelistDir = RenderInternals.tmpDir('remotion-file-lists');
-
- const dur = 600;
- const framesPerLambda = 24;
-
- console.log(filelistDir);
- for (let i = 0; i < dur / framesPerLambda; i++) {
- await renderMedia({
- codec: 'h264',
- composition: comps.find((c) => c.id === 'remote-video')!,
- outputLocation: path.join(filelistDir, 'out/there' + i + '.mkv'),
- serveUrl: bundled,
- frameRange: [i * framesPerLambda, (i + 1) * framesPerLambda - 1],
- parallelism: 1,
- numberOfGifLoops: null,
- everyNthFrame: 1,
- verbose: false,
- });
- console.log({i});
- }
-
- await combineVideos({
- codec: 'h264',
- filelistDir,
- files: new Array(dur / framesPerLambda).fill(true).map((_, i) => {
- return path.join(filelistDir, 'out/there' + i + '.mkv');
- }),
- fps: 30,
- numberOfFrames: dur,
- onProgress: () => console.log('progress'),
- output: 'out/combined.mp4',
- numberOfGifLoops: null,
- });
-};
-
-start();
diff --git a/packages/example/src/test/stills.test.ts b/packages/example/src/test/stills.test.ts
deleted file mode 100644
index b00e89859d..0000000000
--- a/packages/example/src/test/stills.test.ts
+++ /dev/null
@@ -1,83 +0,0 @@
-import {bundle} from '@remotion/bundler';
-import {
- getCompositions,
- RenderInternals,
- renderStill,
-} from '@remotion/renderer';
-import {existsSync, unlinkSync} from 'fs';
-import {tmpdir} from 'os';
-import path from 'path';
-import {TCompMetadata} from 'remotion';
-import {expect, test} from 'vitest';
-import {webpackOverride} from '../webpack-override';
-
-test('Can render a still using Node.JS APIs', async () => {
- const bundled = await bundle(
- path.join(process.cwd(), 'src/index.tsx'),
- () => undefined,
- {webpackOverride}
- );
-
- const compositions = await getCompositions(bundled);
-
- const composition = compositions.find(
- (c) => c.id === 'react-svg'
- ) as TCompMetadata;
-
- const testOut = path.join(tmpdir(), 'path/to/still.png');
-
- const {port, close} = await RenderInternals.serveStatic(bundled, {
- onDownload: () => undefined,
- port: null,
- onError: (err) => {
- throw err;
- },
- ffmpegExecutable: null,
- ffprobeExecutable: null,
- downloadMap: RenderInternals.makeDownloadMap(),
- });
-
- const serveUrl = `http://localhost:${port}`;
-
- expect(() =>
- renderStill({
- composition,
- output: testOut,
- serveUrl,
- frame: 500,
- })
- ).rejects.toThrow(
- /Cannot use frame 500: Duration of composition is 300, therefore the highest frame that can be rendered is 299/
- );
-
- expect(() =>
- renderStill({
- composition,
- output: process.platform === 'win32' ? 'D:\\' : '/var',
- serveUrl,
- })
- ).rejects.toThrow(/already exists, but is not a file/);
-
- expect(() =>
- renderStill({
- composition,
- output: 'src/index.tsx',
- serveUrl,
- overwrite: false,
- })
- ).rejects.toThrow(
- /Cannot render still - "overwrite" option was set to false, but the output/
- );
-
- await renderStill({
- composition,
- output: testOut,
- serveUrl,
- frame: 100,
- });
-
- expect(existsSync(testOut)).toBe(true);
- unlinkSync(testOut);
-
- await close();
-}, 90000);
diff --git a/packages/example/src/ts-entry.tsx b/packages/example/src/ts-entry.tsx
deleted file mode 100644
index 690fbfc5bf..0000000000
--- a/packages/example/src/ts-entry.tsx
+++ /dev/null
@@ -1,4 +0,0 @@
-import {registerRoot} from 'remotion';
-import {Index} from './video-ts';
-
-registerRoot(Index);
diff --git a/packages/example/src/video-js.jsx b/packages/example/src/video-js.jsx
deleted file mode 100644
index 346774ed60..0000000000
--- a/packages/example/src/video-js.jsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from 'react';
-import {Composition} from 'remotion';
-import {Framer} from './FramerJs';
-
-export const Index = () => {
- return (
- <>
- <Composition
- id="framer"
- component={Framer}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- </>
- );
-};
diff --git a/packages/example/src/video-ts.tsx b/packages/example/src/video-ts.tsx
deleted file mode 100644
index 7bdaf251e3..0000000000
--- a/packages/example/src/video-ts.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import {Composition} from 'remotion';
-import {Framer} from './Framer';
-
-export const Index = () => {
- return (
- <>
- <Composition
- id="framer"
- component={Framer}
- width={1080}
- height={1080}
- fps={30}
- durationInFrames={100}
- />
- </>
- );
-};
diff --git a/packages/example/src/webpack-override.ts b/packages/example/src/webpack-override.ts
deleted file mode 100644
index 1c40ed5c73..0000000000
--- a/packages/example/src/webpack-override.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import path from 'path';
-import {WebpackOverrideFn} from 'remotion';
-type Bundler = 'webpack' | 'esbuild';
-
-const WEBPACK_OR_ESBUILD = 'esbuild' as Bundler;
-
-export const webpackOverride: WebpackOverrideFn = (currentConfiguration) => {
- const replaced = (() => {
- if (WEBPACK_OR_ESBUILD === 'webpack') {
- const {replaceLoadersWithBabel} = require(path.join(
- __dirname,
- '..',
- '..',
- 'example',
- 'node_modules',
- '@remotion/babel-loader'
- ));
- return replaceLoadersWithBabel(currentConfiguration);
- }
-
- return currentConfiguration;
- })();
- return {
- ...replaced,
- module: {
- ...replaced.module,
- rules: [
- ...(replaced.module?.rules ?? []),
- {
- test: /\.mdx?$/,
- use: [
- {
- loader: 'babel-loader',
- options: {
- presets: [
- '@babel/preset-env',
- [
- '@babel/preset-react',
- {
- runtime: 'automatic',
- },
- ],
- ],
- },
- },
- 'mdx-loader',
- ],
- },
- ],
- },
- resolve: {
- ...replaced.resolve,
- alias: {
- ...replaced.resolve.alias,
- lib: path.join(process.cwd(), 'src', 'lib'),
- },
- },
- };
-};
diff --git a/packages/example/src/weird-css.css b/packages/example/src/weird-css.css
deleted file mode 100644
index 98fab776e3..0000000000
--- a/packages/example/src/weird-css.css
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
-By injecting this we test how resilient the Remotion UI is to weird global CSS.
-*/
-
-html,
-* {
- font-size: 100px;
- color: red;
- line-height: 5;
- font-family: 'Comic Sans MS';
- box-sizing: content-box;
- background: green;
-}
diff --git a/packages/example/testlambda.sh b/packages/example/testlambda.sh
deleted file mode 100644
index f4ac9d4143..0000000000
--- a/packages/example/testlambda.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-cd ..
-cd lambda
-npm run buildlambda
-cd ..
-cd example
-pnpm exec remotion lambda policies validate
-pnpm exec remotion lambda functions rmall -f
-pnpm exec remotion lambda functions deploy --memory=3000
-pnpm exec remotion lambda sites create src/index.tsx --site-name=testbed
-pnpm exec remotion lambda render testbed react-svg --out-name=ggg.mp4 ggg.mp4 --log=verbose
diff --git a/packages/example/tsconfig.json b/packages/example/tsconfig.json
deleted file mode 100644
index 794e9bdf6e..0000000000
--- a/packages/example/tsconfig.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "extends": "../tsconfig.settings.json",
- "compilerOptions": {
- "rootDir": "./src",
- "outDir": "./dist",
- "jsx": "react-jsx",
- "skipLibCheck": true,
- "allowSyntheticDefaultImports": true,
- "paths": {
- "lib/*": ["./src/lib/*"]
- }
- },
- "include": ["src"],
- "references": [
- {"path": "../core"},
- {"path": "../media-utils"},
- {"path": "../babel-loader"},
- {"path": "../three"}
- ]
-}
diff --git a/packages/example/vitest.config.ts b/packages/example/vitest.config.ts
deleted file mode 100644
index 7bc74d2df7..0000000000
--- a/packages/example/vitest.config.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import {defineConfig} from 'vitest/config';
-
-export default defineConfig({
- test: {
- testTimeout: 90000,
- maxConcurrency: 1,
- threads: false,
- },
-});
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index cdd0b65cac..ecd7bbbd89 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -548,8 +548,6 @@ importers:
mime-types: 2.1.34
prettier: ^2.4.1
prettier-plugin-organize-imports: ^2.3.4
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
remotion: 3.2.16
ts-jest: ^27.0.5
ts-node: ^10.8.0
@@ -569,8 +567,6 @@ importers:
'@remotion/renderer': link:../renderer
aws-policies: 1.0.1
mime-types: 2.1.34
- react: 18.0.0
- react-dom: [email protected]
remotion: link:../core
devDependencies:
'@jonny/eslint-config': 3.0.266_6hvhxfirl4y3p6nuemvvvbadcu
@@ -595,7 +591,6 @@ importers:
'@types/react': 18.0.1
'@types/react-dom': 18.0.0
eslint: 8.13.0
- lottie-web: ^5
prettier: ^2.0.5
prettier-plugin-organize-imports: ^2.3.4
react: ^18.0.0
@@ -604,7 +599,6 @@ importers:
typescript: ^4.7.0
vitest: ^0.18.0
dependencies:
- lottie-web: 5.9.6
remotion: link:../core
devDependencies:
'@jonny/eslint-config': 3.0.266_6hvhxfirl4y3p6nuemvvvbadcu
@@ -627,13 +621,9 @@ importers:
eslint: 8.13.0
prettier: ^2.0.5
prettier-plugin-organize-imports: ^2.3.4
- react: '>=16.8.0'
- react-dom: '>=16.8.0'
remotion: 3.2.16
typescript: ^4.7.0
dependencies:
- react: 18.0.0
- react-dom: [email protected]
remotion: link:../core
devDependencies:
'@jonny/eslint-config': 3.0.266_6hvhxfirl4y3p6nuemvvvbadcu