🎥 Make videos programmatically with React
Use composition ID terminology in user-facing text
Jonny Burger04b0fa3e02d4
diff --git a/packages/brand/src/video-elements/Studio.tsx b/packages/brand/src/video-elements/Studio.tsxindex b19faa7f54..4db15aab55 100644--- a/packages/brand/src/video-elements/Studio.tsx+++ b/packages/brand/src/video-elements/Studio.tsx@@ -580,7 +580,7 @@ const RightSidebar: React.FC<{</div><div style={{padding: '4px 0'}}><Interactive.Div- name="Composition name"+ name="Composition ID"style={{alignItems: 'center',color: WHITE,diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 60a86133b7..29a39872fe 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -83,7 +83,7 @@ export const render = async ();Log.error({indent: false, logLevel},- ' npx remotion render [entry-point] [composition-name] [out-name]',+ ' npx remotion render [entry-point] [composition-id] [out-name]',);Log.error({indent: false, logLevel},diff --git a/packages/cli/src/still.ts b/packages/cli/src/still.tsindex 48dfe5986f..5a19039519 100644--- a/packages/cli/src/still.ts+++ b/packages/cli/src/still.ts@@ -61,7 +61,7 @@ export const still = async ();Log.error({indent: false, logLevel},- ' npx remotion render [entry-point] [composition-name] [out-name]',+ ' npx remotion render [entry-point] [composition-id] [out-name]',);Log.error({indent: false, logLevel},diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex 93c5f9d994..ad078a3f57 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -198,7 +198,7 @@ export const renderCommand = async (if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {throw Error(- 'Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.',+ 'Passing the shorthand serve URL without a composition ID is currently not supported.\n Make sure to pass a composition ID after the shorthand serve URL or pass the complete serveURL without a composition ID to choose between all compositions.',);}diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex 8d612693e3..fec62f03c9 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -128,7 +128,7 @@ export const stillCommand = async (if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {throw Error(- 'Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.',+ 'Passing the shorthand serve URL without a composition ID is currently not supported.\n Make sure to pass a composition ID after the shorthand serve URL or pass the complete serveURL without a composition ID to choose between all compositions.',);}diff --git a/packages/docs/blog/2022-11-17-remotion-3-3.mdx b/packages/docs/blog/2022-11-17-remotion-3-3.mdxindex 9d9d88a092..b237d1aa58 100644--- a/packages/docs/blog/2022-11-17-remotion-3-3.mdx+++ b/packages/docs/blog/2022-11-17-remotion-3-3.mdx@@ -135,7 +135,7 @@ We now allow you to skip the output name, in this case the render would land innpx remotion render src/index.tsx my-comp```-You can also omit the composition name and Remotion will ask which composition to render:+You can also omit the composition ID and Remotion will ask which composition to render:```bashnpx remotion render src/index.tsxdiff --git a/packages/docs/docs/ai/webmcp.mdx b/packages/docs/docs/ai/webmcp.mdxindex a85f1605c0..b165abb8f7 100644--- a/packages/docs/docs/ai/webmcp.mdx+++ b/packages/docs/docs/ai/webmcp.mdx@@ -258,7 +258,7 @@ type CompositionTreeItem =### `select_composition`-Opens a registered composition by name.+Opens a registered composition by ID.```ts title="Input"{diff --git a/packages/docs/docs/brownfield-installation.mdx b/packages/docs/docs/brownfield-installation.mdxindex 3be5e1c9e0..631b14560d 100644--- a/packages/docs/docs/brownfield-installation.mdx+++ b/packages/docs/docs/brownfield-installation.mdx@@ -107,7 +107,7 @@ Render our a video usingnpx remotion render remotion/index.ts MyComp out.mp4```-Replace the entrypoint, composition name and output filename with the values that correspond to your usecase.+Replace the entrypoint, composition ID and output filename with the values that correspond to your usecase.## Set up ESLintdiff --git a/packages/docs/docs/lambda/changelog.mdx b/packages/docs/docs/lambda/changelog.mdxindex facae8df8e..9ad4e024d9 100644--- a/packages/docs/docs/lambda/changelog.mdx+++ b/packages/docs/docs/lambda/changelog.mdx@@ -489,7 +489,7 @@ Version hash: `2.5.0-alpha.b52a746f`- Replace `estimatedLambdaInvokations` with `estimatedRenderLambdaInvokations`.- Rename `bucketSize` to `renderSize`. This property is reporting the size of the render, not the size of the bucket.- Added `downloadVideo()` API (not documented yet)-- If you add a filename to the end of the render command `npx remotion lambda render [url] [comp-name] out.mp4`, the video will be downloaded to your computer!+- If you add a filename to the end of the render command `npx remotion lambda render [url] [composition-id] out.mp4`, the video will be downloaded to your computer!- `npx remotion lambda render` has a progress bar now. To continue to see all details, use the `--log=verbose` flag!### September 15th, 2021diff --git a/packages/docs/docs/recorder/record/index.mdx b/packages/docs/docs/recorder/record/index.mdxindex 63b1cf5d85..591a410eef 100644--- a/packages/docs/docs/recorder/record/index.mdx+++ b/packages/docs/docs/recorder/record/index.mdx@@ -22,11 +22,11 @@ Give the page access to the webcam and microphone.## Select the composition-Recordings need to be stored in a subfolder of `public` with the name of the composition ID.+Recordings need to be stored in a subfolder of `public` named after the composition ID.For example, if you want to record for the composition `my-video`, recordings will be stored under `public/my-video`.In the top right corner, use the dropdown to "Create a new folder".-Give it the same name as the ID of the composition you want to record for.+Use the ID of the composition you want to record for as the folder name.The folder will be created and your subsequent recordings will be saved in this folder.## Select sourcesdiff --git a/packages/docs/docs/render.mdx b/packages/docs/docs/render.mdxindex ba1c2422fc..69595a8a20 100644--- a/packages/docs/docs/render.mdx+++ b/packages/docs/docs/render.mdx@@ -26,7 +26,7 @@ npx remotion render HelloWorldModify the composition ID to select a different video to render, or add an output path at the end if you want to override the default.-You can leave out the composition name and a picker will be shown:+You can leave out the composition ID and a picker will be shown:```bashnpx remotion renderdiff --git a/packages/docs/docs/staticfile.mdx b/packages/docs/docs/staticfile.mdxindex 371d4ee843..d6832ffab2 100644--- a/packages/docs/docs/staticfile.mdx+++ b/packages/docs/docs/staticfile.mdx@@ -60,7 +60,7 @@ You can now load the asset via:If you are a Create React App or Next.JS user, you might be used to just to be able to reference the asset from a string: `<img src="/my-image.png"/>`. Remotion chooses to be different in that you need to use the `staticFile()` API because:- It prevents breaking when deploying your site into a subdirectory of a domain: `https://example.com/my-folder/my-logo.png`-- It avoids conflicts with composition names which might share the same name (for example `http://localhost:3000/conflicting-name` while running the studio)+- It avoids conflicts with composition IDs (for example `http://localhost:3000/conflicting-name` while running the studio)- It allows us to make paths framework-agnostic, so your code can work across Remotion, Create React App, Next.JS and potentially other frameworks.## Getting all files in the public folderdiff --git a/packages/lambda/src/cli/commands/render/render.ts b/packages/lambda/src/cli/commands/render/render.tsindex 969f200f11..fee5817a6f 100644--- a/packages/lambda/src/cli/commands/render/render.ts+++ b/packages/lambda/src/cli/commands/render/render.ts@@ -274,7 +274,7 @@ export const renderCommand = async ({if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {throw Error(- 'Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.',+ 'Passing the shorthand serve URL without a composition ID is currently not supported.\n Make sure to pass a composition ID after the shorthand serve URL or pass the complete serveURL without a composition ID to choose between all compositions.',);}diff --git a/packages/lambda/src/cli/commands/still.ts b/packages/lambda/src/cli/commands/still.tsindex 2306b5cf9c..ef89e35835 100644--- a/packages/lambda/src/cli/commands/still.ts+++ b/packages/lambda/src/cli/commands/still.ts@@ -164,7 +164,7 @@ export const stillCommand = async ({if (!serveUrl.startsWith('https://') && !serveUrl.startsWith('http://')) {throw Error(- 'Passing the shorthand serve URL without composition name is currently not supported.\n Make sure to pass a composition name after the shorthand serve URL or pass the complete serveURL without composition name to get to choose between all compositions.',+ 'Passing the shorthand serve URL without a composition ID is currently not supported.\n Make sure to pass a composition ID after the shorthand serve URL or pass the complete serveURL without a composition ID to choose between all compositions.',);}diff --git a/packages/studio/src/components/WebMcp.tsx b/packages/studio/src/components/WebMcp.tsxindex 5e5a7fa46c..e5a89e4ebb 100644--- a/packages/studio/src/components/WebMcp.tsx+++ b/packages/studio/src/components/WebMcp.tsx@@ -857,13 +857,13 @@ export const WebMcp: FC = () => {name: 'select_composition',title: 'Select Studio composition',description:- 'Open a registered composition in Remotion Studio by name.',+ 'Open a registered composition in Remotion Studio by ID.',inputSchema: {type: 'object',properties: {compositionName: {type: 'string',- description: 'The name of the composition to open.',+ description: 'The ID of the composition to open.',},},required: ['compositionName'],@@ -983,7 +983,7 @@ export const WebMcp: FC = () => {name: 'get_composition',title: 'Get Studio composition',description:- 'Read the name, source stack, duration, dimensions, frame rate, and current frame of the composition open in Remotion Studio. All fields are null when the canvas is not showing a composition.',+ 'Read the ID, source stack, duration, dimensions, frame rate, and current frame of the composition open in Remotion Studio. All fields are null when the canvas is not showing a composition.',inputSchema: {type: 'object',properties: {},diff --git a/packages/studio/src/components/composition-menu-items.ts b/packages/studio/src/components/composition-menu-items.tsindex d1bf7a3276..13a6e225e5 100644--- a/packages/studio/src/components/composition-menu-items.ts+++ b/packages/studio/src/components/composition-menu-items.ts@@ -468,7 +468,7 @@ export const getCompositionMenuItems = ({navigator.clipboard.writeText(composition.id).then(() => {- showNotification('Copied composition name', 1000);+ showNotification('Copied composition ID', 1000);}).catch((err) => {showNotification(diff --git a/packages/template-still/src/server/index.ts b/packages/template-still/src/server/index.tsindex afa6a93c31..e4ee986fb8 100644--- a/packages/template-still/src/server/index.ts+++ b/packages/template-still/src/server/index.ts@@ -43,7 +43,7 @@ app.use(}),);-// The image is rendered when /[CompositionName].[imageformat] is called.+// The image is rendered when /[CompositionId].[imageformat] is called.// Props are passed via query string.app.get(`/:${Params.compositionname}.:${Params.format}(png|jpe?g)`,