Giter Club home page Giter Club logo

Comments (5)

Zulko avatar Zulko commented on May 16, 2024

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 ?

from moviepy.

gvx avatar gvx commented on May 16, 2024
>>> cv2.cv.FOURCC
<built-in function FOURCC>

Yup.

from moviepy.

Zulko avatar Zulko commented on May 16, 2024

Ok, I just intalled 2.4.6.1 and from what I see the program should break also when you load a movie.
Have you tried something like this ?

from moviepy import *
MovieClip('foo.avi').subclip(0,1).preview()

from moviepy.

Zulko avatar Zulko commented on May 16, 2024

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.

from moviepy.

gvx avatar gvx commented on May 16, 2024

You were right, when I tried to do MovieClip('something.avi'), it gave:

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.

from moviepy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.