Skip to content

Commit e75c9fd

Browse files
author
arch
committed
add warning
1 parent d765095 commit e75c9fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,8 +959,13 @@ def create_funscript(self, idx_dict: dict) -> None:
959959
def run(self) -> None:
960960
""" The Funscript Generator Thread Function """
961961
if self.params.direction == 'd' and not self.params.track_men:
962-
self.finished("Tracking with 'd' and no men tracker is not implemented!", False)
963-
return
962+
self.finished("Tracking with 'd' and no men tracker is not implemented!", False)
963+
return
964+
965+
if self.video_info.fps < 31.0 and self.params.skip_frames > 0:
966+
self.logger.warning("The Video has less than 30 frames per seconds and you have set skip_frames to %d "\
967+
+ "this can lead to inaccuracies when predicting the changepoint positions! (consider to set skip_frames to 0)" \
968+
, self.params.skip_frames)
964969

965970
if self.params.raw_output:
966971
self.logger.warning("Raw output is enabled!")

0 commit comments

Comments
 (0)