[mythtv-users] HTTP Live streaming recorder and Live TV?

Bjoern Voigt bjoernv at arcor.de
Tue Jan 5 19:08:19 UTC 2016


Charles Bovy wrote:
> On Wed, Dec 30, 2015 at 8:05 PM, Bjoern Voigt <bjoernv at arcor.de
> <mailto:bjoernv at arcor.de>> wrote:
>
>     You can believe me. ;-)
>
>
> Sorry... :-)
> The reason for me was the missing of the git id in the version
> line. See my logline:
> Oct 30 14:07:14 biohazard mythbackend: mythbackend[10775]: C
> thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging)
> mythbackend version: fixes/0.27 [v0.27.5-39-g68e51d6]
> www.mythtv.org <http://www.mythtv.org>
>
> My m3u file contains URLs directly. Yours seem to refer to a m3u8
> file. So that looks more to HLS than what I'm doing. I'm not sure
> if that matters.
> Can you check/try with an m3u linking directly to the HTTP TS files?
thanks, Charles.

I was able to create a hand optimized M3U playlist with my favorite
IPTV channels like this and I put it on an webserver. Live TV,
recording and EPG work as expected with my M3U playlist:

#EXTM3U
#EXTINF:0001 tvg-id="dach.ink" tvg-logo="dach.png", [COLOR
deeppink]DACH Senderliste - Deutschland Österreich Schweiz[/COLOR]
http://cecilia.fritz.box/streams.m3u
#EXTINF:0003,300 - Das Erste X
#EXTMYTHTV:xmltvid=daserste.de
http://daserste_live-lh.akamaihd.net/i/daserste_de@91204/index_2692_av-b.m3u8
#EXTINF:0002,301 - ZDF X
#EXTMYTHTV:xmltvid=zdf.de
http://zdf1314-lh.akamaihd.net/i/de14_v1@392878/index_2256_av-p.m3u8
## [...]

One problem with MythTV 0.27 is, that I didn't found any working M3U
playlist for MythTV (for Germany). Maintaining such playlists
manually may be annoying if the channels often chance.

The example M3U playlist http://tv.iptv.ink/iptv.ink does not work
in MythTV. The example playlist from MythTV Wiki
https://www.mythtv.org/wiki/User_Manual:Setting_up_HTTP_Live_Streaming_Recorder
is unusable (in Germany; geoblocking or outdated links - I don't know).

In MythTV sources I found a comment about valid M3U playlist
entries. With this hints, I created my playlist:

./mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp:

static bool parse_chan_info(const QString   &rawdata,
                            IPTVChannelInfo &info,
                            QString         &channum,
                            uint            &lineNum)
{
    // #EXTINF:0,2 - France 2                <-- duration,channum -
channame
    // #EXTMYTHTV:xmltvid=C2.telepoche.com   <-- optional line (myth
specific)
    // #EXTMYTHTV:bitrate=BITRATE            <-- optional line (myth
specific)
    // #EXTMYTHTV:fectype=FECTYPE            <-- optional line (myth
specific)
    //     The FECTYPE can be rfc2733, rfc5109, or smpte2022
    // #EXTMYTHTV:fecurl0=URL                <-- optional line (myth
specific)
    // #EXTMYTHTV:fecurl1=URL                <-- optional line (myth
specific)
    // #EXTMYTHTV:fecbitrate0=BITRATE        <-- optional line (myth
specific)
    // #EXTMYTHTV:fecbitrate1=BITRATE        <-- optional line (myth
specific)
    // #EXTVLCOPT:program=program_number     <-- optional line (used
by MythTV and VLC)
    // #...                                  <-- ignored comments
    // rtsp://maiptv.iptv.fr/iptvtv/201 <-- url
[...]
}

EXTINF lines with other formats are not recognized.

I think, MythTV should be more fault tolerant here. What do you
think? Is this a bug, feature or an usage failure?

Greetings,
Björn


More information about the mythtv-users mailing list