🎥 Make videos programmatically with React
Docs: Detect if a video was made with Remotion
JonnyBurger3a199bf86f99
diff --git a/AGENTS.md b/AGENTS.mdindex 7d27769e65..b94bc8e24b 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -25,6 +25,6 @@ Pull request titles should be in the format `\`[package-name]\``: [commit-messagRead the full [contribution guide](/packages/docs/docs/contributing/index.mdx).-- [General information](/packages/docs/docs//contributing/index.mdx)+- [General information](/packages/docs/docs/contributing/index.mdx)- [Implementing a new feature](/packages/docs/docs/contributing/feature.mdx)- [Implementing a new option](/packages/docs/docs/contributing/option.mdx)diff --git a/packages/convert/app/components/MetadataTable.tsx b/packages/convert/app/components/MetadataTable.tsxindex 25f618a8c3..ac773d942a 100644--- a/packages/convert/app/components/MetadataTable.tsx+++ b/packages/convert/app/components/MetadataTable.tsx@@ -1,6 +1,7 @@import type {MetadataTags} from 'mediabunny';import React from 'react';import {+ parseIsMadeWithRemotion,renderMetadataLabel,renderMetadataValue,} from '~/lib/render-metadata-label';@@ -27,19 +28,41 @@ export const MetadataDisplay: React.FC<{return null;}+ const version = parseIsMadeWithRemotion(key, value);+return (<TableRow key={key}><TableCell className="font-brand"><LimitedWidthLabel alt={key}>- {renderMetadataLabel(key)}+ {renderMetadataLabel(key, value)}</LimitedWidthLabel></TableCell><TableCell className="text-right"><LimitedWidthLabel alt={key}>- {renderMetadataValue({- key,- value,- })}+ {version ? (+ <a+ className="inline-flex flex-row items-center text-brand"+ href={`https://github.com/remotion-dev/remotion/releases/v${version}`}+ target="_blank"+ >+ <svg+ className="h-3 mr-1"+ viewBox="0 0 208 214"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M46.7998 0.0183829C42.3026 0.260829 38.6786 0.969513 35.0265 2.34959C33.2051 3.0303 30.2195 4.51298 28.5765 5.53871C21.7041 9.81881 16.4652 16.253 13.7332 23.7408C13.1886 25.2235 11.7146 29.9511 10.7664 33.2055C4.44784 54.9604 0.861403 78.7481 0.0915388 103.925C-0.0305129 107.935 -0.0305129 117.483 0.0915388 121.428C0.607911 138.119 2.21336 153.188 5.12382 168.556C6.30679 174.775 8.20328 183.13 9.30175 186.926C11.5456 194.637 16.1273 201.202 22.6429 206.014C27.0086 209.24 31.9658 211.403 37.4581 212.466C40.1057 212.979 43.5983 213.212 46.1707 213.045C49.729 212.811 56.7892 211.87 62.5257 210.853C88.3819 206.275 112.266 198.078 133.926 186.347C147.643 178.916 159.369 170.868 170.682 161.105C181.958 151.389 191.572 140.935 200.031 129.205C201.993 126.491 202.979 124.906 203.965 122.911C206.5 117.763 207.692 112.644 207.683 106.918C207.683 101.585 206.669 96.8476 204.481 91.9987C203.43 89.6582 202.425 87.9797 200.172 84.7906C191.872 73.0506 182.662 62.8212 171.433 52.881C154.027 37.4763 133.353 24.8411 110.267 15.4883C105.263 13.4648 100.334 11.6838 94.3999 9.75353C81.838 5.67857 66.2905 2.14445 53.1371 0.382054C51.0716 0.102309 48.2644 -0.0562159 46.7998 0.0183829Z"+ className="fill-brand"+ />+ </svg>+ {version}+ </a>+ ) : (+ renderMetadataValue({+ key,+ value,+ })+ )}</LimitedWidthLabel></TableCell></TableRow>diff --git a/packages/convert/app/lib/render-metadata-label.ts b/packages/convert/app/lib/render-metadata-label.tsindex eee8f85ad5..85f830de11 100644--- a/packages/convert/app/lib/render-metadata-label.ts+++ b/packages/convert/app/lib/render-metadata-label.ts@@ -1,4 +1,23 @@-export const renderMetadataLabel = (key: string) => {+export const parseIsMadeWithRemotion = (key: string, value: unknown) => {+ if (key !== 'comment') {+ return null;+ }++ const isMadeWithRemotion = String(value).includes('Made with Remotion');+ if (!isMadeWithRemotion) {+ return null;+ }++ const version = String(value).split(' ')[3];+ return version;+};++export const renderMetadataLabel = (key: string, value: unknown) => {+ const version = parseIsMadeWithRemotion(key, value);+ if (version) {+ return 'Made with Remotion';+ }+if (key === 'com.apple.quicktime.location.accuracy.horizontal') {return 'Location Accuracy (Horizontal)';}@@ -216,6 +235,11 @@ export const renderMetadataValue = ({key: string;value: string | number;}) => {+ const version = parseIsMadeWithRemotion(key, value);+ if (version) {+ return 'v' + version;+ }+if (key === 'com.apple.quicktime.location.ISO6709') {return String(value);}diff --git a/packages/docs/docs/detect-remotion.mdx b/packages/docs/docs/detect-remotion.mdxnew file mode 100644index 0000000000..7cf2b997ea--- /dev/null+++ b/packages/docs/docs/detect-remotion.mdx@@ -0,0 +1,30 @@+---+image: /generated/articles-docs-detect-remotion.png+title: Detect if a video was made with Remotion+sidebar_label: Detect Remotion+id: detect-remotion-video+crumb: 'Techniques'+---++To check whether somebody used Remotion to generate a video:++## Check video metadata++Drag the video into [remotion.dev/convert](https://www.remotion.dev/convert) and inspect the metadata in the left panel.+If the video was generated with Remotion, it will include metadata such as `Made with Remotion v4.0.372`.++Alternatively, you can use `ffprobe` in the command line:++```bash+ffprobe your_video.mp4+```++The output will include a line like `comment=Made with Remotion v4.0.372`.++## Look for the Remotion Player icon++On a website that uses the Remotion Player, the Play button is rounded like the Remotion logo, unless the controls are disabled or the play button was customized.++## Check for Remotion in the DevTools++Open the DevTools and check if the variable `window.remotion_imported` is defined.diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex b2d8b5fd5b..8f1084b65a 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -1317,6 +1317,7 @@ const sidebars: SidebarsConfig = {'cors-issues','media-fragments','react-native',+ 'detect-remotion',],},{diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex 33978124c3..7c92806e7f 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -1232,6 +1232,15 @@ export const articles = [noAi: false,slug: 'deno',},+ {+ id: 'detect-remotion-video',+ title: 'Detect if a video was made with Remotion',+ relativePath: 'docs/detect-remotion.mdx',+ compId: 'articles-docs-detect-remotion',+ crumb: 'Techniques',+ noAi: false,+ slug: 'detect-remotion-video',+ },{id: 'distributed-rendering',title: 'Distributed rendering',diff --git a/packages/docs/static/generated/articles-docs-detect-remotion.png b/packages/docs/static/generated/articles-docs-detect-remotion.pngnew file mode 100644index 0000000000..184426ba9eBinary files /dev/null and b/packages/docs/static/generated/articles-docs-detect-remotion.png differ