Guide
How to set up Jellyfin for your music
Your own music streaming, from the files you own: no subscription, nothing that disappears when a license runs out, and it plays on every device you have. Here’s how to set it up, in about an evening.
What you need
Jellyfin is a free, open-source media server. It runs on a computer at home, reads your music files, and streams them to apps on your phone, computer, TV or in a browser. Nobody else sees what you listen to, and there’s no account with a company to sign up for.
- A computer that stays on. A NAS (Synology and TrueNAS have Jellyfin packages), a mini PC, an old laptop or desktop, or a Raspberry Pi. Music takes far less power than video, so modest hardware is fine.
- Room for your music. An album takes about 300 MB as lossless FLAC, and about 80 MB as 256 kbps AAC or MP3. A thousand albums in FLAC fit on a 500 GB drive with room to spare.
- Your music, as files. If you’re coming from streaming, that’s the step that takes the longest. The next section is about it.
Getting your music
What you can’t bring along
Songs you downloaded for offline listening in Spotify, Apple Music, Tidal, Amazon Music or YouTube Music are encrypted and only play in that service’s own app, as long as you subscribe. They can’t be moved to Jellyfin. Your playlists can come along as lists of songs, though: export them before you cancel, so you know what to look for.
Music you already own
- Purchases. Songs bought on the iTunes Store, Bandcamp, Qobuz, 7digital, Amazon and most other stores are yours to keep. Download them from your account; for the iTunes Store, that’s the Music app on a Mac. Files that end in
.m4aplay anywhere, while.m4pfiles are protected, from Apple Music or from purchases before 2009, and won’t play in Jellyfin. - CDs. Rip them to a lossless format, FLAC or ALAC, so you never have to rip them again. XLD on a Mac, Exact Audio Copy on Windows and cyanrip on Linux are free, and check each rip against AccurateRip’s database of other people’s rips of the same disc. cyanrip runs in the terminal and tags the songs from MusicBrainz as it rips.
- An old music library. The folder of an old iTunes or Windows Media Player library is a fine place to start. Copy it whole; the tagging step below tidies it up.
Buying music from now on
Stores that sell files without copy protection include Bandcamp, where most of the money goes to the artist, Qobuz and 7digital, all with lossless downloads for much of their catalog. Pick FLAC when a store offers it: a lossless file can always be turned into a smaller one later, but not the other way round.
Lay out your folders
Jellyfin has one firm rule: each album gets a folder of its own, and a folder holds only one album. How you group the album folders is up to you, but one folder per artist with their albums inside is easiest to keep tidy:
Music/
├── Aurelia Sound/
│ ├── folder.jpg the artist’s photo
│ ├── Low Tide Hymns (2021)/
│ │ ├── cover.jpg the album cover
│ │ ├── 01 Harbor Lights.flac
│ │ ├── 01 Harbor Lights.lrc synced lyrics
│ │ └── 02 Salt and Static.flac
│ └── Northbound (2024)/
│ ├── Disc 1/
│ └── Disc 2/
└── Various Artists/
└── Night Drive Mix (2019)/
- Albums with several discs go in one album folder. Subfolders for each disc are optional: Jellyfin goes by the disc number in each song’s tags.
- Compilations with songs by different artists stay in one folder too. Give all their songs the same album artist, such as Various Artists, and they show up as one album.
- Covers go in the album’s folder as
cover.jpgorfolder.jpg. Without one, Jellyfin uses the cover embedded in the first song that has one. An artist’s photo goes in the artist’s folder asfolder.jpg. - Leave out these characters in names, as they cause trouble:
< > : " / \ | ? * - Audio-only video files need a new extension: rename
.mp4to.m4a, and.mkv,.webmor.webato.mka.
Install Jellyfin
Jellyfin runs on Windows, Mac and Linux, and on NAS systems such as Synology and TrueNAS. Get it from Jellyfin’s download page, which has an installer for each and links to the installation guide.
On Windows or a Mac
Run the installer, start Jellyfin, and open http://localhost:8096 in a browser on the same computer. From another device at home, use the computer’s address instead, such as http://192.168.1.20:8096.
On Linux, with Docker
Jellyfin’s official image is jellyfin/jellyfin. Save this as compose.yaml, change /srv/music to where your music is, and run docker compose up -d:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
ports:
- 8096:8096/tcp
- 7359:7359/udp # lets apps at home find the server
volumes:
- ./config:/config # settings, accounts, playlists
- ./cache:/cache
- /srv/music:/music # your music, seen by Jellyfin as /music
restart: unless-stopped
Jellyfin only supports Docker on Linux. On Windows and Mac, use the installer.
Back up the config folder along with your music: it holds your accounts, favorites, playlists and what you’ve played.
Add your music library
The first time you open Jellyfin, a short setup asks for a language, then an administrator account: choose a strong password. Then it asks for your libraries:
- Click + to add a library, and choose Music as the content type. Keep music in a library of its own rather than a mixed one.
- Give it a display name, such as Music, then click + next to Folders and choose your music folder (
/musicwith Docker). If the folder isn’t listed, Jellyfin isn’t allowed to read it: check the folder’s permissions. - Look through the settings below it before you click OK (see below), then finish the setup. The last step asks about remote access; it’s fine to leave it as it is for now.
/music.Jellyfin starts reading your music at once. A large library takes a while the first time; the dashboard shows how far along it is. To add a library later, go to Dashboard › Libraries and click Add Media Library.
Settings worth a look
- Enable real time monitoring
- On: new music shows up as soon as you copy it in. It doesn’t work on every network drive; there, Jellyfin finds new music on its regular scan.
- Enable LUFS scan
- On: Jellyfin measures how loud each song is, so apps can play them all at a similar volume (see Even out the volume). Scans take longer with it.
- Metadata downloaders
- MusicBrainz and TheAudioDB fill in what your tags don’t have, such as artist photos and biographies. Check both, under artists and under albums.
- Save artwork into media folders
- Puts the covers and photos Jellyfin downloads next to your music, where you can see and change them. Needs Jellyfin to be allowed to write to your music folder.
- Use custom tag delimiter
- When songs list several artists in one tag, such as Artist A / Artist B, the characters to split them at, so each artist gets a page of their own. Add names that contain such a character, like AC/DC, to the Delimiter Whitelist.
- Lyric downloaders
- Shows up once a lyrics plugin is installed (see the next step).
After changing tags or files, click Scan All Libraries on the dashboard to have Jellyfin read them again.
Add lyrics
Jellyfin reads lyrics from files next to each song, with the same name as the song: 01 Harbor Lights.lrc for 01 Harbor Lights.flac. An .lrc file holds synced lyrics, with a time for each line, which apps can highlight as the song plays. A .txt file holds plain lyrics.
You don’t have to find them yourself. The LrcLib plugin, from the Jellyfin project, downloads synced lyrics from LRCLIB, a free database people add lyrics to:
- Go to Dashboard › Plugins, find LrcLib in the catalog and install it, then restart Jellyfin.
- In your music library’s settings, turn LrcLib on under Lyric downloaders. Turn on Save lyrics into media folders too, if Jellyfin may write there, so the lyrics stay with your music.
- Under Dashboard › Scheduled Tasks, run Download missing lyrics. After that it runs by itself.
Even out the volume
Albums are mastered at different loudness, so a quiet song from the 80s can follow a loud one from last year. Jellyfin can measure each song’s loudness: turn on Enable LUFS scan in your music library’s settings, then under Dashboard › Scheduled Tasks, run Audio Normalization. Without the LUFS scan, the task skips the library. It takes a while for a large library, then keeps up with new music by itself. Apps that support it use the measurements to play every song at a similar volume.
Accounts for everyone at home
Give everyone their own account, under Dashboard › Users › Add User. Each person gets their own favorites, playlists and history, and recommendations based on what they play, and you can choose which libraries each one sees.
Leave Allow audio playback that requires transcoding on for each account. Jellyfin then converts songs on the fly for devices that can’t play a format, and to smaller files on a slow connection.
Start listening
Jellyfin plays in any browser at the address you set it up with. For phones, computers, TVs and cars, there are apps from the Jellyfin project and from others, including some made just for music: Jellyfin’s list of apps has them. In an app, enter the same address you open Jellyfin with in a browser, and sign in with your account.
At first, that address only works at home. To listen anywhere else, your server has to be reachable from outside, through a reverse proxy with a domain and HTTPS, or a VPN. Jellyfin’s networking guide goes through the options. Many apps can also download music to your phone, which plays anywhere without a connection.
When something looks wrong
An album shows up as several albums.
Its songs have different album artists, or the album’s name is spelled differently on some of them. Give every song on it the same Album artist and Album tags, then scan again.
Songs or albums are missing.
Check that Jellyfin can read the folder (its permissions, or the folder mounted into Docker), and that the files have a format and extension it knows. Then click Scan All Libraries on the dashboard.
An album has the wrong cover.
Put the right one in the album’s folder as cover.jpg and scan again. Or open the album in Jellyfin, choose Edit images from its menu, and pick or upload another one.
Changed tags don’t show up.
Open the album or artist in Jellyfin and choose Refresh metadata from its menu, with Replace all metadata, to have Jellyfin read the files again from scratch.