Opened 17 years ago
Closed 17 years ago
#3222 closed defect (fixed)
mythburn.py crashes with nuv files from mythvideo or local files
Reported by: | anonymous | Owned by: | paulh |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mytharchive | Version: | 0.20 |
Severity: | medium | Keywords: | mythburn nuv |
Cc: | Ticket locked: | no |
Description
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.attributesusecutlist?.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.
Attachments (1)
Change History (3)
Changed 17 years ago by
Attachment: | mythburn.py.diff added |
---|
comment:1 Changed 17 years ago by
Have attached changes which fixed the issue for me. Only tested with nuv files from mythvideo.
comment:2 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [13072]) Apply a slightly modified version of the patch on ticket #3222 to update mythburn.py to work with nuv files from MythVideo? and local files as well as recordings.
Closes #3222.
changes to fix bug. diff -u format