Skip to content

🎥 Make videos programmatically with React

remove conflicting --sequence and --codec warning

Jonny Burger7070f6d8b63f
diff --git a/packages/cli/src/render.tsx b/packages/cli/src/render.tsx
index a8c29208c8..bb10c46b1d 100644
--- a/packages/cli/src/render.tsx
+++ b/packages/cli/src/render.tsx
@@ -46,16 +46,6 @@ export const render = async () => {
}
const shouldOutputImageSequence = Internals.getShouldOutputImageSequence();
const userCodec = Internals.getOutputCodecOrUndefined();
- if (shouldOutputImageSequence && userCodec) {
- console.error(
- 'Detected both --codec and --sequence (formerly --png) flag.'
- );
- console.error(
- 'This is an error - no video codec can be used for image sequences.'
- );
- console.error('Remove one of the two flags and try again.');
- process.exit(1);
- }
const codec = getFinalOutputCodec({
codec: userCodec,
fileExtension: getUserPassedFileExtension(),
diff --git a/tests/rendering.test.ts b/tests/rendering.test.ts
index a8265cc7c4..20db9dcd08 100644
--- a/tests/rendering.test.ts
+++ b/tests/rendering.test.ts
@@ -39,28 +39,6 @@ test("Should be able to render video", async () => {
expect(data).toContain("30 fps");
});
-test("Should fail to render conflicting --sequence and --codec settings", async () => {
- const task = await execa(
- "npx",
- [
- "remotion",
- "render",
- "src/index.tsx",
- "ten-frame-tester",
- "--codec",
- "h264",
- "--sequence",
- outputPath,
- ],
- {
- cwd: "packages/example",
- reject: false,
- }
- );
- expect(task.exitCode).toBe(process.platform === "win32" ? 0 : 1);
- expect(task.stderr).toContain("Detected both --codec");
-});
-
test("Should fail to render out of range CRF", async () => {
const task = await execa(
"npx",