Skip to content

🎥 Make videos programmatically with React

cool

JonnyBurger8c8918194a91
diff --git a/packages/brand/src/Root.tsx b/packages/brand/src/Root.tsx
index 4a25af2565..cf25e09bb2 100644
--- a/packages/brand/src/Root.tsx
+++ b/packages/brand/src/Root.tsx
@@ -1,4 +1,3 @@
-import './index.css';
import {Composition, Folder, staticFile} from 'remotion';
import {AnimatedBanner} from './animated-logo/AnimatedBanner';
import {AnimatedLogo} from './animated-logo/AnimatedLogo';
@@ -18,6 +17,8 @@ import {
whatIsRemotionCalculateMetadata,
whatIsRemotionSchema,
} from './Compose/WhatIsRemotion';
+import {EffectsAnnouncement} from './effects/EffectsAnnouncement';
+import {NewsHeadline} from './effects/NewsHeadline';
import {
StarburstEffectShowcase,
starburstEffectShowcaseDurationInFrames,
@@ -27,6 +28,7 @@ import {
zigzagLinearBlurShowcaseDurationInFrames,
} from './effects/ZigzagLinearBlurShowcase';
import {EmailSignature} from './EmailSignature';
+import './index.css';
import {Logo} from './Logo';
import {LogoCollab, logoCollabSchema} from './LogoCollab/LogoCollab';
import NewSticker from './NewSticker';
@@ -136,7 +138,7 @@ export const RemotionRoot: React.FC = () => {
fps={30}
durationInFrames={120}
defaultProps={{
- videoFile: 'https://remotion.media/video.webm',
+ videoFile: staticFile('remotion-studio-canvas-recording.webm'),
cursorScale: 5,
width: null,
height: null,
@@ -170,6 +172,22 @@ export const RemotionRoot: React.FC = () => {
width={1080}
height={1350}
/>
+ <Composition
+ id="effects-announcement"
+ component={EffectsAnnouncement}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
+ <Composition
+ id="news-headline"
+ component={NewsHeadline}
+ width={1280}
+ height={720}
+ fps={30}
+ durationInFrames={200}
+ />
</Folder>
<Folder name="animated-logo">
<Composition
@@ -248,7 +266,6 @@ export const RemotionRoot: React.FC = () => {
width={1920}
height={1080}
/>
-
<Composition
id="lower-third-reference"
component={LowerReference}
diff --git a/packages/brand/src/effects/EffectsAnnouncement.tsx b/packages/brand/src/effects/EffectsAnnouncement.tsx
new file mode 100644
index 0000000000..0715e854de
--- /dev/null
+++ b/packages/brand/src/effects/EffectsAnnouncement.tsx
@@ -0,0 +1,68 @@
+import {brightness} from '@remotion/effects/brightness';
+import {burlap} from '@remotion/effects/burlap';
+import {colorKey} from '@remotion/effects/color-key';
+import {dropShadow} from '@remotion/effects/drop-shadow';
+import {duotone} from '@remotion/effects/duotone';
+import {noise} from '@remotion/effects/noise';
+import {tint} from '@remotion/effects/tint';
+import {Video} from '@remotion/media';
+import React from 'react';
+import {Solid, interpolate, staticFile, useCurrentFrame} from 'remotion';
+
+export const EffectsAnnouncement: React.FC = () => {
+ const frame = useCurrentFrame();
+ return (
+ <>
+ <Solid
+ width={1280}
+ height={720}
+ style={{
+ position: 'absolute',
+ }}
+ color={'#c6b67f'}
+ effects={[
+ burlap({
+ amount: 0.77,
+ size: 9,
+ seed: interpolate(frame, [2, 199], [12, -19], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ posterize: 10,
+ }),
+ }),
+ ]}
+ />
+ <Video
+ src={staticFile(
+ '43776940_caucasian-woman-greenscreen-cut-out-labcoat-scientist_by_bruno135_preview.mp4',
+ )}
+ style={{
+ position: 'absolute',
+ translate: '162.2px 70px',
+ scale: 1.419,
+ width: 960,
+ height: 540,
+ }}
+ effects={[
+ colorKey({
+ similarity: 0.45,
+ }),
+ duotone({}),
+ tint({
+ color: '#ffe374',
+ amount: 0.45,
+ }),
+ brightness({
+ amount: -0.38,
+ }),
+ dropShadow({
+ opacity: 1,
+ offsetX: -14,
+ }),
+ noise({}),
+ burlap({}),
+ ]}
+ />
+ </>
+ );
+};
diff --git a/packages/brand/src/effects/NewsHeadline.tsx b/packages/brand/src/effects/NewsHeadline.tsx
new file mode 100644
index 0000000000..4610409130
--- /dev/null
+++ b/packages/brand/src/effects/NewsHeadline.tsx
@@ -0,0 +1,87 @@
+import {vignette} from '@remotion/effects/vignette';
+import {
+ HtmlInCanvas,
+ Img,
+ Solid,
+ staticFile,
+ interpolate,
+ useCurrentFrame,
+ Easing,
+} from 'remotion';
+import {linearProgressiveBlur} from '@remotion/effects/linear-progressive-blur';
+import {noise} from '@remotion/effects/noise';
+
+export const NewsHeadline = () => {
+ const frame = useCurrentFrame();
+ return (
+ <HtmlInCanvas
+ width={1280}
+ height={720}
+ effects={[
+ noise({
+ amount: 0.39,
+ premultiply: true,
+ }),
+ linearProgressiveBlur({
+ end: interpolate(
+ frame,
+ [55, 119],
+ [
+ [0.782, 0.058],
+ [0.816, -0.06],
+ ],
+ {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ },
+ ),
+ start: [0.5, 0.5],
+ }),
+ linearProgressiveBlur({
+ end: [-0.098, 1.202],
+ start: [0.456, 0.52],
+ }),
+ vignette({
+ radius: 0.84,
+ amount: 0.46,
+ color: '#030013',
+ }),
+ ]}
+ style={{
+ scale: 1,
+ transformOrigin: interpolate(
+ frame,
+ [81, 104],
+ ['18.64% 50%', '50% 50%'],
+ {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ },
+ ),
+ }}
+ >
+ <Solid
+ width={1280}
+ height={720}
+ style={{
+ position: 'absolute',
+ }}
+ color={'#ffffff'}
+ />
+ <Img
+ src={staticFile('Screenshot 2026-06-17 at 14.40.23.png')}
+ style={{
+ position: 'absolute',
+ translate: '362.7px 264.2px',
+ scale: interpolate(frame, [22, 179], [1.54, 1.711], {
+ extrapolateLeft: 'clamp',
+ extrapolateRight: 'clamp',
+ easing: [Easing.bezier(0, 0, 0.58, 1)],
+ }),
+ }}
+ width={966}
+ height={380}
+ />
+ </HtmlInCanvas>
+ );
+};
diff --git a/packages/studio/src/components/Editor.tsx b/packages/studio/src/components/Editor.tsx
index d546c1624b..6f5d03155f 100644
--- a/packages/studio/src/components/Editor.tsx
+++ b/packages/studio/src/components/Editor.tsx
@@ -129,7 +129,7 @@ export const Editor: React.FC<{
);
return CANVAS_CAPTURE_ENABLED ? (
- <StudioCanvasCapture density={2}>{editor}</StudioCanvasCapture>
+ <StudioCanvasCapture density={3}>{editor}</StudioCanvasCapture>
) : (
editor
);