Telekom Entertain on MythTV

From MythTV Official Wiki
Revision as of 22:05, 18 June 2014 by Dekarl (talk | contribs) (MythTV Configuration: fix link)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Summary

This page describes how to set-up mythTV for life-viewing, recording and viewing previously recorded TV shows - incl. streaming to other clients within the local network. All complete with the electronic TV program via XMLTV.

In 2013 in Germany 1.9 million (or 4.6%) of all 41 million households are receiving their TV signal with IPTV. Most of them have Deutsche Telekom Entertain. Thus an important and growing group of users also for mythTV (4% market pentration since the introduction of Telekom around 2010(??)).

For the local (home) network, mythTV can thus be like Telekom's offering Entertain to Go plus the ability to stream previously recorded TV shows to another client. (Dear Deutsche Telekom, how about if you added this feature to Enertain to Go as well?)

Background

Deutsche Telekom Entertain works only with a Media Receiver from Deutsche Telekom, since this device translates the non-standard proprietary IPTV broadcast into a standard compliant rtp multicast stream (streaming 1280x720 pixel with h264 as video codex and MP3 and A52 as audio codecs). See also the [1].

To receive the multicast IPTV streams, firewalls on the receiving machine need to be deactivated or better properly configured.

The electronic program guide is not broadcasted and thus needs to be retrieved otherwise.

MythTV Configuration

  • Get the list of TV stations with broadcast IP adresses as an m3u playlist file. See also below for a possibly out-dates channel listing.
  • Modify your m3u playlist file too look like this example:
 #EXTM3U
 #EXTINF:0,30 - Das Erste HD
 udp://@239.35.10.1:10000
 #EXTINF:0,31 - ZDF HD
 udp://@239.35.10.2:10000

(Note especially that the original rtp protocol prefix needs to be exchanged with udp for mythTV 0.27. Not a clean solution - but it works. Note also the second number after EXTINF, which will be the channel number. The first number must not be negative!)

  • Shutdown the mythtv backend service (e.g. by rcmythbackend stop) and start mythtv-setup as root.
  • Under Video device (TV-Karte) add an IPTV recorder pointing to that m3u file with file:///home/myuser/channels.m3u. The video device will show up as FreeBox.
  • Prepare and configure the xmltv grabber tv_grab_eu_egon - Details below.
  • Under video sources (Videoquellen) create an xmltv grabber source with Prepare an xmltv epg grabber
  • Under Connections (Verknüpfungen) connect the Freebox IPTV recorder with the xmltv grabber source.
  • To support multiple recordings/life-views at a given time, add further IPTV recorders with the same configuration and connect them to the same xmltv grabber source.
  • Under Channdels (Sender) run search channels (Sender Suchlauf) for unencrypted TV programs. If successful the progress bar will move and the recognized channels will be listed.
  • restart the mythbackend service again
  • Run mythfilldatabase to get the epg data amongst other things.

EPG

This configuration gets the TV program data from another data source in XMLTV format.

  • Install the xmltv package (e.g. from your linux repositories).
  • Test with tv_find_grabbers if tv_grab_eu_egon is properly installed.
  • (Optional?) Configure tv_grab_eu_egon with
 tv_grab_eu_egon --configure

and point it to the default free data source ("spaetfruehstuecken").

An alternative (for pay) data source epgData - but it is unclear how to configure it.

Firewall

The firewall needs to accept broadcast service with dest port 10000. Thus for openSuSE Linux v13.1 in /etc/sysconfig/SuSEfirewall2 add:

 FW_SERVICES_EXT_UDP="10000"
 FW_ALLOW_FW_BROADCAST_EXT="10000"

In addition IGMP multicast/broadcasting protocol needs to be enabled in /etc/sysconfig/SuSEfirewall2:

 FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"

Then in /etc/sysconfig/scripts/SuSEfirewall2-custom under function fw_custom_after_chain_creation() add:

 iptables -I INPUT -p igmp -j ACCEPT

For simple testing of the network set-up use vlc with the original m3u channel file.

Full Channel Listing in M3U Format

as of 11.05.14

#EXTM3U
#EXTINF:0,30 - Das Erste HD
udp://@239.35.10.1:10000
#EXTINF:0,31 - ZDF HD
udp://@239.35.10.2:10000
#EXTINF:0,32 - ARTE HD
udp://@239.35.10.3:10000
#EXTINF:0,33 - Phoenix HD
udp://@239.35.10.48:10000
#EXTINF:0,34 - KiKA HD
udp://@239.35.10.11:10000
#EXTINF:0,35 - 3sat HD
udp://@239.35.10.47:10000
#EXTINF:0,36 - Tagesschau 24 HD
udp://@239.35.10.63:10000
#EXTINF:0,37 - Einsfestival HD
udp://@239.35.10.58:10000
#EXTINF:0,38 - EinsPlus HD
udp://@239.35.10.59:10000
#EXTINF:0,39 - ZDF Kultur HD
udp://@239.35.10.54:10000
#EXTINF:0,40 - ZDF neo HD
udp://@239.35.10.55:10000
#EXTINF:0,41 - ZDF Infokanal HD
udp://@239.35.10.56:10000
#EXTINF:0,42 - Bayern Süd HD
udp://@239.35.10.49:10000
#EXTINF:0,43 - HR HD
udp://@239.35.10.60:10000
#EXTINF:0,44 - MDR HD
udp://@239.35.10.61:10000
#EXTINF:0,45 - NDR HD
udp://@239.35.10.50:10000
#EXTINF:0,46 - RBB HD
udp://@239.35.10.62:10000
#EXTINF:0,47 - SWR BW HD
udp://@239.35.10.51:10000
#EXTINF:0,48 - WDR HD
udp://@239.35.10.53:10000
#EXTINF:0,01 - Das Erste
udp://@239.35.10.4:10000
#EXTINF:0,02 - ZDF
udp://@239.35.10.5:10000
#EXTINF:0,03 - RTL
udp://@239.35.20.10:10000
#EXTINF:0,04 - RTL2
udp://@239.35.20.22:10000
#EXTINF:0,05 - Vox
udp://@239.35.20.11:10000
#EXTINF:0,06 - Super RTL
udp://@239.35.20.39:10000
#EXTINF:0,07 - ntv
udp://@239.35.20.47:10000
#EXTINF:0,08 - RTLNITRO
udp://@239.35.20.59:10000
#EXTINF:0,09 - arte
udp://@239.35.10.20:10000
#EXTINF:0,10 - Phoenix
udp://@239.35.10.22:10000
#EXTINF:0,11 - 3sat
udp://@239.35.10.6:10000
#EXTINF:0,12 - KI.KA
udp://@239.35.10.19:10000
#EXTINF:0,13 - tagesschau24
udp://@239.35.10.25:10000
#EXTINF:0,14 - Einsfestival
udp://@239.35.10.21:10000
#EXTINF:0,15 - EinsPlus
udp://@239.35.10.26:10000
#EXTINF:0,16 - ZDF Kultur
udp://@239.35.10.23:10000
#EXTINF:0,17 - ZDF Infokanal
udp://@239.35.10.28:10000
#EXTINF:0,18 - ZDF neo
udp://@239.35.10.27:10000
#EXTINF:0,19 - Deutsche Welle
udp://@239.35.20.44:10000
#EXTINF:0,20 - BR Nord
udp://@239.35.10.13:10000
#EXTINF:0,21 - BR-alpha
udp://@239.35.10.24:10000
#EXTINF:0,22 - hr-Fernsehen
udp://@239.35.10.8:10000
#EXTINF:0,23 - MDR Sachsen
udp://@239.35.10.9:10000
#EXTINF:0,24 - NDR
udp://@239.35.10.10:10000
#EXTINF:0,25 - Radio Bremen TV
udp://@239.35.10.12:10000
#EXTINF:0,26 - rbb Berlin
udp://@239.35.10.14:10000
#EXTINF:0,27 - SR Fernsehen
udp://@239.35.10.15:10000
#EXTINF:0,28 - SWR Fernsehen BW
udp://@239.35.10.16:10000
#EXTINF:0,29 - WDR
udp://@239.35.10.18:10000