MythTube

From MythTV

Jump to: navigation, search


Contents

Description

Unofficial Add-on for MythTV to see Internet video channels.

You can syndicate on your favorite RSS feeds Internet channels and watch and download their programs. Too you can search on some video search site (how youtube.com), using external script, now suport:

  • youtube.com
  • alpacine.com (spanish trailers)

To code your search script, please read this guide: MythTube#Make_MythTube_Script

Software Requirements

Recommend Mplayer and w32codecs to can view unsupported Internal video format.

MythTube SVN version (0.22), currently only exists for QT4/trunk.

External script can need more dependences how Perl library or Python library, check they.

  • for youtube search, need perl lib XML::DOM, (perl-XML-DOM package on openSuse 11.0)

Installation

Donwload the last version from [MythTube] track page.

Option 1: If you want build mythtube with all mythplugins

Untar on your SVN mythplugin dir

Ingress on mythplugin dir

   cd mythplugin

Patch code with contribution patch to configure and add to menu

   patch configure mythtube/contrib/mythtube-configopts.patch.txt
   patch ../mythtv/programs/mythfrontend/library.xml mythtube/contrib/library.xml.mythtube.patch
   

Type

   ./configure
   qmake
   make

As root

   make install

Option 2: If you want build mythtube and add to your mythtv system

Ingress on mythtube dir

   cd mythtube

Type

   qmake
   make
   

As root

   make install

Patch code with contribution patch to add mythtube to menu As root

   patch /usr/local/share/mythtv/library.xml contrib/library.xml.mythtube.patch


Note: NOTE: Path to library.xml can be different"

Screen shots

information menu section browser channels

information menu section a video channel

information menu section special search channel

Make MythTube Script

Channel scripts suggestion:

  • Veoh Video Network
  • Google Video
  • Blogdigger
  • Revver
  • DailyMotion
  • Yahoo!
  • blip.tv
  • Yahoo! Video


Script system is too simply, you need parse the relevant info and output (by standard output) a xml ATOM feed. See below.

Script must implement this options:

      -S <query>        search
      -M <video_page>   get media url

-S option: get search result and parse it to get a video list.

Return format example:

  <?xml version='1.0' encoding='UTF-8'?>
  <feed>
  <entry>
    <title>Exploring MythTV and mediaMVP</title>
    <date>27-08-2006</date>
    <content>MythTV is an open source digital video recording package, similar to TiVo. First is a solid intro to what MythTV can do. After that, I  ... all ยป introduce the mediaMVP set top box and how it can be used to expand MythTV to every TV in the house for not to much doough-ray-me.</content>
    <link href='http://www.youtube.com/watch?v=jwcB88yFeZ0'/>
    <media:group>
       <media:thumbnail url='http://img.youtube.com/vi/jwcB88yFeZ0/0.jpg'/>
       <media:player url='http://www.youtube.com/watch?v=jwcB88yFeZ0'/>
       <media:time sec='436'/>
       <media:content url='media_url(usually no get on search result see below)' />>
    </media:group>
    <rating viewCount='39169'/>
  </entry>
  ................(add one entry per video)................
  </feed>


Note: NOTE: Note: all tag not are necessary. For example, if you don't get media:content from video site don't put this tag."


-M option: usually search result web page no provide the media url, only get video web link. This option must return the media url of a <video_page>, this is because get media url for all listed video is very slow.

Return format: <video_page> <enclosure_media_url>

Example:

  ./youtube.pl -M http://www.youtube.com/watch?v=ijvq_LuNo1s

(OUTPUT)

  http://www.youtube.com/watch?v=ijvq_LuNo1s http://www.youtube.com/watch?v=ijvq_LuNo1s http://www.youtube.com/get_video.php?video_id=ijvq_LuNo1s&t=OEgsToPDskJss4tI40ittVCJDd9Tljx7&use_get_video_info=1&fmt=18
Personal tools