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

Not adding metadata to the output file #244

Closed filippoteso closed 11 months ago

filippoteso commented 11 months ago

I tried merging .mp3 files in a .m4b audiobook on Windows, using the system command prompt, but the output file has no metadata, cover image, or description.

OS: Windows 11 Pro 21H2 (x64) Command: php m4b-tool.phar merge --name="The Two Towers" --series="The Lord of the Rings" --series-part="2" --output-file="C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers\The Two Towers.m4b" "C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers"

I also tried to force the metadata, but to no avail: Command: php m4b-tool.phar merge --name="The Two Towers" --artist="Rob Inglis" --series="The Lord of the Rings" --series-part="2" --genre="Fantasy" --writer="J. R. R. Tolkien" --year="1990" --cover="cover.jpg" --description="description.txt" --output-file="C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers\The Two Towers.m4b" "C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers"

cover.jpg description.txt

sandreas commented 11 months ago

Which version are you using? You could try to use --debug to get more info what is going wrong.

filippoteso commented 11 months ago

Thanks for replying, I'm using m4b-tool v.0.4.2

I tried running: php m4b-tool.phar merge --debug --name="The Two Towers" --series="The Lord of the Rings" --series-part="2" --output-file="C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers\The Two Towers.m4b" "C:\Users\Utente\Desktop\Libri e audiolibri\Audiolibri m4b\Fantasy\J. R. R. Tolkien\The Lord of the Rings\2 - The Two Towers"

... and I got this: The Two Towers (debug).log

sandreas commented 11 months ago

Try upgrading to latest pre-release Should fix your issues Instructions on the releases page

filippoteso commented 11 months ago

Trying it rn, will update this comment after it finishes running.

edit: it worked just fine, thank you @sandreas !

filippoteso commented 11 months ago

Sorry to reopen the issue but I have created a satisfactory audiobook to which I already added a lot of metadata (mostly sorting) via the iTunes app for Windows. I’d like to rename some chapters without having to go through the whole process once again. I wonder if and how this can be done via m4b-tool and if doing that would delete the iTunes specific metadata

sandreas commented 11 months ago

I wonder if and how this can be done via m4b-tool and if doing that would delete the iTunes specific metadata

m4b-tool meta "Santa Claus.m4b" --export-chapters

# edit manually "Santa Clause.chapters.txt"

m4b-tool meta "Santa Claus.m4b" --import-chapters

rm "Santa Clause.chapters.txt"