Comments (7)
but the merge command does support mp3 output
I have tried several variations, including defining output format, codec, --no-convert, --mark-chapters, etc. It appears that the tagging step is just skipped if the output format is mp3
Yes, with the release 0.3.3 mp3 tagging is not supported yet, but I'm working on it. I did some research but i did not find a possibility to create an mp3 with chapters (http://id3.org/id3v2-chapters-1.0) with ffmpeg
or native PHP (e.g. https://github.com/JamesHeinrich/getID3, i will add an issue for mp3 chapter frame addendum soon).
Since m4b-tool
already has a lot of dependencies (ffmpeg
, mp4v2
and optionally fdkaac
) i would only add a new dependency if it replaces an old one.
Here is the specification of id3-Chapters, perhaps there is something in native PHP that i could use:
http://id3.org/id3v2-chapters-1.0
Here is a nightly build with at least tagging support over ffmpeg
(no chapters!), but it may break some other things since i have not tested everything.
Just give me feedback if you find an issue...
A list of planned features that are already included:
- Batch merging with multiple patterns (to merge more than one audio book at once, based on directory names for tags)
- Sort title support (for series that are not sorted alphabetically like harry potter)
- Tagging for mp3
- Many other minor fixes and code improvements
from m4b-tool.
It looks like you can add chapters using ffmpeg directly, but I can only find an example using a metadata file and from what I can see in your code, you are writing all of the metadata via command line arguments (according to AbstractConversionCommand
. The linked article references an mp4 file, but I dumped the metadata from a podcast episode with chapters and got a similar format (I have attached the metadata file).
I guess if the output file was an mp3 you could dump the metadata to a file (along with any chapter information) and then add the proper command line arguments to import it. I understand that would be a pain to do, however.
I've forked the repo and if you don't get to it before I do, I'll see if I can figure out how to do that myself. However, it will be a month or more before I can really dig into the code (April is a very busy month for me).
Thanks for the awesome tool!
from m4b-tool.
Ok, I'll take a look at it. It would be very helpful if you could provide a command line sample, what you really executed (sample files are not needed)... e.g.:
m4b-tool merge my-mp3-files --output-file=output.mp3
from m4b-tool.
Ok, should be fixed. Well not only fixed, but also improved. MP3-Chapters might be supported (like in podcasts), but this is experimental and not verified totally for all files. Additionally, Sort-Order Names and Descriptions should be supported, too.
Unfortunately there is no way to preselect the "media type" as audiobook in iTunes for mp3 files. It seems that this attribute is not stored in the mp3 file itself, but in the iTunes media library database after changing the type of a file. See https://community.mp3tag.de/t/permanently-change-mediatype-for-itunes/13895/5 for reference.
Heres a nightly for testing, if you would like to: m4b-tool.zip (nightly)
Feedback is welcome.
from m4b-tool.
I will test this early next week - I won't have a chance until then.
But thank you very much for implementing this.
As far as I know, you are correct that there is no "Audiobook" tag for MP3s that iTunes will acknowledge.
from m4b-tool.
Sorry for the delay - I finally got to test this today and it is working as expected for mp3 files and chapter data.
from m4b-tool.
Nice to hear that, thank you for you feedback. Since you are the only one who reported this, i will not make a release version only for this, because i'm refactoring the code to make it more maintainable first. Other nice features are coming ;)
from m4b-tool.
Related Issues (20)
- Split by silence HOT 8
- Not using libfdk_aac by default HOT 3
- roadmap summary (improvement collection from older issues that are fixed)
- Audiobooks with multiple folders HOT 4
- Autodetect quality depending on source HOT 3
- Issue reindexing chapters for audiobooks with many chapters. HOT 3
- Too long chapters - not working? HOT 3
- Chapters not being marked with --no-conversion HOT 4
- Using --filename-template with --batch-pattern does not skip existing files HOT 1
- Corrupt files when merging many mp3 files HOT 5
- Difficult to intall HOT 3
- im running m4b-tool in a bash script on a macOS and its working really well, but --series-part is not working. Any idea why? HOT 5
- Cue sheets for reading metadata HOT 2
- Not adding metadata to the output file HOT 6
- How do you set tags as chapter names? HOT 2
- ffmpeg version 4.0.0 or higher is required HOT 9
- Implicit conversion from float to int loses precision (Parser/SilenceParser.php line 61) HOT 1
- Return type of M4bTool\Audio\Tag::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used HOT 6
- [FeatureRequest] Flag to copy all tags HOT 3
- Anyway to merge and use individual .mp3 filenames as chapter titles? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m4b-tool.