Skip to content

Commit

Permalink
Merge pull request #405 from Gloin1313/master
Browse files Browse the repository at this point in the history
Add `self.filename` as a `VideoFileClip` attribute
  • Loading branch information
Zulko authored Feb 14, 2017
2 parents f1fe1f8 + 3436cc3 commit 6453c7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion moviepy/video/io/VideoFileClip.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ class VideoFileClip(VideoClip):
Name of the original video file.
fps:
Frames per second in the original file.
Frames per second in the original file.
Read docstrings for Clip() and VideoClip() for other, more generic, attributes.
"""

Expand All @@ -60,6 +62,8 @@ def __init__(self, filename, has_mask=False,

self.fps = self.reader.fps
self.size = self.reader.size

self.filename = self.reader.filename

if has_mask:

Expand Down

0 comments on commit 6453c7f

Please sign in to comment.