-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add chapter.start & chapter.timescale #731
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution! Can you please rebase? I hope that triggers the GitHub action integration tests. |
Hello! Feature branch rebased to latest master commit and I also fixed linting issues. |
I think something went wrong on your side with rebasing (you need to force push after a rebase). I would not have helped because I failed to fix the CI tests. Now CI tests are running and green, and merge conflicts have been resolved.
I got the files you send me 🙏, I review your work soon. |
So this PR is about adding starting time and timescale values. Can please convert the issues to actual issues @jigzahoy? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are format.chapter[n].sampleOffset / format.sampleRate
& format.chapter[n].start / format.timeScale
different?
lib/type.ts
Outdated
*/ | ||
start: number; | ||
/** | ||
* Chapter track timescale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a bit vague
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type descriptions are updated on latest commit.
All I had to do was to force push it instead of merging it! Clearly it is my first time to do a PR 😅. Really appreciate the help, thank you very much!
I've notice that Some files I've used sometimes gives |
You are doing just fine. Nice work. Regarding the timeScale. I suspect there is reason for both. If we make those values part of the music-metadata.common API it should be document what these values represent. Maybe |
707e04f
to
cfa8a81
Compare
36fde3e
to
97a24a3
Compare
0d5910e
to
be7a11a
Compare
3a2947a
to
526cc3a
Compare
315cc91
to
b7b408b
Compare
Hello, I added the starting time and timescale values of chapters from audiobook file
.m4b
.Unit test updated and matches values using ffprobe.
Issues Found
.m4b
withisom/iso2/mp41
container only returns one chapter but all chapter durations are present.parseChapterTrack
function,chapterTrack.chunkOffsetTable
only contains only one value, andchapterTrack.sampleSizeTable
is empty. Which I believe they're needed to extract the chapter titles..m4b
withM4A/isom/iso2
, it doesn't return any chapter lists.I can provide the sample files I used if there's a way I can send them privately as they are copyrighted material.
Reading the buffer/token(?) values is not my currently strong suit but I hope this PR helps.