I run a Plex instance on a VPS with limited storage and recently the metadata folder has started spiralling out of control. I’d like to run a jpg optimiser on the artist pics, album cover art, movie posters etc. Unfortunately metadata is stored in an opaque .bundle format. Does anyone have any experience with this format and how to get to its contents?

  • Fribbtastic@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Unfortunately metadata is stored in an opaque .bundle format. Does anyone have any experience with this format and how to get to its contents?

    There is not really something special here. There .bundle folders are just obfuscation and better internal handling in regards to Plex handling metadata. Example:

    Path: Metadata\Movies\0\01bad0a8841cf7fd32a7d6ace0b1dc8944ade78.bundle\Contents\_combined\posters

    • Metadata is the Folder containing all metadata
    • Movies would be the library type folder (not the name of the library so the Movies folder would contain all metadata for all libraries set to “Movies”)
    • 01bad0a8841.... is the obfuscated folder which contains the metadata for that particular library item

    everything in it is pretty self-explanatory. Art is for background images, posters is for posters etc.

    Looking at the example above the folder is only ~700kb large with a background and poster image.

    Running an “optimizer” wouldn’t really make much sense because, while you could shave some storage space off, the files are already still pretty low.

    As others have said, large plex config folders are usually the indication of the enabled feature to create thumbnails for the timeline preview. This can take a lot of storage capacity.

    So if you need to limit your space, this would be the first thing to look at.

    Another thing to keep in mind is that Plex optimizes and stores the Images for each client resolution accessing the server. This could also take some GBs when you have a few clients accessing the server and plex creating a different version of the poster/background. I currently have ~29k files in that folder taking up 5GB. Unfortunately, deleting them won’t do you much good except temporarily freeing up unused optimized versions because Plex will just create them again. The folder is plex\Library\Application Support\Plex Media Server\Cache\PhotoTranscoder.

    You could periodically clean it up but this could also impact the responsiveness of the interface loading the images.