15% discount on service renewal Renew now

0

admin Admin

Enigma2 IPTV: M3U to bouquets, EPG and the right media player

Article

On an Enigma2 receiver, IPTV channels live in bouquets, the same channel lists that hold satellite and cable services. Turning an M3U playlist into bouquets is the job of a plugin, and one number at the start of each bouquet line decides which media player plays the stream. This guide covers Enigma2 IPTV on current images: how a bouquet line is built, which tools create bouquets on Python 3 images, how to choose between the 4097, 5001 and 5002 players, and how to get guide data.

The tools here work with any IPTV subscription that provides an M3U link or Xtream Codes details. Examples use placeholders: http://example-server.com:8080, username and password.

How an IPTV bouquet line works

Enigma2 keeps its lists in /etc/enigma2. The file bouquets.tv lists the bouquet files to load, one line each:

#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.iptv_news.tv" ORDER BY bouquet

Inside a bouquet file, a #NAME line gives the bouquet its title, and each channel takes a #SERVICE line followed by a #DESCRIPTION line:

#SERVICE 4097:0:1:3E9:1:1:0:0:0:0:http%3a//example-server.com%3a8080/live/username/password/101.ts:News One

#DESCRIPTION News One

  • 4097 is the service type, which picks the player. The options are covered below.
  • The middle fields form the service reference. Bouquet tools give each channel unique values here, because the guide importer attaches programs by service reference; if every channel had the same reference, they would all show the same guide.
  • The stream address follows, with each colon written as %3a (some tools write %3A), because plain colons separate the fields.
  • The name after the last colon is optional; the #DESCRIPTION line also sets it.

A line of the form #SERVICE 1:64:0:0:0:0:0:0:0:0: with its own description is a marker, used as a heading inside a bouquet. After editing files by hand, restart the GUI from the standby menu so Enigma2 reloads them.

Tools that build bouquets on current images

OpenATV, OpenPLi and OpenViX have moved to Python 3, and that matters when you pick a tool. The original e2m3u2bouquet script on GitHub is written for Python 2, so on a Python 3 image use a maintained plugin, or a build of the tool that your image's own feed provides.

Bouquet Maker Xtream

KiddaC's Bouquet Maker Xtream creates bouquets from Xtream Codes and XUI One accounts, from M3U8 playlists on the web, and from local M3U8 files. You can hide categories and individual channels, let it update bouquets automatically and download picons. For Xtream playlists it also offers catch-up from the channel list, when the provider supports it, through remote keys such as PVR or Video.

XStreamity

XStreamity, by the same developer, is built for playing Xtream Codes accounts inside its own interface; for bouquets, the developer offers Bouquet Maker Xtream. It stores accounts in /etc/enigma2/xstreamity/playlists.txt, lets you pick the player separately for live channels and for films, keeps its own guide with an automatic update, and offers catch-up margins of up to 30 minutes before and after a program. It suits people who browse films and series on the box and want live bouquets kept small.

e2m3u2bouquet

Even where you don't run it, e2m3u2bouquet's options show what a good bouquet maker should do. It accepts an M3U URL and an EPG URL, lets you set the service type for TV and for films separately, can build an all-channels bouquet, download picons and place IPTV bouquets at the top. After a first run it writes a sort file that you rename to an override file and edit: reorder categories and channels, rename them, move them, or disable them with enabled="false". Its README suggests running it twice a day from cron.

Install plugins from your image's feed or from the developer's own repository, not from re-packaged files passed around in forums.

Choosing the media player: 1, 4097, 5001 or 5002

Type Player Notes
4097 The image's built-in media player (servicemp3, based on GStreamer on most images) Always available; the usual starting point
5001 gstplayer, through ServiceApp Needs the ServiceApp plugin and the gstplayer program
5002 exteplayer3, through ServiceApp Needs ServiceApp and exteplayer3, an FFmpeg-based player
1 Enigma2's DVB playback path, the one satellite channels use Offered by bouquet tools for live channels; expects MPEG-TS streams (output=ts), not HLS
8193 DreamOS GStreamer Dreambox images only

ServiceApp is a system plugin, packaged as enigma2-plugin-systemplugins-serviceapp on images that include it. It adds the 5001 and 5002 types, and it can also take over type 4097, so existing bouquets switch player without being rebuilt. XStreamity shows the 5001 and 5002 choices only when /usr/bin/gstplayer and /usr/bin/exteplayer3 exist on the box, which is a quick way to see what's installed.

No type is best for every channel. Start with 4097. If a channel won't start, has no sound, stutters or shows the wrong aspect, rebuild that bouquet with 5002, then try 5001. Change one thing at a time and note what worked, because the result depends on the box, the image and the stream format.

Guide data on Enigma2

The EPG-Importer plugin (EPGImport) loads XMLTV guides into the box's own guide. It works from two files: a sources file that points to the XMLTV address, and a channels file that ties each XMLTV channel ID to a service reference in your bouquets. e2m3u2bouquet writes both into /etc/epgimport for you; you then enable that source in EPG-Importer and set its schedule.

  • Reusing satellite guide data: if you also receive a channel by satellite, you can give the IPTV entry the satellite service's reference values, and the box shows the satellite guide for it. e2m3u2bouquet's override file has a serviceRef attribute for exactly this.
  • Third-party guides: KiddaC's Jedi-EPG-XStream assigns guide data from other sources to IPTV channels.
  • XStreamity downloads guide data for its own screens, with an automatic update you can switch on.

When the guide shows the wrong programs or times, the causes are the same as on any player: IDs that don't match, or time offsets. The XMLTV troubleshooting article in the Setup and help section goes through both.

Picons, numbering and clean-up

  • Picons are the channel logos Enigma2 shows in lists and the info bar. They are matched by service reference, so they follow the unique values the bouquet tool writes. e2m3u2bouquet saves them to /usr/share/enigma2/picon/ by default, and its README warns that downloading them makes each run slower; download them once, then turn the option off.
  • Numbering follows the order of bouquets and channels. If you want IPTV bouquets first, use the tool's option to place them at the top, and use its placeholder entries if you want channel numbers to stay put when the provider adds channels.
  • Several providers can share one box. e2m3u2bouquet's config file holds more than one provider, and each gets its own bouquets and guide source.
  • Custom service references from a provider's own bouquet file can be pulled in with e2m3u2bouquet's bouquet download options, which is useful when a provider publishes its own references.
  • Clean-up: e2m3u2bouquet has an uninstall option that removes the changes it made. For other plugins, look for a delete or clean-up option in their menus before you remove files by hand, so bouquets.tv doesn't keep pointing at missing files.

Practical tips

  • Keep bouquets for live channels. Browse films and series in a plugin; thousands of film entries in bouquets make channel lists slow to open and hard to use.
  • Schedule automatic bouquet updates for a quiet hour. Providers change stream IDs from time to time, and a refresh repairs channels that went dead after such a change.
  • Make your changes through the tool's own hide, rename and override options. Hand edits to generated bouquet files are overwritten at the next update.
  • Check that the box's time zone is set correctly; both the guide and catch-up depend on it.
  • Every receiver playing at the same time counts toward the number of connections your plan allows.

If it doesn't work

  • Black screen or no sound: switch the service type for that bouquet.
  • Channels listed but nothing plays: check the encoded address in the bouquet line and test the plain address in another player on the same network.
  • Bouquets vanish or reset after an update: the tool rebuilt them; move your changes into its override or hide settings.
  • The plugin stopped working after an image update: the image may have changed Python version or libraries. Reinstall the plugin from the feed.

For other devices in the house, the apps and players hub lists players by platform.

Sources and further reading

0 replies

0 replies

Log in with the account you ordered with to reply and vote.Log in
Chat on WhatsApp