You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on a video, we just run into the following bug (we think it's a bug).
When you use the Freeze effect on a VideoClip, you need to put the with_start() after the with_effects()otherwise it will remove the previous clip (if exists) from the final video. It seems that the Freeze effect redefine the start and end of a VideoClip.
Non-working code :
from moviepy import *
clip = VideoFileClip("clip.mp4")
clip = clip.with_start(other_clip.end)
clip = clip.with_effects([vfx.Freeze(12, 2)]) # Effect after with_start()
Working code :
from moviepy import *
clip = VideoFileClip("clip.mp4")
clip = clip.with_effects([vfx.Freeze(12, 2)]) # Effect before with_start()
clip = clip.with_start(other_clip.end)
Expected behavior
We think that whenever the position of the effect, it should not erase the start and end of the video. Or otherwise, it should be specified somewhere in the documentation.
Specifications
Python Version: 3.10
MoviePy Version: 2.1.1
Platform Name: MacOS
Platform Version: 14.5
The text was updated successfully, but these errors were encountered:
Yes, thats a good point. I've been watching the code and that is because that effect is creating a new clip instead of just transforming the original one (as most of the effects do), so the new clip doesn't have those start and end properties.
As the Freeze effect will always increase the duration, I think setting the start and end of that new clip would not be a problem, so it would work as the others (preserving start and end), but lets listen one of the main project maintainers.
Hi, thanks for this great library!
Problem
When working on a video, we just run into the following bug (we think it's a bug).
When you use the
Freeze
effect on a VideoClip, you need to put thewith_start()
after thewith_effects()
otherwise it will remove the previous clip (if exists) from the final video. It seems that theFreeze
effect redefine the start and end of a VideoClip.Non-working code :
Working code :
Expected behavior
We think that whenever the position of the effect, it should not erase the start and end of the video. Or otherwise, it should be specified somewhere in the documentation.
Specifications
The text was updated successfully, but these errors were encountered: