User Manual:Setting up HTTP Live Streaming Recorder

From MythTV Official Wiki
Jump to: navigation, search

HTTP Live Streaming Recorder

With 0.26, a new feature was added allowing you to record various HTTP Live Streams (HLS).

It works in a similar fashion as the IPTV recorder, using a single playlist containing a list of HLS streams.

HLS Recorder Playlist

The playlist is an extension of a standard M3U playlist:

   #EXTM3U
   #EXTINF:0,300 - NASA TV
   #EXTMYTHTV:xmltvid=hls.nasatv
   http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8
   # If the above does not work, try this
   #http://nasatv-lh.akamaihd.net/i/NASA_101@319270/master.m3u8

The link provided must be to a HTTP Live Streaming playlist.

Such a playlist can be found there: https://www.avenard.org/files/media/playlist-hls.m3u


Setting up the HTTP Live Streaming Recorder

Start mythtv-setup

And go into "Capture Card" and select "New Capture Card"

Hls1.png

As card type, select "Network Recorder"

In "M3U URL" enter the link to the M3U playlist as described above, you can use https://www.avenard.org/files/media/playlist-hls.m3u.

As tuning can take quite a few seconds, set the timeout value to 60000ms (60s)

Hls2.png

In the main menu, go into "Video Sources"
Select "New video source"

In "Video source name", enter HLS (or whatever you wish).
In Listing grabber: "No grabber"

Click on "Finish"

Hls3.png

In the main menu, go to "Input connections"
And select the FREEBOX recorder you've just entered above.

Hls4.png

In "Video source", select the video source you entered earlier, in our example "HLS"

Click on "Scan for channels"

Hls5.png

Click on Next, and Finish. No channels will appear, but that's normal.

Hls6.png

If you now go into the "Channel Editor" you will see the list of channels.

You can now exit mythtv-setup, and run mythbackend and mythfrontend

Going into Live TV will allow you to select one of the newly added channels.

Available HLS Channels

If using the https://www.avenard.org/files/media/playlist-hls.m3u playlist, the following channels are available:

  • 300 - NASA TV
  • 301 - Al Jazeera
  • 302 - France 24 (French) * unavailable *
  • 303 - Direct Star
  • 304 - BBC News
  • 305 - Redbull.tv
  • 306 - Eurosport UK
  • 307 - Bloomberg
  • 308 - Fashion TV * unavailable *
  • 309 - DEEJAY TV (Italian)
  • 310 - Rai News (Italian) * unavailable *
  • 311 - Sky TG24 (Italian) * unavailable *
  • 312 - Al Jazeera Mubasher (Arabic)
  • 313 - Al Jazeera Arabic (Arabic)
  • 314 - Al Jamuba (Arabic)
  • 315 - TWIT TV (English)
  • 316 - ABC News 24 (English)
  • 317 - Channel NewsAsia (English)
  • 318 - DW Europe (English)
  • 317 - Channel NewsAsia (English)
  • 318 - DW Europe (English)
  • 319 - DW Asia (English)
  • 320 - DW LatinoAmerica (German)
  • 321 - ENCA (English)
  • 322 - EuroNews (English)
  • 323 - EuroNews (French)
  • 324 - EuroNews (German)
  • 325 - EuroNews (Italian)
  • 326 - EuroNews (Portuguese)
  • 327 - EuroNews (Russian)
  • 328 - EuroNews (Spanish)
  • 329 - EuroNews (Turkish)
  • 330 - EuroNews (Arabic)
  • 331 - PRESSTV (English)
  • 332 - REUTERS (English)
  • 333 - RT (English)
  • 334 - RT (Spanish)
  • 335 - RT (Arabic)
  • 336 - Intelligence2 (English)
  • 337 - UNHCR (English)
  • 338 - Almayadeen (Arabic)
  • 339 - CNBC Arabia (Arabic)
  • 340 - Democratic Voice of Burma (Burmese)
  • 341 - ABC Australian (English)
  • 342 - ORF 2 Europe (German)

Another source of playlist entries: http://www.iptvlinks.com/

What about Guide data?

If you want to set up recordings ahead of time, you need some source of guide data. Like any other recorder in mythtv, you need to provide a XMLTV feed and set the xmltv id for each channel.

In the playlist file you extend the entries by adding an xmltvid field, which will be matched to an xmltvid in the feed. To continue the example from above with a made-up xmltvid:

   #EXTM3U
   #EXTINF:0,300 - NASA TV
   #EXTMYTHTV:xmltvid=hls.nasatv
   http://www.nasa.gov/multimedia/nasatv/NTV-Public-IPS.m3u8
   #EXTMYTHTV:xmltvid=hls.nasatv

The guide data goes into the XMLTV feed, but collating it is a signficant effort. You'll probably be screen scraping and will have to deal with low-quality episode descriptions, along with lots of repeats (not flagged as such). An (umaintained) attempt to do this can be found at https://www.avenard.org/iptv/TPG_and_IPTV/EPG.html.