Skip to content
XCodes IPTV
IPTV Basics & Technology

IPTV Technology Explained: Formats, Protocols and Codecs

A clear guide to how IPTV works under the hood: M3U and Xtream logins, EPG data, HLS and MPEG-TS streams, codecs, bitrates and the apps that tie it together.

By XCodes IPTV 4K Editorial TeamUpdated 6 min read

IPTV works in layers. A login or playlist tells your app what's available, a stream format such as HLS or MPEG-TS carries the video over the network, a codec such as H.264 or HEVC compresses it, and guide data (EPG) tells you what's on. Your player app ties these layers together. Knowing which layer a term belongs to makes almost every IPTV setting and error message easier to understand.

This guide walks through each layer in plain English and links to in-depth articles on each technology.

The IPTV stack at a glance

LayerWhat it doesCommon technologiesIn-depth guide
AccessTells the app what you can watchXtream Codes API, M3U playlist, Stalker (MAC) portalXtream Codes, M3U playlist
Guide dataWhat's on, and whenXMLTV, broadcast EPGWhat is EPG?
DeliveryHow streams reach youUnicast over the internet, multicast on operator networks, CDNsMulticast vs unicast
Stream formatHow video is packaged in transitHLS (.m3u8), MPEG-TS (.ts), MPEG-DASHHLS vs MPEG-TS
Video codecHow the picture is compressedH.264 (AVC), H.265 (HEVC), AV1IPTV codecs
Audio codecHow the sound is compressedAAC, Dolby Digital (AC-3), Dolby Digital PlusIPTV audio formats
ProtectionWho can decrypt the streamWidevine, FairPlay, PlayReady DRMDRM explained
PlayerPuts it all on screenTiviMate, VLC, Kodi, Smart TV appsIPTV players

Layer 1: Access (logins and playlists)

Before anything plays, your app needs a list of channels and the addresses of their streams. There are three common ways to get one:

  • Xtream Codes API. You enter a server URL, username and password. The app then requests live channels, films, series and guide data from the server's API. It's tidy, and it handles large libraries well.
  • M3U playlist. A text file, or a URL that returns one, listing each channel's name, group, logo and stream address. Simple and universal, but it puts everything in one list.
  • Stalker (MAC) portal. Used by MAG-style set-top boxes and emulators. The server identifies your device by its MAC address. See Stalker portal explained.

Our comparison of M3U vs Xtream Codes explains which to choose, and what an M3U URL is covers playlist links.

Layer 2: Guide data (EPG)

The TV guide is delivered separately from the video. On IPTV it's usually an XMLTV file: a structured list of programmes with start and end times and a channel ID. The player matches each channel ID in the playlist to the guide data. When IDs don't match, or time zones differ, you get missing or shifted guide entries. See what EPG is and the XMLTV format.

Layer 3: Delivery (how streams travel)

  • Unicast sends a separate copy of the stream to each viewer. Internet IPTV and streaming apps work this way, usually through a content delivery network (CDN) that serves viewers from nearby servers.
  • Multicast sends one stream that the network copies to everyone watching that channel. Telecom operators use it on their own managed networks for their TV packages, which is why operator IPTV can be very stable.

Your home network is the final link, and the one you control. A steady connection matters more than raw speed; see internet speed for IPTV.

Layer 4: Stream formats (HLS, MPEG-TS and DASH)

FormatHow it worksWhere you'll see it
MPEG-TSA continuous stream of small fixed-size packets, designed for broadcast".ts" output in many IPTV apps
HLSVideo split into short segments listed in an .m3u8 playlist, specified in RFC 8216 (opens in a new tab)".m3u8" output; Apple devices; most streaming apps
MPEG-DASHA segment-based format similar to HLS, as an international standardMany on-demand services

Many IPTV players let you choose "TS" or "HLS/M3U8" output. If one stutters, the other may work better on your device. Details in HLS vs MPEG-TS and what an M3U8 file is.

Layer 5: Codecs (compression)

CodecEfficiencyDevice supportNotes
H.264 (AVC)BaselineAlmost universalStill the most common for HD
H.265 (HEVC), ITU-T H.265 (opens in a new tab)About twice as efficient as H.264 at similar qualityMost 4K TVs and sticksCommon for 4K and some FHD channels
AV1, from AOMedia (opens in a new tab)Similar to or better than HEVCNewer devices onlyGrowing, mainly in large streaming apps

If a channel shows a black screen with sound, the device often can't decode that codec. Switching between hardware and software decoding in the player can help. See IPTV codecs and IPTV black screen.

Resolution, bitrate and frame rate

  • Resolution is how many pixels: SD, HD (720p), Full HD (1080p) or 4K (2160p). See IPTV resolutions explained.
  • Bitrate is how much data per second the stream uses. It affects quality more than resolution does, and decides how much bandwidth you need.
  • Frame rate is 50 frames per second for UK and European broadcasts and 60 in North America. A device that doesn't match it shows judder; see frame-rate matching.
  • HDR (HDR10, HLG, Dolby Vision) adds brightness and colour range on supported TVs. See HDR formats.

Layer 6: Protection (DRM)

Licensed streaming services usually encrypt their streams with DRM: Widevine on Android and Chrome, FairPlay on Apple devices, PlayReady on Windows and many TVs. Only approved apps on approved devices can decrypt them, which is why some services work only in their own official app. See DRM explained.

Layer 7: The player

The player app signs in, reads the playlist and guide, chooses the stream format, decodes the video and audio, and draws the interface. Settings you'll meet include buffer size, decoder (hardware or software), stream output type, and EPG time offset. Our guide to IPTV players compares the popular apps.

Frequently asked questions

What protocol does IPTV use?

Internet IPTV usually delivers video over HTTP, using HLS or plain MPEG-TS streams. Operator IPTV on managed networks often uses multicast. The login itself typically uses an HTTP API (Xtream Codes) or a playlist file (M3U).

What is the difference between M3U and M3U8?

An IPTV M3U playlist lists channels. An M3U8 file is usually an HLS playlist that lists the short video segments of one stream. Both use the same text format. See what an M3U8 file is.

Does HEVC need more internet speed than H.264?

No, the opposite. HEVC needs roughly half the bitrate of H.264 for similar quality, but your device must be able to decode it.

What is a good bitrate for 4K IPTV?

It varies by codec and content. As a working guide, allow a steady 25 Mbps or more per 4K stream.

Conclusion

IPTV technology looks complicated, but it's a stack of simple parts: a login or playlist, guide data, a delivery method, a stream format, codecs and a player. When something goes wrong, identifying the layer is half the fix. Start with our IPTV glossary for quick definitions, or the IPTV not working guide to troubleshoot.

IPTV Basics & Technology

What Is EPG? The Electronic Program Guide Explained

EPG stands for electronic program guide. Learn how EPG data works on TV and IPTV, what XMLTV is, how apps read guide data, and why times are sometimes wrong.

Updated · 4 min read

Need a hand with setup?

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