Shell script-based MythTV User Job to transcode recordings to mp4, retrieve metatata, and update XBMC. This does not alter the MythTV content at all.
MythTV
XBCMnfo
HandbrakeCLI
mythicalLibrarian
Install and configure MythTV. Configure User Jobs in MythTV:
$1 must be the directory/file to be transcoded. $2 is file extension $3 must be chanid $4 must be starttime $5 must be "LOW" for low res or "HIGH" for high-res or "LOWREMC" for low but remove commercials
The full userjob command in mythtv-setup should look like this:
/path/to/this-script/mythtv-transcode-h264xbmc.sh "%DIR%/%FILE%" "%DIR%/%TITLE% - # %PROGSTART%.mkv" "%CHANID%" "%STARTTIME%" "LOW|HIGH|LOWREMC"
I have 3 setup in my MythTV setup that look like this:
/etc/mythtv/mythtv-transcode-h264xbmc.sh "%DIR%/%FILE%" "mp4" "%CHANID%" "%STARTTIME%" "HIGH" /etc/mythtv/mythtv-transcode-h264xbmc.sh "%DIR%/%FILE%" "mp4" "%CHANID%" "%STARTTIME%" "LOWREMC" /etc/mythtv/mythtv-transcode-h264xbmc.sh "%DIR%/%FILE%" "mp4" "%CHANID%" "%STARTTIME%" "LOW"
# mkdir -p /etc/mythicalLibrarian
Create /etc/mythicalLibrarian/JobSucessful and add the following contents to it:
#!/bin/bash echo SHOWFILENAME: $ShowFileName
Follow the instructions above prior to installation. When prompted, or after install, make sure that the SYMLINK option is set to LINK inside the mythicalLibrarian script itself.
SYMLINK=LINK
Edit this script and modify variables in order to match the installations, passwords, etc of your other software pieces.
Check the log file first. The following should show you most of the output when this script is run from a MythTV userjob.
grep mythtv-transcode-h264xbmc /var/log/mythtv/mythbackend.log
You can also try enabling DEBUG mode and running things from the commandline. You will need the proper variables to pass to the script (you can get this from mythbackend.log)
Bug me on Twitter at @brianwilson or email me here.