I've been using the Mythbuntu Linux implementation of MythTV as a backend to multiple Kodi frontends. It's been great for serving up live and recorded broadcasts from my HD Homerun. Now I'd like to start transcoding some of my recordings to h264. I've been trying to get the transcode-h264.py script on MythTV's site at https://www.mythtv.org/wiki/Transcode_Mpeg2_to_H264
to work. I can't get it to run because it doesn't like the use of utcisoformat in the script. As I understand it that line of the script is converting the local start time of the recording to the UTC time. This is the error that's produced:
Code: Select all
Traceback (most recent call last):
File "./transcode-h264.py", line 149, in <module>
File "./transcode-h264.py", line 143, in main
File "./transcode-h264.py", line 40, in runjob
starttime = str(starttime.utcisoformat().replace(u':', '').replace(u' ', '').replace(u'T', '').replace('-', ''))
AttributeError: 'int' object has no attribute 'utcisoformat'
I've tried search variations on python, mythtv and utcisoformat but I can't find where that attribute is defined. As a test I commented out the utcisoformat line and hardcoded the UTC value it should have produced (ex. 20160109193700). I successfully transcoded a recording and I can see and play the transcoded video through my Kodi frontend. That's telling me I supplied the correct parameters to the script. As an example these are the parameters I used for the test:
Code: Select all
./transcode-h264.py --chanid=1021 --starttime=20160109133700 --verbose all
Since this script is posted on the MythTV site a solution would probably benefit a lot of people that come across it from a search result. Thanks!