{"record":{"id":"ad056e3167c3dd02","repo":"diegosouzapw/OmniRoute","slug":"video-stream-metadata-or-dimensions-exceed-the-saf","errorCode":null,"errorMessage":"Video stream metadata or dimensions exceed the safe processing limit","messagePattern":"Video stream metadata or dimensions exceed the safe processing limit","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeRuntime.ts","lineNumber":813,"sourceCode":"  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;\n    samplingPolicy?: VideoSamplingPolicy;\n    signal?: AbortSignal;\n    streamIndex: number;\n    timeoutMs?: number;\n  }\n): Promise<VideoFrameFileList> {","sourceCodeStart":795,"sourceCodeEnd":831,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeRuntime.ts#L795-L831","documentation":"Error \"Video stream metadata or dimensions exceed the safe processing limit\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeRuntime.ts:813 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"}