Computers & Electronics
127,798 views
25 min · 3 min read
7 steps
Advanced

How to set up a Raspberry Pi as a media center with Kodi

Setting up a Raspberry Pi as a media center is a fun, affordable way to bring streaming, local video, and music playback to your TV. With a few components and about 60–90 minutes, you can build a compact, energy-efficient system using Kodi for a polished interface and broad format support.

Verified by pleasexplain editors
  1. Step 1: Choose compatible Raspberry Pi model

    Select a Raspberry Pi 4 or newer for best video performance; use at least the 2 GB RAM model, though 4 GB is preferable for smoother multitasking. The Pi 4 supports hardware 1080p and 4K output over HDMI, reducing playback stutters and ensuring longevity.

    [Illustration: Raspberry Pi 4 board beside microSD card and USB-C power cable on a table]

  2. Step 2: Gather required accessories

    Collect a microSD card (16–128 GB, Class 10), a 5V 3A USB-C power supply, a microSD card reader, an HDMI cable, and optional case and heatsinks. A reliable Wi-Fi connection or Ethernet cable is recommended for streaming; a USB remote or wireless keyboard makes navigation easier.

    [Illustration: MicroSD card, power supply, HDMI cable, case and USB remote arranged neatly]

  3. Step 3: Download and flash LibreELEC or OSMC

    Choose a lightweight Linux distribution optimized for Kodi such as LibreELEC or OSMC. Download the installer image, and use balenaEtcher to flash it to the microSD card; the flashing process typically takes 5–10 minutes depending on card speed.

    [Illustration: Computer screen showing balenaEtcher with microSD card being flashed and progress bar]

  4. Step 4: Initial boot and network setup

    Insert the flashed microSD card into the Pi, connect HDMI, attach power, and boot; initial setup usually takes 2–5 minutes. Use the on-screen wizard to select language, time zone, and connect to Wi-Fi or plug in Ethernet for a more stable 100 Mbps or Gigabit connection.

    [Illustration: Raspberry Pi connected to TV displaying initial Kodi setup wizard with network options]

  5. Step 5: Configure Kodi basic settings

    Open Settings in Kodi to adjust video output to your display (set HDMI to 1080p or 4K at 60 Hz if supported) and enable hardware acceleration. Set audio passthrough if using an AVR, and enable the screensaver and power options to save energy after 15–30 minutes of inactivity.

    [Illustration: Kodi settings menu on TV showing video and audio configuration options]

  6. Step 6: Add media sources and libraries

    In Kodi, add folders for Movies, TV Shows, Music, and Photos by pointing to local USB drives or network shares (SMB/NFS). Use accurate folder naming conventions and run the scraper to fetch metadata—this typically takes 1–10 minutes depending on library size—and results in organized posters and descriptions.

    [Illustration: Kodi file manager adding a network SMB share with movie folders and progress of library scan]

  7. Step 7: Install add-ons and enable updates

    Browse the Kodi add-on repository to install streaming and utility add-ons like Plex, YouTube, or an UPnP client; install only trusted sources and review permissions. Enable automatic system and add-on updates to keep security patches current and schedule nightly backups of settings to an external drive or cloud service.

    [Illustration: Kodi add-on browser listing popular add-ons with install button and settings for auto-update]


  • Use a fast UHS-I microSD card (A1 or A2 rated) to reduce UI lag and boot times.
  • If you have jittery video, connect via Ethernet or lower streaming resolution to 720p for stable playback on slower networks.
  • Attach small heatsinks or a ventilated case to keep the Pi under 70°C during 4K playback for long-term reliability.
  • Map a smartphone remote app like Kore or Yatse for convenient control without extra hardware.
  • Store large libraries on an external USB 3.0 drive and set that as the primary media source to avoid filling the microSD card.
  • Create a system image backup of the microSD card after setup so you can restore quickly if the card fails.

  • Avoid using low-quality power supplies; undervoltage causes intermittent crashes and file-system corruption.
  • Do not download copyrighted content illegally; respect licensing and use legal streaming sources or your own media files.
  • Be careful when enabling third-party add-on repositories; untrusted add-ons can introduce malware or unstable behavior.
  • Shut down the Pi from the software menu before unplugging power to prevent SD card corruption.

Was this guide helpful?