sandreas / m4b-tool

m4b-tool is a command line utility to merge, split and chapterize audiobook files such as mp3, ogg, flac, m4a or m4b
MIT License
1.12k stars 78 forks source link

MP3s merged in wrong order in final M4B #214

Closed majant0 closed 1 year ago

majant0 commented 1 year ago

I'm following the same process that I referenced in #212 where I use Audacity to split my single MP3 into one MP3 per chapter. I also used Audacity to ensure the files were properly tagged with Album, Track, Title, & Artist. After using the merge command, my final M4B is out of order. It placed the Intro at the end (the rest of the chapters were in correct order). Does m4b-tool use the track tag to determine the order of the MP3s?

Here was the command I used: m4b-tool merge "Audiobook/" -v --output-file="Audiobook.m4b"

Here is an abbreviated mediainfo for a the first two chapters:

image image
sandreas commented 1 year ago

Does m4b-tool use the track tag to determine the order of the MP3s?

no, filenames in natural order. never had a case that did not work

sandreas commented 1 year ago

So I tried to reproduce this and failed. If you don't want to publish the filenames you used, I could give you an invite to a private repository, where you can share the files privately. Unfortunately I don't see another option to reproduce this issue.

What do you think?

majant0 commented 1 year ago

No worries. I'll just append the track number to the start of the filename.

sandreas commented 1 year ago

@majant0 Ok, if this is ok... maybe the issue re-appears on someone else's files. We'll see. Thanks for closing and your patience.