Skip to content
Vikings IPTV
IPTV Installation

IPTV on Raspberry Pi: Kodi and Player Setup

Set up IPTV on a Raspberry Pi with LibreELEC and Kodi: choose the right Pi, install the PVR IPTV Simple Client, add your M3U playlist and guide, and fix issues.

By Vikings IPTV Editorial TeamUpdated 6 min read

A Raspberry Pi 4 Model B single-board computer
Photo: Laserlicht / Wikimedia Commons · CC BY-SA 4.0 · cropped

A Raspberry Pi makes a tidy, silent IPTV box for the price of a takeaway and an afternoon. It will not match a commercial streaming stick for polish, and it cannot run the big subscription apps, but for playing your own playlist with a proper guide it does the job well, and you control every part of it.

This guide uses the simplest dependable route: LibreELEC, a small operating system that boots straight into the Kodi media centre.

Can a Raspberry Pi run IPTV?

Yes. A Raspberry Pi 4 or 5 running LibreELEC with Kodi plays IPTV through the official PVR IPTV Simple Client add-on. You enter an M3U playlist link and, optionally, an XMLTV guide link from your IPTV service, and Kodi shows the channels with a programme guide in its TV section.

What you need

ItemNotes
Raspberry Pi 4 or 52 GB of memory is enough for playback
Official power supplyUnderpowered supplies cause random crashes
microSD card, 16 GB or moreA reputable brand; cheap cards fail
Micro-HDMI to HDMI cableThe Pi 4 and 5 use micro-HDMI
Ethernet cableStrongly recommended over Wi-Fi
Case with coolingThe Pi 5 in particular runs warm
A remoteYour TV's own remote usually works over HDMI-CEC
An M3U linkFrom your IPTV service

Older models such as the Pi 3 can play standard and some HD streams, but menus are slow and high-bitrate channels struggle. A Pi Zero is not suitable.

One hardware note: the Pi 5 decodes HEVC video in hardware but handles H.264 in software. It is fast enough that this is not usually a problem for 1080p, but it is worth knowing if a particular stream stutters.

Step 1: Install LibreELEC

  1. On a computer, download Raspberry Pi Imager from the official Raspberry Pi website.
  2. Insert the microSD card.
  3. In Imager, choose your Pi model, then under the operating system list open Media player OS and select LibreELEC for your model.
  4. Choose the card as storage and write the image.
  5. Put the card in the Pi, connect HDMI and Ethernet, then power.
  6. Follow the first-run wizard: language, hostname and network.

Step 2: Install the IPTV add-on

Kodi handles live TV through "PVR client" add-ons. The one for playlists is in the official repository.

  1. From the Kodi home screen open Add-ons.
  2. Select Install from repository.
  3. Open PVR clients.
  4. Select PVR IPTV Simple Client and choose Install.

Use only the official Kodi repository. Third-party repositories and "builds" that promise free channels are a common source of unlicensed streams and malware.

Step 3: Add your playlist and guide

  1. After installing, select PVR IPTV Simple Client again and open Configure.
  2. Under the general settings, set Location to remote path (internet address).
  3. Enter your M3U playlist URL.
  4. Open the EPG settings and enter your XMLTV URL if your service provides one.
  5. Confirm with OK.
  6. Restart Kodi when prompted, or reboot the Pi.

The add-on needs an M3U link. If you were given an Xtream Codes login, ask your service for the matching M3U and XMLTV links; M3U vs Xtream Codes explains the formats.

Step 4: Watch

Open TV from the Kodi home screen. You will find Channels for the list and Guide for the programme grid. Large playlists take a minute or two to import the first time. Add regular channels to a favourites group through the channel manager in Settings > PVR & Live TV.

Settings worth changing

  • Time zone. Set it under Settings > Interface > Regional, or guide times will be wrong.
  • Refresh rate. In Settings > Player > Videos, enabling "Adjust display refresh rate" can smooth motion on some TVs.
  • Audio. If you have no sound, check the audio output device under Settings > System > Audio.
  • Startup. In Settings > PVR & Live TV > Playback you can have Kodi resume the last channel when it starts.

Troubleshooting

ProblemLikely causeFix
TV menu is emptyAdd-on not enabled or playlist not loadedCheck the URL; restart Kodi
"No PVR clients" messageAdd-on disabledEnable it under Add-ons > My add-ons > PVR clients
Guide is emptyNo XMLTV URL, or channel IDs do not matchAdd the guide link; ask your provider if still blank
Guide times are offWrong time zoneSet the region and time zone
StutteringWi-Fi, a weak power supply or heatUse Ethernet; check for the lightning-bolt power warning; add cooling
Random freezes or rebootsPower supply or failing SD cardUse the official supply; replace the card
A channel will not playStream format or sourceTest the same link in VLC on a computer

Testing a playlist in VLC is a quick way to tell a Pi problem from a service problem; see how to watch IPTV on VLC. For network issues, the buffering guide and the internet speed guide apply to a Pi like any other device.

Limits to know about

  • No mainstream streaming apps. Services protected by DRM generally do not run on LibreELEC. The Pi is for your own playlists and local media.
  • No Android apps. Players such as TiviMate will not install. Our guide to choosing the best IPTV player lists options for other devices.
  • 4K is demanding. The Pi 4 and 5 can output 4K, but high-bitrate 4K streams depend on the codec and your network.
  • It needs occasional care. Updates, SD cards and settings are your responsibility.

If you want something that simply works with a remote, a streaming stick is easier. If you enjoy tinkering, the Pi is rewarding.

Legality

Kodi, LibreELEC and the PVR IPTV Simple Client are legal, open-source software. As with any player, what matters is the playlist you load: the service supplying it must hold the rights to its content. See our overview of IPTV legality.

Frequently asked questions

Which Raspberry Pi is best for IPTV?

A Raspberry Pi 4 or 5. Both handle HD comfortably. Older models are slow in the menus and struggle with high-bitrate streams.

Is Kodi the only way to watch IPTV on a Raspberry Pi?

No, but it is the simplest. You can also run VLC on Raspberry Pi OS, which plays M3U links but has no proper programme guide.

Can I use an Xtream Codes login on a Raspberry Pi?

The PVR IPTV Simple Client needs an M3U link and an XMLTV link. Ask your service for the links that correspond to your Xtream Codes login.

Why is IPTV stuttering on my Raspberry Pi?

The usual causes are Wi-Fi, an inadequate power supply or overheating. Use Ethernet, the official power supply and a case with cooling.

Can a Raspberry Pi play 4K IPTV?

The Pi 4 and 5 support 4K output, and HEVC streams play best. Results depend on the stream's bitrate and your network, so test before relying on it.

Summary

For IPTV on a Raspberry Pi, write LibreELEC to a card, install the PVR IPTV Simple Client from Kodi's official repository, enter your M3U and XMLTV links and open the TV section. Use Ethernet, the official power supply and proper cooling, and most problems never appear.

Need M3U and guide links to load? Our plans provide them, and the installation hub covers other devices.

Streaming Technology

M3U vs Xtream Codes: Which IPTV Login Should You Use?

M3U playlists and Xtream Codes logins compared — what each one is, how they differ for live TV, films, series and the guide, and which to choose in your player app.

Updated · 3 min read

IPTV Players

How to Watch IPTV on VLC (M3U Step-by-Step)

Play IPTV on VLC in under five minutes. Step-by-step instructions for Windows, Mac, Android and iPhone, plus fixes for streams that stutter or won't open.

Updated · 7 min read

Need a hand with setup?

Tell us your device and app — we'll walk you through it.