Skip to content

Commit

Permalink
Merge pull request Zulko#2352 from OsaAjani/issue-2351
Browse files Browse the repository at this point in the history
Fix wrong fps calculation
  • Loading branch information
OsaAjani authored Jan 30, 2025
2 parents 0f876ff + 41a815d commit 06b5329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Improve perfs of decorator by pre-computing arguments
- Fix textclip being cut or of impredictable height (see issues #2325, #2260 and #2268)
- Fix TimeMirror and TimeSymmetrize cutting last second of clip
- ImageSequenceClip was wrong when calculating fps with duration and no fps (see issue #2351)
- Fix audiopreview not working with ffplay >= 7.0.0

## [v2.1.2](https://github.com/zulko/moviepy/tree/master)
Expand Down
2 changes: 1 addition & 1 deletion moviepy/video/io/ImageSequenceClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(
self.sequence = sequence

if fps is None:
self.fps = self.duration / len(sequence)
self.fps = len(sequence) / self.duration

def find_image_index(t):
return max(
Expand Down

0 comments on commit 06b5329

Please sign in to comment.