Comments (7)
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.
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.
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.
now fixed on github if you want to try.
from moviepy.
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.
Ah thanks, I forgot to git-add it. It is now fixed on github.
from moviepy.
Yup, it works now 👍
from moviepy.
Related Issues (20)
- Difficulty Achieving Transparent Background in .webm Files with CompositeVideoClip
- Concatenate result not looking good
- crop missing from moviepy.video.fx.all HOT 1
- Seeking by frame is inexact and inconsistent
- Unexpecte/confusing output when `subclip()` tries to clip beyond end of file HOT 3
- Insert video in green screen
- Assigning an ImageClip as the mask to a VideoFileClip inverts colors of unmasked area HOT 2
- Can't save gif HOT 5
- Audio getting out of sync when merging back audio and video
- ffmpeg does not allow None as fps argument HOT 2
- [WinError 6] The handle is invalid HOT 2
- Speedx is not working the way it should HOT 2
- VideoFileClip doesn't work on windows for long path HOT 1
- AttributeError: 'NoneType' object has no attribute 'get_frame' HOT 5
- Accept file-like objects as input in all classes HOT 1
- Invalid Gitter link in CONTRIBUTING.md HOT 4
- ffmpeg filter
- Unspecified loop duration causes clip to blank HOT 1
- Problems with VideoFileClip() at the moment of audio processing HOT 1
- crossfadeout not effect after CompositeVideoClip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moviepy.