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(