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

[Bug]: some cover.jpg not showing in library #3863

Open
randall-66 opened this issue Jan 20, 2025 · 8 comments
Open

[Bug]: some cover.jpg not showing in library #3863

randall-66 opened this issue Jan 20, 2025 · 8 comments
Labels
bug Something isn't working unable to reproduce Issue is not yet reproducible waiting Waiting for OP

Comments

@randall-66
Copy link

randall-66 commented Jan 20, 2025

What happened?

I recently replaced all my covers and most of them are showing across the app. However some of them do not and yet all the ones that dont WILL show when i actually click on the book and am viewing it directly and not in library or homepage or series etc.

I have cleared abs cache browser cache removed the books and readded removed the whole library and readed and nothing seems to work.

Also tried turning off option to not prefer square cover and when i see "invalid cover" and click on that cover the pop up shows the cover perfectly.

All the cover.jpg were made in the exact same way and the "problemstic" files are viewable in any app i have tried and also as i said in abs if i am viewing the book like i am about to play it. And when i look at the one locally stored cover image, there it is! Am i missing some obvious caching issue?

What did you expect to happen?

Covers to be viewable across app not just on play screens

Steps to reproduce the issue

  1. Deleted all cover.jpg and cover.png files with powershell script from audiobooks shelf nas share
  2. Created new cover.jpg file for each book and saved
  3. Copied over all new cover.jpeg file from local audiobook folder backup

Audiobookshelf version

2.17.7

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Other (list in "Additional Notes" box)

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

None

Logs

Additional Notes

Running in proxmox lxc.

@randall-66 randall-66 added the bug Something isn't working label Jan 20, 2025
@advplyr
Copy link
Owner

advplyr commented Jan 20, 2025

Are the books that are showing the cover downloaded books?

@advplyr advplyr added waiting Waiting for OP unable to reproduce Issue is not yet reproducible labels Jan 20, 2025
@randall-66
Copy link
Author

No none of them are downloaded. In fact i removed the entire container and reinstalled into a new lxc so now on the brand new 2.18 from 2.17.7. Loaded up the library again and same issue. Here are a few screenshots to help. Especially in in ex 3, 4 and 5 you can see it shows invalid cover and that a local cover.jpg is stored and i an even click on the invalid cover and it pops up the cover image! Haha i feel like im going to kick myself for not seeing whatever it ends up being......

Image
Image
Image
Image
Image

@advplyr
Copy link
Owner

advplyr commented Jan 20, 2025

Can you check the server logs? The covers that show are most likely showing because it is the raw cover image whereas the covers on book cards are thumbnails auto-generated and stored in /metadata/cache/covers/

@randall-66
Copy link
Author

the logs seem to have alot of ffmpeg errors about resizing images (below).

[FfmpegHelpers] Resize Image Error Error: ffmpeg exited with code 1: Error while decoding stream #0:0: Invalid data found when processing input Cannot determine format of input stream 0:0 after EOF Error marking filters as finished Conversion failed! ffmpeg version 5.1.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2022 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 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 [mjpeg @ 0x7238a00] bits 148 is invalid [image2 @ 0x7237700] Could not find codec parameters for stream 0 (Video: mjpeg (Lossless), none(bt470bg/unknown/unknown), lossless): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, image2, from '/mnt/audiobooks/Jim Butcher/The Dresden Files/Vol. 17.1 - Little Things {James Marsters}/cover.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg (Lossless), none(bt470bg/unknown/unknown), lossless, 25 fps, 25 tbr, 25 tbn Stream mapping: Stream #0:0 -> #0:0 (mjpeg (native) -> webp (libwebp_anim)) Press [q] to stop, [?] for help [mjpeg @ 0x7239d00] bits 148 is invalid Error while decoding stream #0:0: Invalid data found when processing input Cannot determine format of input stream 0:0 after EOF Error marking filters as finished Conversion failed!

@advplyr
Copy link
Owner

advplyr commented Jan 20, 2025

What is the format of the cover images that don't load?

@advplyr
Copy link
Owner

advplyr commented Jan 20, 2025

I see in the ffmpeg error log it is jpeg. One thing you can try is to run the ffmpeg query that Abs is attempting to run.

ffmpeg -i "/mnt/audiobooks/Jim Butcher/The Dresden Files/Vol. 17.1 - Little Things {James Marsters}/cover.jpg" -vf scale=400:-1 output.webp

@randall-66
Copy link
Author

i tried that and it is failling.

This may be an issue though, the script i created (amateur here!) to pull embeded covers from the .m4b files i dont thin properly accounted for converting the image. This file is labeled as a jpeg but you can see the file command returned that it was PNG image data. Is that possibly my issue?

file "/mnt/audiobooks/Jim Butcher/The Dresden Files/Vol. 17.1 - Little Things {James Marsters}/cover.jpg"

Output:
/mnt/audiobooks/Jim Butcher/The Dresden Files/Vol. 17.1 - Little Things {James Marsters}/cover.jpg: PNG image data, 500 x 500, 8-bit/color RGB, non-interlaced

@advplyr
Copy link
Owner

advplyr commented Jan 21, 2025

Ah yeah that would be a problem. You can change the extension to png and run the ffmpeg command again to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unable to reproduce Issue is not yet reproducible waiting Waiting for OP
Projects
None yet
Development

No branches or pull requests

2 participants