Giter Club home page Giter Club logo

Comments (7)

Zulko avatar Zulko commented on May 23, 2024

Interesting. My guess is that ffmpeg changed the way to handle images. In my version (from 2 months ago) a png file appears as a 1-frame video (so with duration 0.04 at 25fps). I'll adapt the code.

from moviepy.

aseeon avatar aseeon commented on May 23, 2024

Thank you for the quick reply. On a separate note - shouldn't set_druation trump all other forms of duration checking (or even omit them alltogether)?

from moviepy.

Zulko avatar Zulko commented on May 23, 2024

set_duration is an effect that comes in after the creation of the VideoClip or TextClip so it cannot influence what happens during creation.
And I really want to check for the duration of videoclips at creation time, it's an important step, it enables to evaluate the number of frames in the video clip, see if it is corrupted, etc.

Here the problem is that with the new ffmpeg we should not check for duration of pictures, since they have none. Once this will be fixed in MoviePy, set_duration will do its job properly.

from moviepy.

Zulko avatar Zulko commented on May 23, 2024

now fixed on github if you want to try.

from moviepy.

aseeon avatar aseeon commented on May 23, 2024

There is this line in editor.py that gives off error:

Traceback (most recent call last):
  File "E:/Mega/Dev/python/PyCharm/wanted-gif/wanted.py", line 1, in <module>
    from moviepy.editor import *
  File "C:\Programowanie\Python278\lib\site-packages\moviepy-0.2.1.8.10-py2.7.egg\moviepy\editor.py", line 41, in <module>
    from .video.io.html_tools import ipython_display
ImportError: No module named html_tools

from moviepy.

Zulko avatar Zulko commented on May 23, 2024

Ah thanks, I forgot to git-add it. It is now fixed on github.

from moviepy.

aseeon avatar aseeon commented on May 23, 2024

Yup, it works now 👍

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.