Eyevinn / mp4ff

Library and tools for parsing and writing MP4 files including video, audio and subtitles. The focus is on fragmented files. Includes mp4ff-info, mp4ff-encrypt, mp4ff-decrypt and other tools.
MIT License
462 stars 84 forks source link

mp4ff cannot parse multi-level sidx file #346

Closed tobbee closed 6 months ago

tobbee commented 6 months ago

The DASH-IF test asset https://dash.akamaized.net/dash264/TestCases/1a/sony/SNE_DASH_SD_CASE1A_REVISED.mpd has two levels of sidx boxes as well as ssix boxes.

When parsing with mp4ff-info, the code panics. A closer examination reveals that this is due to that the segmentation detection mechanism fails to detect segment starts due to assuming that the top-level sidx box defines the segments.

Goal: