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

Support loop points in MP3 BGM #143

Open
Splendide-Imaginarius opened this issue Jan 8, 2024 · 1 comment
Open

Support loop points in MP3 BGM #143

Splendide-Imaginarius opened this issue Jan 8, 2024 · 1 comment

Comments

@Splendide-Imaginarius
Copy link

MP3 should obviously not be used for new BGM assets. However, sometimes the master audio is unavailable, and only an MP3 version can be found. In this case, if loop points are desired, there are 3 options:

  1. Transcode to a lossy format that supports loop points, needlessly damaging quality.
  2. Transcode to a lossless format that supports loop points, needlessly wasting storage.
  3. Add loop points to the MP3.

Obviously option 3 seems attractive. When VX Ace was under development, MP3 typically used ID3 tags, which are not suitable for loop points. This, combined with MP3 being a generally bad format for other reasons, is probably why Enterbrain didn't support loop points in MP3 files.

However, things have changed since 2011. MP3's now can have APE tags, which (unlike ID3 tags) are suitable for loop points. I was able to add loop points to an MP3 file's APE tag with kid3, and confirmed that the loop points were readable in VLC's metadata viewer.

It looks like this is not done very much in the wild, as evidenced by the fact that ffprobe and vgmstream don't seem to recognize MP3 APE loop points (unless I screwed up when testing?), and I can't find any bugs open with either project about this. (I didn't explicitly test SDL_mixer but I don't see any code there for this either, maybe I missed something.) However, "thing X isn't done much in the wild" does not imply "we shouldn't do thing X".

So, open question: is there any reason we shouldn't support APE loop points in MP3 BGM?

@Splendide-Imaginarius
Copy link
Author

Based on Matrix/Discord discussion, it sounds like this is not an unreasonable feature to add, but also will probably not benefit a vast number of users. I will probably try to implement this in the foreseeable future.

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