Skip to content

Convert MythTV recordings to XBMC/Plex compatible names using the built-in MythTV APIs

License

Notifications You must be signed in to change notification settings

ascagnel/mythPlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mythPlex

Convert MythTV recordings to XBMC/Plex compatible names using the built-in MythTV APIs

This uses the built-in MythTV Services API to create symlinks from the Myth recordings to XBMC/Plex-friendly formats.

Tested on MythBuntu 14.04, Python 2.7.6, and PMS 0.9.9.12.

Note that this script requires local access to recordings. The drives holding the recordings must either be attached to the system or available via a network share.

Instructions

  1. Copy the included "sample.ini" config file to "config.ini" and place it in the same directory as the mythPlex script. If this file is not present, a new one will be generated with default values.
  2. Take note of all configured MythTV recording directories. Fill in the "directories" variable under "[Recording]" with them; if there are multiple directories, please use a comma-separated list.
  3. Change the IP and port number (host_url and host_port under [Server]) to match your setup. The default values will work if the script is run locally.
  4. Set up the directory you would like the linked files to reside in, and change the three directories under [Plex] to match.

Remuxing

Remuxing is off by default.

If you would prefer to outright copy the file, without changing its makeup, you may do so by changing the "remux_enabled" option under [Encoder] to "True". The original container will be maintained.

Remuxing can be combined with commercial skipping.

Commercial Skipping

Commercial skipping is off by default.

Before enabling commercial skipping, make sure you have the automatic commercial skipping turned off for new recordings from MythFrontend, as this script will re-run the commercial flagger.

To enable commercial skipping, set "mythcommflag_enabled" under [Encoder] to 'True' in config.py. If you are seeing odd commercial jumps, setting "mythcommflag_verbose" under [Encoder] to 'True' will log the times and frame numbers of skip points.

Transcoding Recordings

Transcoding is off by default.

mythPlex can re-encode MythTV recordings to save space and play them back across more devices without requiring Plex to transcode on each playback.

To enable transcoding, set "transcode_enabled" under [Encoder] to 'True' in config.py.

If your recordings tend to be deinterlaced, setting "deinterlace" under [Encoder] will resolve this using avconv's built-in "yadif" filter.

To set a different audio or video codec, you can do so from the "audicodec" and "videocodec" variables under [Encoder]. By default, the original audio stream will be copied, and the video will be transcoded into H264.

Quality Presets

If you would like higher or lower quality, you can change the "preset" under [Encoder]. Valid values are as follows (from the libav wiki):

  • ultrafast
  • superfast
  • veryfast (default value)
  • faster
  • fast
  • medium
  • slow
  • slower
  • veryslow
  • placebo

Each setting is approximately twice as slow as the one before it.

Tunings

You can tune the transcoder based on the type of media you are sending in. Valid values are as follows (from the libav wiki):

  • film (default)
  • animation
  • grain
  • stillimage
  • psnr
  • ssim
  • fastdecode
  • zerolatency

Uninstallation

Simply delete the mythPlex directory from your system.

About

Convert MythTV recordings to XBMC/Plex compatible names using the built-in MythTV APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages