コード例 #1
0
 def __init__(self, job, inputfile):
     Task.__init__(self, job, "Demux video into ES")
     title = job.project.titles[job.i]
     self.global_preconditions.append(
         DiskspacePrecondition(title.estimatedDiskspace))
     self.setTool("projectx")
     self.args += [
         inputfile, "-demux", "-set", "ExportPanel.Streamtype.Subpicture=0",
         "-set", "ExportPanel.Streamtype.Teletext=0", "-out",
         self.job.workspace
     ]
     self.end = 300
     self.prog_state = 0
     self.weighting = 1000
     self.cutfile = self.job.workspace + "/cut_%d.Xcl" % (job.i + 1)
     self.cutlist = title.cutlist
     self.currentPID = None
     self.relevantAudioPIDs = []
     self.getRelevantAudioPIDs(title)
     self.generated_files = []
     self.mplex_audiofiles = {}
     self.mplex_videofile = ""
     self.mplex_streamfiles = []
     if len(self.cutlist) > 1:
         self.args += ["-cut", self.cutfile]
コード例 #2
0
ファイル: Process.py プロジェクト: linuxbox10/e2-vix
	def __init__(self, job):
		Task.__init__(self, job, "Checking free space")
		totalsize = 0 # require an extra safety 50 MB
		maxsize = 0
		for title in job.project.titles:
			titlesize = title.estimatedDiskspace
			if titlesize > maxsize: maxsize = titlesize
			totalsize += titlesize
		diskSpaceNeeded = totalsize + maxsize
		job.estimateddvdsize = totalsize / 1024 / 1024
		totalsize += 50*1024*1024 # require an extra safety 50 MB
		self.global_preconditions.append(DiskspacePrecondition(diskSpaceNeeded))
		self.weighting = 5
コード例 #3
0
	def __init__(self, job, title, title_no):
		Task.__init__(self, job, "Remultiplex Movie")
		self.global_preconditions.append(DiskspacePrecondition(title.estimatedDiskspace))
		self.postconditions.append(GenericPostcondition())
		self.setTool("bdremux")
		self.title = title
		self.title_no = title_no
		self.job = job
		inputfile = title.inputfile
		self.outputfile = self.job.workspace+'BDMV/STREAM/%05d.m2ts' % self.title_no
		self.args += [inputfile, self.outputfile, "--entrypoints", "--cutlist"]
		self.args += self.getPIDs()
		self.end = ( self.title.filesize / 188 )
		self.weighting = 1000