<p dir="ltr">Is the enigma actually doing HLS? It'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'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="gmail_quote">On 22 Oct 2012 21:49, "Chris Notley" <<a href="mailto:mythtv@notleyc.fastmail.fm">mythtv@notleyc.fastmail.fm</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I've been hoping to simplify the process of integrating Myth and Enigma2<br>
based satellite receivers.<br>
<br>
I'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. It feels as though the solution is within reach,<br>
but I'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:&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:&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:&name=BBC%202%20England" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&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). 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 'unhandled url' 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'd created,<br>
I added the playlist listed in the wiki page above hosted by Jean-Yves,<br>
which worked. I then also re-read and noticed the comment at the start<br>
of the wiki entry stating that "The link provided must be to a HTTP Live<br>
Streaming playlist", 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:&name=BBC%201%20London" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189D:7FD:2:11A0000:0:0:0:&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:&name=BBC%202%20England" target="_blank">http://enigma2_ip/web/stream.m3u?ref=1:0:1:189E:7FD:2:11A0000:0:0:0:&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 ChannelBase(1): Input #1: 'MPEG2TS'<br>
schan(1) sourceid(1) ccid(1)<br>
2012-10-22 21:08:45.895668 I ChannelBase(1): Current Input #1:<br>
'MPEG2TS'<br>
2012-10-22 21:08:45.895725 I IPTVChan(1): Open() -- end<br>
2012-10-22 21:08:45.896032 I IPTVChan(1): GetChanInfo() -- begin<br>
2012-10-22 21:08:45.896038 I IPTVChan(1): GetChanInfo() -- locked<br>
2012-10-22 21:08:45.897843 I IPTVFeed: Open() -- begin<br>
2012-10-22 21:08:45.897848 I IPTVFeed: Init() -- begin<br>
2012-10-22 21:08:45.930427 I IPTVFeed: Init() -- adding listeners<br>
2012-10-22 21:08:45.930513 I IPTVFeed: Init() -- end 1<br>
2012-10-22 21:08:45.930548 I 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 IPTVHLS: Open() -- end<br>
2012-10-22 21:08:45.930647 I IPTVFeed: Open() -- end<br>
2012-10-22 21:08:46.384148 I 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 HLSBuffer: Live Playlist HLS protocol<br>
version: 1<br>
2012-10-22 21:08:46.385151 I HLSBuffer: Starting Prefetch for 1<br>
segments<br>
2012-10-22 21:08:46.789217 I HLSBuffer: Finished Prefetch (0.404079s)<br>
2012-10-22 21:08:46.789476 I HLSBuffer: pausing until we get sufficient<br>
data buffered<br>
2012-10-22 21:08:46.890451 I HLSBuffer: reloading HLS live meta<br>
playlist<br>
2012-10-22 21:08:47.493555 I HLSBuffer: Live Playlist HLS protocol<br>
version: 1<br>
2012-10-22 21:08:47.493707 I HLSBuffer: updated hls stream<br>
(program-id=0, bitrate=0) has 1 segments<br>
2012-10-22 21:08:50.960231 I sleeping for 60000 ms (interuptable)<br>
2012-10-22 21:08:52.494786 I HLSBuffer: reloading HLS live meta<br>
playlist<br>
2012-10-22 21:08:53.096349 I HLSBuffer: Live Playlist HLS protocol<br>
version: 1<br>
2012-10-22 21:08:53.096397 I HLSBuffer: updated hls stream<br>
(program-id=0, bitrate=0) has 1 segments<br>
2012-10-22 21:08:54.975745 I Cardid 1: max bitrate 162597 KB/min<br>
2012-10-22 21:08:54.975756 I Maximal bitrate of busy encoders is 162597<br>
KB/min<br>
2012-10-22 21:08:58.096612 I HLSBuffer: reloading HLS live meta<br>
playlist<br>
2012-10-22 21:08:58.698109 I HLSBuffer: Live Playlist HLS protocol<br>
version: 1<br>
2012-10-22 21:08:58.698157 I 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'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><br>
</blockquote></div>