pids.append(pid)
return pids
+
class Logger:
def __init__(self, file):
self.logger.error(prefix + ' : ' + message.decode('utf8'))
-
class ISPCollection:
def __init__(self, dir):
self.xls_file = self.collection.xls_list()
self.xls = ISPXLS(self.source_dir + os.sep + self.xls_file[0])
self.trans_dict = self.xls.trans_dict()
- # Time period for bi-threading in minutes
- self.period = 1
self.format = 'flv'
self.size = '480x270'
if not counter % 3:
while len(get_pid('ffmpeg', self.uid)) > 1:
# Only 2 threads for 2 cores and then sleeping
- time.sleep(self.period * 60)
+ time.sleep(30)
os.system(command)