Skip to content

Commit

Permalink
Merge branch 'release/1.2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Jan 20, 2016
2 parents 924d0cf + eb05d43 commit 92c4927
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### Version 1.2.1 (2016-01-20)

- fix: __iter__ would incorrectly raise an IOError at the end of some Videos
- docker: pre-fetch MoviePy's own ffmpeg

### Version 1.2 (2016-01-15)

- feat: face processing
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ MAINTAINER Hervé Bredin <[email protected]>
ADD . /src
RUN pip install -e /src

# moviepy likes to download its own ffmpeg version at import time
# this command will guarantee this is done once and for all
RUN python -c "from moviepy.editor import VideoClip"

VOLUME /src
4 changes: 2 additions & 2 deletions pyannote/video/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _read_frame(self):
"Using the last valid frame instead.",
UserWarning)

if not hasattr(self, 'lastread'):
if not hasattr(self, '_lastread'):
message = (
"MoviePy error: failed to read the first frame of "
"video file %s. That might mean that the file is "
Expand Down Expand Up @@ -463,5 +463,5 @@ def _close(self):

def __del__(self):
self._close()
if hasattr(self, 'lastread'):
if hasattr(self, '_lastread'):
del self._lastread

0 comments on commit 92c4927

Please sign in to comment.