Archive:MythTV

From Official Kodi Wiki
Revision as of 09:36, 1 January 2009 by >Dteirney (Daily updates/improvements)
Jump to navigation Jump to search

XBMC Media Center includes a Source that can be used to interact with a MythTV backend to:

  • Watch Live TV
  • View the program guide
  • Play previously recorded TV shows

TODO: Screenshots based on New Zealand Freeview|HD content with the MediaStream skin.

Setup

To communicate with a MythTV backend, add a new Source from the Videos section. The source should have a URL that looks like:

myth://192.168.1.nnn where 192.168.1.nnn is the IP address or hostname of the MythTV backend machine.

This form of the MythTV Source will use a default username and password of mythtv, and will access a standard samba share called recordings. TBC: if this protocol uses the samba share since it's using the Myth API rather than MySQL and samba access like the old xbmcmythtv Python script. Also, confirm whether the username and password is the MySQL database or Linux username and password.

The full version of the URL for the MythTV Source is:

myth://username:password@ipaddress/sharename

Once the MythTV Source has been added, when it is chosen you will be presented with 3 virtual folders.

  • Live TV - to display TV that is currently being aired
  • Guide - to view the EPG for a subsequently chosen channel
  • Recordings - to watch TV shows that have been previously recorded

Watching Live TV

After choosing Live TV a listing of channels held within MythTV will be presented along with:

  • the name of the channel
  • the currently playing TV show on that channel.

Depending on the XBMC skin being used, and the available Views, the icon for the channel and the description for the currently playing TV show may be displayed.

TODO: Screenshot showing listing in MediaStream.

When a channel is chosen, the currently playing TV show will be displayed.

TBC: Exactly when LiveTV stops recording once the channel is no longer being viewed.

There are future plans for a fully interactive EPG similar to that available within the MythTV frontend.

It is not possible within XBMC to move up and down the channels when playing LiveTV. The new channel needs to be chosen from within the Live TV listing.

Viewing the Program Guide

After choosing Guide a listing of channels held within MythTV will be presented. When a channel is chosen, and listing of upcoming TV shows on that channel is displayed.

TODO: Screenshot of a channel around prime time.

There is a future project to be able to schedule programs to record from the EPG similar to the functionality available in the MythTV frontend.

Watching Recorded TV Shows

When choosing Recordings a list of all recorded TV shows is presented along with:

  • The name of the TV show
  • The date that it aired

Depending on the XBMC skin being used, and the available Views, the thumbnail for the TV show, the channel and the description may be displayed.

TODO: Screenshot

Using standard XBMC functionality, the recordings can be sorted by name to get all the shows from a given series shown together, or sorted by date to see the most recent recordings.

The subversion (SVN) release of XBMC also provides a Recordings By Title virtual folder. When choosing this, a list of all the recorded TV shows grouped by title is shown. This makes it much easier to see what TV show series have been recorded, and then see a list of recorded TV shows in a series sorted by date.

Skin Support

MediaStream - Episode View

Current Projects

Unified PVR

Trouble Shooting

XBox - SD only Linux - HD Always turn on debugging and review the XBMC log file.

Recordings Don't Play

Check the DNS entry. The Myth API gets the hostname of the MythTV backend and uses that to play recordings. XBMC needs to be able to resolve the hostname to an IP address for playback to work. On the XBox, hostname resolution is best handled by adding a using Hosts entry in AdvancedSettings.xml file. On Linux, use the /etc/hosts file.

High CPU Usage with H264 Encoded Video

Depending on the video card and driver being used, there could be significant CPU utilised when playing H264 content.

There is an advanced setting which can be used to reduce the number of CPU cycles used to decode H264 encoded video.

The <skiploopfilter> setting in advancedsettings.xml can be used to reduce the CPU utilization by reducing the quality of the output video.

Valid values are -16, 0, 8, 16, 32, 48.

The larger the number the more h264 content gets discarded in an effort to save CPU cycles.

Audio Plays Out of Sync

Check CPU utilization. I was having audio sync problems with 1080i content with LATM AAC audio. AAC is quite CPU intensive (or so I'm told) and my AMD X2 6000+ CPU wasn't quite cutting the mustard combined with the also CPU intensive H264 video content. So, unless you've got a rocketship CPU that's faster than 3.0Ghz try adding <skiploopfilter>48</skiploopfilter> to the advancedsettings.xml file in userdata.

Known Problems

Below is a list of known problems that may be encountered when using the XBMC integration with MythTV.

  • Need to delete a Recording twice for it to be removed from the list.
  • Seeking doesn't work with Live TV. This is related to the way the Myth API streams content. Hopefully this will be resolved in the future.

xbmcmythtv Python Script

No longer supported or maintained?