<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!-- body{padding:1ex;margin:0;font-family:sans-serif;font-size:small}a[href]{color:-moz-hyperlinktext!important;text-decoration:-moz-anchor-decoration}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em}blockquote blockquote{border-color:#006312}blockquote blockquote blockquote{border-color:#540000} --></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div class="defangedMessage">
        <div id="me44752">
                <div>
                        Hi Chris,</div>
                <div>
                        &nbsp;</div>
                <div>
                        Thanks for the reply.</div>
                <div>
                        &nbsp;</div>
                <div>
                        I&#39;m not sure whether it&#39;s doing HLS (or indeed how to tell if it is or isn&#39;t)...</div>
                <div>
                        &nbsp;</div>
                <div>
                        Chris</div>
                <div>
                        &nbsp;</div>
                <div>
                        On Mon, Oct 22, 2012, at 10:36 PM, Chris Lewis wrote:</div>
                <blockquote class="me44752QuoteMessage" type="cite">
                        <p dir="ltr">
                                Is the enigma actually doing HLS? It&#39;s been a while since I looked at an enigma device but i thought it just offered up the transport stream.</p>
                        <p dir="ltr">
                                I&#39;m not sure how this differs from HLS though</p>
                        <p dir="ltr">
                                Chris</p>
                        <p dir="ltr">
                                Get free online storage <a href="http://db.tt/rUaqYGYA">http://db.tt/rUaqYGYA</a></p>
                        <div class="me44752gmail_quote">
                                On 22 Oct 2012 21:49, &quot;Chris Notley&quot; &lt;<a href="mailto:mythtv@notleyc.fastmail.fm">mythtv@notleyc.fastmail.fm</a>&gt; wrote:<br defang_type="attribution" />
                                <blockquote class="me44752gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                        Hi there,<br />
                                        <br />
                                        I&#39;ve been hoping to simplify the process of integrating Myth and Enigma2<br />
                                        based satellite receivers.<br />
                                        <br />
                                        I&#39;ve been experimenting with the new HTTP Live Streaming feature of Myth<br />
                                        0.26 with a hope to simplify the process of integrating an Enigma2 based<br />
                                        satellite receiver. &nbsp;It feels as though the solution is within reach,<br />
                                        but I&#39;m not there yet.<br />
                                        <br />
                                        I started by creating a m3u playlist hosted on my backend containing<br />
                                        streaming links taken directly off the Enigma2 box as follows:<br />
                                        <br />
                                        #EXTM3U<br />
                                        #EXTINF:0,1 - BBC1<br />
                                        #EXTMYTHTV:xmltvid=<a href="http://london.bbc1.bbc.co.uk" target="_blank">london.bbc1.bbc.co.uk</a><br />
                                        <a href="http://enigma2_ip/web/stream.m3u?ref=1:0:1:189D:7FD:2:11A0000:0:0:0:&amp;name=BBC%201%20London
#EXTINF:0,2" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189D:7FD:2:11A0000:0:0:0:&amp;name=BBC%201%20London<br />
                                        #EXTINF:0,2</a> - BBC2<br />
                                        #EXTMYTHTV:xmltvid=<a href="http://england.bbc2.bbc.co.uk" target="_blank">england.bbc2.bbc.co.uk</a><br />
                                        <a href="http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&amp;name=BBC%202%20England" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&amp;name=BBC%202%20England</a><br />
                                        <br />
                                        The above was saved in /var/www and if I opened it using VLC I could<br />
                                        switch between playlist entries and successfully play either channel, so<br />
                                        then tried adding it to a freshly built test box running Myth 0.26<br />
                                        broadly following the guide at<br />
                                        (<a href="http://www.mythtv.org/wiki/User_Manual:Setting_up_HTTP_Live_Streaming_Recorder" target="_blank">http://www.mythtv.org/wiki/User_Manual:Setting_up_HTTP_Live_Streaming_Recorder</a><br />
                                        - thanks Jean-Yves for an excellent article). &nbsp;I was able to configure<br />
                                        the new card, source and scan for channels, but could not watch or<br />
                                        record anything.<br />
                                        <br />
                                        After enabling verbose logging I could see there was a problem with my<br />
                                        playlist as there was an &#39;unhandled url&#39; error reported when I tried to<br />
                                        record/watch a channel from my playlist.<br />
                                        <br />
                                        To verify that the problem was definitely with the playlist I&#39;d created,<br />
                                        I added the playlist listed in the wiki page above hosted by Jean-Yves,<br />
                                        which worked. &nbsp;I then also re-read and noticed the comment at the start<br />
                                        of the wiki entry stating that &quot;The link provided must be to a HTTP Live<br />
                                        Streaming playlist&quot;, so I then modified my playlists so the main<br />
                                        playlist (as referenced in the capture card) contained the following:<br />
                                        <br />
                                        #EXTM3U<br />
                                        #EXTINF:0,1 - BBC1<br />
                                        #EXTMYTHTV:xmltvid=<a href="http://london.bbc1.bbc.co.uk" target="_blank">london.bbc1.bbc.co.uk</a><br />
                                        <a href="http://myth026_ip/bbc1.m3u
#EXTINF:0,2" target="_blank">http://myth026_ip/bbc1.m3u<br />
                                        #EXTINF:0,2</a> - BBC2<br />
                                        #EXTMYTHTV:xmltvid=<a href="http://england.bbc2.bbc.co.uk" target="_blank">england.bbc2.bbc.co.uk</a><br />
                                        <a href="http://myth026_ip/bbc2.m3u" target="_blank">http://myth026_ip/bbc2.m3u</a><br />
                                        <br />
                                        The two new playlists referenced above were as follows:<br />
                                        <br />
                                        #EXTM3U<br />
                                        #EXTINF:0,1 - BBC1<br />
                                        #EXT-X-TARGETDURATION:10<br />
                                        <a href="http://enigma2_ip/web/stream.m3u?ref=1:0:1:189D:7FD:2:11A0000:0:0:0:&amp;name=BBC%201%20London" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189D:7FD:2:11A0000:0:0:0:&amp;name=BBC%201%20London</a><br />
                                        <br />
                                        and<br />
                                        <br />
                                        #EXTM3U<br />
                                        #EXTINF:0,2 - BBC2<br />
                                        #EXT-X-TARGETDURATION:10<br />
                                        <a href="http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&amp;name=BBC%202%20England" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&amp;name=BBC%202%20England</a><br />
                                        <br />
                                        After trying to record again, the verbose logging looked a little more<br />
                                        promising, as shown in the extract below:<br />
                                        <br />
                                        2012-10-22 21:08:45.895657 I &nbsp;ChannelBase(1): Input #1: &#39;MPEG2TS&#39;<br />
                                        schan(1) sourceid(1) ccid(1)<br />
                                        2012-10-22 21:08:45.895668 I &nbsp;ChannelBase(1): Current Input #1:<br />
                                        &#39;MPEG2TS&#39;<br />
                                        2012-10-22 21:08:45.895725 I &nbsp;IPTVChan(1): Open() -- end<br />
                                        2012-10-22 21:08:45.896032 I &nbsp;IPTVChan(1): GetChanInfo() -- begin<br />
                                        2012-10-22 21:08:45.896038 I &nbsp;IPTVChan(1): GetChanInfo() -- locked<br />
                                        2012-10-22 21:08:45.897843 I &nbsp;IPTVFeed: Open() -- begin<br />
                                        2012-10-22 21:08:45.897848 I &nbsp;IPTVFeed: Init() -- begin<br />
                                        2012-10-22 21:08:45.930427 I &nbsp;IPTVFeed: Init() -- adding listeners<br />
                                        2012-10-22 21:08:45.930513 I &nbsp;IPTVFeed: Init() -- end 1<br />
                                        2012-10-22 21:08:45.930548 I &nbsp;IPTVHLS: Open(<a href="http://myth026_ip/bbc1.m3u" target="_blank">http://myth026_ip/bbc1.m3u</a>)<br />
                                        -- begin<br />
                                        2012-10-22 21:08:45.930643 I &nbsp;IPTVHLS: Open() -- end<br />
                                        2012-10-22 21:08:45.930647 I &nbsp;IPTVFeed: Open() -- end<br />
                                        2012-10-22 21:08:46.384148 I &nbsp;HLSBuffer: HTTP Live Streaming<br />
                                        (<a href="http://myth026_ip/bbc1.m3u" target="_blank">http://myth026_ip/bbc1.m3u</a>)<br />
                                        2012-10-22 21:08:46.384342 I &nbsp;HLSBuffer: Live Playlist HLS protocol<br />
                                        version: 1<br />
                                        2012-10-22 21:08:46.385151 I &nbsp;HLSBuffer: Starting Prefetch for 1<br />
                                        segments<br />
                                        2012-10-22 21:08:46.789217 I &nbsp;HLSBuffer: Finished Prefetch (0.404079s)<br />
                                        2012-10-22 21:08:46.789476 I &nbsp;HLSBuffer: pausing until we get sufficient<br />
                                        data buffered<br />
                                        2012-10-22 21:08:46.890451 I &nbsp;HLSBuffer: reloading HLS live meta<br />
                                        playlist<br />
                                        2012-10-22 21:08:47.493555 I &nbsp;HLSBuffer: Live Playlist HLS protocol<br />
                                        version: 1<br />
                                        2012-10-22 21:08:47.493707 I &nbsp;HLSBuffer: updated hls stream<br />
                                        (program-id=0, bitrate=0) has 1 segments<br />
                                        2012-10-22 21:08:50.960231 I &nbsp;sleeping for 60000 ms (interuptable)<br />
                                        2012-10-22 21:08:52.494786 I &nbsp;HLSBuffer: reloading HLS live meta<br />
                                        playlist<br />
                                        2012-10-22 21:08:53.096349 I &nbsp;HLSBuffer: Live Playlist HLS protocol<br />
                                        version: 1<br />
                                        2012-10-22 21:08:53.096397 I &nbsp;HLSBuffer: updated hls stream<br />
                                        (program-id=0, bitrate=0) has 1 segments<br />
                                        2012-10-22 21:08:54.975745 I &nbsp;Cardid 1: max bitrate 162597 KB/min<br />
                                        2012-10-22 21:08:54.975756 I &nbsp;Maximal bitrate of busy encoders is 162597<br />
                                        KB/min<br />
                                        2012-10-22 21:08:58.096612 I &nbsp;HLSBuffer: reloading HLS live meta<br />
                                        playlist<br />
                                        2012-10-22 21:08:58.698109 I &nbsp;HLSBuffer: Live Playlist HLS protocol<br />
                                        version: 1<br />
                                        2012-10-22 21:08:58.698157 I &nbsp;HLSBuffer: updated hls stream<br />
                                        (program-id=0, bitrate=0) has 1 segments<br />
                                        <br />
                                        Running wireshark during the attempted recording shows an HTTP get<br />
                                        request being sent to the Enigma2 box from the mythtv box, so it appears<br />
                                        the structure of the playlist is sound, but the recording never seems to<br />
                                        happen.<br />
                                        <br />
                                        I&#39;ve run out of steam this evening, but any pointers would be greatly<br />
                                        appreciated!!<br />
                                        <br />
                                        Cheers,<br />
                                        Chris<br />
                                        _______________________________________________<br />
                                        mythtv-users mailing list<br />
                                        <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br />
                                        <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></blockquote>
                        </div>
                        <div>
                                <u>_______________________________________________</u></div>
                        <div>
                                mythtv-users mailing list</div>
                        <div>
                                <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a></div>
                        <div>
                                <a href="http://www.mythtv.org/mailman/listinfo/mythtv-users">http://www.mythtv.org/mailman/listinfo/mythtv-users</a></div>
                </blockquote>
        </div>
</div>
<div>
        &nbsp;</div>
</div></body></html>