From cbd3305fdffa4f08ee69ebcd0f0e461839628445 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Sun, 30 May 2021 23:30:56 +0300 Subject: [PATCH] fix write/read scenes to file --- av1an/split.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/av1an/split.py b/av1an/split.py index 73e0161..73892f6 100755 --- a/av1an/split.py +++ b/av1an/split.py @@ -49,7 +49,9 @@ def split_routine(project: Project, resuming: bool) -> List[int]: # determines split frames with pyscenedetect or aom keyframes scenes = calc_split_locations(project) if project.scenes and Path(project.scenes).exists(): - write_scenes_to_file(scenes, project.get_frames(), Path(project.scenes)) + write_scenes_to_file( + scenes, project.get_frames(), str(Path(project.scenes).resolve()) + ) # Write internal scenes write_scenes_to_file(scenes, project.get_frames(), str(scene_file.resolve())) @@ -125,6 +127,8 @@ def calc_split_locations(project: Project) -> List[int]: # Write scenes to file if project.scenes: - write_scenes_to_file(sc, project.get_frames(), project.scenes) + write_scenes_to_file( + sc, project.get_frames(), str(Path(project.scenes).resolve()) + ) return sc