Skip to content

Commit

Permalink
Update VideoClip.py
Browse files Browse the repository at this point in the history
Fixes bug where fps=None due to changes in python decorators
  • Loading branch information
TitanStar73 authored Apr 22, 2024
1 parent bc8d1a8 commit fc14430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion moviepy/video/VideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def write_videofile(
name + Clip._TEMP_FILES_PREFIX + "wvf_snd.%s" % audio_ext,
)

if fps is None:
fps = fps.self

# enough cpu for multiprocessing ? USELESS RIGHT NOW, WILL COME AGAIN
# enough_cpu = (multiprocessing.cpu_count() > 1)
logger(message="MoviePy - Building video %s." % filename)
Expand Down Expand Up @@ -398,7 +401,6 @@ def write_videofile(
logger(message="MoviePy - video ready %s" % filename)

@requires_duration
@use_clip_fps_by_default
@convert_masks_to_RGB
def write_images_sequence(
self, name_format, fps=None, with_mask=True, logger="bar"
Expand Down

0 comments on commit fc14430

Please sign in to comment.