music-metadata
music-metadata copied to clipboard
Other m4b containers fail to retrieve all the chapters
Clearly understandable that includeChapters
is currently an experimental feature, and thank you for your hard work! It would be an overkill just to put ffmpeg/ffprobe in my application just to get the chapters of an audiobook.
Here are the issues I found and referenced from #731
Bug description
-
.m4b
withisom/iso2/mp41
container only returns one chapter but all chapter durations are present.- In the
parseChapterTrack
function,chapterTrack.chunkOffsetTable
only contains only one value, andchapterTrack.sampleSizeTable
is empty. Which I believe they're dependent to extract the chapter titles.
- In the
-
.m4b
withM4A/isom/iso2
, it doesn't return any chapter lists.
Audio file demonstrating the problem Audio files were given privately as they were copyrighted material.
I had a quick look to the decoding of both files you provided. It's complex the chapter encoding, I need to find a bit more time to get my head around this one.
Related PR adding chapter decoding: #325.