🎥 Make videos programmatically with React
rename mp4-h265 to h265
Jonny Burgerb06f8f9341fb
diff --git a/packages/cli/src/get-filename.ts b/packages/cli/src/get-filename.tsindex b94266ac10..814f0a4a11 100644--- a/packages/cli/src/get-filename.ts+++ b/packages/cli/src/get-filename.ts@@ -19,7 +19,7 @@ export const getOutputFilename = (renderMode: OutputFormat): string => {if (renderMode === 'mp4' ||renderMode === 'h264' ||- renderMode === 'mp4-h265'+ renderMode === 'h265') {filename += '.mp4';}@@ -30,7 +30,7 @@ export const getOutputFilename = (renderMode: OutputFormat): string => {if (extension === 'mp4') {if (renderMode === 'mp4') {console.info(- 'You have specified a .mp4 extension, encoding it using the default H264 codec. To use H265 codec use --format=mp4-h265 flag.'+ 'You have specified a .mp4 extension, encoding it using the default H264 codec. To use H265 codec use --format=h265 flag.');}}@@ -43,11 +43,7 @@ export const getOutputFilename = (renderMode: OutputFormat): string => {renderMode = 'webm-v8';}}- if (- renderMode === 'mp4' ||- renderMode === 'h264' ||- renderMode === 'mp4-h265'- ) {+ if (renderMode === 'mp4' || renderMode === 'h264' || renderMode === 'h265') {if (hasExtension && extension !== 'mp4') {console.error('The output filename must end in .mp4.');process.exit(1);diff --git a/packages/cli/src/image-formats.ts b/packages/cli/src/image-formats.tsindex ad51e93f26..799794065e 100644--- a/packages/cli/src/image-formats.ts+++ b/packages/cli/src/image-formats.ts@@ -6,7 +6,7 @@ export const getFrameFormat = (format: OutputFormat): FrameFormat => {if (format === 'mp4' ||format === 'h264' ||- format === 'mp4-h265' ||+ format === 'h265' ||format === 'webm-v8' ||format === 'webm-v9') {diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsxindex 8d402c5a49..a9af747339 100644--- a/packages/cli/src/render.tsx+++ b/packages/cli/src/render.tsx@@ -44,7 +44,7 @@ export const render = async () => {if (renderMode === 'mp4' ||renderMode === 'h264' ||- renderMode === 'mp4-h265' ||+ renderMode === 'h265' ||renderMode === 'webm-v8' ||renderMode === 'webm-v9') {@@ -123,7 +123,7 @@ export const render = async () => {if (renderMode === 'mp4' ||renderMode === 'h264' ||- renderMode === 'mp4-h265' ||+ renderMode === 'h265' ||renderMode === 'webm-v8' ||renderMode === 'webm-v9') {diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.tsindex ef7452010b..2b1854e17a 100644--- a/packages/core/src/config/index.ts+++ b/packages/core/src/config/index.ts@@ -45,7 +45,7 @@ export const Config = {*/setPixelFormat,/**- * Specify what kind of output you, want, either 'mp4' (is an alias for 'h264') or 'mp4-h265' or 'png' or 'webm-v8' or 'webm-v8'.+ * Specify what kind of output you, want, either 'mp4' (is an alias for 'h264') or 'h265' or 'png' or 'webm-v8' or 'webm-v8'.* Default: 'mp4' (uses the default h264 codec)*/setOutputFormat,diff --git a/packages/docs/docs/cli.md b/packages/docs/docs/cli.mdindex 8c16cd0cb7..04aa2a65d9 100644--- a/packages/docs/docs/cli.md+++ b/packages/docs/docs/cli.md@@ -19,7 +19,7 @@ Besides choosing a video and output location with the command line arguments, th- `--config`: Specify a location for the Remotion config file.- `--quality`: [Value between 0 and 100 for JPEG rendering quality](config#setquality). Doesn't work when `--png` is set.- `--overwrite`: [Write to output even if file already exists.](config#setoverwriteoutput)-- `--format`: [Either `mp4`(is an alias for 'h264') or 'h264' or 'mp4-h265' or `png` or `webm-v8` or `webm-v9`](config#setoutputformat). If you don't supply `--format` flag `--format=mp4` is the default behaviour which uses the default h264 codec.+- `--format`: [Either `mp4`(is an alias for 'h264') or 'h264' or 'h265' or `png` or `webm-v8` or `webm-v9`](config#setoutputformat). If you don't supply `--format` flag `--format=mp4` is the default behaviour which uses the default h264 codec.:::infoIf you supply `--png` and `--format` flag both, `--format` flag will take precedence over `--png` flag.diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex f16763db5d..f60768d3a2 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -67,7 +67,7 @@ The [command line flag](cli) `--pixel-format` will take precedene over this opti### setOutputFormat()-Either `'mp4'` or `'h264'` or `'mp4-h265'` or `'png'` or `'webm-v8'` or `'webm-v9'`. Use the PNG sequence option if you want transparency in your output.+Either `'mp4'` or `'h264'` or `'h265'` or `'png'` or `'webm-v8'` or `'webm-v9'`. Use the PNG sequence option if you want transparency in your output.```tsxConfig.output.setOutputFormat('png');diff --git a/packages/renderer/src/stitcher.ts b/packages/renderer/src/stitcher.tsindex fae7ff02c6..3f4a156754 100644--- a/packages/renderer/src/stitcher.ts+++ b/packages/renderer/src/stitcher.ts@@ -8,7 +8,7 @@ const getCodecName = (outputFormat: OutputFormat): string => {if (outputFormat === 'mp4' || outputFormat === 'h264') {return 'libx264';}- if (outputFormat === 'mp4-h265') {+ if (outputFormat === 'h265') {return 'libx265';}