From 47a65eb8f7aaa9d0b02f04734fde197a8c427066 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 12 Nov 2022 09:52:59 +0100 Subject: [PATCH] Add newline for error file writes --- encode_single_video.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/encode_single_video.py b/encode_single_video.py index f86c079..c95ae1b 100755 --- a/encode_single_video.py +++ b/encode_single_video.py @@ -375,7 +375,8 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) "FFMPEG error. Failed encoding " + inputfile + " to " - + outputfile, + + outputfile + + "\n" ) endtime = now() @@ -388,7 +389,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate VMAF score of " + outputfile + "FFMPEG error. To calculate VMAF score of " + + outputfile + + "\n" ) try: @@ -396,7 +399,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate SSIM score of " + outputfile + "FFMPEG error. To calculate SSIM score of " + + outputfile + + "\n" ) try: @@ -404,7 +409,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False) except ffmpy.FFRuntimeError: with open("error.log", "a") as file: file.write( - "FFMPEG error. To calculate MSE score of " + outputfile + "FFMPEG error. To calculate MSE score of " + + outputfile + + "\n" ) write_line(