---
title: EPG
url: https://doc.pstreamer.tv/en/manual/xmltv.html
lang: en
product: Perfect Streamer
version: 1.13.3.445
---

# EPG

## EPG/XMLTV import

EPG data is collected into the EPG Database from various sources:

- EIT from received streams (SPTS and MPTS). Enabled by setting Stream: Extract EIT to EPG Database.
- Import in XMLTV format from various external sources. Sources are configured in Configuration/EPG/EPG Sources. EPG sources in the form of a link to a web resource and locally from a file with the full path specified are supported.

EPG event storage period is set by the EPG storage period (days) parameter.

Auto-clean database — Deletes programs for which there are no events.

The EPG section displays EPG sources and related data. For each channel (EPG Channels List), you can set:

- Channel Name — the name that will be used in the export on the XMLTV server.
- Time Zone — you can adjust the time zone if it was not tied to UTC when importing.
- EPG Channel Sets — bind the channel to the Channel Set (see below).
- Icon — channel icon URL (*http://example.com/mychannel/myicon.png*).

## EIT generator

EIT data from the EPG Database can be generated in an SPTS Stream. To do this, in the Stream setup you need to set **EPG Source ID** and select **EPG Channel ID**. In this case SDT will necessarily be generated, even if it is not present in the source. Set **SDT Data** correctly.

If this Stream is used in a multiplexer, then Service Name can be overridden individually in the output/muxer settings.
