Mythtv/Plugins/MythStream

From MattWiki
< Mythtv‎ | Plugins(Redirected from Mythtv\Plugins\MythStream)
Jump to: navigation, search

MythStream allows you to stream Music, News, & Videos, from almost any internet based source. Using mplayer and other open source software. You can receive this info using RSS, mpu, rm, mp3, and many other formats.


Prerequisites

Mythtv must be installed and working on the system. You will also need fftw2-devel.i386 installed

yum -y install fftw2-devel.i386 perl-XML-DOM.noarch perl-XML-Simple.noarch

Download

The download page can be found here

cd /tmp/svn/
rm -rf mythstream*
wget http://home.kabelfoon.nl/~moongies/sw9vc4htz2/mythstream-v0.17_2.tar.gz
tar -xzf mythstream-v0.17_2.tar.gz
mv mythstream-0.17_2 mythstream
rm -f mythstream-v0.17_2.tar.gz
cd mythstream

Installation

First change the install directory in settings.pro Change the PREFIX to /usr/local

vim settings.pro
   # Install in /usr/share/... or /usr/local/share/... ?
   PREFIX = /usr/local

Next to compile & install MythStream run:

qmake mythstream.pro
make
make install

Configuring

Add the following lines to /usr/local/share/mythtv/library.xml

or for the "classic" style add the lines to /usr/local/share/mythtv/musicmenu.xml

   <button>
      <type>STREAM</type>
      <text>Internet Streams</text>
      <action>PLUGIN mythstream</action>
      <depends>mythstream</depends>
   </button>

Add the following lines to /usr/local/share/mythtv/media_settings.xml

or for the "classic" style add the lines to /usr/local/share/mythtv/music_settings.xml

   <button>
      <type>STREAM</type>
      <text>Stream Settings</text>
      <action>CONFIGPLUGIN mythstream</action>
      <depends>mythstream</depends>
   </button>

Configuring Themes

For the next part you will change the theme.xml file for you current theme.

example: /usr/local/share/mythtv/themes/Titivillus/theme.xml

  <buttondef name="STREAM">
    <image>stream.png</image>
    <offset>60,30</offset>
  </buttondef>

example: /usr/local/share/mythtv/themes/Titivillus/theme.xml

  <buttondef name="STREAM">
    <image>ui/button_off.png</image>
    <watermarkimage>watermark/stream.png</watermarkimage>
    <offset>0,0</offset>
  </buttondef>

Troubleshooting/Notes

To see what codec mplayer is using run

mplayer -vc help