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

Multiple Problems with merging process #273

Open
84STI opened this issue Mar 15, 2024 · 0 comments
Open

Multiple Problems with merging process #273

84STI opened this issue Mar 15, 2024 · 0 comments

Comments

@84STI
Copy link

84STI commented Mar 15, 2024

Hi
First of all, I hove this project and really want to get it going as it fills exactly my blank spot for my audiobookshelf rework.
I have ~100 audiobooks in MP3 format and I wanted something that merges books with hundreds of MP3 files into one well tagged/named and chapterized m4b file.

So I loaded the current docker image into my docker desktop and started it.
I converted one single book and it was half successful at least it seem to have read the imput files in the right order and merged it to one m4b file, but the chapters were not added, in the output directory the m4b file is done and an empty <title>.chapters file is created.

I did not want to invest too much time into the chapter issue and converted a different book and here the trouble starts, no matter how I set the filename/title tag (I thought numerical track number should help sorting them right) it always never adds the files in order, they seem completly mixed. I found out that it almost all the time starts with the 23rd MP3 file and no matter how I change the Naming of the Imput files and Tagging of the MP3 tags it is just ignored. It writes in the debug output (which is very limited indeed)

[2024-03-15 08:37:34,451: INFO/MainProcess] Task importer.tasks.m4b_merge_task[f90090d4-f6b9-489c-9715-8f2777f8746a] received
[2024-03-15 08:37:34,463: INFO/ForkPoolWorker-1] --------------- Starting to process B0CGF784Q3: Die drei Sonnen - Die Trisolaris-Trilogie 1 ---------------
[2024-03-15 08:37:34,627: INFO/ForkPoolWorker-1] Processing Die drei Sonnen - Die Trisolaris-Trilogie 1
[2024-03-15 08:37:34,631: INFO/ForkPoolWorker-1] Final path format: Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1
[2024-03-15 08:37:34,631: INFO/ForkPoolWorker-1] Complete output path: /output/Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1
[2024-03-15 08:37:34,938: INFO/ForkPoolWorker-1] Processing multiple files in a dir...
[2024-03-15 08:37:34,954: INFO/ForkPoolWorker-1] Source bitrate: 162000
[2024-03-15 08:37:34,963: INFO/ForkPoolWorker-1] Source samplerate: 44100
found 275 files to convert
using cover /input/done/Cixin Liu - Trisolaris-Trilogie 01 - Die drei Sonnen/cover.jpg
skip cover extraction, a custom cover has been specified: /input/done/Cixin Liu - Trisolaris-Trilogie 01 - Die drei Sonnen/cover.jpg
preparing conversion with 20 simultaneous jobs, please wait...
0 remaining / 275 total, preparing next task |75 total |
using cover /input/done/Cixin Liu - Trisolaris-Trilogie 01 - Die drei Sonnen/cover.jpg
merging 275 files into /tmp/m4b-tool/tmp_Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b, this can take a while
running silence detection for file /tmp/m4b-tool/tmp_Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b with min length 00:00:01.750
silence detection finished
tagged file tmp_Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b (artist: Mark Bremer, name: Die drei Sonnen - Die Trisolaris-Trilogie 1, chapters: 275)
moved temporary tmp_Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b to /output/Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b
successfully merged 275 files to /output/Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b
[2024-03-15 08:40:38,601: INFO/ForkPoolWorker-1] Using existing chapter data
[2024-03-15 08:40:38,605: ERROR/ForkPoolWorker-1] Chapter file is empty, attempting to correct
Deleting QuickTime and Nero chapters from file "/output/Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b"
optimizing /output/Cixin Liu/Die Trisolaris-Trilogie 1/Die drei Sonnen - Die Trisolaris-Trilogie 1.m4b
[2024-03-15 08:40:48,732: INFO/ForkPoolWorker-1] --------------- Done processing B0CGF784Q3 ---------------
[2024-03-15 08:40:48,733: INFO/ForkPoolWorker-1] Task importer.tasks.m4b_merge_task[f90090d4-f6b9-489c-9715-8f2777f8746a] succeeded in 194.28189472899248s: None

It seems I have no control how he sorts and merges the files.
Currently the input files have this names
001 - Liu Cixin - Die Trisolaris-Trilogie - 1 - Die drei Sonnen.mp3
002 - Liu Cixin - Die Trisolaris-Trilogie - 1 - Die drei Sonnen.mp3
003 - Liu Cixin - Die Trisolaris-Trilogie - 1 - Die drei Sonnen.mp3
004 - Liu Cixin - Die Trisolaris-Trilogie - 1 - Die drei Sonnen.mp3
....
MP3 Tags are like this
Title;Artist;Album;Track;Year;Length;Size;Last Modified
001 - Die drei Sonnen;Liu Cixin;Die drei Sonnen;001;2017;16;317,40 KB;14/03/2024
002 - Die drei Sonnen;Liu Cixin;Die drei Sonnen;002;2017;120;1,89 MB;14/03/2024
003 - Die drei Sonnen;Liu Cixin;Die drei Sonnen;003;2017;245;3,80 MB;14/03/2024
004 - Die drei Sonnen;Liu Cixin;Die drei Sonnen;004;2017;217;3,37 MB;14/03/2024

On what mechanic does the included m4b-merge sort the files and why does the chapter creation fail?
I am happy to deliver more details when you tell me what...

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