|
|
@ -8,6 +8,8 @@ DEFAULT_STEREO_BANDWIDTH = "128"
|
|
|
|
DEFAULT_AC3_BANDWIDTH = "256"
|
|
|
|
DEFAULT_AC3_BANDWIDTH = "256"
|
|
|
|
DEFAULT_DTS_BANDWIDTH = "320"
|
|
|
|
DEFAULT_DTS_BANDWIDTH = "320"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEMP_FILE_NAME = "ffmpeg2pass-0.log"
|
|
|
|
|
|
|
|
|
|
|
|
def executeProcess(commandSequence):
|
|
|
|
def executeProcess(commandSequence):
|
|
|
|
|
|
|
|
|
|
|
|
process = subprocess.Popen(commandSequence, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
|
process = subprocess.Popen(commandSequence, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
|
@ -194,7 +196,8 @@ for quality in qualities:
|
|
|
|
|
|
|
|
|
|
|
|
print(f"Command Sequence 1: {commandSequence1}")
|
|
|
|
print(f"Command Sequence 1: {commandSequence1}")
|
|
|
|
|
|
|
|
|
|
|
|
os.remove("ffmpeg2pass-0.log")
|
|
|
|
if os.path.exists(TEMP_FILE_NAME):
|
|
|
|
|
|
|
|
os.remove(TEMP_FILE_NAME)
|
|
|
|
|
|
|
|
|
|
|
|
executeProcess(commandSequence1)
|
|
|
|
executeProcess(commandSequence1)
|
|
|
|
|
|
|
|
|
|
|
|