This commit is contained in:
parent
b4de055429
commit
47a65eb8f7
@ -375,7 +375,8 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
|
|||||||
"FFMPEG error. Failed encoding "
|
"FFMPEG error. Failed encoding "
|
||||||
+ inputfile
|
+ inputfile
|
||||||
+ " to "
|
+ " to "
|
||||||
+ outputfile,
|
+ outputfile
|
||||||
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
endtime = now()
|
endtime = now()
|
||||||
@ -388,7 +389,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
|
|||||||
except ffmpy.FFRuntimeError:
|
except ffmpy.FFRuntimeError:
|
||||||
with open("error.log", "a") as file:
|
with open("error.log", "a") as file:
|
||||||
file.write(
|
file.write(
|
||||||
"FFMPEG error. To calculate VMAF score of " + outputfile
|
"FFMPEG error. To calculate VMAF score of "
|
||||||
|
+ outputfile
|
||||||
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -396,7 +399,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
|
|||||||
except ffmpy.FFRuntimeError:
|
except ffmpy.FFRuntimeError:
|
||||||
with open("error.log", "a") as file:
|
with open("error.log", "a") as file:
|
||||||
file.write(
|
file.write(
|
||||||
"FFMPEG error. To calculate SSIM score of " + outputfile
|
"FFMPEG error. To calculate SSIM score of "
|
||||||
|
+ outputfile
|
||||||
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -404,7 +409,9 @@ def main(inputfile: str, outputpath: str = "encodes", keepencodes: bool = False)
|
|||||||
except ffmpy.FFRuntimeError:
|
except ffmpy.FFRuntimeError:
|
||||||
with open("error.log", "a") as file:
|
with open("error.log", "a") as file:
|
||||||
file.write(
|
file.write(
|
||||||
"FFMPEG error. To calculate MSE score of " + outputfile
|
"FFMPEG error. To calculate MSE score of "
|
||||||
|
+ outputfile
|
||||||
|
+ "\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
write_line(
|
write_line(
|
||||||
|
Loading…
Reference in New Issue
Block a user