Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions superannotate/db/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,12 @@ def _get_video_fps_ration(target_fps, video, ratio, log):
Get video fps / target fps ratio
"""
video_fps = float(video.get(cv2.CAP_PROP_FPS))
if target_fps >= video_fps and log:
logger.warning(
"Video frame rate %s smaller than target frame rate %s. Cannot change frame rate.",
video_fps, target_fps
)
if target_fps >= video_fps:
if log:
logger.warning(
"Video frame rate %s smaller than target frame rate %s. Cannot change frame rate.",
video_fps, target_fps
)
else:
if log:
logger.info(
Expand Down