Skip to content

🎥 Make videos programmatically with React

deploy homepage video

Jonny Burgera3ba8a017760
diff --git a/packages/docs/deploy-homepage-video.ts b/packages/docs/deploy-homepage-video.ts
new file mode 100644
index 0000000000..e3cbac616f
--- /dev/null
+++ b/packages/docs/deploy-homepage-video.ts
@@ -0,0 +1,17 @@
+// bun deploy-homepage-video.ts
+// Needs a .env
+import type {AwsRegion} from '@remotion/lambda';
+import {deploySite, getOrCreateBucket} from '@remotion/lambda';
+
+const region: AwsRegion = 'us-west-2';
+
+const {bucketName} = await getOrCreateBucket({
+ region,
+});
+
+await deploySite({
+ siteName: 'remotion-homepage',
+ bucketName,
+ entryPoint: './src/remotion/entry.ts',
+ region,
+});
diff --git a/packages/docs/public/fire-0.5x.mp4 b/packages/docs/public/fire-0.5x.mp4
new file mode 100644
index 0000000000..d2353e0500
Binary files /dev/null and b/packages/docs/public/fire-0.5x.mp4 differ
diff --git a/packages/docs/public/fire-0.5x.webm b/packages/docs/public/fire-0.5x.webm
new file mode 100644
index 0000000000..353f82996c
Binary files /dev/null and b/packages/docs/public/fire-0.5x.webm differ
diff --git a/packages/docs/public/fire-1x.mp4 b/packages/docs/public/fire-1x.mp4
new file mode 100644
index 0000000000..c63ca60a6e
Binary files /dev/null and b/packages/docs/public/fire-1x.mp4 differ
diff --git a/packages/docs/public/fire-1x.webm b/packages/docs/public/fire-1x.webm
new file mode 100644
index 0000000000..0dde1ab309
Binary files /dev/null and b/packages/docs/public/fire-1x.webm differ
diff --git a/packages/docs/public/fire-2x.mp4 b/packages/docs/public/fire-2x.mp4
new file mode 100644
index 0000000000..539b380440
Binary files /dev/null and b/packages/docs/public/fire-2x.mp4 differ
diff --git a/packages/docs/public/fire-2x.webm b/packages/docs/public/fire-2x.webm
new file mode 100644
index 0000000000..063ecb35fb
Binary files /dev/null and b/packages/docs/public/fire-2x.webm differ
diff --git a/packages/docs/public/melting-0.5x.mp4 b/packages/docs/public/melting-0.5x.mp4
new file mode 100644
index 0000000000..6580477532
Binary files /dev/null and b/packages/docs/public/melting-0.5x.mp4 differ
diff --git a/packages/docs/public/melting-0.5x.webm b/packages/docs/public/melting-0.5x.webm
new file mode 100644
index 0000000000..b55e358096
Binary files /dev/null and b/packages/docs/public/melting-0.5x.webm differ
diff --git a/packages/docs/public/melting-1x.mp4 b/packages/docs/public/melting-1x.mp4
new file mode 100644
index 0000000000..3de3f3eb71
Binary files /dev/null and b/packages/docs/public/melting-1x.mp4 differ
diff --git a/packages/docs/public/melting-1x.webm b/packages/docs/public/melting-1x.webm
new file mode 100644
index 0000000000..bd746d55bb
Binary files /dev/null and b/packages/docs/public/melting-1x.webm differ
diff --git a/packages/docs/public/melting-2x.mp4 b/packages/docs/public/melting-2x.mp4
new file mode 100644
index 0000000000..717e5cf375
Binary files /dev/null and b/packages/docs/public/melting-2x.mp4 differ
diff --git a/packages/docs/public/melting-2x.webm b/packages/docs/public/melting-2x.webm
new file mode 100644
index 0000000000..123898955e
Binary files /dev/null and b/packages/docs/public/melting-2x.webm differ
diff --git a/packages/docs/public/partying-face-0.5x.mp4 b/packages/docs/public/partying-face-0.5x.mp4
new file mode 100644
index 0000000000..3cf97a8bcf
Binary files /dev/null and b/packages/docs/public/partying-face-0.5x.mp4 differ
diff --git a/packages/docs/public/partying-face-0.5x.webm b/packages/docs/public/partying-face-0.5x.webm
new file mode 100644
index 0000000000..813deb2456
Binary files /dev/null and b/packages/docs/public/partying-face-0.5x.webm differ
diff --git a/packages/docs/public/partying-face-1x.mp4 b/packages/docs/public/partying-face-1x.mp4
new file mode 100644
index 0000000000..70ff4504a6
Binary files /dev/null and b/packages/docs/public/partying-face-1x.mp4 differ
diff --git a/packages/docs/public/partying-face-1x.webm b/packages/docs/public/partying-face-1x.webm
new file mode 100644
index 0000000000..ec0fbd1ee5
Binary files /dev/null and b/packages/docs/public/partying-face-1x.webm differ
diff --git a/packages/docs/public/partying-face-2x.mp4 b/packages/docs/public/partying-face-2x.mp4
new file mode 100644
index 0000000000..a3c9c5d854
Binary files /dev/null and b/packages/docs/public/partying-face-2x.mp4 differ
diff --git a/packages/docs/public/partying-face-2x.webm b/packages/docs/public/partying-face-2x.webm
new file mode 100644
index 0000000000..ccfa08e3c8
Binary files /dev/null and b/packages/docs/public/partying-face-2x.webm differ
diff --git a/packages/docs/src/remotion/HomepageVideo/Comp.tsx b/packages/docs/src/remotion/HomepageVideo/Comp.tsx
index 18e014ab81..fab32e3837 100644
--- a/packages/docs/src/remotion/HomepageVideo/Comp.tsx
+++ b/packages/docs/src/remotion/HomepageVideo/Comp.tsx
@@ -22,10 +22,7 @@ export const getDataAndProps = async () => {
).then((res) => res.json())) as Location;
const trending = await fetch(
- 'https://bugs.remotion.dev/trending?lat=' +
- location.latitude +
- '&lng=' +
- location.longitude,
+ `https://bugs.remotion.dev/trending?lat=${location.latitude}&lng=${location.longitude}`,
)
.then((res) => res.json())
.then((data) => {