[mythtv-commits] Ticket #3222: mythburn.py crashes with nuv files from mythvideo or local files
MythTV
mythtv at cvs.mythtv.org
Sun Mar 18 02:01:33 UTC 2007
#3222: mythburn.py crashes with nuv files from mythvideo or local files
-------------------------+--------------------------------------------------
Reporter: anonymous | Owner: paulh
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mytharchive | Version: 0.20
Severity: medium |
-------------------------+--------------------------------------------------
mythburn.py VERSION="0.1.20061201-1"
3133 #do we need to re-encode the file to make it DVD compliant?
3134 if not isFileOkayForDVD(file, folder):
3135 if getFileType(folder) == 'nuv':
3136 #file is a nuv file which ffmpeg has problems reading
so use mythtranscode to pass
3137 #the video and audio stream to ffmpeg to do the
reencode
......
3161 chanid =
getText(infoDOM.getElementsByTagName("chanid")[0])
3162 starttime =
getText(infoDOM.getElementsByTagName("starttime")[0])
3163 usecutlist = (file.attributes["usecutlist"].value ==
"1" and getText(infoDOM.getElementsByTagName("hascutlist")[0]) == "yes")
3166 #do the re-encode
3167 encodeNuvToMPEG2(chanid, starttime,
os.path.join(folder, "newfile2.mpg"), folder, profile, usecutlist)
So this code assumes nuv files will only be type recording and uses
mythtranscode --chanid --starttime, but if it is type video or file then
they won't have chanid, starttime and so the code fails.
Need to add a test and add/modify encodeNuvToMPEG2 function that will use
the mythtranscode --infile argument for non recording type files.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3222>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list