Skip to content

Commit

Permalink
corrected bug that made pygame mandatory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko committed Jan 26, 2014
1 parent ddba657 commit 68597cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions moviepy/audio/AudioClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ def to_audiofile(self,filename, fps=44100, nbytes=2, buffersize=5000,
codec, bitrate, verbose)

try:
# Add methods preview (only if pygame installed)

# Add method preview (only if pygame installed)
from moviepy.audio.io.preview import preview
AudioClip.preview = preview

except:
pass
from moviepy.audio.io.preview import preview


class AudioArrayClip(AudioClip):
Expand Down Expand Up @@ -131,7 +132,6 @@ def gf(t):
self.get_frame = gf



class CompositeAudioClip(AudioClip):

"""
Expand Down
4 changes: 3 additions & 1 deletion moviepy/video/compositing/CompositeVideoClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def playing_clips(self, t=0):
""" Returns a list of the clips in the composite clips that are
actually playing at the given time `t`. """
return [c for c in self.clips if c.is_playing(t)]




def clips_array(array, rows_widths=None, cols_widths=None,
transparent = True, bg_color = (0,0,0)):

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import setup, find_packages

setup(name='moviepy',
version='0.2.1.6.9',
version='0.2.1.6.91',
author='Zulko 2013',
description='Module for script-based video editing',
long_description=open('README.rst').read(),
Expand Down

0 comments on commit 68597cc

Please sign in to comment.