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

No such filter: '' Error initializing complex filters. Invalid argument

I am using FFMPEG and MOVIEPY For segmentation of a video, Basically I want to cut and remove some parts from vide: here is my code : import os import argparse import subprocess from datetime import timedelta # Parse command-line…
0
votes
0 answers

Moviepy Textanimation don't work, but why?

I used this example to create an animation of the font: https://zulko.github.io/moviepy/examples/moving_letters.html If title = "Cool effect Cool effect Cool effect" then the text is displayed and animated. If title = "Lorem ipsum dolor sit amet"…
0
votes
0 answers

Python Change Aspect Ratio

How can I change the aspect ratio of videos to 9:16 by adding black bars?
0
votes
0 answers

Overlay two Videoclips an extend the second

I have two video clips and want to overlay them. The overlay_clip has a transparent background and is shifted downwards relative to the video_clip. This works good. My Code: from moviepy.editor import VideoFileClip, CompositeVideoClip output_path =…
0
votes
0 answers

Trying to make typing text video from text file in python using moviepy, imagemagick, anaconda, pycharm community

I am trying to make typing text video in python using moviepy but imagemagick is not detected in both IDE pycharm (community) and anaconda (spyder), the moviepy is working good tried with other code in with text is not involved, the code is…
faisal2k
  • 3
  • 3
0
votes
1 answer

reverse Video: Moviepy Error, by using time.mirror

im desperately trying to reverse a movie with moviepy by using .time_mirror. from moviepy.editor import * import moviepy.video.fx.all as vfx # Load the video video = VideoFileClip("/videos/uncut/videogames/other/001.mp4") popreversed_video =…
0
votes
0 answers

Moviepy module not being recognized

I'm trying to use moviepy and its giving me the error "No module named 'moviepy'". I'm not a very good programme,r so it's probably a super easy fix. I tried using the pip install command inside the code but I just got a syntax error. Code: from…
0
votes
0 answers

Writing subtitles on a video on different time frames

I am trying to write subtitles on a video. The problem is , with cv2(opencv-python), I am unable to write text on different time frames , lets say for first two seconds I want "Hello", and for another 3 seconds the video will show "this is the…
0
votes
1 answer

moviePy add subtitles

I am trying to add subtitles to a video using the recommended method in the docs from moviepy.editor import * from moviepy.video.tools.subtitles import SubtitlesClip from moviepy.video.io.VideoFileClip import VideoFileClip generator = lambda txt:…
Yazid
  • 101
  • 1
  • 4
0
votes
0 answers

Moviepy settings for videos uploadable to Instagram?

I'm creating videos with moviepy but I can't get them to upload to Instagram, which I guess is likely an encoding issue. The salient code I'm using is this: final_clip.write_videofile("clip.mp4", codec="libx265", fps=30, preset="ultrafast",…
0
votes
0 answers

FileNotFoundError: [WinError 2] The system cannot find the file specified when using moviepy

I am trying to reduce the file size of a .mp4 file using the following code: import os import moviepy.editor as mp import ffmpeg def compress_video(input_file, output_file, target_size_ratio=0.5): if not os.path.exists(input_file): …
HamidBee
  • 187
  • 1
  • 7
0
votes
0 answers

i am trying to import moviepy.editor in google colab but it is showing deprication error

i am trying to use moviepy in gooogle colab but it is showing me the following error imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead. i tried to install it with pip install imageio-ffmpeg as well still it…
0
votes
0 answers

MoviePy and FFMPEG "No attribute" errors

I am trying to create a python script that will produce the type of cartoon TikToks with the satisfying video on the bottom part. I am still getting a bunch of errors like "ffmpeg has no attribute "metadata", or some other atribute that is…
0
votes
0 answers

how to make a video from a picture and a mp3 file with moviepy

I want to create multiple videos from a folder of pictures and a folder of mp3 files. I can manage creating one how ever i want the program to do it for all of the files. I have 10 pics and 10 mp3 files that i want to be paired in order to make 10…
0
votes
0 answers

Cloud Run: container terminated on signal 9

I have a Cloud Run function that used to work well for ~6 months. It runs some video aggregations and manipulations in Python using moviepy, so it's mostly CPU. Suddendly it started to fail with some I/O error from moviepy. Inspecting the logs I see…
alexlipa
  • 1,131
  • 2
  • 12
  • 27