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 and becoming a Supporting Member. For more info: Support TMC

Easy iTunes playlist syncing for Tesla USB flash drive

Discussion in 'Model S: User Interface' started by majorlance, Mar 5, 2015.

  1. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    Hmm, yeah that's incredibly slow. Sounds like a really slow USB drive, but can check by seeing how long a copy of the same files to the drive takes using the finder.
    The app shouldn't be much slower than dragging and dropping the file yourself. It has to be a little slower just because it has to look into each file to see if it is apple lossless, and has to do the convert if so. But that doesn't really take very long per file. If you find the app is more than twice as slow as just a raw copy of the same files, I'd like to know about it.
     
  2. Jeffgtx

    Jeffgtx Member

    Joined:
    May 20, 2014
    Messages:
    253
    Location:
    West coast
    Ra-san,

    seeing and interesting behavior that i dont think is intentional...

    when i play a song through the tesla song/artist/genre selection buttons, song title, artist and album are displayed and eventually some odd cover art shows up.

    if i play through the folder button, either going through music or playlists folder, the full filename will flash ("01-Song-Artist-etc) and then only the song title will show. no artist or album data.

    is that expected?

    Jeff
     
  3. ny888

    ny888 Member

    Joined:
    Jan 30, 2015
    Messages:
    134
    Location:
    San Francisco, CA
    Ra-San,

    Tried a different USB flash drive and plugged directly into back of iMac and it was much faster. Scan happened in a blink but copy still took a minute for 8 songs.

    Tried playing the stick at the dealership in 2 different cars (comparing standard vs. premium sound system) and it worked in both. Played using genre and album art was inconsistent. Sometimes showed, sometimes didn't. I didn't get random art though like Jeffgtx.

    Michael
     
  4. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    #64 ra-san, Apr 17, 2015
    Last edited: Apr 17, 2015
    I noticed the just the song title only display in folder mode a couple days ago too. I can't remember if it had always been like that with manually copied media, not converted by my app. I'm going to test with some files untouched by the app.
    If that's just the way the S works, I guess that could be a good reason to use the genre mapping. Pretty lame though. If it happens just with flac files I converted, then maybe I can fix it (though I did compare my flac conversion vs. other flac files from other sources and they looked right). For the non apple lossless to flac files, it's just a file copy so if it happens with them, must be the way the S works :(

    - - - Updated - - -

    So just tried a fresh fob untouched by my app, and yeah - seems to just be the way the folder functionality works. Kind of annoying. Really hope for better media player functionality soon, and real playlist support (and frankly, for CarPlay and Android car whatever equiv)

    Guess maybe I will use the genre mapping too, that way I can play them in playlist order if I use play by folder, and can play them with more info showing for the common cases of me just hitting shuffle anyway.


    Glad things were faster and you got to hear the audio in the vehicle.
    What was the source audio format? Unfortunately album art is outside of what we can do anything about. The car looks for it in its own way, whether it is in the file metadata or not (I don't remove it from copied files, and do recreate it and put it in the flac file, for apple lossless conversions).
     
  5. Jeffgtx

    Jeffgtx Member

    Joined:
    May 20, 2014
    Messages:
    253
    Location:
    West coast
    well that's just plain silly for it to handle the same filename two different ways. i've never used a usb stick in the car before, so i assuemd it was something the way the playlist folder data was moved. sorry for the false alarm.

    thanks for troubleshooting it.
     
  6. majorlance

    majorlance Member

    Joined:
    Sep 22, 2014
    Messages:
    204
    Location:
    Bethesda, MD
    All of what you're seeing is standard Tesla media player behavior.

    1) In folder mode no album art is available.
    2) When playing via genre, song, artist, etc. album art is pulled from the internet, not the embedded artwork in a song file. The Tesla media player seems to pull from album title first, artist second. You can get some really weird results but the cleaner the tags are the more likely Tesla will find the right artwork.
    3) If you have a slow/old USB drive or connection the initial copy (not even syncing) can take hours. Agree with ra-san that you should see around 6 mb for a USB 2.0 and much faster for a USB 3.0 flash drive (assuming your Mac supports 3,0). Future syncs (ra-sans app or my script) will be much faster and much closer to what you'd see syncing an iPod or iPhone to iTunes.
    4) For me, playlists are the way to go. And the genre change (to rename genre to playlist) make it so simple. If you want, buy a second USB (in my case) low profile flash drive (64 GB on Amazon for $33) and copy just you're favorite songs without changing the genre. I posted a script that would do this and I believe ra-sans script will do this too). Then you have the best of both worlds. If you need an extra USB charging port, buy a $24 12v USB adapter with two USB ports for the 12v adapter. Problem solved... :)

    What we really need is the Tesla media player to support m3u playlists (like 99.99% of all the cars and media players) and all of this will be just a distant memory! Or, add Apple Carplay support (sorry Android user) and we'll have even more...

    My two cents! :)
     
  7. ny888

    ny888 Member

    Joined:
    Jan 30, 2015
    Messages:
    134
    Location:
    San Francisco, CA
    They are mp3's.
     
  8. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    Updated to handle removing playlists that aren't selected any more from the destination playlist folder. Also added autoupdating (you choose whether to check or not, standard mac behavior - uses Sparkle, same as a bazillion other apps).
     
  9. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    Added a couple more requested options. If you have the version mentioned in the last post, should offer to auto update. Otherwise available from the links previously posted.
     
  10. dashrb

    dashrb Member

    Joined:
    Dec 13, 2012
    Messages:
    38
    Location:
    Fairfax, VA, USA
    btw, flash drives have some form of a FAT filesystem (specific version of FAT depends on the size of the memory), and FAT doesn't support hard links (or soft links either). You're forced to have separate copies of the file.

    Thanks for the utility!

    - - - Updated - - -


    Hello ra-san,

    I'm getting a crash when I scan my library (I can scan one playlist successfully). The relevant-looking section looks like this:

    Application Specific Information:
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCountedSet addObject:]: attempt to insert nil'
    abort() called
    terminating with uncaught exception of type NSException


    Application Specific Backtrace 1:
    0 CoreFoundation 0x00007fff8447503c __exceptionPreprocess + 172
    1 libobjc.A.dylib 0x00007fff8585a76e objc_exception_throw + 43
    2 CoreFoundation 0x00007fff84474eed +[NSException raise:format:] + 205
    3 Foundation 0x00007fff8cb6ad7f -[NSCountedSet addObject:] + 81
    4 TeslaTunes 0x000000010f9efaac -[CopyConvertDirs processFileURL:toDestination:performScanOnly:withPlaylist:] + 773
    5 TeslaTunes 0x000000010f9f1531 -[CopyConvertDirs processOpsWithPlaylistSelections:andSourceDirectoryURL:toDestinationDirectoryURL:performScanOnly:] + 1354
    6 TeslaTunes 0x000000010f9edf8d __85-[CopyConvertDirs startOperationOnDir:withPlaylistSelections:andSourceDir:toDestDir:]_block_invoke + 74
    ....


    The crash occurs when I select "copy whole library/folder" (and choose my music folder; about 4200 songs), with every other checkbox OFF.

    Is there a way to turn on logging to see which file is at fault?
     
  11. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    #71 ra-san, May 20, 2015
    Last edited: May 20, 2015
    I suspect there is a file with no extension, and I overlooked that particular case when I was logging the extensions skipped. I fixed it on my system, and am testing. Will push it if I think it's solved. In the meantime, if it's just a stray file, you can move it, or you can use playlists instead of the folder copy (presuming all the playlists files have extensions). Will try to have a fix out on Wednesday.

    Update: I tried to recreate it, but couldn't. I'd thought I'd tested that case before and handled it ok - in some of the sample screenshots that's why it shows the " files skipped: <some number>" in the extensions skipped list, because no extension was getting reported to me as an empty field vs. a non-existent one (which probably sounds odd, but makes a difference to the part that crashed).

    Regardless though I don't at the moment see where else it would be, and there's was a potential issue there so I "fixed" it (hard to say fixed though, when you can't see the problem).

    I also enabled a log message for skipping a file with an unknown or empty extension. I had it turned off in the interest of not adding too much cruft to logs, and I haven't added an "enable verbose logging" setting or anything yet (probably should). You can see the log messages in the Console app.

    Here's the updated app. https://github.com/tattwamasi/TeslaTunes/releases/download/1.2.2/TeslaTunes_1.2.2.zip

    I'm really not sure this is the issue for you, so would appreciate you letting me know after you have a chance to try the update. You can PM me, use the issues feature on the project page, or whatever. I did already add an issue for it in the issue tracker: crash when scanning library
     
  12. ny888

    ny888 Member

    Joined:
    Jan 30, 2015
    Messages:
    134
    Location:
    San Francisco, CA
    ra-san - I'm using your app to transfer music to usb. When I test drove the car, the playlist order was preserved. I just picked up my car and it's in Alphabetical Artist order, is there a setting I'm missing?
     
  13. ra-san

    ra-san Member

    Joined:
    Dec 26, 2008
    Messages:
    296
    Location:
    San Diego, CA
    Sounds like you are just not in the same play mode on the model S that you remember. If you play by folder, it will arrange the songs in directory order, and since I name them to preserve playlist order, that's what they'll be in. If you play by artist or anything else, the S is sorting alphabetically based on the tags you are looking at.
     
  14. ny888

    ny888 Member

    Joined:
    Jan 30, 2015
    Messages:
    134
    Location:
    San Francisco, CA
    #74 ny888, Jun 20, 2015
    Last edited: Jun 20, 2015
    I'm sure you're right but the car is at the detailer right now so I don't have access to it, what exactly do I need to do to play by folder. I picked on USB, Genre, and the Playlist "genre" name

    Figured out the Play By Folder. What's really strange is playing by genre with the same playlist shows songs missing. The same 2 playlist doesn't have the same songs !
     
  15. Koryin

    Koryin Member

    Joined:
    Jul 20, 2014
    Messages:
    85
    Location:
    Vancouver
    I've got a windows version of this if anyone is interested...
     
  16. perkiset

    perkiset ... this one goes to 11

    Joined:
    Jan 7, 2014
    Messages:
    238
    Location:
    Phoenix, AZ
    Fell in love again.

    I had always heard the Bluetooth was limited or compressed, didn't know the extent.

    Ran MajorLance's routine to put about 5K songs on a stick and WOW. So impressed. Thanks for the great script, it worked like a champ and, incredibly, made my UHF black S85 rocket ship EVEN BETTER.

    Thanks man, well done.
     
  17. dsm363

    dsm363 Roadster + Sig Model S

    Joined:
    May 17, 2009
    Messages:
    18,278
    Location:
    Nevada
    I couldn't get the script to work on a Mac.
     
  18. perkiset

    perkiset ... this one goes to 11

    Joined:
    Jan 7, 2014
    Messages:
    238
    Location:
    Phoenix, AZ
    What happened? What error did you get?
     
  19. omarsultan

    omarsultan Active Member

    Joined:
    Jun 22, 2013
    Messages:
    1,962
    Location:
    Northern California
  20. dsm363

    dsm363 Roadster + Sig Model S

    Joined:
    May 17, 2009
    Messages:
    18,278
    Location:
    Nevada
    I'll have to run it again. I had a 'Tesla' playlist. It ran through a bunch of text but nothing was copied over.
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC