๐ก Raspberry Pi โ Setup Media Server with Plex or Kodi (2025 Streaming Guide)
๐งฒ Introduction โ Turn Your Raspberry Pi into a Powerful Media Server
Want to stream your favorite movies, music, or TV shows across your home? With Plex or Kodi, you can transform your Raspberry Pi into a full-featured media server that works with smart TVs, phones, PCs, and tabletsโlocally or remotely.
๐ฏ In this guide, youโll learn:
- The difference between Plex and Kodi on Raspberry Pi
- How to install and configure both systems
- Stream local files or network libraries
- Use real-world setups for home entertainment, backups, and remote media access
๐ฌ Plex vs Kodi โ Whatโs the Difference?
| ๐บ Feature | ๐ฅ Plex | ๐ฎ Kodi |
|---|---|---|
| Type | Client-server streaming model | Local media player |
| Remote Access | Yes (via Plex account) | No (local-only unless customized) |
| UI | Polished web + app interface | Customizable media center |
| Transcoding | Yes (limited on Pi) | Playback only, no transcoding |
| Best For | Multi-device streaming | Local or kiosk-style setups |
โ
Use Plex if you want to stream to phones/TVs across your home or remotely.
โ
Use Kodi for direct playback on the Pi with TV or monitor.
๐ ๏ธ Plex Media Server Setup on Raspberry Pi
โ Step 1: Add Plex Repository
curl https://downloads.plex.tv/plex-keys/PlexSign.key | sudo apt-key add -
echo deb https://downloads.plex.tv/repo/deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
โ Step 2: Install Plex
sudo apt update
sudo apt install plexmediaserver -y
โ Step 3: Verify Service
sudo systemctl status plexmediaserver
โ
Plex runs on port 32400
๐ Access Plex Web UI
Visit:
http://<your_pi_ip>:32400/web
Sign in with your Plex account.
๐ Add Media Libraries to Plex
- Movies:
/home/pi/media/movies/ - TV Shows:
/home/pi/media/tv/ - Music:
/home/pi/media/music/
Ensure Pi has permission:
sudo chown -R plex:plex /home/pi/media
Add libraries via the web interface and organize by type.
๐ฒ Stream Plex Content
| ๐บ Client Device | ๐ง How to Access |
|---|---|
| Smart TV | Plex app from app store |
| Android/iOS phone | Plex mobile app |
| Laptop/Desktop | Web browser (http://<ip>:32400/web) |
| Remote Access | Enable in Plex account settings |
๐ฎ Kodi Media Center Setup on Raspberry Pi
โ Option 1: Install Kodi on Raspberry Pi OS
sudo apt update
sudo apt install kodi -y
Run:
kodi
โ Great for Pi with connected TV/monitor.
โ Option 2: Use LibreELEC (Kodi OS)
- Download LibreELEC image
- Flash to SD card using Raspberry Pi Imager
- Boot Pi and follow on-screen setup
- Add media via:
- USB drive
- NAS/SMB
- SD card folders
๐ฆ Recommended Media File Structure
/media/
โโโ Movies/
โ โโโ MovieName (Year).mp4
โโโ TV Shows/
โ โโโ ShowName/
โ โโโ Season 01/
โ โโโ EpisodeName S01E01.mkv
โโโ Music/
โ โโโ Artist/
โ โโโ Album/
โ โโโ Track.mp3
โ Helps Kodi and Plex auto-recognize metadata.
๐ก Real-World Raspberry Pi Media Server Ideas
| ๐ฌ Use Case | ๐ฆ Description |
|---|---|
| Home Theater Server | Serve 4K/1080p movies to smart TVs |
| Offline Classroom Media | Stream video lessons from local network |
| Raspberry Pi Touch Panel | Build wall-mounted Kodi TV controller |
| Travel Media Station | Host movies on Pi + hotspot = portable setup |
| Music Streaming Server | Stream FLAC/MP3 to any device |
๐ง Performance Tips
- Use Ethernet over Wi-Fi for smooth streaming
- Store media on external SSD or USB 3.0 HDD
- Use Raspberry Pi 4/5 with 2GB+ RAM for best results
- Limit background services for Plex to avoid CPU spikes
๐ Summary โ Recap & Next Steps
Your Raspberry Pi is now a powerful local media serverโcapable of streaming to smart TVs, mobile devices, or even working as a media center on its own. Whether using Plex for remote access or Kodi for direct playback, you can build a private, customizable entertainment hub.
๐ Key takeaways:
- Plex = stream across devices; Kodi = play directly on Pi
- Use
/home/pi/mediaor external drives to store libraries - Access Plex at
http://<ip>:32400/web - LibreELEC is a full media OS based on Kodi
โ๏ธ Real-world relevance: Useful for home streaming, mobile media setups, digital signage, and educational environments.
โ FAQs โ Raspberry Pi Media Server
โ Can I use both Plex and Kodi on the same Pi?
โ Yes, but Plex is server-based; Kodi is a player. Use Kodi to play media and Plex to stream it remotely.
โ Can I stream over the internet with Plex?
โ
Yes, if you enable remote access and forward port 32400 on your router.
โ Which Raspberry Pi model is best for media servers?
โ Raspberry Pi 4 or 5 with 2GB+ RAM is ideal. Use USB 3.0 storage for better performance.
โ Can I use a USB drive for storage?
โ
Absolutely! Format it as ext4 or NTFS, mount it, and point Plex/Kodi libraries to it.
โ Is transcoding supported on Raspberry Pi?
โ Limited support. Direct playback is preferred. Use compatible file formats (H.264 MP4, MKV).
Share Now :
