TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Discovery: pseudo MP3 playlists in the MS!!

Discussion in 'Model S: User Interface' started by kirkbauer, Nov 6, 2015.

  1. kirkbauer

    kirkbauer Member

    Joined:
    May 31, 2015
    Messages:
    490
    Location:
    Atlanta, GA
    So like many of you I have been frustrated by the limited flexibility of the media player in the MS. For example, I have a directory structure of music from the 1960s but there is no way to listed to a random song from this directory structure because there is one folder per artist inside my 1960s folder. I can choose the "Oldies" genre but then it gets other music as well.

    So what I found out is that the MS supports the ID3v2 TCON tag and uses that for the Genre (but only if there is no ID3v1 info present, see below). The neat news is that the TCON tag allows you to use arbitrary names for your genres, so you are not limited to the official set of them. So you could have a "Driving Fast" genre if you wanted to :)

    So basically I was able to put all of my 1960s files in the "1960s" Genre and now it shows up when I go into Genres in my MS. At a high level the process is simple if you have the ability to use any sort of automated tool for ID3v2 tagging:

    1) Add or update the ID3v2 TCON value to the "genre" string that you want
    2) Delete the ID3v1 info completely from the file (you probably want to make sure it already has ID3v2 artist and such set)

    The one downside is that even though ID3v2 allows a song to be in multiple genres, the MS only seems to use the first one. So each of your songs can only be in one "genre" playlist. But since we can also play by artist and directory it should allow for some good flexibility on what you listen to.

    For the Linux people in the room I can give you the steps I used to do this, using the Linux CLI tool "id3v2".

    1) First convert v1 tags to v2: id3v2 -C <filename>
    2) Next add TCON Genre: id3v2 --TCON "Whatever You Want" <filename>
    3) Finally, delete v1 tags: id3v2 -s <filename>

    Note that whenever this particular tool adds the TCON tag it recreates the v1 tags as well which the MS uses instead of your TCON tag. So for me the last step has to be to delete the v1 tags. Other tools might work differently.

    If you have a directory structure like me and you want to update the genre for everything in the directory, just do this:

    Code:
    cd <directory>
    find . -name '*.mp3' | while read file ; do
       id3v2 -C "$file"
       id3v2 --TCON "New Genre" "$file"
       id3v2 -s "$file"
    done
    
     
  2. SW2Fiddler

    SW2Fiddler Bannd Member

    Joined:
    Mar 19, 2014
    Messages:
    1,693
    Location:
    Houston TX
    #2 SW2Fiddler, Nov 6, 2015
    Last edited: Nov 6, 2015
    I like this a lot.
    Lots of folks use FLAC files, I'm no coding whiz but would employ logic to catch those too. Do they tag similarly??
    I'd assume the directory would contain both those filetypes (and maybe more?)...
     
  3. kirkbauer

    kirkbauer Member

    Joined:
    May 31, 2015
    Messages:
    490
    Location:
    Atlanta, GA
    I don't know about FLAC specifically but it looks like it support ID3v2 as well.
     
  4. Dbitter1

    Dbitter1 Journeyman Member

    Joined:
    Dec 12, 2014
    Messages:
    201
    Location:
    Chicago, IL
    ... since you are volunteering, mind if I ask how you sync your stuff to a USB drive to take out to the car with you?

    I'm assuming if you are using CLIs to update tags, that means you have a master storage somewhere. Adding one song to somewhere in the tree then remembering where it was the next time you want to bring it out to your car is a PITA (IMHO).

    My guess is you have something cooler to share than the usual "OMG! My iTunez do3sn't sink! Suxxxx0r!" posts on this subject...

    Thanks in advance!
     
  5. kirkbauer

    kirkbauer Member

    Joined:
    May 31, 2015
    Messages:
    490
    Location:
    Atlanta, GA
    I haven't got that far (still trying to get my structure figured out, etc), but the "rsync" command is the way to go on this... it can be a little bit tricky on the parameters, but it can quickly copy only changes into a directory.
     
  6. AmpedRealtor

    AmpedRealtor Active Member

    Joined:
    Jun 30, 2013
    Messages:
    4,710
    Location:
    Buckeye, AZ
    Someone needs to tell Elon how badly the media player sucks. I seriously don't think he knows.
     
  7. SW2Fiddler

    SW2Fiddler Bannd Member

    Joined:
    Mar 19, 2014
    Messages:
    1,693
    Location:
    Houston TX
    Someone needs to get Elon's significant other into podcasts and USB music libraries!
     
  8. David29

    David29 Member

    Joined:
    Aug 1, 2015
    Messages:
    563
    Location:
    DEDHAM, MA
    #8 David29, Dec 18, 2015
    Last edited: Dec 18, 2015
    This sounds great, as I too would like to be able to edit the genre field on some of my music files. I have many blanks, probably because of copying CDs and losing the data along the way.
    But, sorry, I am not a coder and don't use Linux. So I am a bit lost in the technical details of this discussion.
    Does anyone know if there is an efficient way to edit the "Genre" column in the music file properties using Windows software? Windows Explorer allows me to make the edit, but one song at a time, and that is too tedious and time consuming.

    Any suggestions for someone that isn't as tech-savvy? (And I also do not use iTunes and many of the suggestions in other threads revolve around that.)
    Thanks!
     
  9. EdA

    EdA Model S P-2540

    Joined:
    Mar 24, 2011
    Messages:
    1,889
    Location:
    Massachusetts
    I have not tried it but...ID3 Tag Editor
     
  10. David29

    David29 Member

    Joined:
    Aug 1, 2015
    Messages:
    563
    Location:
    DEDHAM, MA
    Thanks! I'll give it a try. I had seen it referred to earlier, but only in the context of much more technical discussions so I wasn't sure it would work with Windows, and I see it does.
     
  11. EdA

    EdA Model S P-2540

    Joined:
    Mar 24, 2011
    Messages:
    1,889
    Location:
    Massachusetts
    I hope it has a "batch" mode versus file-by-file.
     
  12. David29

    David29 Member

    Joined:
    Aug 1, 2015
    Messages:
    563
    Location:
    DEDHAM, MA
    I do not think it has a batch mode, unfortunately. Also, I tried it on one file, and it only seemed to save changes to the genre, not to the file name, etc. So that is disappointing. No instructions, no help file, so if I am doing it wrong there seems to be no way to tell.
    I will play with it some more, maybe after I get my cards and gifts finished!
     
  13. Dbitter1

    Dbitter1 Journeyman Member

    Joined:
    Dec 12, 2014
    Messages:
    201
    Location:
    Chicago, IL
    I use Winamp... but you have to find an older version, the current website is AFU (I guess they sold out...?).

    Very easy to use, edits the ID3 tags, very lightweight, runs on ANYTHING Win32+....
     
  14. Vince Cobelo

    Vince Cobelo Member

    Joined:
    Nov 1, 2015
    Messages:
    257
    Location:
    Palmetto, FL
    r u kiddin' me? And I thought I was a geek! :smile:
     

Share This Page