diff --git a/moviepy/video/VideoClip.py b/moviepy/video/VideoClip.py index 9a8f0aee2..ab5038159 100644 --- a/moviepy/video/VideoClip.py +++ b/moviepy/video/VideoClip.py @@ -107,6 +107,7 @@ def __init__(self, make_frame=None, ismask=False, duration=None, self.duration = duration self.end = duration + @property def w(self): return self.size[0] @@ -117,6 +118,11 @@ def h(self): return self.size[1] + @property + def aspect_ratio(self): + return self.w / float(self.h) + + # =============================================================== # EXPORT OPERATIONS