HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: zoliky on 2022-01-17 00:56:33

Title: Directory structure for organizing FLAC files.
Post by: zoliky on 2022-01-17 00:56:33
Hello, I'm currently using this folder structure for organizing my music:

Code: [Select]
+ Music/
    + Aerosmith
        + 1973 - Aerosmith
             - 01 - Track 01.flac
             - ...
        + 1974 - Get Your Wings
        + 1975 - Toys in the Attic
        + 1988 - Gems
     + Alphaville
     + Asia

I was thinking in getting rid of sub-folders and use a simpler structure, like so:

Code: [Select]
+ Music/
    + Aerosmith - Album - 1973 - Aerosmith
        - 01 - Track 01.flac
        - ...
    + Aerosmith - Album - 1974 - Get Your Wings
    + Aerosmith - Album - 1975 - Toys in the Attic
    + Aerosmith - Compilation - 1988 - Gems
    + Aerosmith - Compilation - 1989 - Best Of
    + Aerosmith - Single - 1994 - Crazy
    + Aerosmith - Single - 2001 - Fly Away From Here
    + Alphaville - Album - 1984 - Forever Young

If it's an MFSL or something special I will add a note like so:

Code: [Select]
     + Artist - Album - Name of album {MFLS Remaster}
     + Artist - Album - Name of album {DCC Remaster}
     + Artist - Album - Name of album {AFZ Remaster}
     + Artist - Album - Name of album {Vinyl}

The only downside of this method is that there will be a lot of folders inside the root Music folder. Even though I'm not sure if it's a downside.

Does any of you use a flat structure like this? Do you see anything wrong with it?
Title: Re: Directory structure for organizing FLAC files.
Post by: DVDdoug on 2022-01-17 02:30:33
It's entirely up to you!    Assuming your files are "tagged" your player software will take care of the "organization" and you can sort by artist, album, year, genre, etc.

Personally, I have top-level folders for broad-genres with most of my music in one called "Rock & Popular" and several specialty folders for soundtracks, Christmas Music, etc.    Then every artist has a sub-folder folder with a sub-folder for each album.  Oh, I also have a top-level folder for Various Artist compilations.  

For movies I include the release year in the file name but not with music, since it's in the metadata (tags).   And Greatest Hits & compilations have songs with different years.   (I try to research the original release year of the recording so that could be when the vinyl was released.)
Title: Re: Directory structure for organizing FLAC files.
Post by: Porcus on 2022-01-17 05:53:03
Get the albums sorted chronologically! And if you have, say, singles with the same name as the album, you can either take great care to use an album version tag that says CDS or CDM or CDEP or ... - or you can use the CDDB disc id (possibly like this (https://hydrogenaud.io/index.php?topic=121619.msg1006942#msg1006942))

Album artist {year} Album `albumversion ¶discnumber` CDDB DISC ID

I would use curly braces to distinguish from characters that occur in actual names, and you might use something else than the ` depending what you need available on your keyboard or ... for example,  ¨ or ¤ or ... you might want to avoid characters that would need to be escaped in the command-line, or you may choose not to care.
You can fill in more spaces if you like. And if you aren't afraid of unicodes, the EM QUAD (https://jkorpela.fi/chars/spaces.html).
And I would drop the ¶discnumber if the total number of discs is 1. Actually I delete the DISCNUMBER and TOTALDISCS tags for one-disc releases.
Title: Re: Directory structure for organizing FLAC files.
Post by: SimBun on 2022-01-17 09:51:01
I have a couple of underlying principles:


To that end I have a similar structure to your first one with a couple of tweaks:

I do however use foobar which simplifies/automates all of the above, so you do need to take your workflow into account.
Title: Re: Directory structure for organizing FLAC files.
Post by: Roseval on 2022-01-17 10:37:27
In the past I didn't care about the file system. Why bother if you have all kind of tags to browse and search your collection.

However, I use a toplevel folders like Classical, Pop, Jazz, Blues simply because I don't like multiple libraries (you have Zappa in Pop but also the Meridian Arts ensemble playing works but they are "classical") but like to filter. So filters like "Path contains /classical/" are a simple way to get classical only.

Occasionally albums are incomplete, some tracks are missing. Is this because they are missing or is it because most media players do think tracks belong to an album if Album and Artis are the same?
 I solved this by having the entire album in 1 folder.

Like wise Name might be in error e.g.
1 Andante
2 Andante
3 Finale
If you have a meaningful file name e.g.  2-string quartet no.2 - adagio, you know you have screwed up this tag.

Over time I realized that the file system can be of help when trouble shooting.
Title: Re: Directory structure for organizing FLAC files.
Post by: zoliky on 2022-01-17 13:40:52
Get the albums sorted chronologically! And if you have, say, singles with the same name as the album, you can either take great care to use an album version tag that says CDS or CDM or CDEP or ... - or you can use the CDDB disc id (possibly like this (https://hydrogenaud.io/index.php?topic=121619.msg1006942#msg1006942))

Album artist {year} Album `albumversion ¶discnumber` CDDB DISC ID

I would use curly braces to distinguish from characters that occur in actual names, and you might use something else than the ` depending what you need available on your keyboard or ... for example,  ¨ or ¤ or ... you might want to avoid characters that would need to be escaped in the command-line, or you may choose not to care.
You can fill in more spaces if you like. And if you aren't afraid of unicodes, the EM QUAD (https://jkorpela.fi/chars/spaces.html).
And I would drop the ¶discnumber if the total number of discs is 1. Actually I delete the DISCNUMBER and TOTALDISCS tags for one-disc releases.


Thank you so much. I appreciate your time.
Do you repeat the name of the artist in each folder, like so?

Code: [Select]
      + Music
          + First Artist
              + First Artist - YYYY - Album Name
              + First Artist - YYYY - Album Name
              + First Artist - YYYY - Album Name
          + Second Artist
              + Second Artist - YYYY - Album Name
              + Second Artist - YYYY - Album Name
              + Second Artist - YYYY - Album Name

The only advantage I think of is when I take out one album and put it on a different drive it makes sense to have the artist name in each folder.
Title: Re: Directory structure for organizing FLAC files.
Post by: zoliky on 2022-01-17 13:41:36
Get the albums sorted chronologically! And if you have, say, singles with the same name as the album, you can either take great care to use an album version tag that says CDS or CDM or CDEP or ... - or you can use the CDDB disc id (possibly like this (https://hydrogenaud.io/index.php?topic=121619.msg1006942#msg1006942))

Album artist {year} Album `albumversion ¶discnumber` CDDB DISC ID

I would use curly braces to distinguish from characters that occur in actual names, and you might use something else than the ` depending what you need available on your keyboard or ... for example,  ¨ or ¤ or ... you might want to avoid characters that would need to be escaped in the command-line, or you may choose not to care.
You can fill in more spaces if you like. And if you aren't afraid of unicodes, the EM QUAD (https://jkorpela.fi/chars/spaces.html).
And I would drop the ¶discnumber if the total number of discs is 1. Actually I delete the DISCNUMBER and TOTALDISCS tags for one-disc releases.


Thank you so much. I appreciate your time.
Do you repeat the name of the artist in each folder, like so?

Code: [Select]
      + Music
          + First Artist
              + First Artist - YYYY - Album Name
              + First Artist - YYYY - Album Name
              + First Artist - YYYY - Album Name
          + Second Artist
              + Second Artist - YYYY - Album Name
              + Second Artist - YYYY - Album Name
              + Second Artist - YYYY - Album Name

The only advantage I think of is when I take out one album and put it on a different drive where I don't have the same structure it makes sense to have the artist name in each folder.
Title: Re: Directory structure for organizing FLAC files.
Post by: Porcus on 2022-01-17 16:26:10
Do you repeat the name of the artist in each folder, like so?
I don't use such subfolders under artists. Even, each physical disc gets its own folder (see disc number) - that is a compromise, but one had to be made. For a deeper hierarchy and faster browsing of the drive, consider One folder for each first "letter" (starting with 0).
I use a separate root folder for classical music - where I by and large sort not by the performing "Artist", but by the composer. Also, I exclude that from my renaming scheme (my "common" one at least; if I want to use fb2k to rename it ... a portable version!) - because it would too often mess up with too long titles and everything.

(Oh I do use subfolders for bonus material, e.g. some download purchases come with a video - those subfolders of the album folder all have one and the same name, which I exclude from all fb2k renaming schemes.)



Title: Re: Directory structure for organizing FLAC files.
Post by: zoliky on 2022-01-17 17:06:06
Do you mean something like this?

Code: [Select]
    
+ Music/
      + A/
              + Aerosmith/
                      + YYYY - Album Name/
              + ASIA/
              + Alphaville/
       + B/
              + Bangles/
              + Bryan Adams/

  
Title: Re: Directory structure for organizing FLAC files.
Post by: Porcus on 2022-01-17 17:54:15
Do what you like! It also depends on how many albums you have, the first letter thing grows more useful when you have a ton of it.

Code: [Select]
µsic/
                            +0/
                                  + 2 Ton Predator {2001} Boogie ``9A0B410C
                                  + 2 Ton Predator {2003} Demon Dealer ``AC09670C
...
                            +O/
                                  + Opeth {1995} Orchid ``500F5907
                                  + Opeth {1995} Orchid `2003 remaster bonus`6310D608
                                  + Opeth {1995} Morningrise ``3D0F7D05
                                  + Opeth {1995} Morningrise `2003 remaster bonus`52117D06
...
                                  + Opeth {2001} Blackwater Park `2002 reissue bonus ¶1`650FC108
                                  + Opeth {2001} Blackwater Park `2002 reissue bonus ¶2`1F079703
...
                            +υarious/
...

Replace if necessary the second tickmark so that you get reissues appearing after the original. Your operating system and locale might have opinions on how to do that. I threw in a Greek letter for the various artists to get them at the end too.
Title: Re: Directory structure for organizing FLAC files.
Post by: dpr on 2022-01-17 21:15:48
Is this the folder to store the music you play or the original sources or both?

I'm tending to at least 3 hierarchies:
1)  the original rips
2) flacs that have all the metadata.
3) various ouput formats cross encoded from the flacs with the metadata.

3) gets loaded by players into thier own copy.

So all depends what you want / need to do


Title: Re: Directory structure for organizing FLAC files.
Post by: SimBun on 2022-01-18 10:16:05
Do what you like! It also depends on how many albums you have, the first letter thing grows more useful when you have a ton of it.

Code: [Select]
µsic/
                            +0/
                                  + 2 Ton Predator {2001} Boogie ``9A0B410C
                                  + 2 Ton Predator {2003} Demon Dealer ``AC09670C
...
                            +O/
                                  + Opeth {1995} Orchid ``500F5907
                                  + Opeth {1995} Orchid `2003 remaster bonus`6310D608
                                  + Opeth {1995} Morningrise ``3D0F7D05
                                  + Opeth {1995} Morningrise `2003 remaster bonus`52117D06
...
                                  + Opeth {2001} Blackwater Park `2002 reissue bonus ¶1`650FC108
                                  + Opeth {2001} Blackwater Park `2002 reissue bonus ¶2`1F079703
...
                            +υarious/
...

Replace if necessary the second tickmark so that you get reissues appearing after the original. Your operating system and locale might have opinions on how to do that. I threw in a Greek letter for the various artists to get them at the end too.

Surely this only makes it faster if you're only ever going to use a mouse? If you use a keyboard, or a combination of keyboard and mouse (click into Music then type the first two letters of the album artist) it'll not only be slower but you may not even find what you're after (if you forget that various artists isn't spelt with a v).

Given that you're even trying to get the folder names in chronological order of release, do you browse the folder structure to find things to play? Surely people are using foobar or an equivalent where it's easier to find the album, and simply right click 'Open containing folder' to get to the filesystem, if you ever need to?
Title: Re: Directory structure for organizing FLAC files.
Post by: Porcus on 2022-01-18 11:45:05
Surely this only makes it faster if you're only ever going to use a mouse?
Or touch screen, including on a mobile.
Or if you have so many albums that Windows Explorer (or whatever file browser you use) is slow rendering it.

It has some advantages, although I don't use it myself. I use foobar2000's library viewer by folder structure, and then I see each folder (with two lines for a double CD yes). I mean, why not have Windows Explorer show me stuff in a way comparable with what I see every day in fb2k ;-)
Also in fb2k's viewer, I can also just type "K" and it will - like Windows Explorer - send me to to the beginning of K. That's not in the search window! (Which I use even more often.)
Title: Re: Directory structure for organizing FLAC files.
Post by: SimBun on 2022-01-19 11:35:23
But you're unnecessarily mixing your display requirements with the storage layout, and that often leads to poor choices being made.

If we take your suggestion above, there's really no need to introduce that 0-Z grouping in the storage (unless you have a really flat folder structure and explorer takes forever to render as you suggest). I understand that you may want to see 0-Z when you're browsing via a mobile interface, but doing that anywhere else (filesystem or desktop app) is actually now slower (because you could have just typed the first letter in), and a good mobile interface already does that.
Using the Greek letter υ for various so that it sorts Various Artists to the bottom is again, purely a display issue, and you can achieve that with ALBUMARTISTSORT; by putting it into the filesystem you now need to code foobar to put Various Artists albums under υ (if you're using it for ripping/tagging) whilst also remembering to do that when browsing at a filesystem level.

Another common abuse I see is with using Genre at the root; not only are you limiting Genre to a single value per album (which you can achieve equally well by using the tag if you want), but quite often they'll also be limiting an albumartist to a single Genre as they want to group all of an albumartists works together, which is mad.

I appreciate that workflows can dictate structure, for instance Classical music is different enough to other music that it may be easier to separate them out for processing purposes, so I'm not suggesting anything other than xyz is bad, just to design the backend to fulful the backend requirements, not the frontend.
Title: Re: Directory structure for organizing FLAC files.
Post by: Porcus on 2022-01-19 12:03:54
and you can achieve that with ALBUMARTISTSORT
If you use foobar2000 to move and rename directories and files (which I do), then you can also use that very same pattern to name a parent folder (which I do not) - so that is off topic to the discussion.

Edit: you would have to tweak it to get 0 through 9 into the same folder, but that is just more code. Still you can have fb2k do the job based on, say, ALBUMARTISTSORT defaulting to %artist%.
Title: Re: Directory structure for organizing FLAC files.
Post by: JohnBuckWLD on 2022-01-22 05:53:23
When I brought up the issue on reddit (https://www.reddit.com/r/foobar2000/comments/hq9puq/if_you_use_embedded_art_i_cant_think_of_or_see/), saying the need to have artist folders and album subfolders was unnecessary because I have plenty of space to embed art, a few good points were made in favor of such a folder structure.

1. Less organized
2.  More difficult to transfer files
3. Embeds make bloated files
4.  Less conventional / familiar
5. Folders with larger contents cause bog downs in Windows

Regardless, I don't use folder and alphabetize to less than 2000 files per folder w/no issues and use file names formatted as %album artist% ▪ %originaldate% #%catalog number%»%disc number%-%track number% ▪ %title% and with long titled classical music: %composer% ▪ %composition year% ▪ %album%» #%discnumber%-%tracknumber%
Title: Re: Directory structure for organizing FLAC files.
Post by: SimBun on 2022-01-24 11:36:53
You say you're not having a problem yet you've had to introduce an extra folder layer to alphabetize your tracks to keep the file counts manageable, and no doubt as your collection grows you may need to manually tweak that further depending on how many artists/albums you have fall under each letter (at the moment you have 2 folders for A and 4 for B). What decides where to put the files i.e. do you do it manually, or do you have to maintain some code to handle it for you?
What do you do for Various Artists?

You're also having to use a lot of metadata (including catalog number) in the filenames just to keep them unique.

Whilst I do use albumartist and album as folder names I only use discnumber.tracknumber in the track names because given all the characters that can't be used in filenames they'll never perfectly reflect what I've got in the tags, so what's the point. For albumartist and album I translate (via foobar) the characters that can't be used into the closest unicode equivalent so it at least looks correct, but I have often thought about just hashing them just to make it even simpler.

Would be interested to hear about your experience of using that structure with various software packages.