[Bug]: Embed Metadata Not Working At All Anymore #2032

Closed
opened 2026-04-25 00:02:42 +02:00 by adam · 22 comments
Owner

Originally created by @EnduringGuerila on GitHub (Jun 5, 2024).

What happened?

I was editing the Halo collection of m4b files while on abs v2.9.x, I ran into file permissions issues on a few of them not writing and forgot I had made hardlinks and another program had locked the files. In initial attempt to fix the issue, I updated ABS do 2.10.1 and now I can't embed metadata in any files!

The initial permissions issue just didn't change the existing tags.
Now, all existing tags get wiped and no new tags get written

Reading the logs, it says it was successful after taking way longer than it used to

the example below, Epitaph was one of the files that had properly embeded metadata before the update. upon rerunning the embed process, no metadata tags exist now.

What did you expect to happen?

Metadata getting written to m4b

Steps to reproduce the issue

  1. click 'quick embed' or 'start embed' from the file management tools section
  2. suffer

Audiobookshelf version

2.10.1

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

2024-06-05 04:04:18.830
INFO
[AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Epitaph".

2024-06-05 04:06:54.071
INFO
[AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 35 - Epitaph (2024)/HALO 35 - Epitaph (2024) by Kelly Gay.m4b"

Additional Notes

No response

Originally created by @EnduringGuerila on GitHub (Jun 5, 2024). ### What happened? I was editing the Halo collection of m4b files while on abs v2.9.x, I ran into file permissions issues on a few of them not writing and forgot I had made hardlinks and another program had locked the files. In initial attempt to fix the issue, I updated ABS do 2.10.1 and now I can't embed metadata in any files! The initial permissions issue just didn't change the existing tags. Now, all existing tags get wiped and no new tags get written Reading the logs, it says it was successful after taking way longer than it used to the example below, Epitaph was one of the files that had properly embeded metadata before the update. upon rerunning the embed process, no metadata tags exist now. ### What did you expect to happen? Metadata getting written to m4b ### Steps to reproduce the issue 1. click 'quick embed' or 'start embed' from the file management tools section 2. suffer ### Audiobookshelf version 2.10.1 ### How are you running audiobookshelf? Debian/PPA ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell 2024-06-05 04:04:18.830 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Epitaph". 2024-06-05 04:06:54.071 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 35 - Epitaph (2024)/HALO 35 - Epitaph (2024) by Kelly Gay.m4b" ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:02:42 +02:00
adam closed this issue 2026-04-25 00:02:43 +02:00
Author
Owner

@nichwall commented on GitHub (Jun 5, 2024):

Related to https://github.com/advplyr/audiobookshelf/issues/1085
https://github.com/advplyr/audiobookshelf/issues/2557
Most likely
https://github.com/advplyr/audiobookshelf/issues/3029

There has not been any changes to how files are combined or metadata is embedded, so it is probably an issue with the m4b since you said it worked for that book before.

There was an issue with ffmpeg not being included correctly on 2.10.0 with the PPA install method, but that was fixed in 2.10.1

Does embedding work with 2.9.0?

@nichwall commented on GitHub (Jun 5, 2024): Related to https://github.com/advplyr/audiobookshelf/issues/1085 https://github.com/advplyr/audiobookshelf/issues/2557 Most likely https://github.com/advplyr/audiobookshelf/issues/3029 There has not been any changes to how files are combined or metadata is embedded, so it is probably an issue with the m4b since you said it worked for that book before. There was an issue with ffmpeg not being included correctly on 2.10.0 with the PPA install method, but that was fixed in 2.10.1 Does embedding work with 2.9.0?
Author
Owner

@advplyr commented on GitHub (Jun 5, 2024):

This should be the same as #3029, specific to the Debian package but I'm not sure why you wouldn't be seeing the error log.
Can you check the log for something similar to:

Ffmpeg Err: Output format mp4 is not available
@advplyr commented on GitHub (Jun 5, 2024): This should be the same as #3029, specific to the Debian package but I'm not sure why you wouldn't be seeing the error log. Can you check the log for something similar to: ``` Ffmpeg Err: Output format mp4 is not available ```
Author
Owner

@EnduringGuerila commented on GitHub (Jun 6, 2024):

image

The only 'error' listed is a Thumbs.db file I deleted after restarting explorer.exe on my desktop. There are no other errors I can find. Do you want me to upload the full log?

@EnduringGuerila commented on GitHub (Jun 6, 2024): ![image](https://github.com/advplyr/audiobookshelf/assets/2485608/8e429335-b308-447f-b17c-91aebba5ad3c) The only 'error' listed is a Thumbs.db file I deleted after restarting explorer.exe on my desktop. There are no other errors I can find. Do you want me to upload the full log?
Author
Owner

@EnduringGuerila commented on GitHub (Jun 6, 2024):

here is Epitaph.m4b after attempting to embed new tags:

image

and here is another file before attempting to embed updated tags:
image

so again, it's not just failing to do anything, it's wiping what's there.
and Epitaph was a file that abs had successfully embeded on 2.9.x and I only reran it on 2.10.1 as a test.

@EnduringGuerila commented on GitHub (Jun 6, 2024): here is Epitaph.m4b after attempting to embed new tags: ![image](https://github.com/advplyr/audiobookshelf/assets/2485608/7d8eba40-20c8-4411-af92-651c6cb384e8) and here is another file **before** attempting to embed updated tags: ![image](https://github.com/advplyr/audiobookshelf/assets/2485608/26bad6ee-e3fa-4aaf-a7f9-6794da607fbb) so again, it's not just failing to do anything, it's wiping what's there. and Epitaph was a file that abs had successfully embeded on 2.9.x and I only reran it on 2.10.1 as a test.
Author
Owner

@EnduringGuerila commented on GitHub (Jun 6, 2024):

log

2024-06-05 22:27:02.091 DEBUG Set Log Level to DEBUG

2024-06-05 22:27:02.101 DEBUG [ApiCacheManager] Array.afterUpsert: Clearing cache

2024-06-05 22:27:26.453 DEBUG [ApiCacheManager] count: 0 size: 0

2024-06-05 22:27:26.456 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5?include=filterdata"}

2024-06-05 22:27:26.523 DEBUG [ApiCacheManager] count: 1 size: 13244

2024-06-05 22:27:26.539 DEBUG Loaded 2 of 2 items for "Continue Listening/Reading" in 0.01s

2024-06-05 22:27:26.561 DEBUG Loaded 2 of 2 items for "Continue Series" in 0.02s

2024-06-05 22:27:26.581 DEBUG Loaded 10 of 223 items for "Recently Added" in 0.02s

2024-06-05 22:27:26.632 DEBUG Loaded 5 of 28 series for "Recent Series" in 0.05s

2024-06-05 22:27:26.689 DEBUG Loaded 10 of 33 items for "Discover" in 0.06s

2024-06-05 22:27:26.720 DEBUG Loaded 10 of 13 items for "Listen/Read Again" in 0.03s

2024-06-05 22:27:26.727 DEBUG Loaded 10 of 54 authors for "Newest Authors" in 0.01s

2024-06-05 22:27:26.727 DEBUG Loaded 7 personalized shelves in 0.20s

2024-06-05 22:27:26.728 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/personalized?include=rssfeed,numEpisodesIncomplete"}

2024-06-05 22:27:26.728 DEBUG [ApiCacheManager] Caching with 1800000 ms TTL

2024-06-05 22:27:32.145 DEBUG [ApiCacheManager] count: 2 size: 240620

2024-06-05 22:27:32.145 DEBUG [ApiCacheManager] Cache hit: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5?include=filterdata"}

2024-06-05 22:27:32.167 DEBUG [ApiCacheManager] count: 2 size: 240620

2024-06-05 22:27:32.194 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/series/874f1e63-5794-4706-8928-d385ab1618fa?include=progress,rssfeed"}

2024-06-05 22:27:32.248 DEBUG [ApiCacheManager] count: 3 size: 242334

2024-06-05 22:27:32.275 DEBUG Loaded 35 of 35 items for libary page in 0.03s

2024-06-05 22:27:32.276 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/items?filter=series.ODc0ZjFlNjMtNTc5NC00NzA2LTg5MjgtZDM4NWFiMTYxOGZh&limit=100&page=0&minified=1&include=rssfeed,numEpisodesIncomplete"}

2024-06-05 22:27:37.254 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Epitaph".

2024-06-05 22:28:09.689 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 35 - Epitaph (2024)/HALO 35 - Epitaph (2024) by Kelly Gay.m4b"

2024-06-05 22:28:09.690 DEBUG [AudioMetadataManager] Task finished and no tasks remain in queue

@EnduringGuerila commented on GitHub (Jun 6, 2024): <details><summary>log</summary> <p> ``` 2024-06-05 22:27:02.091 DEBUG Set Log Level to DEBUG 2024-06-05 22:27:02.101 DEBUG [ApiCacheManager] Array.afterUpsert: Clearing cache 2024-06-05 22:27:26.453 DEBUG [ApiCacheManager] count: 0 size: 0 2024-06-05 22:27:26.456 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5?include=filterdata"} 2024-06-05 22:27:26.523 DEBUG [ApiCacheManager] count: 1 size: 13244 2024-06-05 22:27:26.539 DEBUG Loaded 2 of 2 items for "Continue Listening/Reading" in 0.01s 2024-06-05 22:27:26.561 DEBUG Loaded 2 of 2 items for "Continue Series" in 0.02s 2024-06-05 22:27:26.581 DEBUG Loaded 10 of 223 items for "Recently Added" in 0.02s 2024-06-05 22:27:26.632 DEBUG Loaded 5 of 28 series for "Recent Series" in 0.05s 2024-06-05 22:27:26.689 DEBUG Loaded 10 of 33 items for "Discover" in 0.06s 2024-06-05 22:27:26.720 DEBUG Loaded 10 of 13 items for "Listen/Read Again" in 0.03s 2024-06-05 22:27:26.727 DEBUG Loaded 10 of 54 authors for "Newest Authors" in 0.01s 2024-06-05 22:27:26.727 DEBUG Loaded 7 personalized shelves in 0.20s 2024-06-05 22:27:26.728 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/personalized?include=rssfeed,numEpisodesIncomplete"} 2024-06-05 22:27:26.728 DEBUG [ApiCacheManager] Caching with 1800000 ms TTL 2024-06-05 22:27:32.145 DEBUG [ApiCacheManager] count: 2 size: 240620 2024-06-05 22:27:32.145 DEBUG [ApiCacheManager] Cache hit: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5?include=filterdata"} 2024-06-05 22:27:32.167 DEBUG [ApiCacheManager] count: 2 size: 240620 2024-06-05 22:27:32.194 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/series/874f1e63-5794-4706-8928-d385ab1618fa?include=progress,rssfeed"} 2024-06-05 22:27:32.248 DEBUG [ApiCacheManager] count: 3 size: 242334 2024-06-05 22:27:32.275 DEBUG Loaded 35 of 35 items for libary page in 0.03s 2024-06-05 22:27:32.276 DEBUG [ApiCacheManager] Cache miss: {"user":"enduring","url":"/libraries/4b2b587c-9f12-4083-9f46-3278839662d5/items?filter=series.ODc0ZjFlNjMtNTc5NC00NzA2LTg5MjgtZDM4NWFiMTYxOGZh&limit=100&page=0&minified=1&include=rssfeed,numEpisodesIncomplete"} 2024-06-05 22:27:37.254 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Epitaph". 2024-06-05 22:28:09.689 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 35 - Epitaph (2024)/HALO 35 - Epitaph (2024) by Kelly Gay.m4b" 2024-06-05 22:28:09.690 DEBUG [AudioMetadataManager] Task finished and no tasks remain in queue ``` </p> </details>
Author
Owner

@EnduringGuerila commented on GitHub (Jun 8, 2024):

So, I downgraded back to 2.9.0 and it didn't start working again.
Here is the update log of the other packages that updated at the same time that I originally updated to 2.10.1:

Start-Date: 2024-06-05  00:22:34
Commandline: apt upgrade
Upgrade: 
audiobookshelf:amd64 (2.9.0, 2.10.1), 
libglib2.0-data:amd64 (2.74.6-2, 2.74.6-2+deb12u2), 
less:amd64 (590-2, 590-2.1~deb12u2), 
libc6:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), 
locales:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), 
libglib2.0-0:amd64 (2.74.6-2, 2.74.6-2+deb12u2), 
libc-l10n:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), 
libc-bin:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7)
End-Date: 2024-06-05  00:22:47
@EnduringGuerila commented on GitHub (Jun 8, 2024): So, I downgraded back to 2.9.0 and it didn't start working again. Here is the update log of the other packages that updated at the same time that I originally updated to 2.10.1: ``` Start-Date: 2024-06-05 00:22:34 Commandline: apt upgrade Upgrade: audiobookshelf:amd64 (2.9.0, 2.10.1), libglib2.0-data:amd64 (2.74.6-2, 2.74.6-2+deb12u2), less:amd64 (590-2, 590-2.1~deb12u2), libc6:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), locales:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), libglib2.0-0:amd64 (2.74.6-2, 2.74.6-2+deb12u2), libc-l10n:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7), libc-bin:amd64 (2.36-9+deb12u4, 2.36-9+deb12u7) End-Date: 2024-06-05 00:22:47 ```
Author
Owner

@advplyr commented on GitHub (Jun 13, 2024):

I'm not sure what to do here. Is the embed still not working for you?

@advplyr commented on GitHub (Jun 13, 2024): I'm not sure what to do here. Is the embed still not working for you?
Author
Owner

@EnduringGuerila commented on GitHub (Jun 28, 2024):

sorry, not getting notifications for some reason.
no, the embed is still not working

@EnduringGuerila commented on GitHub (Jun 28, 2024): sorry, not getting notifications for some reason. no, the embed is still not working
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

I just upgraded to 2.11.0 and tried a single quick embed, and it worked. I'll do more testing but the issue might be resolved.

@EnduringGuerila commented on GitHub (Jul 19, 2024): I just upgraded to 2.11.0 and tried a single quick embed, and it worked. I'll do more testing but the issue might be resolved.
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

After further testing, I selected about 30 books in ABS and clicked "quick embed metadata" in the top right menu, and this did not work.

It attempted to process each of the books,
the library kept rescanning as it processed and said it was finding new books,
I checked the files and I know for sure many of them did not update. I don't know what the old tags were on some of them so a few MIGHT have updated but it SEEMS like none of them updated.
when going to the "Audiobook File Management Tools" section, it shows "Embed Finished!" on the files that I confirmed did not actually embed.

When opening the Edit menu, going to Tools tab and clicking 'Quick Embed' on a single book, embedding seems to work just fine.

@EnduringGuerila commented on GitHub (Jul 19, 2024): After further testing, I selected about 30 books in ABS and clicked "quick embed metadata" in the top right menu, and this did not work. It attempted to process each of the books, the library kept rescanning as it processed and said it was finding new books, I checked the files and I know for sure many of them did not update. I don't know what the old tags were on some of them so a few MIGHT have updated but it SEEMS like none of them updated. when going to the "Audiobook File Management Tools" section, it shows "Embed Finished!" on the files that I confirmed did not actually embed. When opening the Edit menu, going to Tools tab and clicking 'Quick Embed' on a single book, embedding seems to work just fine.
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

I just did 8 books by quickly going into Edit/Tools and Quick Embed for each one separately, and only first 4 succeeded. I wonder if doing books too soon after another is causing issues. I redid quick embed in the last 4 that didn't embed and they embedded just fine. I also just watched the folder more closely on another monitor while embedding, and it seems like the files are being copied, tags applied to the new file and then the old file is replaced by the new one. The Creation Date is still showing the old date but I don't think that means much in my experience transferring files via SFTP in the past.

e45cb22ad359c2a69f44791904015580

I do have ABS running in an LXC container on Proxmox with only 2 cpu cores and 2gb of ram. ABS is on an NVMe SSD but the files are on a 10gbe network share. I haven't had any other read/write issues on the network share, no matter how quickly I change/read/write files so I don't think that's an issue...

@EnduringGuerila commented on GitHub (Jul 19, 2024): I just did 8 books by quickly going into Edit/Tools and Quick Embed for each one separately, and only first 4 succeeded. I wonder if doing books too soon after another is causing issues. I redid quick embed in the last 4 that didn't embed and they embedded just fine. I also just watched the folder more closely on another monitor while embedding, and it seems like the files are being copied, tags applied to the new file and then the old file is replaced by the new one. The Creation Date is still showing the old date but I don't think that means much in my experience transferring files via SFTP in the past. ![e45cb22ad359c2a69f44791904015580](https://github.com/user-attachments/assets/5f473630-99c2-44be-88ed-9b22a1a0b9c8) I do have ABS running in an LXC container on Proxmox with only 2 cpu cores and 2gb of ram. ABS is on an NVMe SSD but the files are on a 10gbe network share. I haven't had any other read/write issues on the network share, no matter how quickly I change/read/write files so I don't think that's an issue...
Author
Owner

@nichwall commented on GitHub (Jul 19, 2024):

Are all of the books a single m4b file? Do you have any logs for the ones that worked/failed?

@nichwall commented on GitHub (Jul 19, 2024): Are all of the books a single m4b file? Do you have any logs for the ones that worked/failed?
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

Each book is its own, single m4b file.

When going through each one individually, Halo book 17, Saint's Testimony kept 'finishing' instantly but wasn't updating. This wasn't the norm, usually it takes like 3 seconds to process whether it updates or not. THAT log says:

2024-07-18 18:40:55.406

ERROR

Error adding cover image and metadata: Error: ffmpeg exited with code 183: Error opening input file /mnt/media/Audiobooks/Halo Collection/HALO Book 17 - Saint's Testimony (2015)/HALO 17 - Saint's Testimony (2015) by Frank O'Connor.m4b. Error opening input files: Invalid data found when processing input

2024-07-18 18:40:55.407

ERROR

ffmpeg stderr: ffmpeg version N-71064-gd5e603ddc0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 27.100 / 59. 27.100 libavcodec 61. 9.100 / 61. 9.100 libavformat 61. 4.100 / 61. 4.100 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.102 / 10. 2.102 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8105f40] error reading header [in#0 @ 0x8105c40] Error opening input: Invalid data found when processing input Error opening input file /mnt/media/Audiobooks/Halo Collection/HALO Book 17 - Saint's Testimony (2015)/HALO 17 - Saint's Testimony (2015) by Frank O'Connor.m4b. Error opening input files: Invalid data found when processing input 

I'll try to find another one that fails from me going too fast and see what the log says

@EnduringGuerila commented on GitHub (Jul 19, 2024): Each book is its own, single m4b file. When going through each one individually, Halo book 17, Saint's Testimony kept 'finishing' instantly but wasn't updating. This wasn't the norm, usually it takes like 3 seconds to process whether it updates or not. THAT log says: ``` 2024-07-18 18:40:55.406 ERROR Error adding cover image and metadata: Error: ffmpeg exited with code 183: Error opening input file /mnt/media/Audiobooks/Halo Collection/HALO Book 17 - Saint's Testimony (2015)/HALO 17 - Saint's Testimony (2015) by Frank O'Connor.m4b. Error opening input files: Invalid data found when processing input 2024-07-18 18:40:55.407 ERROR ffmpeg stderr: ffmpeg version N-71064-gd5e603ddc0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2024 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 59. 27.100 / 59. 27.100 libavcodec 61. 9.100 / 61. 9.100 libavformat 61. 4.100 / 61. 4.100 libavdevice 61. 2.100 / 61. 2.100 libavfilter 10. 2.102 / 10. 2.102 libswscale 8. 2.100 / 8. 2.100 libswresample 5. 2.100 / 5. 2.100 libpostproc 58. 2.100 / 58. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8105f40] error reading header [in#0 @ 0x8105c40] Error opening input: Invalid data found when processing input Error opening input file /mnt/media/Audiobooks/Halo Collection/HALO Book 17 - Saint's Testimony (2015)/HALO 17 - Saint's Testimony (2015) by Frank O'Connor.m4b. Error opening input files: Invalid data found when processing input ``` I'll try to find another one that fails from me going too fast and see what the log says
Author
Owner

@nichwall commented on GitHub (Jul 19, 2024):

Are the ones that fail the only ones with an apostrophe (or another special character) in the filename?

@nichwall commented on GitHub (Jul 19, 2024): Are the ones that fail the only ones with an apostrophe (or another special character) in the filename?
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

That's the only book with an apostrophe in the title, the rest might have one in the description though.

I just selected books 27-34, clicked the button to mass "quick embed metadata" and at least book 27-33 did NOT update. I don't know if I previously updated 34 and it also failed or if it successfully updated this time.

Here is the error for book 27:

2024-07-18 18:54:39.049

INFO

[AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Oblivion".

2024-07-18 18:54:39.054

DEBUG

[ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/dfe1787b-a46c-4e0a-92a5-f977705170b8/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 18:54:44.681

DEBUG

[ffmpegHelpers] ffmpeg stderr: minor_version : 512 compatible_brands: isomiso2mp41 track : 1 media_type : 2 gapless_playback: 1 Original Year : 2019 Original Date : 2019-09-24 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 98.499000 Metadata: title : 001 Chapter #0:1: start 98.499000, end 2112.226000 Metadata: title : 002 Chapter #0:2: start 2112.226000, end 3635.408000 Metadata: title : 003 Chapter #0:3: start 3635.408000, end 5521.217000 Metadata: title : 004 Chapter #0:4: start 5521.217000, end 7046.118000 Metadata: title : 005 Chapter #0:5: start 7046.118000, end 10391.045000 Metadata: title : 006 Chapter #0:6: start 10391.045000, end 11939.700000 Metadata: title : 007 Chapter #0:7: start 11939.700000, end 12536.546000 Metadata: title : 008 Chapter #0:8: start 12536.546000, end 14223.058000 Metadata: title : 009 Chapter #0:9: start 14223.058000, end 15860.645000 Metadata: title : 010 Chapter #0:10: start 15860.645000, end 18986.353000 Metadata: title : 011 Chapter #0:11: start 18986.353000, end 20177.235000 Metadata: title : 012 Chapter #0:12: start 20177.235000, end 21685.881000 Metadata: title : 013 Chapter #0:13: start 21685.881000, end 24068.969000 Metadata: title : 014 Chapter #0:14: start 24068.969000, end 27199.297000 Metadata: title : 015 Chapter #0:15: start 27199.297000, end 29719.382000 Metadata: title : 016 Chapter #0:16: start 29719.382000, end 30421.159000 Metadata: title : 017 Chapter #0:17: start 30421.159000, end 32641.822000 Metadata: title : 018 Chapter #0:18: start 32641.822000, end 33688.555000 Metadata: title : 019 Chapter #0:19: start 33688.555000, end 36304.747000 Metadata: title : 020 Chapter #0:20: start 36304.747000, end 38663.639000 Metadata: title : 021 Chapter #0:21: start 38663.639000, end 41357.502000 Metadata: title : 022 Chapter #0:22: start 41357.502000, end 43032.520000 Metadata: title : HALO: Oblivion: A Master Chief Story Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2560x2560 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 65792KiB time=01:11:51.64 bitrate= 125.0kbits/s speed=8.62e+03x size= 134400KiB time=02:26:19.25 bitrate= 125.4kbits/s speed=8.78e+03x size= 204544KiB time=03:42:37.85 bitrate= 125.4kbits/s speed=8.9e+03x size= 274688KiB time=04:58:59.92 bitrate= 125.4kbits/s speed=8.97e+03x size= 344064KiB time=06:14:16.45 bitrate= 125.5kbits/s speed=8.98e+03x size= 412416KiB time=07:28:38.38 bitrate= 125.5kbits/s speed=8.97e+03x size= 480000KiB time=08:42:12.56 bitrate= 125.5kbits/s speed=8.95e+03x size= 549120KiB time=09:57:16.09 bitrate= 125.5kbits/s speed=8.96e+03x size= 617216KiB time=11:11:22.27 bitrate= 125.5kbits/s speed=8.95e+03x [out#0/mp4 @ 0x8107800] video:558KiB audio:659716KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 1.097903% size= 667523KiB time=00:00:00.04 bitrate=136708620.4kbits/s speed=0.00729x

2024-07-18 18:54:46.209

INFO

[AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b"

2024-07-18 18:54:46.409

DEBUG

[Watcher] File Added /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 18:54:46.409

DEBUG

[Watcher] Modified file in library "mediaAudiobooks" and folder "83c8e24c-03aa-4fdd-b623-c129f9c66fa5" with relPath "/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b"

2024-07-18 18:54:46.412

ERROR

[fileUtils] Failed to getFileMtimeMs Error: ENOENT: no such file or directory, stat '/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b'

2024-07-18 18:54:54.617

DEBUG

[Watcher] File Removed /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 18:55:18.121

DEBUG

[LibraryScanner] Folder update for relative path "Halo Collection/HALO Book 27 - Oblivion (2023)" is in library item "HALO: Oblivion" - scan for updates

2024-07-18 18:55:18.127

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtime" changed from "1721347285863" to "1721350486085"

2024-07-18 18:55:18.127

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctime" changed from "1721347285863" to "1721350486085"

2024-07-18 18:55:18.128

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtimeMs" changed from "1721347284410" to "1721350484777"

2024-07-18 18:55:18.128

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctimeMs" changed from "1721347284410" to "1721350484777"

2024-07-18 18:55:18.128

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": New library file found with path "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/Thumbs.db" for library item "Halo Collection/HALO Book 27 - Oblivion (2023)"

2024-07-18 18:55:18.128

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" changed: [mtime,ctime,size,lastScan]

2024-07-18 18:55:18.282

DEBUG

[AudioFileScanner] Smart track order for "Halo Collection/HALO Book 27 - Oblivion (2023)" using track key trackNumFromMeta

2024-07-18 18:55:18.282

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": "HALO Book 27 - Oblivion (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata]

2024-07-18 18:55:18.283

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b

2024-07-18 18:55:18.285

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json"

2024-07-18 18:55:18.298

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json"

Here is the log from book 34:

2024-07-18 18:54:39.049

INFO

[AudioMetadataManager] Queueing embed metadata for audiobook "HALO: Outcasts"

2024-07-18 18:55:12.146

INFO

[AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Outcasts".

2024-07-18 18:55:12.150

DEBUG

[ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/1add7ba9-ace6-461b-ad52-ecffd8d5dd9b/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.tmp.m4b

2024-07-18 18:55:17.379

DEBUG

[ffmpegHelpers] ffmpeg stderr: Metadata: title : Outcasts - Part 11 Chapter #1:11: start 38094.234000, end 41222.986000 Metadata: title : Outcasts - Part 12 Chapter #1:12: start 41222.986000, end 45691.219000 Metadata: title : Outcasts - Part 13 Input #2, image2, from '/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/cover.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 99709 kb/s Stream #2:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 2400x2400 [SAR 1:1 DAR 1:1], 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #2:0 -> #0:1 (copy) Output #0, mp4, to '/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.tmp.m4b': Metadata: title : HALO: Outcasts artist : Troy Denning album_artist : Troy Denning album : HALO: Outcasts: HALO, Book 34 TIT3 : HALO, Book 34 genre : Literature & Fiction; Science Fiction & Fantasy date : 2023 comment : The year 2559. Formerly one of the Covenant’s greatest and most fearsome warriors, Arbiter Thel ‘Vadam is now allied with his former human enemies while deeply entrenched in leading the Sangheili people to a new era of unification. But his aspirations description : The year 2559. Formerly one of the Covenant’s greatest and most fearsome warriors, Arbiter Thel ‘Vadam is now allied with his former human enemies while deeply entrenched in leading the Sangheili people to a new era of unification. But his aspirations composer : Scott Brick copyright : Simon & Schuster Audio / Halo Books publisher : Simon & Schuster Audio / Halo Books TRACKTOTAL : 1 grouping : Halo #34 major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 2023-09-06T05:48:50.000000Z track : 1 media_type : 2 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 3147.560000 Metadata: title : Outcasts - Part 01 Chapter #0:1: start 3147.560000, end 5862.271000 Metadata: title : Outcasts - Part 02 Chapter #0:2: start 5862.271000, end 9305.981000 Metadata: title : Outcasts - Part 03 Chapter #0:3: start 9305.981000, end 13526.651000 Metadata: title : Outcasts - Part 04 Chapter #0:4: start 13526.651000, end 17151.103000 Metadata: title : Outcasts - Part 05 Chapter #0:5: start 17151.103000, end 20126.569000 Metadata: title : Outcasts - Part 06 Chapter #0:6: start 20126.569000, end 22276.199000 Metadata: title : Outcasts - Part 07 Chapter #0:7: start 22276.199000, end 26412.729000 Metadata: title : Outcasts - Part 08 Chapter #0:8: start 26412.729000, end 29979.920000 Metadata: title : Outcasts - Part 09 Chapter #0:9: start 29979.920000, end 34363.804000 Metadata: title : Outcasts - Part 10 Chapter #0:10: start 34363.804000, end 38094.234000 Metadata: title : Outcasts - Part 11 Chapter #0:11: start 38094.234000, end 41222.986000 Metadata: title : Outcasts - Part 12 Chapter #0:12: start 41222.986000, end 45691.219000 Metadata: title : Outcasts - Part 13 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 63 kb/s (default) Metadata: creation_time : 2023-09-06T05:48:50.000000Z handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Progressive) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2400x2400 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 36608KiB time=01:18:40.50 bitrate= 63.5kbits/s speed=9.44e+03x size= 75264KiB time=02:41:20.65 bitrate= 63.7kbits/s speed=9.68e+03x size= 114688KiB time=04:05:08.95 bitrate= 63.9kbits/s speed=9.8e+03x size= 154112KiB time=05:29:19.25 bitrate= 63.9kbits/s speed=9.88e+03x size= 192000KiB time=06:50:03.51 bitrate= 63.9kbits/s speed=9.84e+03x size= 226560KiB time=08:04:03.89 bitrate= 63.9kbits/s speed=9.68e+03x size= 265216KiB time=09:26:23.23 bitrate= 63.9kbits/s speed=9.71e+03x size= 303616KiB time=10:48:14.74 bitrate= 63.9kbits/s speed=9.72e+03x size= 342016KiB time=12:10:40.57 bitrate= 63.9kbits/s speed=9.74e+03x [out#0/mp4 @ 0x7c92e40] video:487KiB audio:356787KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 2.154112% size= 364969KiB time=00:00:00.04 bitrate=74745739.8kbits/s speed=0.00788x

2024-07-18 18:55:18.110

INFO

[AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b"

2024-07-18 19:00:05.526

DEBUG

[LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" key "mtime" changed from "1721347163187" to "1721350518054"

2024-07-18 19:00:05.526

DEBUG

[LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" key "ctime" changed from "1721347163187" to "1721350518054"

2024-07-18 19:00:05.526

DEBUG

[LibraryScan] "mediaAudiobooks": Library file "HALO 34 - Outcasts (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)" key "mtimeMs" changed from "1721347162589" to "1721350517429"

2024-07-18 19:00:05.526

DEBUG

[LibraryScan] "mediaAudiobooks": Library file "HALO 34 - Outcasts (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)" key "ctimeMs" changed from "1721347162589" to "1721350517429"

2024-07-18 19:00:05.527

DEBUG

[LibraryScan] "mediaAudiobooks": New library file found with path "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/Thumbs.db" for library item "Halo Collection/HALO Book 34 - Outcasts (2023)"

2024-07-18 19:00:05.527

DEBUG

[LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" changed: [mtime,ctime,size,lastScan]

2024-07-18 19:00:05.656

DEBUG

[AudioFileScanner] Smart track order for "Halo Collection/HALO Book 34 - Outcasts (2023)" using track key trackNumFromMeta

2024-07-18 19:00:05.657

DEBUG

[LibraryScan] "mediaAudiobooks": "HALO Book 34 - Outcasts (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata]

2024-07-18 19:00:05.657

DEBUG

[LibraryScan] "mediaAudiobooks": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b

2024-07-18 19:00:05.659

DEBUG

[LibraryScan] "mediaAudiobooks": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/metadata.json"

2024-07-18 19:00:05.668

DEBUG

[LibraryScan] "mediaAudiobooks": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/metadata.json"

@EnduringGuerila commented on GitHub (Jul 19, 2024): That's the only book with an apostrophe in the title, the rest might have one in the description though. I just selected books 27-34, clicked the button to mass "quick embed metadata" and at least book 27-33 did NOT update. I don't know if I previously updated 34 and it also failed or if it successfully updated this time. <details><summary>Here is the error for book 27:</summary> <p> ``` 2024-07-18 18:54:39.049 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Oblivion". 2024-07-18 18:54:39.054 DEBUG [ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/dfe1787b-a46c-4e0a-92a5-f977705170b8/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 18:54:44.681 DEBUG [ffmpegHelpers] ffmpeg stderr: minor_version : 512 compatible_brands: isomiso2mp41 track : 1 media_type : 2 gapless_playback: 1 Original Year : 2019 Original Date : 2019-09-24 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 98.499000 Metadata: title : 001 Chapter #0:1: start 98.499000, end 2112.226000 Metadata: title : 002 Chapter #0:2: start 2112.226000, end 3635.408000 Metadata: title : 003 Chapter #0:3: start 3635.408000, end 5521.217000 Metadata: title : 004 Chapter #0:4: start 5521.217000, end 7046.118000 Metadata: title : 005 Chapter #0:5: start 7046.118000, end 10391.045000 Metadata: title : 006 Chapter #0:6: start 10391.045000, end 11939.700000 Metadata: title : 007 Chapter #0:7: start 11939.700000, end 12536.546000 Metadata: title : 008 Chapter #0:8: start 12536.546000, end 14223.058000 Metadata: title : 009 Chapter #0:9: start 14223.058000, end 15860.645000 Metadata: title : 010 Chapter #0:10: start 15860.645000, end 18986.353000 Metadata: title : 011 Chapter #0:11: start 18986.353000, end 20177.235000 Metadata: title : 012 Chapter #0:12: start 20177.235000, end 21685.881000 Metadata: title : 013 Chapter #0:13: start 21685.881000, end 24068.969000 Metadata: title : 014 Chapter #0:14: start 24068.969000, end 27199.297000 Metadata: title : 015 Chapter #0:15: start 27199.297000, end 29719.382000 Metadata: title : 016 Chapter #0:16: start 29719.382000, end 30421.159000 Metadata: title : 017 Chapter #0:17: start 30421.159000, end 32641.822000 Metadata: title : 018 Chapter #0:18: start 32641.822000, end 33688.555000 Metadata: title : 019 Chapter #0:19: start 33688.555000, end 36304.747000 Metadata: title : 020 Chapter #0:20: start 36304.747000, end 38663.639000 Metadata: title : 021 Chapter #0:21: start 38663.639000, end 41357.502000 Metadata: title : 022 Chapter #0:22: start 41357.502000, end 43032.520000 Metadata: title : HALO: Oblivion: A Master Chief Story Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2560x2560 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 65792KiB time=01:11:51.64 bitrate= 125.0kbits/s speed=8.62e+03x size= 134400KiB time=02:26:19.25 bitrate= 125.4kbits/s speed=8.78e+03x size= 204544KiB time=03:42:37.85 bitrate= 125.4kbits/s speed=8.9e+03x size= 274688KiB time=04:58:59.92 bitrate= 125.4kbits/s speed=8.97e+03x size= 344064KiB time=06:14:16.45 bitrate= 125.5kbits/s speed=8.98e+03x size= 412416KiB time=07:28:38.38 bitrate= 125.5kbits/s speed=8.97e+03x size= 480000KiB time=08:42:12.56 bitrate= 125.5kbits/s speed=8.95e+03x size= 549120KiB time=09:57:16.09 bitrate= 125.5kbits/s speed=8.96e+03x size= 617216KiB time=11:11:22.27 bitrate= 125.5kbits/s speed=8.95e+03x [out#0/mp4 @ 0x8107800] video:558KiB audio:659716KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 1.097903% size= 667523KiB time=00:00:00.04 bitrate=136708620.4kbits/s speed=0.00729x 2024-07-18 18:54:46.209 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b" 2024-07-18 18:54:46.409 DEBUG [Watcher] File Added /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 18:54:46.409 DEBUG [Watcher] Modified file in library "mediaAudiobooks" and folder "83c8e24c-03aa-4fdd-b623-c129f9c66fa5" with relPath "/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b" 2024-07-18 18:54:46.412 ERROR [fileUtils] Failed to getFileMtimeMs Error: ENOENT: no such file or directory, stat '/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b' 2024-07-18 18:54:54.617 DEBUG [Watcher] File Removed /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 18:55:18.121 DEBUG [LibraryScanner] Folder update for relative path "Halo Collection/HALO Book 27 - Oblivion (2023)" is in library item "HALO: Oblivion" - scan for updates 2024-07-18 18:55:18.127 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtime" changed from "1721347285863" to "1721350486085" 2024-07-18 18:55:18.127 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctime" changed from "1721347285863" to "1721350486085" 2024-07-18 18:55:18.128 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtimeMs" changed from "1721347284410" to "1721350484777" 2024-07-18 18:55:18.128 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctimeMs" changed from "1721347284410" to "1721350484777" 2024-07-18 18:55:18.128 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": New library file found with path "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/Thumbs.db" for library item "Halo Collection/HALO Book 27 - Oblivion (2023)" 2024-07-18 18:55:18.128 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" changed: [mtime,ctime,size,lastScan] 2024-07-18 18:55:18.282 DEBUG [AudioFileScanner] Smart track order for "Halo Collection/HALO Book 27 - Oblivion (2023)" using track key trackNumFromMeta 2024-07-18 18:55:18.282 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": "HALO Book 27 - Oblivion (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata] 2024-07-18 18:55:18.283 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b 2024-07-18 18:55:18.285 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json" 2024-07-18 18:55:18.298 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json" ``` </p> </details> <details><summary>Here is the log from book 34: </summary> <p> ``` 2024-07-18 18:54:39.049 INFO [AudioMetadataManager] Queueing embed metadata for audiobook "HALO: Outcasts" 2024-07-18 18:55:12.146 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Outcasts". 2024-07-18 18:55:12.150 DEBUG [ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/1add7ba9-ace6-461b-ad52-ecffd8d5dd9b/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.tmp.m4b 2024-07-18 18:55:17.379 DEBUG [ffmpegHelpers] ffmpeg stderr: Metadata: title : Outcasts - Part 11 Chapter #1:11: start 38094.234000, end 41222.986000 Metadata: title : Outcasts - Part 12 Chapter #1:12: start 41222.986000, end 45691.219000 Metadata: title : Outcasts - Part 13 Input #2, image2, from '/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/cover.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: 99709 kb/s Stream #2:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 2400x2400 [SAR 1:1 DAR 1:1], 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #2:0 -> #0:1 (copy) Output #0, mp4, to '/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.tmp.m4b': Metadata: title : HALO: Outcasts artist : Troy Denning album_artist : Troy Denning album : HALO: Outcasts: HALO, Book 34 TIT3 : HALO, Book 34 genre : Literature & Fiction; Science Fiction & Fantasy date : 2023 comment : The year 2559. Formerly one of the Covenant’s greatest and most fearsome warriors, Arbiter Thel ‘Vadam is now allied with his former human enemies while deeply entrenched in leading the Sangheili people to a new era of unification. But his aspirations description : The year 2559. Formerly one of the Covenant’s greatest and most fearsome warriors, Arbiter Thel ‘Vadam is now allied with his former human enemies while deeply entrenched in leading the Sangheili people to a new era of unification. But his aspirations composer : Scott Brick copyright : Simon & Schuster Audio / Halo Books publisher : Simon & Schuster Audio / Halo Books TRACKTOTAL : 1 grouping : Halo #34 major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 2023-09-06T05:48:50.000000Z track : 1 media_type : 2 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 3147.560000 Metadata: title : Outcasts - Part 01 Chapter #0:1: start 3147.560000, end 5862.271000 Metadata: title : Outcasts - Part 02 Chapter #0:2: start 5862.271000, end 9305.981000 Metadata: title : Outcasts - Part 03 Chapter #0:3: start 9305.981000, end 13526.651000 Metadata: title : Outcasts - Part 04 Chapter #0:4: start 13526.651000, end 17151.103000 Metadata: title : Outcasts - Part 05 Chapter #0:5: start 17151.103000, end 20126.569000 Metadata: title : Outcasts - Part 06 Chapter #0:6: start 20126.569000, end 22276.199000 Metadata: title : Outcasts - Part 07 Chapter #0:7: start 22276.199000, end 26412.729000 Metadata: title : Outcasts - Part 08 Chapter #0:8: start 26412.729000, end 29979.920000 Metadata: title : Outcasts - Part 09 Chapter #0:9: start 29979.920000, end 34363.804000 Metadata: title : Outcasts - Part 10 Chapter #0:10: start 34363.804000, end 38094.234000 Metadata: title : Outcasts - Part 11 Chapter #0:11: start 38094.234000, end 41222.986000 Metadata: title : Outcasts - Part 12 Chapter #0:12: start 41222.986000, end 45691.219000 Metadata: title : Outcasts - Part 13 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 63 kb/s (default) Metadata: creation_time : 2023-09-06T05:48:50.000000Z handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Progressive) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2400x2400 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 36608KiB time=01:18:40.50 bitrate= 63.5kbits/s speed=9.44e+03x size= 75264KiB time=02:41:20.65 bitrate= 63.7kbits/s speed=9.68e+03x size= 114688KiB time=04:05:08.95 bitrate= 63.9kbits/s speed=9.8e+03x size= 154112KiB time=05:29:19.25 bitrate= 63.9kbits/s speed=9.88e+03x size= 192000KiB time=06:50:03.51 bitrate= 63.9kbits/s speed=9.84e+03x size= 226560KiB time=08:04:03.89 bitrate= 63.9kbits/s speed=9.68e+03x size= 265216KiB time=09:26:23.23 bitrate= 63.9kbits/s speed=9.71e+03x size= 303616KiB time=10:48:14.74 bitrate= 63.9kbits/s speed=9.72e+03x size= 342016KiB time=12:10:40.57 bitrate= 63.9kbits/s speed=9.74e+03x [out#0/mp4 @ 0x7c92e40] video:487KiB audio:356787KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 2.154112% size= 364969KiB time=00:00:00.04 bitrate=74745739.8kbits/s speed=0.00788x 2024-07-18 18:55:18.110 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b" 2024-07-18 19:00:05.526 DEBUG [LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" key "mtime" changed from "1721347163187" to "1721350518054" 2024-07-18 19:00:05.526 DEBUG [LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" key "ctime" changed from "1721347163187" to "1721350518054" 2024-07-18 19:00:05.526 DEBUG [LibraryScan] "mediaAudiobooks": Library file "HALO 34 - Outcasts (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)" key "mtimeMs" changed from "1721347162589" to "1721350517429" 2024-07-18 19:00:05.526 DEBUG [LibraryScan] "mediaAudiobooks": Library file "HALO 34 - Outcasts (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)" key "ctimeMs" changed from "1721347162589" to "1721350517429" 2024-07-18 19:00:05.527 DEBUG [LibraryScan] "mediaAudiobooks": New library file found with path "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/Thumbs.db" for library item "Halo Collection/HALO Book 34 - Outcasts (2023)" 2024-07-18 19:00:05.527 DEBUG [LibraryScan] "mediaAudiobooks": Library item "Halo Collection/HALO Book 34 - Outcasts (2023)" changed: [mtime,ctime,size,lastScan] 2024-07-18 19:00:05.656 DEBUG [AudioFileScanner] Smart track order for "Halo Collection/HALO Book 34 - Outcasts (2023)" using track key trackNumFromMeta 2024-07-18 19:00:05.657 DEBUG [LibraryScan] "mediaAudiobooks": "HALO Book 34 - Outcasts (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata] 2024-07-18 19:00:05.657 DEBUG [LibraryScan] "mediaAudiobooks": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/HALO 34 - Outcasts (2023) by Troy Denning.m4b 2024-07-18 19:00:05.659 DEBUG [LibraryScan] "mediaAudiobooks": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/metadata.json" 2024-07-18 19:00:05.668 DEBUG [LibraryScan] "mediaAudiobooks": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 34 - Outcasts (2023)/metadata.json" ``` </p> </details>
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

I just ran book 27 individually and it succeeded but showed an error anyway:

Book 27 run individually

2024-07-18 19:07:30.060

INFO

[AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Oblivion".

2024-07-18 19:07:30.065

DEBUG

[ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/dfe1787b-a46c-4e0a-92a5-f977705170b8/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 19:07:35.663

DEBUG

[ffmpegHelpers] ffmpeg stderr: minor_version : 512 compatible_brands: isomiso2mp41 track : 1 media_type : 2 gapless_playback: 1 Original Year : 2019 Original Date : 2019-09-24 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 98.499000 Metadata: title : 001 Chapter #0:1: start 98.499000, end 2112.226000 Metadata: title : 002 Chapter #0:2: start 2112.226000, end 3635.408000 Metadata: title : 003 Chapter #0:3: start 3635.408000, end 5521.217000 Metadata: title : 004 Chapter #0:4: start 5521.217000, end 7046.118000 Metadata: title : 005 Chapter #0:5: start 7046.118000, end 10391.045000 Metadata: title : 006 Chapter #0:6: start 10391.045000, end 11939.700000 Metadata: title : 007 Chapter #0:7: start 11939.700000, end 12536.546000 Metadata: title : 008 Chapter #0:8: start 12536.546000, end 14223.058000 Metadata: title : 009 Chapter #0:9: start 14223.058000, end 15860.645000 Metadata: title : 010 Chapter #0:10: start 15860.645000, end 18986.353000 Metadata: title : 011 Chapter #0:11: start 18986.353000, end 20177.235000 Metadata: title : 012 Chapter #0:12: start 20177.235000, end 21685.881000 Metadata: title : 013 Chapter #0:13: start 21685.881000, end 24068.969000 Metadata: title : 014 Chapter #0:14: start 24068.969000, end 27199.297000 Metadata: title : 015 Chapter #0:15: start 27199.297000, end 29719.382000 Metadata: title : 016 Chapter #0:16: start 29719.382000, end 30421.159000 Metadata: title : 017 Chapter #0:17: start 30421.159000, end 32641.822000 Metadata: title : 018 Chapter #0:18: start 32641.822000, end 33688.555000 Metadata: title : 019 Chapter #0:19: start 33688.555000, end 36304.747000 Metadata: title : 020 Chapter #0:20: start 36304.747000, end 38663.639000 Metadata: title : 021 Chapter #0:21: start 38663.639000, end 41357.502000 Metadata: title : 022 Chapter #0:22: start 41357.502000, end 43032.520000 Metadata: title : HALO: Oblivion: A Master Chief Story Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2560x2560 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 66560KiB time=01:12:48.53 bitrate= 124.8kbits/s speed=8.74e+03x size= 134656KiB time=02:26:48.37 bitrate= 125.2kbits/s speed=8.81e+03x size= 204288KiB time=03:42:32.35 bitrate= 125.3kbits/s speed=8.9e+03x size= 273664KiB time=04:57:43.29 bitrate= 125.5kbits/s speed=8.93e+03x size= 343808KiB time=06:14:03.92 bitrate= 125.5kbits/s speed=8.98e+03x size= 410112KiB time=07:26:17.80 bitrate= 125.5kbits/s speed=8.92e+03x size= 479744KiB time=08:41:51.11 bitrate= 125.5kbits/s speed=8.94e+03x size= 547840KiB time=09:56:01.86 bitrate= 125.5kbits/s speed=8.94e+03x size= 617472KiB time=11:11:35.72 bitrate= 125.5kbits/s speed=8.95e+03x [out#0/mp4 @ 0x6b54ac0] video:558KiB audio:659716KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 1.097903% size= 667523KiB time=00:00:00.04 bitrate=136708620.4kbits/s speed=0.00731x

2024-07-18 19:07:37.547

INFO

[AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b"

2024-07-18 19:07:37.547

DEBUG

[Watcher] File Added /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 19:07:37.547

DEBUG

[Watcher] Modified file in library "mediaAudiobooks" and folder "83c8e24c-03aa-4fdd-b623-c129f9c66fa5" with relPath "/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b"

2024-07-18 19:07:37.550

ERROR

[fileUtils] Failed to getFileMtimeMs Error: ENOENT: no such file or directory, stat '/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b'

2024-07-18 19:07:39.857

DEBUG

[Watcher] File Removed /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b

2024-07-18 19:07:47.558

DEBUG

[LibraryScanner] Folder update for relative path "Halo Collection/HALO Book 27 - Oblivion (2023)" is in library item "HALO: Oblivion" - scan for updates

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtime" changed from "1721350486085" to "1721351257437"

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctime" changed from "1721350486085" to "1721351257437"

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "size" changed from "683543078" to "683543102"

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtimeMs" changed from "1721350554062" to "1721351255760"

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctimeMs" changed from "1721350554062" to "1721351255760"

2024-07-18 19:07:47.565

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" changed: [mtime,ctime,size,lastScan]

2024-07-18 19:07:47.695

DEBUG

[AudioFileScanner] Smart track order for "Halo Collection/HALO Book 27 - Oblivion (2023)" using track key trackNumFromMeta

2024-07-18 19:07:47.695

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": "HALO Book 27 - Oblivion (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata]

2024-07-18 19:07:47.695

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b

2024-07-18 19:07:47.697

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json"

2024-07-18 19:07:47.706

DEBUG

[Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json"

@EnduringGuerila commented on GitHub (Jul 19, 2024): I just ran book 27 individually and it succeeded but showed an error anyway: <details><summary>Book 27 run individually</summary> <p> ``` 2024-07-18 19:07:30.060 INFO [AudioMetadataManager] Starting metadata embed task Embedding metadata in audiobook "HALO: Oblivion". 2024-07-18 19:07:30.065 DEBUG [ffmpegHelpers] Spawned Ffmpeg with command: ffmpeg -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b -i /usr/share/audiobookshelf/metadata/cache/items/dfe1787b-a46c-4e0a-92a5-f977705170b8/ffmetadata.txt -i /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/cover.jpg -y -map 0:a -map_metadata 1 -map_metadata 0 -map_chapters 1 -c copy -metadata track=1 -f mp4 -map 2:v -disposition:v:0 attached_pic -metadata:s:v title=Cover -metadata:s:v comment=Cover /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 19:07:35.663 DEBUG [ffmpegHelpers] ffmpeg stderr: minor_version : 512 compatible_brands: isomiso2mp41 track : 1 media_type : 2 gapless_playback: 1 Original Year : 2019 Original Date : 2019-09-24 encoder : Lavf61.4.100 Chapters: Chapter #0:0: start 0.000000, end 98.499000 Metadata: title : 001 Chapter #0:1: start 98.499000, end 2112.226000 Metadata: title : 002 Chapter #0:2: start 2112.226000, end 3635.408000 Metadata: title : 003 Chapter #0:3: start 3635.408000, end 5521.217000 Metadata: title : 004 Chapter #0:4: start 5521.217000, end 7046.118000 Metadata: title : 005 Chapter #0:5: start 7046.118000, end 10391.045000 Metadata: title : 006 Chapter #0:6: start 10391.045000, end 11939.700000 Metadata: title : 007 Chapter #0:7: start 11939.700000, end 12536.546000 Metadata: title : 008 Chapter #0:8: start 12536.546000, end 14223.058000 Metadata: title : 009 Chapter #0:9: start 14223.058000, end 15860.645000 Metadata: title : 010 Chapter #0:10: start 15860.645000, end 18986.353000 Metadata: title : 011 Chapter #0:11: start 18986.353000, end 20177.235000 Metadata: title : 012 Chapter #0:12: start 20177.235000, end 21685.881000 Metadata: title : 013 Chapter #0:13: start 21685.881000, end 24068.969000 Metadata: title : 014 Chapter #0:14: start 24068.969000, end 27199.297000 Metadata: title : 015 Chapter #0:15: start 27199.297000, end 29719.382000 Metadata: title : 016 Chapter #0:16: start 29719.382000, end 30421.159000 Metadata: title : 017 Chapter #0:17: start 30421.159000, end 32641.822000 Metadata: title : 018 Chapter #0:18: start 32641.822000, end 33688.555000 Metadata: title : 019 Chapter #0:19: start 33688.555000, end 36304.747000 Metadata: title : 020 Chapter #0:20: start 36304.747000, end 38663.639000 Metadata: title : 021 Chapter #0:21: start 38663.639000, end 41357.502000 Metadata: title : 022 Chapter #0:22: start 41357.502000, end 43032.520000 Metadata: title : HALO: Oblivion: A Master Chief Story Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] Stream #0:1: Video: mjpeg (Baseline) (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 2560x2560 [SAR 1:1 DAR 1:1], q=2-31, 25 fps, 25 tbr, 12800 tbn (attached pic) Metadata: title : Cover comment : Cover Press [q] to stop, [?] for help size= 66560KiB time=01:12:48.53 bitrate= 124.8kbits/s speed=8.74e+03x size= 134656KiB time=02:26:48.37 bitrate= 125.2kbits/s speed=8.81e+03x size= 204288KiB time=03:42:32.35 bitrate= 125.3kbits/s speed=8.9e+03x size= 273664KiB time=04:57:43.29 bitrate= 125.5kbits/s speed=8.93e+03x size= 343808KiB time=06:14:03.92 bitrate= 125.5kbits/s speed=8.98e+03x size= 410112KiB time=07:26:17.80 bitrate= 125.5kbits/s speed=8.92e+03x size= 479744KiB time=08:41:51.11 bitrate= 125.5kbits/s speed=8.94e+03x size= 547840KiB time=09:56:01.86 bitrate= 125.5kbits/s speed=8.94e+03x size= 617472KiB time=11:11:35.72 bitrate= 125.5kbits/s speed=8.95e+03x [out#0/mp4 @ 0x6b54ac0] video:558KiB audio:659716KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 1.097903% size= 667523KiB time=00:00:00.04 bitrate=136708620.4kbits/s speed=0.00731x 2024-07-18 19:07:37.547 INFO [AudioMetadataManager] Successfully tagged audio file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b" 2024-07-18 19:07:37.547 DEBUG [Watcher] File Added /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 19:07:37.547 DEBUG [Watcher] Modified file in library "mediaAudiobooks" and folder "83c8e24c-03aa-4fdd-b623-c129f9c66fa5" with relPath "/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b" 2024-07-18 19:07:37.550 ERROR [fileUtils] Failed to getFileMtimeMs Error: ENOENT: no such file or directory, stat '/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b' 2024-07-18 19:07:39.857 DEBUG [Watcher] File Removed /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.tmp.m4b 2024-07-18 19:07:47.558 DEBUG [LibraryScanner] Folder update for relative path "Halo Collection/HALO Book 27 - Oblivion (2023)" is in library item "HALO: Oblivion" - scan for updates 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtime" changed from "1721350486085" to "1721351257437" 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctime" changed from "1721350486085" to "1721351257437" 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "size" changed from "683543078" to "683543102" 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "mtimeMs" changed from "1721350554062" to "1721351255760" 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library file "HALO 27 - Oblivion (2023) by Troy Denning.m4b" for library item "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)" key "ctimeMs" changed from "1721350554062" to "1721351255760" 2024-07-18 19:07:47.565 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Library item "Halo Collection/HALO Book 27 - Oblivion (2023)" changed: [mtime,ctime,size,lastScan] 2024-07-18 19:07:47.695 DEBUG [AudioFileScanner] Smart track order for "Halo Collection/HALO Book 27 - Oblivion (2023)" using track key trackNumFromMeta 2024-07-18 19:07:47.695 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": "HALO Book 27 - Oblivion (2023)" Getting metadata with precedence [folderStructure, audioMetatags, nfoFile, txtFiles, opfFile, absMetadata] 2024-07-18 19:07:47.695 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": setChapters: Using embedded chapters in first audio file /mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/HALO 27 - Oblivion (2023) by Troy Denning.m4b 2024-07-18 19:07:47.697 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Found metadata file "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json" 2024-07-18 19:07:47.706 DEBUG [Scan] "Halo Collection/HALO Book 27 - Oblivion (2023)": Success saving abmetadata to "/mnt/media/Audiobooks/Halo Collection/HALO Book 27 - Oblivion (2023)/metadata.json" ``` </p> </details>
Author
Owner

@EnduringGuerila commented on GitHub (Jul 19, 2024):

I finished embedding the updated metadata in all of the files individually and I did not get another failure for going to quickly. I can do further testing but I wanted to finally have good, updated versions of these 35 books...

@EnduringGuerila commented on GitHub (Jul 19, 2024): I finished embedding the updated metadata in all of the files individually and I did not get another failure for going to quickly. I can do further testing but I wanted to finally have good, updated versions of these 35 books...
Author
Owner

@user2223 commented on GitHub (Jul 22, 2024):

Chiming in, I have noticed that metadata doesn't seem to be written while creating an M4B file since the 2.11 update.

I just converted a few hundred audiobooks to M4B after the M4B creation got fixed, and now all new books are missing embedded metadata. It seems to work fine using Quick Embed afterwards.

One thing that I noticed is that the ASIN is not saved in the metadata anymore. Subtitle and title get merged, language and publisher are missing, and tags are still not embedded.
It would be really nice to have the option to embed all metadata that is available in ABS, especially ASIN, series, and title + subtitle, which are quite important to me.

Here are Screenshots, the file with the tags was created using an older version of abs, the one without tags is the state after creating the m4b file. The metadata in abs is filled for both audiobooks.

Here is a file that hat the metadata set as expected (this is the result when using an abs version older than 2.10):
A

This is what the tags look like right after creating the m4b:
B

This Screenshot shows the metadata of the second audiobook after a quick embed. There are Tags missing compared to the first picture.
C

My current workaround is:

  1. tick the box to store metadata with audiobook.
  2. create a tag for all new audiobooks (this writes the metadata.json to the audiobook folder).
  3. use an old backup of my abs vm (running version 2.9.0) and scan the library with the metadata.json as first metadata priority.
  4. Run a quick embed on all audiobooks with the tag.

This results in files with the correct metadata (some covers are off due to multiple image files in the folder but that is not a big issue.

@user2223 commented on GitHub (Jul 22, 2024): Chiming in, I have noticed that metadata doesn't seem to be written while creating an M4B file since the 2.11 update. I just converted a few hundred audiobooks to M4B after the M4B creation got fixed, and now all new books are missing embedded metadata. It seems to work fine using Quick Embed afterwards. One thing that I noticed is that the ASIN is not saved in the metadata anymore. Subtitle and title get merged, language and publisher are missing, and tags are still not embedded. It would be really nice to have the option to embed all metadata that is available in ABS, especially ASIN, series, and title + subtitle, which are quite important to me. Here are Screenshots, the file with the tags was created using an older version of abs, the one without tags is the state after creating the m4b file. The metadata in abs is filled for both audiobooks. Here is a file that hat the metadata set as expected (this is the result when using an abs version older than 2.10): ![A](https://github.com/user-attachments/assets/c5487f89-230f-489f-950d-2b084b519d5d) This is what the tags look like right after creating the m4b: ![B](https://github.com/user-attachments/assets/4218d7d5-ed42-4eda-83a3-7aec2efcc8b4) This Screenshot shows the metadata of the second audiobook after a quick embed. There are Tags missing compared to the first picture. ![C](https://github.com/user-attachments/assets/dcf8ccc4-fa03-41c3-a395-cf9fe3df5d96) My current workaround is: 1. tick the box to store metadata with audiobook. 2. create a tag for all new audiobooks (this writes the metadata.json to the audiobook folder). 3. use an old backup of my abs vm (running version 2.9.0) and scan the library with the metadata.json as first metadata priority. 4. Run a quick embed on all audiobooks with the tag. This results in files with the correct metadata (some covers are off due to multiple image files in the folder but that is not a big issue.
Author
Owner

@katertier commented on GitHub (Aug 4, 2024):

Can confirm:

2.11.0, Docker 4.33.0 on Mac OS X:

These are shown when I used Extended Tags dialogue in MP3Tag, file is an m4v (iso2mp41M4A)

Before (set with MP3Tag):

ALBUM Sakura
ALBUMARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword
ALBUMSORT Sakura - Intellectual Property
ASIN 1400193001
COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to kill at their biddi...
COMPOSER Emily Woo Zeller
GENRE Science Fiction & Fantasy / Fantasy / Superhero
GENRE Science Fiction & Fantasy / Science Fiction / Cyberpunk
GENRE Science Fiction & Fantasy / Science Fiction / Dystopian
ITUNESGAPLESS 1
ITUNESMEDIATYPE Audiobook
PUBLISHER Tantor Audio
RATING 4.5
RELEASETIME 2019-11-26
SUBTITLE Intellectual Property
YEAR 2019

After (set with Audiobookshelf)

ALBUM Sakura: Intellectual Property
ALBUMARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword
ARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword
COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to...
COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to...
COMPOSER Emily Woo Zeller
COPYRIGHT Tantor Audio
GENRE Science Fiction & Fantasy; Fantasy
ITUNESGAPLESS 1
ITUNESMEDIATYPE Audiobook
TITLE Sakura
TRACK 1
YEAR 2019

@katertier commented on GitHub (Aug 4, 2024): Can confirm: 2.11.0, Docker 4.33.0 on Mac OS X: These are shown when I used Extended Tags dialogue in MP3Tag, file is an m4v (iso2mp41M4A) Before (set with MP3Tag): ALBUM Sakura ALBUMARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword ALBUMSORT Sakura - Intellectual Property ASIN 1400193001 COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to kill at their biddi... COMPOSER Emily Woo Zeller GENRE Science Fiction & Fantasy / Fantasy / Superhero GENRE Science Fiction & Fantasy / Science Fiction / Cyberpunk GENRE Science Fiction & Fantasy / Science Fiction / Dystopian ITUNESGAPLESS 1 ITUNESMEDIATYPE Audiobook PUBLISHER Tantor Audio RATING 4.5 RELEASETIME 2019-11-26 SUBTITLE Intellectual Property YEAR 2019 After (set with Audiobookshelf) ALBUM Sakura: Intellectual Property ALBUMARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword ARTIST Zachary Hill, Patrick M. Tracy, Paul Genesse, Larry Correia - foreword COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to... COMMENT Sakura is the most famous android rock star of all time. When a secret cabal hacks her system, she's transformed into a deadly assassin, forced to... COMPOSER Emily Woo Zeller COPYRIGHT Tantor Audio GENRE Science Fiction & Fantasy; Fantasy ITUNESGAPLESS 1 ITUNESMEDIATYPE Audiobook TITLE Sakura TRACK 1 YEAR 2019
Author
Owner

@advplyr commented on GitHub (Sep 11, 2024):

Still not sure what to do here but some updates were made to m4b embed since this issue was opened.
Is this still a problem on v2.13.4?

@advplyr commented on GitHub (Sep 11, 2024): Still not sure what to do here but some updates were made to m4b embed since this issue was opened. Is this still a problem on v2.13.4?
Author
Owner

@EnduringGuerila commented on GitHub (Sep 17, 2024):

It was at least partially fixed back on July 18th and I haven't tested much since then as it was mostly working. I might find some time to do more testing just to see if I can recreate any issues.

@EnduringGuerila commented on GitHub (Sep 17, 2024): It was at least partially fixed back on July 18th and I haven't tested much since then as it was mostly working. I might find some time to do more testing just to see if I can recreate any issues.
Author
Owner

@user2223 commented on GitHub (Sep 17, 2024):

The conversion works and does not clear the metadata anymore, the resulting metadata is still missing the ASIN for example.
This is the metadata using the latest version of ABS:
grafik

Here is the Metadata with 2.8.1:

grafik

The Metadata in ABS is the same for both.
grafik

@user2223 commented on GitHub (Sep 17, 2024): The conversion works and does not clear the metadata anymore, the resulting metadata is still missing the ASIN for example. This is the metadata using the latest version of ABS: ![grafik](https://github.com/user-attachments/assets/c56e56e1-34f1-4a44-b758-12b202054aaf) Here is the Metadata with 2.8.1: ![grafik](https://github.com/user-attachments/assets/11244fb4-1bcc-405f-a6d6-4a8843c1407c) The Metadata in ABS is the same for both. ![grafik](https://github.com/user-attachments/assets/c1540c1b-4a65-45a2-a38e-e01e97c361de)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2032