Skip to content
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

CUE file has incorrect time stamp format. #172

Open
TylerWCox opened this issue Jan 11, 2024 · 0 comments
Open

CUE file has incorrect time stamp format. #172

TylerWCox opened this issue Jan 11, 2024 · 0 comments

Comments

@TylerWCox
Copy link

Per the CUE specs for INDEX available at https://github.com/libyal/libodraw/blob/main/documentation/CUE%20sheet%20format.asciidoc#56-index the formatting should be:
INDEX [index number] [MSF]

Further definition of the MSF at https://github.com/libyal/libodraw/blob/main/documentation/CUE%20sheet%20format.asciidoc#msf shows "The MSF consists of minutes:seconds:frames (mm:ss:ff), the MSF is either relative to the last FILE command or relative to the start of the optical media. There are 75 frames per second, 60 seconds per minute."

Right now the CUE file exports entries like:

  TRACK 09 AUDIO
    TITLE "Part 1 - Chapter 7"
    INDEX 01 189:05

The correct format should have the additional :00 to specify the frame at the end like so:

  TRACK 09 AUDIO
    TITLE "Part 1 - Chapter 7"
    INDEX 01 189:05:00

This could be fixed by changing libby-download-extension/src/processor/mp3-with-cue.ts line 187 to return `${zeroPad(m)}:${zeroPad(s)}:00`; or by changing line 133 to INDEX 01 ${toTime(false, Math.round(start))}:00`;

Other than manually having to tweak the CUE files this has been a great tool allowing me to listen to borrowed books with the equalizer, pitch, and speed settings I prefer instead of those baked into Libby.

Thanks,

Tyler W. Cox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant