Fix file.write call. Bump version to v0.0.3a3
This commit is contained in:
parent
e94536baa4
commit
b4de055429
@ -52,7 +52,7 @@ encoding: dict[str, Any] = {
|
|||||||
|
|
||||||
# program version
|
# program version
|
||||||
# make tests reproducible by tag
|
# make tests reproducible by tag
|
||||||
version = "v0.0.3a2"
|
version = "v0.0.3a3"
|
||||||
|
|
||||||
# always round timestamp to integer
|
# always round timestamp to integer
|
||||||
def now():
|
def now():
|
||||||
@ -372,10 +372,10 @@ 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. Failed encoding",
|
"FFMPEG error. Failed encoding "
|
||||||
inputfile,
|
+ inputfile
|
||||||
"to",
|
+ " to "
|
||||||
outputfile,
|
+ outputfile,
|
||||||
)
|
)
|
||||||
|
|
||||||
endtime = now()
|
endtime = now()
|
||||||
@ -388,8 +388,7 @@ 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",
|
"FFMPEG error. To calculate VMAF score of " + outputfile
|
||||||
outputfile,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -397,8 +396,7 @@ 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",
|
"FFMPEG error. To calculate SSIM score of " + outputfile
|
||||||
outputfile,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -406,8 +404,7 @@ 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",
|
"FFMPEG error. To calculate MSE score of " + outputfile
|
||||||
outputfile,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
write_line(
|
write_line(
|
||||||
|
Loading…
Reference in New Issue
Block a user