finished: conversion to x264, audio extraction to wav, normalization and reporting has been tested, theora is assumed to work
This commit is contained in:
parent
b165bb628d
commit
7eb29f6fe6
2 changed files with 93 additions and 23 deletions
22
aux.py
22
aux.py
|
@ -40,11 +40,9 @@ class Command:
|
|||
|
||||
"""
|
||||
|
||||
def __init__(self, sequence):
|
||||
self.__dict__["sequence"] = list(sequence)
|
||||
self.__dict__["thread"] = None
|
||||
self.__dict__["fifo"] = None
|
||||
self.__dict__["terminated"] = False
|
||||
def __init__(self, *sequence):
|
||||
self.__dict__["sequence_original"] = list(sequence)
|
||||
self.reset()
|
||||
|
||||
def __setattr__(self, name, value):
|
||||
found = False
|
||||
|
@ -54,8 +52,14 @@ class Command:
|
|||
self.sequence[i] = value
|
||||
found = True
|
||||
|
||||
if not found:
|
||||
raise AttributeError("Command has no attribute \'%s\'" %(name))
|
||||
#if not found:
|
||||
#raise AttributeError("Command has no attribute \'%s\'" %(name))
|
||||
|
||||
def reset(self):
|
||||
self.__dict__["sequence"] = list(self.sequence_original)
|
||||
self.__dict__["thread"] = None
|
||||
self.__dict__["fifo"] = None
|
||||
self.__dict__["terminated"] = False
|
||||
|
||||
def dump(self, sequence=None):
|
||||
out = []
|
||||
|
@ -66,7 +70,9 @@ class Command:
|
|||
for item in sequence:
|
||||
if type(item) is list:
|
||||
out += self.dump(item)
|
||||
else:
|
||||
elif type(item) is Command:
|
||||
out += item.dump()
|
||||
elif item is not None:
|
||||
out.append(str(item))
|
||||
|
||||
return out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue