-
Notifications
You must be signed in to change notification settings - Fork 351
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
Grouping msuic art works #2142
Comments
I don't understand. You want one directory that contains all the pictures? How is this directory organized? How does it look like? How does MPD pick up the files? Who manages that directory? |
Yes, I want to have a central place to contains all the pictures, either directory or in db
I am thinking something like following for directory: Directory strucutreroot folder: cover files path: Request image binaryTo get the cover file binary, requests with api similar to following
MPD scans the audio files to construct a db, so I think we can get cover binary from tag when reading audio files at the same time and save to certain place.
I expect MPD will manage the direcotry. Since MPD do increment scan, so it can save the album art to the directory as well. I think save the album binary to db should also work but by saving it to directory, it allows additional augmentation such as downscaling/compression more easily. Please let me know above approach is feasible. Thanks. |
If MPD writes to that directory, where does the data come from? You said from the music file, but MPD already supports reading pictures from music files. Why not keep it in the files, why create a copy? |
Today, per my understanding, for a client to display a screen for albums with album arts that cover all cases, we need to do
in this route, we need to request server two times on different thing, and on server, there will be one file read and one directory search. If we can save all image to a central place, either directory or database, then we can reduce the step to one requests on client and one binary transfer on server ? If MPD is already doing precompution on song metadata, why not also precompute album covers to save some ad-hoc CPU usage ? |
With your feature, how will the communication and the I/O look like? |
I might need more context on what exactly is communication and I/O mean in your context. But I think communication and I/O should be the same as |
This feature request does not make sense to me. What I can imagine is a new protocol command that uses readpicture and falls back to the albumart command in a transparent way for the client. This will reduce the complexity on the client side to implement the fallback and reduces one protocol round trip in the fallback case. |
Feature request
Currently, to read album art, need to rely on either have physical copy of image in correspond format under the song folder, or read image of a song from tag at runtime.
This produce some burden on displaying album images from the client end since it would requires multiple fallback handling and a few communication from clients to the server.
It would be better to have a dedicated location to store all album arts in a single directory similar to playlists which I think produce following benefits:
Thanks.
The text was updated successfully, but these errors were encountered: