fix(cli): keep diagnostics on stderr for --json commands (#2522)

This commit is contained in:
James Russo
2026-07-16 09:14:39 -04:00
committed by GitHub
parent 5e78a29af3
commit d92d1d4f51
5 changed files with 37 additions and 19 deletions
@@ -1908,7 +1908,9 @@ export async function compileForRender(
);
}
if (metadata.isVFR) {
console.info(
// defaultLogger (stderr), not console.info (stdout) — matches the sibling
// warning above; a stdout line here corrupts `check --json` / `validate --json`.
defaultLogger.warn(
`[Compiler] Video "${video.id}" is variable frame rate (VFR); ` +
`the engine will normalize it to CFR before frame extraction. ` +
`If rendering feels slow on this video, pre-encode once with: ${reencode}`,