Ticket #3626: mytharchive_pass.diff

File mytharchive_pass.diff, 2.5 KB (added by anonymous, 13 years ago)

Mulitipass encoding patch

  • mytharchive/mythburn/encoder_profiles/ffmpeg_dvd_ntsc.xml

     
    1616        <parameter name="-ac"          value="2"/>
    1717        <parameter name="-copyts"      value=""/>
    1818        <parameter name="-aspect"      value="%aspect"/>
    19         <parameter name=""             value="%outputfile"/>
    2019        <parameter name="-pass"        value="%passno"/>
    2120        <parameter name="-passlogfile" value="%passlogfile"/>
     21        <parameter name=""             value="%outputfile"/>
    2222    </profile>
    2323
    2424    <profile>
  • mytharchive/mythburn/encoder_profiles/ffmpeg_dvd_pal.xml

     
    1616        <parameter name="-ac"          value="2"/>
    1717        <parameter name="-copyts"      value=""/>
    1818        <parameter name="-aspect"      value="%aspect"/>
    19         <parameter name=""             value="%outputfile"/>
    2019        <parameter name="-pass"        value="%passno"/>
    2120        <parameter name="-passlogfile" value="%passlogfile"/>
     21        <parameter name=""             value="%outputfile"/>
    2222    </profile>
    2323
    2424    <profile>
  • mytharchive/mythburn/scripts/mythburn.py

     
    14571457                       "Command was %s" % command)
    14581458
    14591459    else:
    1460         passLog = os.path.join(getTempPath(), 'pass.log')
     1460        passLog = os.path.join(getTempPath(), 'pass')
    14611461
    1462         pass1 = string.replace(command, "%pass","1")
     1462        pass1 = string.replace(command, "%passno","1")
    14631463        pass1 = string.replace(pass1, "%passlogfile", passLog)
    14641464        write("Pass 1 - " + pass1)
    14651465        result = runCommand(pass1)
     
    14711471        if os.path.exists(destvideofile):
    14721472            os.remove(destvideofile)
    14731473
    1474         pass2 = string.replace(command, "%pass","2")
     1474        pass2 = string.replace(command, "%passno","2")
    14751475        pass2 = string.replace(pass2, "%passlogfile", passLog)
    14761476        write("Pass 2 - " + pass2)
    14771477        result = runCommand(pass2)