{"record":{"id":"de9ed8ddb600eb1c","repo":"diegosouzapw/OmniRoute","slug":"video-container-has-no-playable-video-stream","errorCode":null,"errorMessage":"Video container has no playable video stream","messagePattern":"Video container has no playable video stream","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/guardrails/videoBridgeRuntime.ts","lineNumber":810,"sourceCode":"  } 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;\n    samplingPolicy?: VideoSamplingPolicy;\n    signal?: AbortSignal;\n    streamIndex: number;","sourceCodeStart":792,"sourceCodeEnd":828,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/guardrails/videoBridgeRuntime.ts#L792-L828","documentation":"ffprobe reported zero playable video streams after filtering (codec/dimension/ disposition). The container exists but has no video track OmniRoute can extract frames from (audio-only or unsupported codecs).","triggerScenarios":"Thrown at src/lib/guardrails/videoBridgeRuntime.ts:810 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file actually contains a video stream with ffprobe","Re-encode the track with a supported codec before upload"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}