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.
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 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 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.
If you would like higher or lower quality, you can change the "preset" under [Encoder]. Valid values are as follows (from the libav wiki):
Each setting is approximately twice as slow as the one before it.
You can tune the transcoder based on the type of media you are sending in. Valid values are as follows (from the libav wiki):
Simply delete the mythPlex directory from your system.