Skip to content

🎥 Make videos programmatically with React

inline transparent example

Jonny Burgereec7ed512e0a
diff --git a/packages/example/package.json b/packages/example/package.json
index 9d8b179fb9..fd396ec706 100644
--- a/packages/example/package.json
+++ b/packages/example/package.json
@@ -8,7 +8,8 @@
"start": "npx ts-node ../cli/src/index.tsx preview src/index.tsx",
"test": "eslint src --ext ts,tsx,js,jsx",
"build": "tsc -d",
- "render": "remotion render src/index.tsx react-svg video.webm"
+ "render": "remotion render src/index.tsx react-svg video.mp4",
+ "render-transparent": "remotion render src/index.tsx --image-format=png --pixel-format=yuva420p --codec=vp8 react-svg video.webm"
},
"files": [
"dist"
diff --git a/packages/example/remotion.config.ts b/packages/example/remotion.config.ts
index 7ba72798ff..32a5fe5c4f 100644
--- a/packages/example/remotion.config.ts
+++ b/packages/example/remotion.config.ts
@@ -2,10 +2,7 @@ import os from 'os';
import {Config} from 'remotion';
Config.Rendering.setConcurrency(os.cpus().length);
-Config.Rendering.setImageFormat('png');
Config.Output.setOverwriteOutput(true);
-Config.Output.setPixelFormat('yuva420p');
-Config.Output.setCodec('vp8');
Config.Bundling.overrideWebpackConfig((currentConfiguration) => {
return {