Skip to content

Video editing with Python

Better error gestion in ffmpeg_reader.py I might have touched a few docs too.

Zulko2228513c8461
diff --git a/docs/_themes/kr/LICENSE b/docs/_themes/kr/LICENSE
old mode 100755
new mode 100644
diff --git a/docs/_themes/kr/README.md b/docs/_themes/kr/README.md
old mode 100755
new mode 100644
diff --git a/docs/_themes/kr/layout.html b/docs/_themes/kr/layout.html
old mode 100755
new mode 100644
diff --git a/docs/_themes/kr/relations.html b/docs/_themes/kr/relations.html
old mode 100755
new mode 100644
diff --git a/docs/_themes/kr/static/flasky.css_t b/docs/_themes/kr/static/flasky.css_t
old mode 100755
new mode 100644
diff --git a/docs/_themes/kr/theme.conf b/docs/_themes/kr/theme.conf
old mode 100755
new mode 100644
diff --git a/moviepy/video/io/ffmpeg_reader.py b/moviepy/video/io/ffmpeg_reader.py
index b8272271..77b0b718 100644
--- a/moviepy/video/io/ffmpeg_reader.py
+++ b/moviepy/video/io/ffmpeg_reader.py
@@ -91,12 +91,12 @@ class FFMPEG_VideoReader:
dtype='uint8').reshape((h, w, len(s)//(w*h)))
#self.proc.stdout.flush()
- except IOError:
+ except IOError as err:
self.proc.terminate()
serr = self.proc.stderr.read()
- print( "error: string: %s, stderr: %s" % (s, serr))
- raise IOError
+ print( "stderr: %s" %serr)
+ raise err
self.lastread = result
diff --git a/setup.py b/setup.py
index e8613a00..5b329894 100644
--- a/setup.py
+++ b/setup.py
@@ -15,4 +15,4 @@ setup(name='moviepy',
license='see LICENSE.txt',
keywords="movie editing film mixing script-based",
packages= find_packages(exclude='docs'),
- install_requires=['numpy', 'decorator', 'tqdm'])
+ install_requires= ['numpy', 'decorator', 'tqdm'])