-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't write a movie with default codec #1
Comments
Exactly ! I swear, this little "fourcc" function has had four different names in the last four releases of opencv, and they are the reason that I request recent versions... I think I will make a hack for the program try several syntaxes, so that everyone can use it, whatever the version. Do you have cv2.cv.FOURCC ? |
Yup. |
Ok, I just intalled 2.4.6.1 and from what I see the program should break also when you load a movie.
|
Ok, I may or may not have patched all that (added an horrible hack in the beginning of VideoClip.py that looks for the constant names, since they vary between versions). Now it seems to work fine with 2.4.6.1 on my computer. |
You were right, when I tried to do Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "moviepy/VideoClip.py", line 734, in __init__
self.fps = self.cap.get(cv2.CAP_PROP_FPS)
AttributeError: 'module' object has no attribute 'CAP_PROP_FPS' Redownloading solved both writing and reading non-raw clips for me, so this seems to be solved. |
Handle bytes when listing fonts in VideoClip.py
It seems I can only use the
'raw'
encoding.I have cv2 version 2.4.6.1, if that matters.
The text was updated successfully, but these errors were encountered: