
Raspberry Pi – Kodi Setup & Troubleshooting
Set up a Raspberry Pi as a Kodi media centre. If yours is already set up, jump to the problem you want to fix.
Choose a Pi and operating system
- Raspberry Pi 5. Choose LibreELEC’s Pi 5 image. Pi 5 is a good option for a new dedicated Kodi setup. OSMC does not currently list a Pi 5 image.
- Raspberry Pi 4 or Pi 400. Both LibreELEC and OSMC offer a matching image. If you already own one, try it before buying another board. Start with a known-good 1080p file before testing 4K HEVC, HDR or high-bitrate media.
- Raspberry Pi 2 or 3. Use the release listed for your exact board. These are best suited to lighter setups and compatible 1080p material. Older boards may need an older release, which can limit add-on and security support.
- Pi 1 and Zero family. Check the exact model and release availability. The original Zero and Zero 2 W are different boards. Prefer Pi 4 or 5 for a new setup.
LibreELEC boots straight into Kodi and suits a dedicated player. OSMC also boots into Kodi and offers device settings and updates through My OSMC. Use the operating system’s model-specific image. It already includes Kodi.
LibreELEC Raspberry Pi downloads · OSMC downloads and supported images
Install Kodi with LibreELEC or OSMC
Get a microSD card, a reader for your computer, a suitable HDMI cable and the power supply for your board. Pi 4 and 5 use micro-HDMI. The Pi Zero family uses mini-HDMI.
Writing an image erases the selected card. Back it up first. Unplug other removable drives if you’re unsure which one to select.
LibreELEC
- Open the LibreELEC media creation guide and get the USB-SD Creator, or download the correct image and write it with Raspberry Pi Imager using Use custom.
- Select the image for your exact Pi and the microSD card. Write the image, wait for verification to finish, then eject the card.
OSMC
- Download the OSMC installer for the computer you’re using. Select your Raspberry Pi model and a supported release.
- Choose the SD-card installation target and the correct card. Let the installer finish, then eject the card. If you use a manual disk image, write the Pi-specific image as an image rather than copying it as a file.
First boot
- Insert the card with the Pi unplugged. Connect the TV and, if available, Ethernet. On a Pi 4 or 5 with one screen, start with HDMI0, the micro-HDMI socket nearest USB-C power.
- Select that HDMI input on the TV, then connect the Pi’s power. Allow the first boot to finish without unplugging it.
- Complete the setup prompts. Use a USB keyboard if the TV remote doesn’t respond yet.
- In Kodi, open Videos → Files → Add videos to add a local folder or network share. Play a short known-good file first, then add your library or make other changes.
Remote controls and HDMI-CEC
- Recommended dedicated remote for OSMC: the OSMC Official Remote Control. It includes a USB receiver and is mapped for OSMC. Plug the receiver into the Pi and fit the supplied battery. It uses radio rather than infrared, so the remote does not need a clear line of sight. If you use LibreELEC, check the mapping for your release before buying it for that setup.
- TV remote over HDMI-CEC. Try this first if your TV supports it. Enable CEC in the TV settings. It may be called Anynet+, Simplink, BRAVIA Sync or VIERA Link. In Kodi, look under Settings → System → Input → Peripherals → CEC Adapter, where available.
- Other options. A USB keyboard or a Kodi-compatible USB remote with a receiver is useful for setup. Bluetooth remotes depend on the board and operating system; keep a keyboard handy while pairing.
If CEC fails, try a direct Pi-to-TV connection and restart both devices after enabling it. If CEC turns the TV on or switches inputs unexpectedly, adjust the CEC power and source options one at a time.
OSMC Official Remote Control · Kodi HDMI-CEC guide
Power, storage and cooling
- Pi 5: Raspberry Pi recommends its 27 W USB-C supply, which provides 5 V at 5 A. A suitable 5 V/3 A supply can boot the Pi but limits USB peripheral power.
- Pi 4 or 400: Use a quality 5 V/3 A USB-C supply. Pi 2, Pi 3 and original Zero family: Raspberry Pi lists a 5 V/2.5 A micro-USB supply. Check the official table for your exact model.
- Storage: Start with a reliable Class 10 microSD card. A 32 GB card is a practical starting point for Kodi and its artwork. Keep your media on a separate drive or NAS. USB or SSD boot depends on the board, bootloader, adapter and OS image; confirm support before moving a working setup.
- USB drives: If a drive disappears or the Pi reboots when it spins up, test with the drive disconnected. Try a powered enclosure or hub if the drive needs more power.
- Cooling: Keep vents clear. If the Pi slows down after playing for a while, check temperatures and airflow. On Pi 5, an active cooler or fan case is a good choice for sustained workloads. Shut down through Kodi before unplugging power or changing hardware.
Raspberry Pi power supply and setup guidance
Ethernet, Wi-Fi and network shares
- Try Ethernet straight to the router first if your Pi has an Ethernet port. A successful wired test helps isolate a Wi-Fi problem.
- For Wi-Fi, use LibreELEC Settings → Connections or My OSMC → Network. Check the password and signal. Try a shorter distance to the router and a band supported by your Pi.
- For NAS media, check that the NAS is awake and reachable. In Kodi, add the SMB or NFS share. If browsing finds nothing, try the NAS address and exact share name. Verify the share permissions and login on another device.
- If only internet streams fail, try another service and check whether another device on the same network is affected.
KOD1HELP network troubleshooting
Buffering, stutter and performance
- Compare the same file locally and over the network. If it plays locally but buffers from the NAS, check the network and NAS before changing Kodi settings.
- Try a simpler file. Start with 1080p H.264 video and ordinary stereo audio. If only certain files fail, note their codec, resolution, frame rate and bitrate. Support varies by model and image.
- If playback is jerky without buffering, try Settings → Player → Videos → Adjust display refresh rate → On start/stop where available. A short black screen during the switch can be normal. If the TV loses picture, return to a known-good display mode.
- If menus are slow, check free space, try the standard Estuary skin and let library scanning finish. Check power and cooling if slowdowns affect everything.
- Adjust caching only after these checks. On Kodi 21 Omega, advanced cache settings are under Settings → Services → Caching. Record the defaults and change one setting at a time. A larger buffer can’t fix an unreliable source or sustained bandwidth shortage.
Kodi caching settings · Kodi video playback settings
Back up, update and recover
- LibreELEC: Open the LibreELEC Settings add-on and use System → Create System and Kodi Backup. Copy the archive off the Pi before updating or rewriting its card.
- OSMC: Use the backup wizard in My OSMC. Choose the settings you need and a destination outside the SD card.
- Back up your actual media separately. Note the Pi model, OS and Kodi versions. Keep the old card intact if you test an upgrade on a spare card.
- Update through the operating system’s tools and read the release notes for major upgrades. Restore selectively if a clean setup works but importing the old settings brings back the problem.
LibreELEC update and backup instructions · OSMC backup instructions · KOD1HELP backup guide
Common problems and what to try first
- Won’t boot: Disconnect extra USB devices, use the correct power supply and check the card was written with the image for your Pi. Try a fresh install on a spare card before erasing your current one.
- No picture: Check the TV input and HDMI0 where applicable. Connect the Pi straight to the TV. Try a known-good cable, another port or a 1080p screen.
- Picture but no sound: Test through the TV speakers. In Settings → System → Audio, select the HDMI output and turn off passthrough temporarily. Test stereo before reconnecting the receiver.
- Kodi keeps closing after an update: Try to identify a new add-on or skin as the trigger. If LibreELEC opens in Safe Mode, follow its recovery instructions and keep the saved Kodi folder. Capture a log before reinstalling.
- Random reboots or a disappearing drive: Start with the recommended power supply, a direct connection and no extra USB peripherals. Then check temperature and storage rather than resetting the setup.
If you still need help, note your exact Pi model, OS and Kodi version, the message you saw and whether the problem happens with a local file. Find and capture a Kodi log · LibreELEC Safe Mode