Set Up Music Streaming in Plex with Plexamp
Plex handles music streaming alongside your video library, turning your server into a personal Spotify replacement. With Plexamp — Plex's dedicated music player — you get a polished listening experience with features like sonic analysis, loudness leveling, gapless playback, and offline downloads. Setting up a music library in Plex requires more attention to file organization and metadata than video, but the result is a music streaming service you own completely, with no subscriptions, no ads, and no content that disappears when a licensing deal expires.
Organizing your music files
Plex is strict about music file organization. Unlike video where Plex can match loosely named files, music metadata and folder structure need to be correct from the start:
- Folder structure: Organize music as
Artist/Album/Track.ext. Each artist gets a top-level folder. Inside each artist folder, each album gets its own subfolder. Tracks go inside the album folder. This three-level hierarchy is what Plex expects, and deviating from it causes mismatched albums and missing tracks - File naming: Name tracks with the track number and title:
01 - Song Title.flac. The track number ensures correct ordering within an album. While Plex primarily reads metadata tags rather than filenames, consistent naming helps when tags are missing or incorrect - Multi-disc albums: For albums with multiple discs, create subfolders inside the album directory:
Artist/Album/Disc 1/01 - Track.flac. Alternatively, include the disc number in the filename:1-01 - Track.flac. Plex reads disc number tags from the metadata if present - Compilations and soundtracks: Place compilation albums (various artists) under a "Various Artists" or "Compilations" artist folder. Set the album artist tag to "Various Artists" in the file metadata. If compilations are scattered across individual artist folders, Plex splits the album into separate entries under each artist
Metadata tagging
Music metadata tags embedded in the files are the primary source of information Plex uses for your library:
- Essential tags: At minimum, every file needs: Title (track name), Artist, Album Artist, Album, Track Number, and Disc Number (for multi-disc albums). Missing any of these causes Plex to guess, and guesses are frequently wrong
- Tagging tools: MusicBrainz Picard is the gold standard for automatic music tagging. It identifies tracks by audio fingerprint and applies comprehensive, standardized metadata from the MusicBrainz database. Run your entire library through Picard before adding it to Plex — the time investment pays for itself in a correctly organized library
- Album art: Embed album art in the files themselves rather than relying on external image files. Picard can download and embed high-resolution album art automatically. Embedded art travels with the file and displays correctly on every client. If you prefer external art, name it
cover.jpgin the album folder — Plex looks for this filename - Genre tags: Genre tags help with smart playlists and browsing. Picard applies genre tags from MusicBrainz. Keep genres consistent — "Rock" not "rock" or "ROCK". Multiple genre tags per track are supported and useful for filtering
- Lyrics: Plex displays synced lyrics during playback if they are embedded in the file or available from online sources. LRC format lyrics can be embedded in FLAC and MP3 files. Plex also fetches lyrics from online databases automatically with Plex Pass
Creating the music library in Plex
Add your music as a separate library with the correct settings:
- Library type: When creating a new library in Plex, select "Music" as the type. Do not add music files to a Movies or TV Shows library — Plex uses different scanners and agents for each media type
- Scanner and agent: Use the Plex Music scanner and the Plex Music agent. These are the defaults and work best for most libraries. The Plex Music agent matches your files against online databases (MusicBrainz, AllMusic) to fill in missing metadata and download artwork
- Prefer local metadata: In the library's Advanced settings, enable "Prefer local metadata." This tells Plex to use the tags embedded in your files instead of overwriting them with online data. If you spent time tagging your files correctly with Picard, you want Plex to use those tags, not replace them with potentially different online data
- Scanner interval: Set the library to scan periodically (every few hours or daily) or use the "Scan my library automatically" option to detect new files as they appear. Music libraries change less frequently than TV libraries, so a less aggressive scan interval is fine
Setting up Plexamp
Plexamp is Plex's dedicated music player, available on iOS, Android, Windows, macOS, and Linux:
- Requirements: Plexamp requires Plex Pass. Without Plex Pass, you can still listen to music through the standard Plex app, but Plexamp's advanced features are not available
- Installation: Download Plexamp from plex.tv/plexamp or your device's app store. Sign in with your Plex account. The app discovers your server automatically and displays your music library
- Sonic analysis: Plexamp uses Plex's sonic analysis feature to analyze every track in your library for tempo, key, mood, and other audio characteristics. This powers smart features like Sonic Adventure (a radio-like mode that creates mixes based on audio similarity) and mood-based playlists. Sonic analysis runs on the server as a background task and can take hours for large libraries
- Audio quality: In Plexamp settings, set the streaming quality. For WiFi and local streaming, set it to Original or Maximum to hear your files at their native quality. Plexamp supports high-resolution audio — if your files are 24-bit FLAC or DSD, Plexamp streams them at full quality when the quality setting is set to Original
- Gapless playback: Plexamp supports gapless playback by default — no silence between tracks on live albums, concept albums, or DJ mixes. This feature requires direct play (no transcoding), so ensure your quality setting is high enough and your files are in a format your device supports natively
Audio quality and transcoding
Music transcoding works differently from video transcoding:
- When music transcodes: Plex transcodes music when the client cannot play the format natively (like FLAC on some devices), when the streaming quality setting is lower than the original bitrate, or when converting high-resolution audio to a compatible format. Music transcoding uses minimal CPU compared to video
- FLAC vs MP3 vs AAC: FLAC is lossless — it preserves the original audio quality perfectly. MP3 and AAC are lossy — they reduce file size by removing audio data. For streaming, FLAC at 16-bit/44.1kHz (CD quality) is the sweet spot between quality and file size. High-resolution FLAC (24-bit/96kHz or higher) sounds identical to CD quality for most listeners and most playback equipment but uses 2-4x the storage
- Direct play optimization: Most modern devices support FLAC, AAC, and MP3 natively. If your library is FLAC, most clients direct play without transcoding. If you have devices that do not support FLAC (some older smart TVs or basic streaming devices), Plex transcodes to AAC automatically. The quality loss from FLAC-to-AAC transcoding is negligible at high bitrates (256+ kbps)
- Loudness leveling: Plexamp includes loudness leveling (also called volume normalization) that adjusts playback volume so all tracks play at a similar loudness. This prevents the jarring experience of a quiet jazz track followed by a loud rock track. Loudness leveling uses ReplayGain data if present in the file tags, or Plex calculates it during sonic analysis
Smart playlists and radio
Plex offers several ways to discover and organize music beyond manual playlists:
- Smart playlists: Create playlists that automatically populate based on rules — genre equals Rock, year after 2020, play count less than 5. Smart playlists update dynamically as you add new music or as play counts change. Use them for discovering unplayed tracks, recent additions, or genre-specific mixes
- Sonic Adventure: Plexamp's signature feature. Pick a starting track and Sonic Adventure creates an endless radio-like mix of similar-sounding tracks from your library. It uses sonic analysis data (tempo, key, energy, mood) rather than genre tags, so the connections between tracks feel natural and musical rather than categorical
- Artist radio and track radio: Start a radio station based on an artist or track. Plex mixes songs from that artist with similar artists from your library. This works best with large libraries (1,000+ albums) where there is enough variety for the algorithm to make interesting connections
- Recently added and recently played: Built-in smart collections show what is new in your library and what you have been listening to. These are good starting points for daily listening without actively choosing an album
Troubleshooting music libraries
- Albums split into multiple entries: Usually caused by inconsistent Album Artist tags. If some tracks have the artist as "The Beatles" and others as "Beatles", Plex creates two separate albums. Fix the tags with Picard so all tracks share the same Album Artist, then refresh the library
- Wrong album art: Plex matched your album to the wrong entry in an online database. Fix by locking the metadata for the album (right-click, Edit, Lock), then manually uploading the correct artwork. If using local metadata preference, ensure album art is embedded in the files or available as cover.jpg
- Missing tracks: Check that the missing tracks are in the correct folder structure and have proper metadata tags. Run a library scan and check the Plex log for errors referencing those files. Files with unsupported formats or corrupt headers are skipped during scanning
- Plexamp not showing library: Verify your Plex Pass is active. Ensure the music library is shared with your account (if you are a shared user). Try signing out and back into Plexamp to refresh the server connection
Need Expert Help?
Our team has handled thousands of cases. Get a fast, honest diagnosis.
Get Started →