EIT Stream is a tool to convert XMLTV files into MPEG-TS stream with Event Information Tables (EIT) for broadcasting networks like DVB, ATSC, ISDB.
Just download single binary file and set execute permission:
curl -Lo /usr/bin/eit-stream http://cesbo.com/and/eit-stream
chmod +x /usr/bin/eit-stream
Create a configuration file /etc/eit-stream.conf
with any text editor. Example:
xmltv = /opt/xmltv.xml
output = udp://[email protected]:1234
onid = 8000
codepage = 5
eit-days = 1
eit-rate = 1500
[tdt-tot]
country = EST
offset = +120
# First multiplex
[multiplex]
tsid = 1
[multiplex/service]
pnr = 101
xmltv-id = discovery
[multiplex/service]
pnr = 102
xmltv-id = history
# Second multiplex
[multiplex]
tsid = 2
xmltv = /opt/xmltv-2.xml
[multiplex/service]
pnr = 201
xmltv-id = euronews
Lines started with symbol #
is a comment and ignored.
[multiplex]
or in [multiplex/service]
[multiplex]
or in [multiplex/service]
Next codepages available for text encoding:
Section [tdt-tot]
:
Section [multiplex]
Section [multiplex/service]
parental-rating = EST 16 USA 14
. Country code in ISO 3166-1 alpha-3 format (3 letters). Age from 4 to 18 (inclusive), 0 - without restrictions.With Astra you can append UDP stream with EIT to the MPTS.
In the MPTS settings append input and set and UDP address, for example in configuration above address is udp://[email protected]:1234
.
In the MPTS advanced settings turn on option "Pass EIT".
Register service in systemd to start service in background and autostart on system startup. Create file /etc/systemd/system/eit-stream.service
:
[Unit]
Description=eit-stream service
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/eit-stream /etc/eit-stream.conf
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
Next command could be used to manage service:
systemctl start eit-stream
systemctl stop eit-stream
systemctl enable eit-stream
systemctl disable eit-stream
To restart service once at night append next line into /etc/crontab:
0 2 * * * root systemctl restart eit-stream