Skip to content

Commit

Permalink
Fixed Optional Progress Bar in cuts/detect_scenes (#587)
Browse files Browse the repository at this point in the history
Progress bar was previously hard-coded to True.
  • Loading branch information
scherroman authored and Mark Beacom committed Jul 11, 2017
1 parent 7c61ad9 commit d6bc0c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moviepy/video/tools/cuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def write_gifs(self, clip, gif_dir):

@use_clip_fps_by_default
def detect_scenes(clip=None, luminosities=None, thr=10,
progress_bar=False, fps=None):
progress_bar=True, fps=None):
""" Detects scenes of a clip based on luminosity changes.
Note that for large clip this may take some time
Expand Down Expand Up @@ -320,7 +320,7 @@ def detect_scenes(clip=None, luminosities=None, thr=10,

if luminosities is None:
luminosities = [f.sum() for f in clip.iter_frames(
fps=fps, dtype='uint32', progress_bar=1)]
fps=fps, dtype='uint32', progress_bar=progress_bar)]

luminosities = np.array(luminosities, dtype=float)
if clip is not None:
Expand Down

0 comments on commit d6bc0c6

Please sign in to comment.