[mythtv-users] Archive to DVD - time format error

John Pilkington J.Pilk at tesco.net
Sun Nov 17 10:17:03 UTC 2013


On 17/11/13 05:58, Mark E. Mallett wrote:
> On Sat, Nov 16, 2013 at 11:24:24PM +0000, John Pilkington wrote:
>>
>> But the error report above looks as if the time string includes
>> newlines or equivalent.
>
> I assumed that was an artifact of the logging system tho I knew it would
> be more helpful to be able to see the logfile and/or log more info.
>
>
>> There was a similar problem recently (11
>> Sep) in the generation of .iso image titles.  More of the
>> progress.log might help; in the MythArchive temp directories,
>> defined in  frontend > setup > media settings >  archive files
>> settings.
>
> Oh, that's where it is. I think I even knew that once.
>
> OK, here's the entire progress.log from a test run I did just now (a
> different recording, but same result). It's odd that the starttime value
> is taken from rec.starttime and then used to find another rec - one
> would think that would not cause problems.
>
> log appended.
>
> -mm-
>
> 2013-11-17 00:53:27 mythburn.py (0.1.20130911-5) starting up...
> 2013-11-17 00:53:27 Found 4 CPUs
> 2013-11-17 00:53:27 Obtaining MythTV settings from MySQL database for hostname revmem
> 2013-11-17 00:53:27 temppath: /home/mem/mem1/mythtv/mytharchive/work
> 2013-11-17 00:53:27 logpath:  /home/mem/mem1/mythtv/mytharchive/logs
> 2013-11-17 00:53:27 Setting process priority to 0
> 2013-11-17 00:53:27 Setting ionice level to idle
> 2013-11-17 00:53:27 Processing Mythburn job number 1.
> 2013-11-17 00:53:27 Options - mediatype = 0, doburn = 1, createiso = 0, erasedvdrw = 0
> 2013-11-17 00:53:27           savefilename = ''
> 2013-11-17 00:53:27 Looking for: /usr/share/mythtv/mytharchive/themes/Black/theme.xml
> 2013-11-17 00:53:27 Loading font 0, /usr/share/mythtv/fonts/FreeSans.ttf size 18
> 2013-11-17 00:53:27 Loading font 1, /usr/share/mythtv/fonts/FreeSans.ttf size 13
> 2013-11-17 00:53:27 wantIntro: 1, wantMainMenu: 1, wantChapterMenu: 0, wantDetailsPage: 0
> 2013-11-17 00:53:27 Final DVD Video format will be ntsc
> 2013-11-17 00:53:27 There are 1 file(s) to process
> 2013-11-17 00:53:27 Pre-processing recording 1: '/core2/data/mythtv/storage/2704_20131114231400.mpg'
> 2013-11-17 00:53:28           WBZ News
> 2013-11-17 00:53:28 Node = chanid, Data = 2704
> 2013-11-17 00:53:28 Node = type, Data = recording
> 2013-11-17 00:53:28 Node = filename, Data = /core2/data/mythtv/storage/2704_20131114231400.mpg
> 2013-11-17 00:53:28 Node = title, Data = WBZ News
> 2013-11-17 00:53:28 Node = recordingdate, Data = Thu Nov 14 2013
> 2013-11-17 00:53:28 Node = recordingtime, Data = 06:00 PM
> 2013-11-17 00:53:28 Node = subtitle, Data =
> 2013-11-17 00:53:28 Node = description, Data =
> 2013-11-17 00:53:28 Node = rating, Data = 0.0
> 2013-11-17 00:53:28 Node = coverfile, Data =
> 2013-11-17 00:53:28 Node = cutlist, Data =
> 2013-11-17 00:53:28 Node = starttime, Data = 2013-11-14T18:14:00-05:00
> 2013-11-17 00:53:28 Node = hascutlist, Data = no
> 2013-11-17 00:53:28 Video resolution is 1920 by 1080
> 2013-11-17 00:53:28 *************************************************************
> 2013-11-17 00:53:28 Processing recording 1: '/core2/data/mythtv/storage/2704_20131114231400.mpg'
> 2013-11-17 00:53:28 *************************************************************
> 2013-11-17 00:53:28 File type is 'mpegts'
> 2013-11-17 00:53:28 Video codec is 'mpeg2video (Main)'
> 2013-11-17 00:53:28 Running mythtranscode --mpeg2 to fix any errors
> 2013-11-17 00:53:28 ------------------------------------------------------------
> Traceback (most recent call last):
>    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 5256, in main
>      processJob(job)
>    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4947, in processJob
>      processFile(node,folder,filecount)
>    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4440, in processFile
>      doProcessFile(file, folder, count)
>    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 4511, in doProcessFile
>      if runMythtranscode(chanid, starttime, os.path.join(folder, 'newfile.mpg'), False, localfile):
>    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1728, in runMythtranscode
>      rec = DB.searchRecorded(chanid=chanid, starttime=starttime).next()
>    File "/usr/lib/python2.7/site-packages/MythTV/utility/other.py", line 165, in __call__
>      where,fields,joinbit = self.parseInp(kwargs)
>    File "/usr/lib/python2.7/site-packages/MythTV/utility/other.py", line 202, in parseInp
>      res = self.func(self.inst, key=key, value=val)
>    File "/usr/lib/python2.7/site-packages/MythTV/methodheap.py", line 676, in searchRecorded
>      return ('recorded.%s=?' % key, datetime.duck(value), 0)
>    File "/usr/lib/python2.7/site-packages/MythTV/utility/dt.py", line 435, in duck
>      raise TypeError("time data '%s' does not match supported formats"%t)
> TypeError: time data '
>          2013-11-14T18:14:00-05:00
>      ' does not match supported formats
> 2013-11-17 00:53:28 ------------------------------------------------------------

So it has failed immediately while trying to run mythtranscode --mpeg2 
on a 1920*1080 recording.  It hasn't told you the command line it's 
using, and it hasn't returned an error and printed 'failed to run'.

I have commented many times on the problems that an occasional user of 
MythArchive is likely to face.  You could try to find out what the 
command will be before it is issued; there are several places now in 
mythburn.py where that is done.

However, I have a confession to make.  My instructions for patching 
mythburn.py were incomplete; they didn't follow RW's patch. Try that.

http://code.mythtv.org/trac/ticket/11758#comment:2



More information about the mythtv-users mailing list