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