From 0e4bebe2a3b98c3e81b9378845610c5a11e0df21 Mon Sep 17 00:00:00 2001 From: Javanaut Date: Sat, 21 Oct 2023 13:02:59 +0200 Subject: [PATCH] fixes --- bin/ffx.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/ffx.py b/bin/ffx.py index 0dea943..dc02516 100755 --- a/bin/ffx.py +++ b/bin/ffx.py @@ -1,6 +1,6 @@ #! /usr/bin/python3 -import sys, subprocess, json +import os, sys, subprocess, json DEFAULT_QUALITY = 23 DEFAULT_AV1_PRESET = 5 @@ -183,7 +183,7 @@ for quality in qualities: if targetFormat == 'vp9': - commandSequence1 = commandTokens + generateVP9Pass1Tokens(quality) + commandSequence1 = commandTokens + mappingTokens + generateVP9Pass1Tokens(quality) if cropStart: @@ -193,7 +193,9 @@ for quality in qualities: print(f"Command Sequence 1: {commandSequence1}") - + + os.remove("ffmpeg2pass-0.log") + executeProcess(commandSequence1) commandSequence2 = commandTokens + mappingTokens + generateVP9Pass2Tokens(quality) + audioTokens