{"record":{"id":"223c3a4d6574d41d","repo":"remotion-dev/remotion","slug":"expected-cuetrackpositions","errorCode":null,"errorMessage":"Expected CueTrackPositions","messagePattern":"Expected CueTrackPositions","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/media-parser/src/containers/webm/seek/format-cues.ts","lineNumber":30,"sourceCode":"\tfor (const cue of cues) {\n\t\tif (cue.type === 'Crc32') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (cue.type !== 'CuePoint') {\n\t\t\tthrow new Error('Expected CuePoint');\n\t\t}\n\n\t\tconst cueTime = cue.value.find((_cue) => _cue.type === 'CueTime');\n\t\tif (!cueTime) {\n\t\t\tthrow new Error('Expected CueTime');\n\t\t}\n\n\t\tconst cueTrackPositions = cue.value.find(\n\t\t\t(c) => c.type === 'CueTrackPositions',\n\t\t);\n\t\tif (!cueTrackPositions) {\n\t\t\tthrow new Error('Expected CueTrackPositions');\n\t\t}\n\n\t\tconst cueTimeValue = cueTime.value.value;\n\t\tconst cueTrack = cueTrackPositions.value.find(\n\t\t\t(_c) => _c.type === 'CueTrack',\n\t\t);\n\t\tif (!cueTrack) {\n\t\t\tthrow new Error('Expected CueTrack');\n\t\t}\n\n\t\tconst cueClusterPosition = cueTrackPositions.value.find(\n\t\t\t(_c) => _c.type === 'CueClusterPosition',\n\t\t);\n\t\tif (!cueClusterPosition) {\n\t\t\tthrow new Error('Expected CueClusterPosition');\n\t\t}\n\n\t\tconst cueRelativePosition = cueTrackPositions.value.find(","sourceCodeStart":12,"sourceCodeEnd":48,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/media-parser/src/containers/webm/seek/format-cues.ts#L12-L48","documentation":"A CuePoint has no CueTrackPositions child. formatCues needs CueTrackPositions to resolve which track and cluster position the cue points at; without it the cue cannot be mapped to a byte offset, so parsing aborts.","triggerScenarios":"The Cues section contains a CuePoint missing its CueTrackPositions sub-element - a malformed or partially written seek table.","commonSituations":"Corrupt seek index, non-conformant muxer output, or truncation during the Cues section.","solutions":["Re-mux with ffmpeg to rebuild the Cues.","Re-download or re-encode from a known-good source.","Try Mediabunny."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  await parseMedia({src: 'in.mkv', fields: {durationInSeconds: true}});\n} catch (err) {\n  if (err instanceof Error && /Expected CueTrackPositions/.test(err.message)) {\n    throw new Error('Incomplete Cues entries; re-mux the file.', {cause: err});\n  }\n  throw err;\n}","preventionTips":["Re-mux to rebuild the seek table.","Finalize recordings before parsing.","Keep a fallback parser/source."],"tags":["webm","matroska","media-parser","cues","seek","malformed-file"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}