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

Feature Request: Import chapter from CUE Sheet #63

Open
Ohrwerk opened this issue Apr 9, 2024 · 10 comments
Open

Feature Request: Import chapter from CUE Sheet #63

Ohrwerk opened this issue Apr 9, 2024 · 10 comments
Labels
enhancement New feature or request

Comments

@Ohrwerk
Copy link

Ohrwerk commented Apr 9, 2024

I recently stumbled across the "chapter function" in MP3 files. Oh how useful, I have always realized this via CUE sheets.
It would be a great relief if you could import the chapters from CUE sheets directly.
Thank you

@sandreas
Copy link
Owner

sandreas commented Apr 9, 2024

Could you provide an example file and cue sheet?
I already implemented a cue loader for m4b-tool but last time I checked the cue format was too limited for chapters... See
sandreas/m4b-tool#103 (comment)

@Ohrwerk
Copy link
Author

Ohrwerk commented Apr 9, 2024

The audio file is from the free radio play Rick Future, because of the size I have included a download link in the readme.
I created the cue sheet with CUEMaster (freeware), but unfortunately the program saves the files in ANSI format which requires a conversion to UTF-8.
The players (that I use) all use UTF-8.
The CUE sheet in the attachment has already been saved as UTF-8.
Chapter 1 include a small test for Umlauts (Country-specific characters).
CUE Sheet Example.zip

@Ohrwerk
Copy link
Author

Ohrwerk commented Apr 9, 2024

But there is also a small other problem with CUE Sheets.
With ComactDisc audio CDs, a track could be divided into several indexes, but I only know this from classical music.
Even in the heyday of the audio CD, only expensive CD players supported this function.
This will certainly lead to problems when converting and I have not yet tested whether the conversion from CUE to the ffmetadata format can manage this.
Tracks with multiple indexes.zip

@sandreas
Copy link
Owner

sandreas commented Apr 9, 2024

I created the cue sheet with CUEMaster (freeware), but unfortunately the program saves the files in ANSI format which requires a conversion to UTF-8.

Thanks for providing these examples. It might take a while, but I'll take a look.

@Ohrwerk
Copy link
Author

Ohrwerk commented Apr 9, 2024

Yes, no problem. Happy Coding

@Zeugma440
Copy link

@sandreas Don't forget ATL can help you read from CUE sheets 😉

You can always ping me if there's something to improve.

@sandreas
Copy link
Owner

sandreas commented Aug 9, 2024

@sandreas Don't forget ATL can help you read from CUE sheets 😉

Great, I didn't know that. Thank you.

You can always ping me if there's something to improve.

Thanks. I really enjoy working with you and I probably would, but the things that I think of as an improvement would be more like a whole new feature...

I did work on something I call 'improver chain', where I use a composite and a few interfaces to load data from different sources (ffmetadata, mp4chaps, cue and many more). I already published a tone format containing all metadata as a json.

Another feature I worked on is a streamlined way to tag files (merge Track properties and AdditionalFields) to prevent side effects of different metadata formats, but this was too much work for me in my limited time.

I let you know as soon as I can provide something :-)

@gitoss
Copy link

gitoss commented Oct 15, 2024

I recently stumbled across the "chapter function" in MP3 files. Oh how useful, I have always realized this via CUE sheets.

To be useful, audio/music players (and not just tools like mp4merge) would have to suppport the actual mp3 chapter spec. Everything I've tried works just fine with cue+mp3, but doesn't recognize embedded cue into mp3.

For mp4 and ogg, embedded chapters work just fine - foobar has recently been upgraded for full embedded ogg chapter support btw.

@sandreas
Copy link
Owner

To be useful, audio/music players (and not just tools like mp4merge) would have to suppport the actual mp3 chapter spec. Everything I've tried works just fine with cue+mp3, but doesn't recognize embedded cue into mp3.

@gitoss

Thanks for pointing this out and being so commited improving tone. What do you mean by cue+mp3 just work fine? For desktop players this may be true, but I did not come across any portable device, that supports this ?!

I, personally still use an iPod Nano 7g.

Pro:

  • Smaller than all available Android devices (even Fiio M6 is a lot bigger)
  • Impressive playback time with a fresh battery (> 15h)
  • Supports audio books (m4b with chapters) as well as music (mp3) and others (podcasts, etc., I mainly listen to audio books)
  • Has headphone remote, that actually works

Con:

  • Relatively small storage (16GB)
  • No network support (sync, etc.)
  • Proprietary from the ground up (even the headphone remote)
  • Hard to repair / replace stuff (no Storage replacement, battery replacement is extremely hard)
  • "Unhackable" so far (except for this approach)

I worked through a lot of portable hardware and software and NONE could get the headphone remote to work like I would expect it to. I even wrote a PR for audiobookshelf-app but it did not get merged / accepted yet.

Here are the devices that I would think of as a possible replacement for my iPod:

  • Unihertz Jelly 2(e) - Small Android Smartphone with good battery, a media button and 3,5mm Audio Jack
  • HiBy M300 - Hi-Res DAP with Android, slightly bigger but more audio centric

Older devices (like Fiio M6) would be great, but besides being outdated, unfortunately Android 7.0 and lower does not support long-press headphone remote clicks..

I already had an extreme long journey on this - nothing fits. I also thought about rolling my own, but it would require a lot of hard work to do so... My base device would have been this one: https://github.com/yuansco/TinyEmbedded-Dual

@gitoss
Copy link

gitoss commented Oct 15, 2024

What do you mean by cue+mp3 just work fine? For desktop players this may be true, but I did not come across any portable device, that supports this ?!

I didn't kno portable devices were still a thing :-) ... last time I looked there was no real development there, everything moved to mobile phones. And yes, a pure portable device might last longer, but on the other hand battery packs are very good nowadays.

On Android, I'm using Listen Audiobook Player (my favorite) and Smart Audio Player (very good, too).

@sandreas sandreas added the enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants