3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
7 def checkB25Decode(b25filepath,decodedfilepath):
8 if os.path.isfile(decodedfilepath):##tsファイルが存在している
9 dtime=time.time()-os.path.getmtime(decodedfilepath)
12 return compareFilesize(b25filepath,decodedfilepath,10) and minimizeCheck(decodedfilepath, 1000)
16 return compareFilesize(b25filepath,decodedfilepath,10) and minimizeCheck(decodedfilepath, 1000)
18 def compareFilesize(pathbase,path,percentage):
20 return true if size of path is larger than that of pathbase.
21 percentage is int(0< <100)
23 basesize=os.path.getsize(pathbase)
24 pathsize=os.path.getsize(path)
25 size=pathsize*100-basesize*percentage
30 def minimizeCheck(filepath,minsize):
34 if os.path.getsize(filepath)>minsize*1000*1000: