Album duration possible?
|
07-08-2022, 16:54
Post: #21
|
|||
|
|||
RE: Album duration possible?
(07-08-2022 16:24)KreTR Wrote: I am reading this thread and I cannot understand it. Is it possible to display the duration of an album? How can this be done? The Lumïn app can give you this information in a couple of taps: long tap on any album track the track information window will show up the first line is the album name, tap on it … and the album with all tracks will show up, in the first line, on the right, the album duration is displayed (in minutes:seconds) |
|||
07-08-2022, 17:19
Post: #22
|
|||
|
|||
RE: Album duration possible?
(07-08-2022 16:24)KreTR Wrote: I am reading this thread and I cannot understand it. Is it possible to display the duration of an album? How can this be done? The responsibility to display album duration is that of your control point (I know BubbleUPnP does as does Lumin by the sounds of it), so if your control point of choice doesn't display it natively then the only way to display it would be as @entdgc suggested, create a tag and have MinimServer display it. If you don't think you can follow the instructions that I laid out in this thread, or you're not on Windows then I think you're out of luck without changing control points. |
|||
08-08-2022, 21:22
Post: #23
|
|||
|
|||
RE: Album duration possible?
The application I am using is DCS Mosaic. I can use a computer with Windows 10. Can I ask for a detailed step-by-step instruction on what to do to display the duration of the album. Best regards Robert
|
|||
08-08-2022, 23:33
(This post was last modified: 09-08-2022 08:44 by simbun.)
Post: #24
|
|||
|
|||
RE: Album duration possible?
(08-08-2022 21:22)KreTR Wrote: The application I am using is DCS Mosaic. I can use a computer with Windows 10. Can I ask for a detailed step-by-step instruction on what to do to display the duration of the album. Best regards Robert Before going through the process of adding the tags it might be worth manually adding the duration to an album and seeing what it looks like in your control point first. The instructions below assume that you're using a tag called album_duration, so add that tag with a value of '53:28' (the default format used in the code below) to all the files belonging to an album. I don't know where you want to see the album_duration tag, but let's add it to the album display: Code: itemTags: album_duration Restart MinimServer and find the album in your control point. If you're happy with how it looks, move on to generating the tag for the rest of your files. Here's a slightly updated version of the original instructions: Firstly, create a directory containing copies of your music to play with. It doesn't have to be much, a dozen albums or so is probably enough (if you get comfortable with foobar it can produce truncated versions of your files useful for testing as they contain all the tags but only occupy a fraction of the space). Download the latest foobar and the sqlite plugin.
Code: select album, The above example assumes that [album AND ("album artist" OR artist) AND date] uniquely identifies an album, if that's not the case let us know how you achieve this in your collection. You should see the total duration of each album in the grid below the sql. The query is using the tracks you've added to the Playlist window, so if you've only added half an album, the duration will reflect that. You can use 'from MediaLibrary' instead of 'from Playlist where playlist_index = active_playlist()' in the query and that will act on your whole library, but you need to be careful, and you'd need to add the tag to the 'SQLite viewer > MediaLibrary table' just as you did earlier to the 'Playlist table'. If you don't like the display of the duration it's possible to format it using printf e.g. Code: printf('%02dh:%02dm:%02ds', sum(length_seconds)/3600, (sum(length_seconds)%3600)/60, sum(length_seconds)%60) as album_duration Assuming that the sql above is working, now you just need to run the code that updates the tags on the files in the playlist. Code: drop table if exists albumSummary; At that point, check your files tags to make sure it hasn't changed anything unexpected. If you're using flac it should be fine, if mp3 then there are options to check to make sure it's writing the correct version (File > Preferences > Advanced > Tagging). Before you run it on any of your real music make sure you have a backup (which you should have anyway). |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)