785 questions
0
votes
0
answers
14
views
Overlay effect no working as expected in moviepy
I'm trying to apply overlay effect (mp4 with black background) and the black color is not completely removed using the mask below
from moviepy.editor import VideoFileClip, CompositeVideoClip
from ...
2
votes
1
answer
61
views
Issue with Transparency Mask in MoviePy v2 (Works in v1)
I'm facing an issue while migrating from MoviePy v1 to MoviePy v2. In v1, I could apply a transparency mask to an ImageClip, making certain areas of the clip transparent. However, in MoviePy v2, the ...
2
votes
1
answer
161
views
Moviepy errors when using TextClip
I'm having some trouble using Moviepy library, specially when using SubtitlesClip().
Since I can't provide the whole code, I hope I can provide enough so you can understand my problem. This was my ...
0
votes
1
answer
53
views
Why it's not adding a sound (the path of files are correct, and the audio of file is working but it doesnt output it)(moviepy v1.0.3)
import moviepy.editor as mpe
my_clip = mpe.VideoFileClip('output.mp4')
audio_background = mpe.AudioFileClip('ayah.mp3')
final_clip = my_clip.set_audio(audio_background)
final_clip.write_videofile('...
0
votes
0
answers
50
views
Invalid Font when adding subtitle to video using MoviePy SubtitlesClip (Python)
here is the part of my script where i used to attach subtitles to video:
def attach_subtitles(video: VideoFileClip) -> None:
if not os.path.exists(OUTPUT_SRT):
print("No subtitle ...
0
votes
0
answers
310
views
Moviepy V2 How do you position a TextClip and apply an effect?
I am trying to refactor my code to use the new Moviepy Version 2.0 and I'm having trouble with .with_position / SlideIn / SlideOut effect.
When I apply the SlideIn effect it seems to override any ...
2
votes
1
answer
2k
views
Why does "'VideoFileClip' object has no attribute 'subclip'" error occur in MoviePy 2.1.2?
i'm using MoviePy version 2.1.2, and I'm encountering the following error:
AttributeError: 'VideoFileClip' object has no attribute 'subclip'
Here is the code snippet where the error occurs:
from ...
0
votes
0
answers
100
views
Python audio volume video effect
The code works as I want, but it consumes a lot of RAM. I'm lucky to have enough RAM, but when I run it, it uses anywhere from 20GB to 30GB of RAM depending on the audio. Is there anything I can do to ...
0
votes
1
answer
463
views
How to fade in image clip on a background image with MoviePy 2?
I'm using Moviepy2 to render a video based on images. There is one image that should be the background image the whole video. Multiple images should be faded in, showed for a few seconds and faded out ...
0
votes
1
answer
387
views
Moviepy doesn't blur video
I'm trying to create a video that keeps the proportions of the original (horizontal) video centered. Also, there should be a blurred background around the video that fills the entire screen. This ...
0
votes
0
answers
52
views
Automating Advanced 2D Animations for Videos Similar to This Example Using Python
I am looking to automate the creation of videos with advanced 2D animations and transitions similar to the style shown in this YouTube video (https://www.youtube.com/watch?v=XMDt-AWRMuM).
I understand ...
0
votes
1
answer
212
views
MoviePy write_videofile is extremely slow
So I have am using MoviePy's concatenate_videoclips function to combine two video clips that have a image and some text overlayed on each of them. When I write the video file it takes around a WHOLE 2 ...
0
votes
1
answer
72
views
Deployment to Azure Functions fails after importing Python's moviepy
after a few houes of debugging, I have realised that when these lines of code are present, my deployment shows as succeed from VS Code, but the http_trigger doesn't spear in funtion app:
from moviepy....
1
vote
0
answers
44
views
MoviePy: Error when saving video with audio enabled
I'm trying to use MoviePy to process a video file, detect scenes, and save subclips. Everything works fine when I disable audio (audio=False in write_videofile), but when I enable audio, I get the ...
0
votes
0
answers
42
views
Moviepy failing to write concatenation of simple clip and composite clip
Basic python code for concatenating a simple movie clip and a clip composed of images and then attempting to write the result:
clip_group = []
bumper_clip = VideoFileClip(base_dir + 'resources/...