Comments (4)
Thanks for reporting, I'll take a look in the next days :-)
from m4b-tool.
Ok, after analysing this, let me tell you first, that i was not able to reproduce the bug on my system, although i used the same command that you used.
But i at least have an idea of what could have gone wrong...
I think it is very weird because this command is not using the guessChaptersBySilences() function.
Well, that is not fully correct, since musicbrainz chapters are nearly never fully matching the silences in the audio file and the shift increases or decreases, the longer the duration of the file is. So the chapters
command always performs a silence detection and tries to adjust the chapter position of the musicbrainz values. Within this silence detection there also is a length detection part, to boost performance and not having to detect the full length of the file with an extra command. And this length detection is failing in your case, which i suppose happens because of ffmpeg
s duration output to be not in the expected format. Since i've rewritten the whole length detection, there may be a solution.
I created a custom build (download link below) with extra detection and output - please try it with the following command:
m4b-tool chapters -v --merge-similar --first-chapter-offset 4000 --last-chapter-offset 3500 -m 969d83a3-e80c-4b47-895a-5b8a410836bd "/mnt/d/Download/Star Wars Erben des Imperiums Hörbuch (Band 1).m4b"
There should be an output line like...:
found %s musicbrainz chapters and %s silences within length %s
Best case szenario: Error is gone and it works ;) But i think there might also be a problem with --merge-similar
for your files.
m4b-tool.zip - custom build for chapters
from m4b-tool.
Wow...it just worked. No errors. Thanks :).
When will you release it?
from m4b-tool.
Cool, i'm glad it works for you.
When will you release it?
Since m4b-tool
is a one man show freetime project unfortunately there is no such thing like release management or fixed release dates. For the next release I plan to rework a few things and throw away duplicated code... therefore it will take some time, but as the version in the link above does not contain any other changes than fixing this issue, you can use it as "stable".
I'll commit the changes this week and mark the bug as fixed.
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.