mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-25 10:40:51 +00:00
fix write/read scenes to file
This commit is contained in:
parent
a8f5315c63
commit
cbd3305fdf
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue