The short answer
EPG stands for Electronic Program Guide: the on-screen grid that shows what is on now, what comes next and the schedule for the coming days while you browse channels on a set-top box, a smart TV or a TV app.
It helps to separate the roles from the start. The channel owns the schedule and supplies the data. The operator (a cable company, an OTT platform or an aggregator) loads that data into its middleware and shows it next to the signal it receives from the channel. The guide viewers see is always the operator's. What the channel controls is how accurate and how timely its data is, and that is where guide problems usually start.
What EPG means on a TV
On digital broadcast TV, the guide travels inside the signal itself. DVB, the standard used in Europe and much of the world, carries it in Event Information Tables (EIT): a present/following table for now and next, and schedule tables for the days ahead. In North America, ATSC does the same job with its PSIP tables. Your TV reads those tables and draws the grid.
On cable and satellite boxes, the operator's system builds the guide from the data each channel sends and inserts it at the headend. On smart TVs with free ad-supported channels (FAST), the platform downloads the guide over the internet. The delivery changes, but the source is always the same: a schedule that a channel published.
What EPG means on IPTV
An IPTV app does not read tables from a broadcast. It downloads a guide file, almost always in XMLTV format, from a web address: the EPG URL or XMLTV URL you see in the app settings. The app downloads it again on a schedule, matches each programme to a channel by an ID and draws the grid.
That ID is where most guides break. In XMLTV it is the id of each channel. Playlists used by IPTV players usually carry the same value in a tvg-id attribute on each channel line, and the guide only lines up when the two match. When they do not, the channel shows up with an empty guide. Media centers such as Kodi, Plex and Jellyfin also accept an XMLTV file or URL as their guide, which is how many people add listings for the channels they receive with an antenna tuner.
To be clear about our role: XtreamCast does not provide channel lists or guide data for third-party channels. We deliver the signal of the channels that run on our servers, and each channel sends its own guide data to its operators.
What is XMLTV? The format, element by element
XMLTV is an XML format for TV listings maintained by the open-source XMLTV project. A file has two blocks: first the channels, then their programmes. This is a minimal XMLTV file:
<tv>
<channel id="mychannel.example.com">
<display-name>My Channel HD</display-name>
<icon src="https://example.com/logo.png" />
</channel>
<programme start="20261116180000 -0500"
stop="20261116190000 -0500"
channel="mychannel.example.com">
<title>Evening News</title>
<desc>The day's main stories, with live reports.</desc>
<category>News</category>
</programme>
</tv> | Element or attribute | What it holds | Required |
|---|---|---|
| channel id | The unique ID that links each programme to its channel. The specification suggests a DNS-style name. | Yes |
| display-name | The channel name shown in the guide | Yes |
| programme start and channel | The start time with its UTC offset, and the channel ID | Yes |
| programme stop | The end time | Optional in the specification; operators expect it |
| title | The programme name | Yes |
| desc, category, icon, rating, episode-num | Synopsis, genre, image, age rating and episode number | Optional; operators usually ask for them |
Two details trip people up. Times are written as YYYYMMDDhhmmss followed by the offset, and the specification assumes UTC when there is no offset. Episode numbers in the xmltv_ns system count from zero, so season 1, episode 1 is written 0.0., which explains many guides that look one episode off.
XMLTV file vs XMLTV EPG URL
The XMLTV file is the document itself, often compressed as .xml.gz because XML text shrinks a lot. The XMLTV EPG URL is the stable web address where that file is published, so apps and middleware can download it again on a schedule instead of receiving it by email.
A good guide URL has four traits: it never changes, it is served over HTTPS, it sends a Last-Modified header so clients can skip the download when nothing changed, and the file behind it is regenerated every time the schedule changes and at least once a day.
How a channel prepares its XMLTV guide
- Agree on the channel ID with the operator. The channel id in your XMLTV must be the one the operator uses in its middleware.
- Export from your scheduling or traffic system. The guide has to come from the same source that decides what airs, not from a spreadsheet someone updates on the side.
- Publish enough days ahead. At least 7 days of future programming, or whatever the operator's specification asks for.
- Deliver it the way the operator asks. A stable HTTPS URL the operator polls, a file server or the platform's portal.
- Automate the updates. Regenerate the file whenever the schedule changes, and at least once a day.
The most common mistake is the time zone. If the file declares times without the correct offset, the whole guide shifts. A 6 p.m. show in New York in November is written 20261116180000 -0500. Leave the offset out and the specification assumes UTC, so the show appears at 1 p.m. local time, five hours early. Compute the offset for each date, too: New York moves to -0400 in summer, like every place that changes its clocks twice a year, and a guide that covers the switch needs both values.
XMLTV is not the only format
The format is decided by whoever receives the data. These are the three cases a channel runs into in practice:
| Format | Where it is used | Who produces it |
|---|---|---|
| XMLTV | IPTV middleware, OTT apps and media centers | The channel, from its scheduling system |
| EIT (DVB) or PSIP (ATSC) | Cable, satellite and digital terrestrial TV | The operator's or broadcaster's system, with the channel's data |
| Platform feed | OTT platforms and FAST aggregators | The channel, following the platform's own XML or JSON schema, or through its portal |
Before you prepare anything, ask the operator for its specification. Reading it first saves weeks of guides that load half empty.
How the guide meets the signal
The signal and the guide travel separately and meet in the operator's system:
- The signal leaves XtreamCast over SRT to the cable operator's headend, with one srt:// URL per channel that its receiver calls, or over HLS to OTT apps, smart TVs and the player on your website.
- The guide leaves your scheduling system in the format the operator asked for.
- The operator pairs them in its middleware using the agreed ID and shows both to its subscribers.
XtreamCast delivers the signal; the operator manages the guide in its middleware with the data your channel sends. That is why guide accuracy depends on your published schedule matching what actually airs. If you are adding operators, see how SRT delivery to cable operators works and how a full operation is organized in streaming for TV channels and broadcasters. The HLS side, including the M3U8 URL that apps ask for, is explained in what an M3U8 file is.
If your channel airs from LiveStation
LiveStation airs a playlist of MP4 files from our servers, in order or shuffled, on a continuous loop. It is not a time-slot scheduler, so the guide is yours to build, and it can match what airs if you follow three rules: play the loop in order, calculate start times from the real duration of each file, and regenerate the XMLTV every time you change the playlist.
When you go live from your encoder for a special, publish that block in the guide ahead of time. Afterwards, Auto Start resumes the playlist once the encoder has been silent for 10 minutes, so recalculate the times that follow. The details are in LiveStation, our 24/7 TV channel add-on, and in the LiveStation user guide. If you are still planning the channel, start with how to create an online TV channel.
What operators ask for
Operators differ in the details, but the same requests come up every time:
- Complete metadata. An image per programme in the aspect ratio the platform asks for, standard categories (news, sports, entertainment, education, religion, music) so viewers can filter, the language of each programme and an age rating where the content needs one.
- A clean channel logo. A square PNG with a transparent background, typically 256x256 or 512x512 pixels.
- Reliable delivery. Generated automatically from the scheduling system, compressed as .xml.gz and served with a Last-Modified header.
- A named contact. Someone at the channel who warns the operator about last-minute changes before they air.
Nothing damages an operator's trust faster than a guide announcing the news while a movie is on. When the guide comes from the same source that decides what airs, the published schedule matches what the subscriber sees.
Put your channel on air 24/7
LiveStation, an add-on for paid video plans, airs your playlist from our servers and lets you go live from your encoder on the same channel, with an HLS URL for apps and an SRT output for cable operators.