{"record":{"id":"f173ccf1ceae514e","repo":"diegosouzapw/OmniRoute","slug":"video-container-format-is-not-allowed","errorCode":null,"errorMessage":"Video container format is not allowed","messagePattern":"Video container format is not allowed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeRuntime.ts","lineNumber":807,"sourceCode":"      width = Number(selectedStream.width);\n      height = Number(selectedStream.height);\n    }\n  } catch {\n    // The stable error below deliberately excludes raw ffprobe output.\n  }\n  if (!Number.isFinite(durationSeconds) || durationSeconds <= 0) {\n    throw new Error(\"Video runtime returned invalid duration metadata\");\n  }\n  if (durationSeconds > (options.maxDurationSeconds ?? 600)) {\n    throw new Error(\"Video exceeds the maximum duration\");\n  }\n  const formats = formatName\n    .toLowerCase()\n    .split(\",\")\n    .map((entry) => entry.trim())\n    .filter(Boolean);\n  if (formats.length === 0 || formats.some((entry) => !SAFE_FORMATS.has(entry))) {\n    throw new Error(\"Video container format is not allowed\");\n  }\n  if (playableVideoStreamCount === 0) {\n    throw new Error(\"Video container has no playable video stream\");\n  }\n  if (!allVideoStreamsSafe) {\n    throw new Error(\"Video stream metadata or dimensions exceed the safe processing limit\");\n  }\n  return { durationSeconds, formatName, height, streamIndex, width };\n}\n\nexport async function extractFramesFromLocalVideo(\n  inputPath: string,\n  outputDirectory: string,\n  options: {\n    durationSeconds: number;\n    frameCount: number;\n    focusWindow?: VideoFocusBounds | null;\n    runner?: VideoCommandRunner;","sourceCodeStart":789,"sourceCodeEnd":825,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeRuntime.ts#L789-L825","documentation":"Error \"Video container format is not allowed\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeRuntime.ts:807 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}