Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError? #2

Closed
kaiserS opened this issue Dec 11, 2013 · 2 comments
Closed

IndexError? #2

kaiserS opened this issue Dec 11, 2013 · 2 comments

Comments

@kaiserS
Copy link

kaiserS commented Dec 11, 2013

when resizing with

clipx.fx(vfx.resize, width=xxx) 

it throws an exception (IndexError)
in resize.py, line 16: newsize has 2 elements, but newsize[2] refering to a third, which does not exists. setting the (maybe) right index to 1, it throws more exceptions.

maybe i dont get it, but following the example here
http://zulko.github.io/moviepy/crash_course/crash_course.html#operations-on-a-clip
it has given me that issue.

greetings

@Zulko
Copy link
Owner

Zulko commented Dec 11, 2013

Thanks for the feedback ! I will look into it.
It seems that you haven't installed opencv, so MoviePy tries to resize using the Python Imaging Library. The few examples that I tried with the PIL seemed to work but my MoviePy always uses opencv, which is why certainly why I was not aware of this bug... I fix that ASAP, but I am no PIL expert, so if you are in a hurry you can also try to import opencv (it will install the cv2 module), which should solve your problem.

@kaiserS
Copy link
Author

kaiserS commented Dec 12, 2013

ok, using opencv (which was already installed but not linked properly to python) solved the resizing problem. now it works fine with cv2. thanks for the hint!

@kaiserS kaiserS closed this as completed Dec 12, 2013
mbeacom pushed a commit that referenced this issue Feb 15, 2017
merge latest zulko/moviepy to earney/moviepy
ghost pushed a commit that referenced this issue Feb 23, 2017
tburrows13 pushed a commit that referenced this issue Feb 27, 2017
…ader-error

Revert "Fixes `AttributeError: reader`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants