this post was submitted on 26 Jun 2023
3 points (100.0% liked)

Plex

3991 readers
1 users here now

A community for discussing Plex Media Server. Plex Media Server is a smart software that makes playing movies, tv shows, and other media on your computer simple.

Ask questions, get support, and be part of the community here on Lemmy!

Join the c/Plex community on Matrix!

Rules

Rule 1 - Don't be a dick

Don't be a dick. This includes any kind of trolling, baiting, etc. Bigotry may result in an instant permaban.


Rule 2 - No misleading or non-descriptive titles

No misleading or non-descriptive titles. Try to be brief but detailed.


Rule 3 - Keep post and comments relevant

Posts must be related to Plex and Plex-related products, apps. etc. Try to keep comments relevant to the parent comment and to the post.


Rule 4 - Keep discussions of "media aqcuistion" limited to means and methods only.

Discussions regarding media acquisition should be limited to the "how" not the "what", as this is not the place to discuss piracy of specific media. There are other communities for that, and we don't want to get this community defederated from instances where it's a forbidden topic. Posts/comments discussing specific acts of piracy ("How do I find X show?" or "Where can I download Y film?")will be removed. For further clarification see this post


Rule 5 - No asking / offering Plex shares.

No asking / offering Plex shares. There are other communities for that.


Rule 6 - No low-effort / spam / meme posts

No low-effort / meme posts. These are considered spam, and will be removed. Repeat offenses may result in a ban.


Rule 7 - No referral / self-promotion / affiliate links, personal voting / campaigning / funding, or selling posts

No referral / self-promotion / affiliate links, personal voting / campaigning / funding, or selling posts. These are considered spam, and will be removed. Repeat offenses may result in a ban.


Useful Resources


^This^ ^is^ ^a^ ^community^ ^page^ ^and^ ^is^ ^not^ ^affiliated^ ^with^ ^Plex,^ ^Inc.^ ^in^ ^any^ ^way.^

founded 1 year ago
MODERATORS
 

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?

top 8 comments
sorted by: hot top controversial new old
[–] BrooklynMan@lemmy.ml 2 points 1 year ago (1 children)

turn off "Enable video preview thumbnails" in your TV and Movies libraries. these can consume enormous amounts of unnecessary data. These are the thumbnails you see while seeking forwards/backward during playback.

[–] Pieter@lemmy.ml 1 points 1 year ago

Already have this turned off unfortunately

[–] Fribbtastic@lemmy.world 1 points 1 year ago (1 children)

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.

[–] Pieter@lemmy.ml 1 points 1 year ago

Oh ok so just a folder structure with a name badges on it. The total storage on the server is 37GB so every MB counts. I have about 60k tracks (6k albums, 2.5k artists) so even small reductions in file size will give me more headroom. Definitely going to explore the Phototranscoder folder as well. The total size of the folder is 20GB+, I’m sure there’s some images from when I used an iPad before left in there.

[–] WallaWallaWa@beehaw.org 1 points 1 year ago (1 children)

If it's your posters, other artwork that has ballooned in size, you could give Plex Image Cleanup (https://metamanager.wiki/en/latest/home/scripts/image-cleanup.html) a look. Reduced by Plex size by tens of GBs, as I had multiple posters and backgrounds for almost all media.

[–] Pieter@lemmy.ml 1 points 1 year ago

Interesting. I know for certain albums I have at least 2 different images being proposed so some gains can be had there. The total drive space is 37GB so every MB counts at one point.

[–] MentalEdge@sopuli.xyz 0 points 1 year ago (1 children)

I'm not sure you can. Plex is pretty closed up about this stuff.

A quick google tells me you might be able to free up a good bit of space by disabling preview thumbnails if you're using those. Plex even has a support page about it.

[–] Pieter@lemmy.ml 1 points 1 year ago

Already have the thumbnails turned off unfortunately