Tempnewmkvfile = os.path.join(tempdir, newmkvfile)Īdjacentmkvfile = os.path.join(dirName, fileBaseName '.new.mkv') Temptcfile = os.path.join(tempdir, tcfile) Tempaacfile = os.path.join(tempdir, aacfile) Tempac3file = os.path.join(tempdir, ac3file) Tempdtsfile = os.path.join(tempdir, dtsfile) (dirName, fileName) = os.path.split(ford)įileBaseName = os.path.splitext(fileName)ĭoprint("filename: " fileName "\n", 1) Tempdir = os.path.join(tempdir, "mkvdts2ac3") If getmd5(os.path.join(orig, ofile)) != getmd5(os.path.join(dest, ofile)):ĭoprint(" Processing dir: " ford "\n", 3)ĭoprint(" Processing file: " ford "\n", 3)Ĭhild = subprocess.Popen(, stdout=subprocess.PIPE) If os.path.isdir(os.path.join(orig, ofile)):ĭoprint("dir: " os.path.join(orig, ofile) "\n", 3)ĭoprint("file: " os.path.join(orig, ofile) "\n", 3) Subprocess.call(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)ĭoprint(fname ": " md5.hexdigest() "\n", 3) Progress_regex = re.compile("Progress: (\d %)") Proc = subprocess.Popen(cmdlist, stdout=subprocess.PIPE) Print "\r" title elapsedstr(cmdstarttime) Percentage = int(float(getduration(oup(1)) / float(duration)) * 100) Match = duration_regex.match(durationline) Proc = subprocess.Popen(cmdlist, stderr=subprocess.PIPE)ĭuration_regex = re.compile(" Duration: (\d :\d\d:\d\d\.\d\d),") Print textwrap.fill(cmdstr.rstrip(), initial_indent=' ', subsequent_indent=' ') Return str(minutes) " minute" mplural " " str(seconds) " second" splural Raise # re-raise exception if a different error occured If e.errno != errno.ENOENT: # errno.ENOENT = no such file or directory If int(ppstatus) >= 0 and int(ppstatus) = 0 and int(ppstatus) = v: # These options don't take any arguments, they are only True or False # set of options for controlling the resulting file. # for converting the DTS in Matroska (MKV) files to AC3. # mkvdts2ac3.py is a python script for linux, windows or os x which can be used #You should have received a copy of the GNU General Public License #GNU General Public License for more details. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #but WITHOUT ANY WARRANTY without even the implied warranty of #This program is distributed in the hope that it will be useful, #the Free Software Foundation, either version 3 of the License, or #it under the terms of the GNU General Public License as published by #This program is free software: you can redistribute it and/or modify
0 Comments
Leave a Reply. |