Questions tagged [moviepy]

MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing, or to create advanced effects.

References

763 questions
0
votes
0 answers

Error with OpenSSL when running Python script from command line

everyone. I would like to ask for some help with a problem I have been struggling with without any progress. I am creating a small project in my free time. A part of the project is a Python script that downloads a whole Youtube music playlist with…
0
votes
0 answers

adding png with alpha on video with moviepy

i have a difficult situation. i need to make an app with moviepy that add image overlay on the video such as lower 3rd or logo. in every tutorial and articles only show how to add text over video. not image. i use composite video but its not give…
0
votes
0 answers

clips_array ruins MoviePy performances

I'm having the issue described in the title. here's an example : satisfying = VideoFileClip(f'satis/{random.randint(1, 5)}' + '.mp4', audio=False).subclip(rand, rand+(end-start)) # rand is already defined as an random value at which the video…
5-30
  • 1
  • 1
0
votes
0 answers

Python code mutes whole video instead of sliding a song. What shall I do?

I am trying to separate a song into 4 parts and slide the parts in random parts of a video. The problem with my code is that the final output video is muted. I want to play parts of the song at random intervals and while the song is playing the…
0
votes
0 answers

moviepy code doesn't export the final product

from os import environ environ["IMAGEIO_FFMPEG_EXE"] = "/Users/ezryroukema/Downloads/discord-downloader/ffmpeg/bin" from moviepy.editor import * #editor #creating varubles to title how many days its been posting (ex. day 5 of posting memes) from…
0
votes
0 answers

Is there a faster way than using moviepy to check if a video is fully downloaded using python

I want to automate downloading videos from a website and/or ssd. However, if I close this process or quit it during debugging, I get a video which appears to be working, but only for the part of the video that has downloaded. For example: I am…
Pieter
  • 1
  • 1
0
votes
0 answers

Overlay transparent video with MoviePy

I have a video in .webm format with a transparent background(clip2) and a normal mp4 video(clip1). I want to overlay clip2 video on clip1 video, but when I do that, the transparent feature in the background of clip2 disappears and a red beam of…
Doğan
  • 1
  • 1
0
votes
0 answers

HEVC to mp4 video converter

While converting files HEVC to mp4 using python the error is comming by ffmpeg. I have used moviepy to convert video to mp4 formate. Used moviepy Package to convert but throwing error import os from moviepy.editor import VideoFileClip def…
0
votes
1 answer

MoviePy TextClip Custom Font Not Recognized (Python) - Windows 10 - ImageMagick-7.1.1-Q16-HDRI

for some reason, I can't use custom fonts when creating a MoviePy TextClip. It says in their documentation that it should be to use all the fonts installed on my system, but when I run this little code snippet in Python (to get all the possible…
0
votes
0 answers

Why does moviepy sometimes show logs stacking vertically instead of one line?

The below is not what I want, I want it to show a single line: chunk: 0%| | 0/895 [00:00
phongku
  • 13
  • 4
0
votes
1 answer

MoviePy OSError: MoviePy Error with ImageMagick

I am working on a reddit youtube video creation script using MoviePy in Python. However, I encountered an error related to ImageMagick during the execution of the code. The error message I received is: Exception has occurred: OSError MoviePy Error:…
alanelrod
  • 1
  • 1
0
votes
0 answers

Adding Subtitle to a clip.preview moviepy

I have tried to preview a clip with a subtitle. But I have a error that says : AttributeError: 'CompositeAudioClip' object has no attribute 'fps' `from moviepy.editor import * from moviepy.video.tools.subtitles import SubtitlesClip # Load the video…
0
votes
0 answers

Moviepy: how to do advanced composition between two clips (e.g. insert a movie inside a (possibly moving) green rectangle in another video)

I am attempting to insert, with MoviePy, a video (dog.mp4) into another video's green screen, while resizing dog.mp4 to fit perfectly inside the green rectangle. It seems like this cannot be accomplished using the image_transform custom effect…
tobiasBora
  • 1,542
  • 14
  • 23
0
votes
0 answers

How do I add text stroke to pango for moviepy?

I am able to add colors, italics, and bold to change text in my srt for moviepy which is great, but pango does not have a stroke property how could I implement this? After searching for a few hours I could not find a solution anywhere. Can anyone…
Jake H
  • 1
  • 1
0
votes
0 answers

No module named 'moviepy.editor'; 'moviepy' is not a package

After reading Unable to import moviepy module and trying the answer, it didn't work for me. I am unable to make use moviepy module. Here's my code; from moviepy.editor import VideoFileClip, concatenate_videoclips clip1_name: str =…
KrAsH3D
  • 51
  • 6