From MythTV Official Wiki
Revision as of 23:19, 23 February 2009 by YLee (talk | contribs) (MythStreams moved to MythVodka: New name for plugin)

Jump to: navigation, search

Outdated: The BBC iPlayer MythStreams plug-in has been discontinued. Updated: Oh no it hasnt! Ive just been busy. And its now called Myth Video On Demand Killer App! Or MythVodka. And now it plays Hulu content.

MythVodka is a plugin that plays streaming content full screen using the internal player. It supports flash/rtmp content (Hulu, BBC iPlayer) and http streaming content like Diggnation from anywhere (but I only use it for Revision 3 stuff).

This plugin is based heavily on the Movie Times plugin, which was an awesome starting point. It will become less based on this as development continues. So hats off to movie times strreaming dev guy, and apologies from ripping off your code and messing it all up.

All content is downloaded in whatever ungodly format those crazy internet TV providers care to use, then transcoded into an mpeg2 (using either mencoder or ffmpeg) which mythtv plays. Its wasteful on resources and adds an extra dependancy, but is reliable. If anyone wants to help out and get the internal player to play the streaming h264 files, then be my guest!

You can see version .07 here:

Prerequisites: Mencoder (part of mplayer) Curl (in most distros) QMake MythTV Source (or so it seems) Perl XML-DOM [[1]]

To install:

cd into your mythplugins source dir then...

tar xzf mythvodka.06.tar.gz
cd mythvodka
make install
cp scripts/* /usr/local/bin/
tar xzf rtmpdump-v1.2a.tar.gz
cd rtmpdump
cp rtmpdump /usr/local/bin/
chmod 777 /var/tmp

Check your path on mencoder, mine is in /usr/bin/mencoder

Important.png Note: You may not have qmake installed. This is the QT make utility. It often comes in the qt-devel or qt4-devel package on various distributions. Install this if you're missing qmake... You may need to explicitly call qmake with its full path (on Fedora 8 this is: /usr/lib/qt4/bin/qmake)

Next you have to add the menu entries for the plugin:

cd /usr/local/share/mythtv vi library.xml

Add the following lines:

     <text>Myth Vodka</text>
     <action>PLUGIN mythvodka</action>

vi media_settings.xml

Add the following lines:

     <text>MythVodka Setting</text>
     <action>CONFIGPLUGIN mythvodka</action>

Out of the box at the very least it should be able to play Revision 3 content like diggnation, and if your in the UK then hopefully with those inctructions iPlayer will work as well. Hulu does work but as I'm outside of the US I cant test connecting directly out. It takes ages to build the Hulu content, cos theres loads of it. If you think its too slow then set the command as a cronjob ( /var/tmp/hulu.xml) and then change the grabber path to be a command that does '/bin/cat /var/tmp/hulu.xml'. No more hour long waiting for the data to be catalouged.

All creadit for being smart and getting the iPlayer files goes to - they do the hard work, I just wrap it up into a plugin. All credit for Hulu grabbing goes to and the XBox Media Centre guys, I just used some of there Python and the free open source rtmpdump tool. For the standalone hulu downloading app see the rtmpdump page.

In fact for the record all I've done is use the Python from XBMC for the grabber and RTMPDump, just put together the open source utilities, nothing new going on here. And not even packaged it up that well, its a pain to install, has loads of dependancies, wastes CPU and the GUI is rubbish. But still, it works.

Im out of the UK / US but want to get Hulu / BBC iPlayer content

What you need is a VPS in the country the content is in, so for beeb get a VPS in UK, for Hulu get a VPS in the US. If this is all your using it for you should be able to get by with a 64meg box which should be very cheap. Install debian, apache2 and PHP, download and build the RTMP dump tool and then use the PHP script in the scripts folder of this release, its setup for Hulu. Then if you goto http://yourserver/stream.php?url= (for example, put in any episode page) it will stream the flv. You can use it with the included hulu-int script that instead of downloading the vid directly grabs it from the US server.