diff --git a/av1an/vapoursynth.py b/av1an/vapoursynth.py index 2d991f3..11fa115 100644 --- a/av1an/vapoursynth.py +++ b/av1an/vapoursynth.py @@ -48,7 +48,7 @@ def create_vs_file(temp: Path, source, chunk_method): 'core.lsmas.LWLibavSource(r"{}", cachefile="{}").set_output()' ) - with open(load_script, "w+") as file: + with open(load_script, "w+", encoding='utf-8') as file: file.write(script.format(Path(source).resolve(), cache_file)) cache_generation = f"vspipe -i {load_script.as_posix()} -i -"