{"record":{"id":"c608fe3d0241f0fe","repo":"sgl-project/sglang","slug":"minimax-h3-video-material-has-no-positive-dimensio","errorCode":null,"errorMessage":"MiniMax H3 video material has no positive dimensions","messagePattern":"MiniMax H3 video material has no positive dimensions","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/material_io.py","lineNumber":438,"sourceCode":"        raise ValueError(\"MiniMax H3 media container format is not allowed\")\n    video_streams = [s for s in streams if s.get(\"codec_type\") == \"video\"]\n    audio_streams = [s for s in streams if s.get(\"codec_type\") == \"audio\"]\n    if condition_type in {\"video\", \"video_audio\"} and not video_streams:\n        raise ValueError(\"MiniMax H3 video material has no video stream\")\n    if condition_type in {\"audio\", \"video_audio\"} and not audio_streams:\n        raise ValueError(\"MiniMax H3 audio material has no audio stream\")\n\n    primary_video: dict[str, Any] | None = None\n    for stream in video_streams:\n        try:\n            width = int(stream.get(\"width\") or 0)\n            height = int(stream.get(\"height\") or 0)\n        except (TypeError, ValueError) as exc:\n            raise ValueError(\n                \"MiniMax H3 video material has invalid dimensions\"\n            ) from exc\n        if width <= 0 or height <= 0:\n            raise ValueError(\"MiniMax H3 video material has no positive dimensions\")\n        fps = _parse_frame_rate(stream.get(\"avg_frame_rate\")) or _parse_frame_rate(\n            stream.get(\"r_frame_rate\")\n        )\n        if fps <= 0:\n            raise ValueError(\"MiniMax H3 video material has no usable frame rate\")\n        if primary_video is None:\n            primary_video = stream\n\n    for stream in audio_streams:\n        try:\n            sample_rate = int(stream.get(\"sample_rate\") or 0)\n            channels = int(stream.get(\"channels\") or 0)\n        except (TypeError, ValueError) as exc:\n            raise ValueError(\"MiniMax H3 audio material has invalid metadata\") from exc\n        if sample_rate <= 0:\n            raise ValueError(\"MiniMax H3 audio material has no usable sample rate\")\n        if channels <= 0:\n            raise ValueError(\"MiniMax H3 audio material has no usable channel count\")","sourceCodeStart":420,"sourceCodeEnd":456,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/multimodal_gen/runtime/pipelines_core/stages/model_specific_stages/minimax_h3/material_io.py#L420-L456","documentation":"A video stream parsed successfully but reported width <= 0 or height <= 0, so the pipeline cannot compute geometry for it.","triggerScenarios":"Video streams with missing dimension fields (int(stream.get('width') or 0) yields 0), e.g. attached pictures, subtitle/data streams misclassified, or streams with unset dimensions.","commonSituations":"Album-art video streams in audio files, cover-art mjpeg streams, or corrupt encodes.","solutions":["Re-encode keeping only the real video track: ffmpeg -map 0:v:0 -i in.mp4 -c:v libx264 out.mp4","Remove attached-picture streams from the file","Validate with ffprobe that every video stream has positive width/height"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"assert all(int(s.get(\"width\") or 0) > 0 and int(s.get(\"height\") or 0) > 0 for s in video_streams)","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Strip attached-picture/cover streams before submission","Re-encode user uploads"],"tags":["minimax-h3","video-dimensions","ffprobe"],"backgroundTag":"invalid-media-metadata","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}