🎥 Make videos programmatically with React
add docs
Jonny Burger1017be987475
diff --git a/packages/docs/docs/renderer/render-media.md b/packages/docs/docs/renderer/render-media.mdindex 084785e909..f0afbda1fe 100644--- a/packages/docs/docs/renderer/render-media.md+++ b/packages/docs/docs/renderer/render-media.md@@ -13,7 +13,7 @@ In Remotion 3.0, we added the [`renderMedia()`](/docs/renderer/render-media) API```tsconst renderMedia: (options: {- outputLocation: string;+ outputLocation?: string | undefined;codec: Codec;composition: SmallTCompMetadata;inputProps?: unknown;@@ -38,7 +38,7 @@ const renderMedia: (options: {scale?: number;cancelSignal?: CancelSignal;serveUrl: string;-}) => Promise<void>;+}) => Promise<Buffer | null>;```## Arguments@@ -53,10 +53,12 @@ Either a local path pointing to a Remotion Webpack bundle generated by [`bundle(### `output`-_string_+_string - optional since v3.0.26_Where to save the output artifact to. Either an absolute path or a relative path that will be resolved relative to the current working directory. Must be a file path (not a folder).+If not specified or set to `null`, the file will be returned in-memory as a buffer.+### `composition`_TCompMetadata_diff --git a/packages/docs/docs/renderer/stitch-frames-to-video.md b/packages/docs/docs/renderer/stitch-frames-to-video.mdindex 2dfc6cba5b..8f41bb096c 100644--- a/packages/docs/docs/renderer/stitch-frames-to-video.md+++ b/packages/docs/docs/renderer/stitch-frames-to-video.md@@ -17,7 +17,7 @@ const stitchFramesToVideo: (options: {fps: number;width: number;height: number;- outputLocation: string;+ outputLocation?: string | null;force: boolean;assetsInfo: RenderAssetInfo;pixelFormat?: PixelFormat;@@ -28,7 +28,7 @@ const stitchFramesToVideo: (options: {verbose?: boolean;ffmpegExecutable?: FfmpegExecutable;cancelSignal?: CancelSignal;-}) => Promise<void>;+}) => Promise<Buffer | null>;```## Arguments@@ -53,8 +53,12 @@ A `number` specifying the desired output height in pixels for the video.### `outputLocation`+_optional since v3.0.26_+An absolute path specify where the output file should be written to.+If not specified or set to `null`, the file will be returned in-memory as a buffer.+### `force`Whether in case of an existing file in `outputLocation` it should be overwritten. Type `boolean`.