Skip to content

🎥 Make videos programmatically with React

Docs: New explanation for what Remotion is

Jonny Burgere491cf0b4a3d
diff --git a/packages/docs/static/img/editing-safari.mp4 b/packages/docs/static/img/editing-safari.mp4
new file mode 100644
index 0000000000..1a34c31d4f
Binary files /dev/null and b/packages/docs/static/img/editing-safari.mp4 differ
diff --git a/packages/docs/static/img/editing-vp9-chrome.webm b/packages/docs/static/img/editing-vp9-chrome.webm
new file mode 100644
index 0000000000..75cc21e036
Binary files /dev/null and b/packages/docs/static/img/editing-vp9-chrome.webm differ
diff --git a/packages/docs/static/img/player-demo.mp4 b/packages/docs/static/img/player-demo.mp4
deleted file mode 100644
index 0c5fa9b6c0..0000000000
Binary files a/packages/docs/static/img/player-demo.mp4 and /dev/null differ
diff --git a/packages/promo-pages/public/img/editing-safari.mp4 b/packages/promo-pages/public/img/editing-safari.mp4
new file mode 100644
index 0000000000..1a34c31d4f
Binary files /dev/null and b/packages/promo-pages/public/img/editing-safari.mp4 differ
diff --git a/packages/promo-pages/public/img/editing-vp9-chrome.webm b/packages/promo-pages/public/img/editing-vp9-chrome.webm
new file mode 100644
index 0000000000..75cc21e036
Binary files /dev/null and b/packages/promo-pages/public/img/editing-vp9-chrome.webm differ
diff --git a/packages/promo-pages/public/img/player-demo.mp4 b/packages/promo-pages/public/img/player-demo.mp4
deleted file mode 100644
index 0c5fa9b6c0..0000000000
Binary files a/packages/promo-pages/public/img/player-demo.mp4 and /dev/null differ
diff --git a/packages/promo-pages/src/components/Homepage.tsx b/packages/promo-pages/src/components/Homepage.tsx
index ead0bf96af..0ba00d6559 100644
--- a/packages/promo-pages/src/components/Homepage.tsx
+++ b/packages/promo-pages/src/components/Homepage.tsx
@@ -4,19 +4,18 @@ import React from 'react';
import {BackgroundAnimation} from './homepage/BackgroundAnimation';
import CommunityStats from './homepage/CommunityStats';
import {Demo} from './homepage/Demo';
-import {LightningFastEditor} from './homepage/Editor';
import EvaluateRemotionSection from './homepage/EvaluateRemotion';
import {IfYouKnowReact} from './homepage/IfYouKnowReact';
import type {ColorMode} from './homepage/layout/use-color-mode';
import {ColorModeProvider} from './homepage/layout/use-color-mode';
import {MoreVideoPowerSection} from './homepage/MoreVideoPowerSection';
import {NewsletterButton} from './homepage/NewsletterButton';
+import {ParameterizeAndEdit} from './homepage/ParameterizeAndEdit';
import {Pricing} from './homepage/Pricing';
import {RealMP4Videos} from './homepage/RealMp4Videos';
import TrustedByBanner from './homepage/TrustedByBanner';
-import {VideoApps} from './homepage/VideoApps';
import VideoAppsShowcase from './homepage/VideoAppsShowcase';
-import {SectionTitle, VideoAppsTitle} from './homepage/VideoAppsTitle';
+import {SectionTitle} from './homepage/VideoAppsTitle';
import {WriteInReact} from './homepage/WriteInReact';
export const NewLanding: React.FC<{
@@ -38,19 +37,11 @@ export const NewLanding: React.FC<{
<WriteInReact />
<br />
<IfYouKnowReact />
+ <ParameterizeAndEdit />
<RealMP4Videos />
<br />
<br />
<br />
- <br />
- <LightningFastEditor />
- <br />
- <br />
- <br />
- <VideoAppsTitle />
- <VideoApps active="remotion" />
- <br />
- <br />
<VideoAppsShowcase />
<br />
<br />
@@ -70,7 +61,10 @@ export const NewLanding: React.FC<{
<br />
<br />
<br />
- <SectionTitle>Even more video power to developers</SectionTitle>
+ <SectionTitle>Even more power to developers</SectionTitle>
+ <div className={'fontbrand text-center mb-10 -mt-4'}>
+ Innovative video products that you might enjoy.
+ </div>
<MoreVideoPowerSection />
<br />
<br />
diff --git a/packages/promo-pages/src/components/homepage/CommunityStats.tsx b/packages/promo-pages/src/components/homepage/CommunityStats.tsx
index 9205886415..86a067f536 100644
--- a/packages/promo-pages/src/components/homepage/CommunityStats.tsx
+++ b/packages/promo-pages/src/components/homepage/CommunityStats.tsx
@@ -25,7 +25,7 @@ const SectionLink: React.FC<{
const CommunityStats: React.FC = () => (
<div className={'m-auto max-w-[700px] text-center'}>
<SectionTitle>Never build alone</SectionTitle>
- <div className={'fontbrand text-center mb-10'}>
+ <div className={'fontbrand text-center mb-10 -mt-4'}>
Join a thriving community of developers.
</div>
<div className={'flex flex-wrap justify-between gap-4 w-full items-center'}>
diff --git a/packages/promo-pages/src/components/homepage/Editor.tsx b/packages/promo-pages/src/components/homepage/Editor.tsx
deleted file mode 100644
index ad561b215c..0000000000
--- a/packages/promo-pages/src/components/homepage/Editor.tsx
+++ /dev/null
@@ -1,67 +0,0 @@
-import React, {useCallback, useEffect, useRef, useState} from 'react';
-
-export const LightningFastEditor: React.FC = () => {
- const ref = useRef<HTMLDivElement>(null);
- const videoRef = useRef<HTMLVideoElement>(null);
- const [isIntersecting, setIsIntersecting] = useState(false);
-
- const callback: IntersectionObserverCallback = useCallback((data) => {
- const {isIntersecting: intersecting} = data[0];
- setIsIntersecting(intersecting);
- if (intersecting) {
- videoRef.current?.play();
- } else {
- videoRef.current?.pause();
- }
- }, []);
-
- useEffect(() => {
- const {current} = ref;
- if (!current) {
- return;
- }
-
- const observer = new IntersectionObserver(callback, {
- root: null,
- threshold: 0.2,
- });
- observer.observe(current);
-
- return () => observer.unobserve(current);
- }, [callback]);
- return (
- <div
- ref={ref}
- className={
- 'flex flex-col-reverse lg:flex-row justify-start lg:justify-end lg:text-right items-start lg:items-center'
- }
- >
- <div>
- <video
- src="/img/player-demo.mp4"
- autoPlay
- muted
- playsInline
- loop
- style={{
- animationPlayState: isIntersecting ? 'running' : 'paused',
- width: 500,
- maxWidth: '100%',
- borderRadius: 7,
- overflow: 'hidden',
- }}
- />
- </div>
- <div style={{flex: 1}}>
- <h2 className={'fontbrand text-4xl'}>
- Fast and <br /> <span className="text-brand">delightful</span> editing
- </h2>
- <p className="leading-relaxed">
- Preview your video in the browser. <br />
- Fast refresh while the video is playing. <br />
- Scrub through the timeline to get every frame perfect.
- </p>
- </div>
- </div>
- );
-};
diff --git a/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx b/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx
index 0b1574ffb8..358ca7e089 100644
--- a/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx
+++ b/packages/promo-pages/src/components/homepage/IfYouKnowReact.tsx
@@ -1,5 +1,4 @@
import React, {useEffect, useState} from 'react';
-import {BlueButton} from './layout/Button';
export const isWebkit = () => {
if (typeof window === 'undefined') {
@@ -14,6 +13,11 @@ export const isWebkit = () => {
return isSafariUserAgent || isChrome;
};
+const icon: React.CSSProperties = {
+ height: 16,
+ marginLeft: 10,
+};
+
export const IfYouKnowReact: React.FC = () => {
const [vid, setVid] = useState('/img/compose.webm');
@@ -24,31 +28,39 @@ export const IfYouKnowReact: React.FC = () => {
}, []);
return (
- <div className="flex flex-col lg:flex-row text-left lg:text-right justify-start lg:justify-end items-start lg:mb-0">
+ <div className="flex flex-col lg:flex-row text-left justify-start lg:justify-end items-start lg:mb-0 gap-6 mt-8">
<video
src={vid}
muted
autoPlay
playsInline
loop
- className="w-[600px] h-[600px] cursor-default! relative lg:-translate-x-8 -mb-50 -mt-10 lg:mt-0 lg:mb-0"
+ className="w-[500px] cursor-default! relative lg:-translate-x-8 -mb-40 lg:mt-0 lg:mb-0"
/>
- <div className="h-10 lg:flex-1" />
- <div className="lg:text-right">
+ <div>
<h2 className="text-4xl fontbrand pt-20">
- <span className="text-brand">Compose</span> your
- <br />
- video with code.
+ <span className="text-brand">Compose</span> with code
</h2>
- <p className="leading-relaxed">
+ <p className="leading-relaxed font-brand">
Use React, a powerful frontend technology, to create sophisticated
videos with code.
</p>
- <div className="h-7" />
- <a className="no-underline inline-block" href="/docs/the-fundamentals">
- <BlueButton size="sm" loading={false}>
- Learn Remotion
- </BlueButton>
+ <div className="h-4" />
+ <a
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
+ href="/docs/the-fundamentals"
+ >
+ Learn Remotion{' '}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
</a>
</div>
</div>
diff --git a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx b/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
index d655c63cbe..29c53f7ce0 100644
--- a/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
+++ b/packages/promo-pages/src/components/homepage/NewsletterButton.tsx
@@ -1,6 +1,7 @@
import React, {useCallback, useState} from 'react';
import {BlueButton} from './layout/Button';
import {Spacer} from './Spacer';
+import {SectionTitle} from './VideoAppsTitle';
export const NewsletterButton: React.FC<{}> = () => {
const [email, setEmail] = useState('');
@@ -45,17 +46,17 @@ export const NewsletterButton: React.FC<{}> = () => {
<div className="flex flex-col">
<div className={'w-full'}>
<div className={'flex flex-col flex-1'}>
- <div className={'text-2xl font-bold fontbrand'}>Newsletter</div>
+ <SectionTitle>Newsletter</SectionTitle>
<form
onSubmit={handleSubmit}
style={{
width: '100%',
}}
>
- <p className="leading-snug mt-1 text-muted fontbrand">
+ <div className={'fontbrand text-center mb-10 -mt-4'}>
Read about new features and noteworthy updates we have made on
- Remotion once in a while.
- </p>
+ Remotion once in a while.{' '}
+ </div>
<input
className="w-full dark:bg-[#121212] rounded-lg border-effect border-black outline-none px-3 py-3 fontbrand text-lg box-border focus:border-brand"
diff --git a/packages/promo-pages/src/components/homepage/ParameterizeAndEdit.tsx b/packages/promo-pages/src/components/homepage/ParameterizeAndEdit.tsx
new file mode 100644
index 0000000000..40e83fd30a
--- /dev/null
+++ b/packages/promo-pages/src/components/homepage/ParameterizeAndEdit.tsx
@@ -0,0 +1,89 @@
+import React, {useEffect, useRef, useState} from 'react';
+import {isWebkit} from './IfYouKnowReact';
+
+const icon: React.CSSProperties = {
+ height: 16,
+ marginLeft: 10,
+};
+
+export const ParameterizeAndEdit: React.FC = () => {
+ const ref = useRef<HTMLDivElement>(null);
+ const [vid, setVid] = useState('/img/editing-vp9-chrome.webm');
+
+ useEffect(() => {
+ if (isWebkit()) {
+ setVid('/img/editing-safari.mp4');
+ }
+ }, []);
+
+ return (
+ <div
+ ref={ref}
+ className={
+ 'flex flex-col lg:flex-row justify-start lg:justify-end items-start gap-6 mt-20 lg:mt-0'
+ }
+ >
+ <div>
+ <video
+ src={vid}
+ autoPlay
+ muted
+ playsInline
+ loop
+ style={{
+ width: 500,
+ maxWidth: '100%',
+ borderRadius: 7,
+ overflow: 'hidden',
+ }}
+ />
+ </div>
+ <div style={{flex: 1}} className="font-brand pt-4">
+ <h2 className={'fontbrand text-4xl'}>
+ Edit <span className="text-brand">dynamically</span>
+ </h2>
+ <p className="leading-relaxed">
+ Parameterize your video by passing data.
+ <br />
+ Or embed it into your app and build an interface around it.
+ </p>
+ <div className="h-4" />
+ <div className="leading-6">
+ <a
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
+ href="/docs/studio"
+ >
+ Remotion Studio{' '}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
+ </a>
+ <br />
+ <a
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
+ href="/player"
+ >
+ Remotion Player{' '}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
+ </a>
+ </div>
+ </div>
+ </div>
+ );
+};
diff --git a/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx b/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
index ea11fc20c9..14a23d6222 100644
--- a/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
+++ b/packages/promo-pages/src/components/homepage/RealMp4Videos.tsx
@@ -1,6 +1,11 @@
import React, {useEffect, useRef, useState} from 'react';
import {isWebkit} from './IfYouKnowReact';
+const icon: React.CSSProperties = {
+ height: 16,
+ marginLeft: 10,
+};
+
export const RealMP4Videos: React.FC = () => {
const ref = useRef<HTMLDivElement>(null);
const videoRef = useRef<HTMLVideoElement>(null);
@@ -35,11 +40,8 @@ export const RealMP4Videos: React.FC = () => {
}, []);
return (
- <div
- ref={ref}
- className={'flex flex-col lg:flex-row-reverse items-center mt-20 lg:mt-0'}
- >
- <div className="flex flex-1 justify-start lg:justify-end items-end">
+ <div ref={ref} className={'flex flex-col lg:flex-row mt-40 lg:mt-30 gap-6'}>
+ <div className="flex w-[500px] justify-start lg:justify-start items-end">
<video
ref={videoRef}
src={vid}
@@ -47,19 +49,59 @@ export const RealMP4Videos: React.FC = () => {
autoPlay
playsInline
loop
- style={{}}
- className="w-[550px] h-[550px] cursor-default! relative lg:translate-x-8 -mt-20 -mb-20 lg:mt-0 lg:mb-0"
+ style={{
+ width: 400,
+ maxWidth: '100%',
+ borderRadius: 7,
+ overflow: 'hidden',
+ }}
+ className="w-[550px] cursor-default! relative lg:translate-x-8 -mt-20 lg:mt-0"
/>
</div>{' '}
- <div>
+ <div className="font-brand">
<h2 className="text-4xl fontbrand">
- Real <span className={'text-brand'}>.mp4</span> videos
+ <span className={'text-brand'}>Scalable</span> rendering
</h2>
<p className="leading-relaxed">
- Remotion renders all frames to images and <br /> encodes them to a
- real video - audio support included. <br /> WebM and other formats are
- also supported.
- </p>
+ Render the video .mp4 or other formats. <br />
+ Locally, on the server or serverless.
+ </p>{' '}
+ <div className="h-4" />
+ <div className="leading-6">
+ <a
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
+ href="/docs/render"
+ >
+ Render options{' '}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
+ </a>
+ <br />
+ <a
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
+ href="/lambda"
+ >
+ Remotion Lambda{' '}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
+ </a>
+ </div>
</div>
</div>
);
diff --git a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx
index 057b565afb..ac99ff0839 100644
--- a/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx
+++ b/packages/promo-pages/src/components/homepage/VideoAppsShowcase.tsx
@@ -1,6 +1,5 @@
import React, {useEffect, useRef, useState} from 'react';
-import {BlueButton} from './layout/Button';
import {MuxVideo} from './MuxVideo';
import {SectionTitle} from './VideoAppsTitle';
@@ -57,6 +56,11 @@ const videoApps = [
},
];
+const icon: React.CSSProperties = {
+ height: 16,
+ marginLeft: 10,
+};
+
const VideoAppsShowcase: React.FC = () => {
const [activeTab, setActiveTab] = useState(0);
const [isMuted, setIsMuted] = useState(true);
@@ -174,7 +178,7 @@ const VideoAppsShowcase: React.FC = () => {
<SectionTitle>Use Cases</SectionTitle>
<div
className={
- 'grid justify-center grid-flow-col grid-rows-1 gap-2.5 justify-self-center mb-4 w-[90vw] md:w-auto'
+ 'grid justify-center grid-flow-col grid-rows-1 gap-2.5 justify-self-center mb-4 w-[90vw] md:w-auto -mt-4'
}
>
{tabs.map((tab, index) => (
@@ -201,7 +205,7 @@ const VideoAppsShowcase: React.FC = () => {
ref={videoRef}
muxId={videoApps[activeTab].muxId}
className={
- 'absolute left-0 top-0 w-full h-full object-contain rounded-lg rounded-tr-none rounded-br-none'
+ 'absolute left-0 top-0 w-full h-full object-contain rounded-sm rounded-tr-none rounded-br-none'
}
loop
playsInline
@@ -228,8 +232,8 @@ const VideoAppsShowcase: React.FC = () => {
</button>
)}
</div>
- <div className={'pl-4 flex-1 lg:pl-4 flex flex-col h-full pt-8 pb-6'}>
- <div className="text-4xl font-bold fontbrand">
+ <div className={'p-6 flex-1 flex flex-col h-full'}>
+ <div className="text-4xl font-bold fontbrand mt-0">
{videoApps[activeTab].title}
</div>
<div className="text-muted mt-4 text-base fontbrand">
@@ -242,13 +246,20 @@ const VideoAppsShowcase: React.FC = () => {
) : null}
<div className="h-5" />
<a
- target="_blank"
+ className="no-underline text-brand font-brand font-bold inline-flex flex-row items-center"
href={videoApps[activeTab].link}
- style={{textDecoration: 'none'}}
>
- <BlueButton loading={false} size="sm">
- {videoApps[activeTab].buttonText}
- </BlueButton>
+ {videoApps[activeTab].buttonText}
+ <svg
+ style={icon}
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 448 512"
+ >
+ <path
+ fill="currentColor"
+ d="M438.6 278.6l-160 160C272.4 444.9 264.2 448 256 448s-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L338.8 288H32C14.33 288 .0016 273.7 .0016 256S14.33 224 32 224h306.8l-105.4-105.4c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160C451.1 245.9 451.1 266.1 438.6 278.6z"
+ />
+ </svg>
</a>
</div>
</div>
diff --git a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
index c5bd294fa6..83abcfeba8 100644
--- a/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
+++ b/packages/promo-pages/src/components/homepage/VideoAppsTitle.tsx
@@ -1,18 +1,5 @@
import React from 'react';
-export const VideoAppsTitle: React.FC = () => {
- return (
- <div className={'text-center'}>
- <h2 className={'fontbrand text-4xl'}>
- Build video <span className={'fontbrand'}>apps</span>
- </h2>
- <p>
- Use our suite of tools to build apps that lets others create videos.
- </p>
- </div>
- );
-};
-
export const SectionTitle: React.FC<{readonly children: React.ReactNode}> = ({
children,
}) => {