You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

激活CORS后DASH Manifest合规检测报错,ABR功能异常求助

Fixing DASH ABR Failure Due to SampleDescription sdType Error

Let’s tackle this head-on—that moov-1:trak-1:mdia-1:minf-1:stbl-1:stsd-1 SampleDescription sdType must be... error is directly blocking your ABR functionality, and it’s rooted in how your MP4 media files are structured. Here’s how to diagnose and fix it:

Understand the Root Cause

The error means the sdType field in the MP4’s stsd (Sample Description Box) doesn’t comply with DASH standards. DASH requires specific, standardized sdType values for each codec:

  • H.264 video must use avc1
  • AAC audio must use mp4a
  • VP9 video uses vp09
  • Opus audio uses Opus

If this value is missing, misspelled, or doesn’t match your codec, DASH players can’t recognize and switch between adaptive bitrate tracks—hence your broken ABR.

Step-by-Step Fixes

  • Inspect your MP4 files’ stsd boxes
    Use tools like MP4Box or ffprobe to check the sdType for each variant track:

    # With MP4Box
    MP4Box -info your-variant-file.mp4
    # With ffprobe
    ffprobe -v quiet -print_format json -show_streams your-variant-file.mp4
    

    Look for the codec-related fields (e.g., codec_name in ffprobe output, or SampleDescription section in MP4Box output) to confirm the sdType matches your codec’s required value.

  • Ensure all ABR variants use matching codecs and sdType values
    ABR relies on all tracks being codec-compatible. If one variant uses avc1 (H.264) and another uses a non-standard h264 tag, the player won’t switch between them. Fix any mismatched codecs or tags across your adaptive tracks.

  • Re-transcode media files with correct codec settings
    If your sdType is incorrect, re-transcode your files with standard codec parameters. For example, using FFmpeg:

    # H.264 video with correct avc1 sdType
    ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline -level:v 3.0 -crf 23 -c:a aac -b:a 128k output-720p.mp4
    

    This ensures the MP4 container uses the proper sdType tag for DASH compliance.

  • Regenerate your MPD with a DASH-compliant tool
    Don’t manually edit the MPD—use tools like MP4Box or Shaka Packager to generate it from your fixed media files:

    # MP4Box example for live DASH
    MP4Box -dash 1000 -profile live output-480p.mp4 output-720p.mp4 output-1080p.mp4 -out manifest.mpd
    

    This ensures the MPD’s track metadata aligns perfectly with your media files’ stsd boxes.

  • Re-test with the DASH compliance tool
    After fixing the media files and regenerating the MPD, re-upload it to the compliance tool. If the sdType error is gone, test your ABR behavior in a DASH player (like Shaka Player or Dash.js) to confirm it works.

Quick Note on CORS

While you’ve already enabled CORS, keep in mind that even with correct CORS settings, media file structural errors will still block ABR. Focus on fixing the sdType issue first—it’s the primary blocker here.

内容的提问来源于stack exchange,提问作者Massimo Vantaggio

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 02:29:16