Skip to content

🎥 Make videos programmatically with React

use setcodec if possible

Jonny Burger719d89d8a8b0
diff --git a/packages/cli/src/parse-command-line.ts b/packages/cli/src/parse-command-line.ts
index fc73b0ee74..8ab9c4482e 100644
--- a/packages/cli/src/parse-command-line.ts
+++ b/packages/cli/src/parse-command-line.ts
@@ -25,11 +25,10 @@ export const parseCommandLine = () => {
}
if (parsedCli.png) {
// TODO: Make this a separate flag
- Config.Output.setOutputFormat('png');
- console.warn('--png has been deprecated. Use --codec=png instead.');
+ Config.Output.setOutputFormat('png-sequence');
}
if (parsedCli.codec) {
- Config.Output.setOutputFormat(parsedCli.codec);
+ Config.Output.setCodec(parsedCli.codec);
}
if (typeof parsedCli.overwrite !== 'undefined') {
Config.Output.setOverwriteOutput(parsedCli.overwrite);