Skip to content

Migrating from iTunes to DS Audio

In the past, I have talked about my transition to Synology and I recently made the next step: migration from iTunes to DS Audio. In this post I would like to talk about the process and a few obstacles I had to overcome. Read on to learn more!


Note: This information is based on DSM 5.x — I have not upgraded to 6.x yet.
The most important and challenging part was migrating the existing iTunes playlists over to DS Audio. Given the size and quantity of playlists it was not feasible to attempt to manually recreate them. Given how custom the playlists were it was also not possible to leverage the smart playlist feature of DS Audio. This meant I needed to figure out a migration plan. While I did not find a lot of information on the Synology site, a few quick Google search turned up the information I needed. The process seemed pretty straightforward.

The Process

Export the playlists from iTunes in M3U format

Edit the export to adjust the paths

The paths will likely start with something like:

/Users/Username/Music/iTunes/iTunes Media/Music/

You will need to change this to the path of DS Audio, which by default would be


Upload the modified export to DS Audio

By default, DS Audio will pick up new changes automatically within a few seconds (or longer if you uploaded/changed a lot of data), but you can edit the settings by going to Control Panel > System > Media Indexing
synology-media-indexing1 synology-media-indexing2

The Problem

When I did this and returned to my playlist I noticed something was wrong (notice the red X next to each song):

The Solution

A little more digging online and I learned Mac iTunes exports playlists with CR line breaks, and they’re not recognized by audio station or ds audio. There are many ways to fix this. I did this on the command line:

cat file.m3u | tr '\r' '\n' > file.m3u

After this I could see my songs!

Other Problems

Once I solved the major issue, I did run into a couple other annoyances:

  1. Some song paths were not correct so the find and replace trick did not work — I suspect this was due to problems on the iTunes library and not DS Audio. The resolution is to find all the songs that show an error in DS Audio and then go manually adjust the playlist M3U file.
  2. UTF encoding in DS Audio matters! If it is not correct for any song then the song will not work in the playlist. My wife has some Spanish music and all of them were not working. The solution is to further adjust M3U exported from iTunes by running:
    iconv -f UTF8-MAC -t UTF8 "file.m3u" > "file.m3u"


Migration to DS Audio was pretty easy and it seems to work well. The last question is will my wife like it enough to get off iTunes? Only time will tell!

© 2016, Steve Flanders. All rights reserved.

Published inSystem Administration


  1. fasterthanapigeon fasterthanapigeon

    Hi, thanks so much for this, I’d been trying to figure out for ages why my iTunes playlists weren’t showing up even after I’d changed the file directory!

    • Thanks for the comment and I am glad this post helped!

  2. Tobias Tobias

    I’ve just discovered that ds audio will not be seen through bmw system. Full integration seem to be only with itunes.

  3. Pollins Pollins

    Hi Steve, interesting topic. Do you now if it is possible to create a Random Album playlist. The community and Synology won’t respond to my requests.

    • Hey Pollins — good question. Honestly, I have since moved away from DS Audio. We use a mix of Pandora and Spotify now. If I find out, I will let you know!

  4. Beltran Ybarra Beltran Ybarra

    Hi Steve.

    Thanks for your article. It’s been very helpful. I have a Synology NAS and a speaker that can read the music via DLNA. Exporting playlists from iTunes to DSAdio was the only way for the speaker to read the music on the NAS.

    IMHO, I have found a simpler way for this task. You just need the free text editor app TextWrangler.
    1. Export playlist in M3U (not M3U8) from iTunes
    2. Open in TextWrangler
    3. Replace paths as you said
    4. “Save As…” changing Line Breaks to “UNIX (LF)”

    Your M3U file is now usable by DSAudio


Leave a Reply

Your email address will not be published. Required fields are marked *