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

How to use string as indices in moviepy?

I am having trouble adding text masks to a video that will be added at different times with different durations. I am using moviepy def text_on_video(): clip = VideoFileClip("C:/Users/14col/PycharmProjects/RedditVideos/output.mp4") #…
colem
  • 15
  • 4
0
votes
0 answers

Paste Video onto Video with desired aspect ratio moviepy

So i wanna "unify" the videos I create by pasting them onto a black background with my desired example: starting frame edited frame I need this because I want the dimensions to be the same, but dont want the image to be distorted
0
votes
1 answer

How do I resize my video? in proportion (python)

*I am sorry for my poor English. It's a translator. I used Python moviepy to resize it, but the pixels are broken. I want to make the video 9:16 ratio while maintaining the original image quality. (So that there are black frames on both sides) from…
ggn0
  • 3
  • 2
0
votes
1 answer

How to use moviepy generated videos in Vegas?

For some reason I can't use generated videos by Moviepy in Vegas but before editing them with Moviepy I'm able to import into Vegas. I just can use these videos if I convert each one using Handbrake (mp4 to mp4). Could this problem be caused by…
XDanRJ
  • 1
  • 2
0
votes
0 answers

movie.py NoneType' object has no attribute 'write' when compiled with sx_Freeze

I have this function running fine from the editor. But when compiled with sx_Freese, I get the error NoneType' object has no attribute 'write'. I have found the line producing the error, but have no idea how to fix it. def…
LetzerWille
  • 5,355
  • 4
  • 23
  • 26
0
votes
0 answers

Overlaying a video on top of another

I'm making a python program to overlay a video on top of another so it looks kind of like this: Do any of you know how to do it?
0
votes
0 answers

ModuleNotfoundError: NO module named 'moviepy'

I want to change my file from py to exe. and I used auto_py_to_exe then I added all project's files and folders with Additional files (in auto_py_to_exe application) like these pictures enter image description here enter image description here and I…
0
votes
1 answer

Cannot interupt a video clip preview from moviepy in a pygame display using a MOUSEBUTTONDOWN

In the previous weeks, I have been working on a Tic Tac Toe game that uses pygame and moviepy. moviepy is used for the intro screen video for the user to click on and reveal the tic tac toe board, however movie py does not react to a…
0
votes
1 answer

Python - How to convert .mkv videos to .mp4 videos

I have two folders. Download folder and converted folder. I want to convert files from .mkv to .mp4 import os import boto3 import ffmpeg from os import path, makedirs downloadFolder =…
sabari
  • 2,595
  • 5
  • 28
  • 44
0
votes
1 answer

Move across image using Moviepy

Using moviepy, I'm trying to make a video where it moves across an image. Why isn't this working?: image = ImageClip('image.png', duration=5) image.set_position(lambda t: ('center', 50+t) ) image.fps = 30 image.write_videofile('video.mp4') The…
0
votes
1 answer

Add text overlay to start of each clip and then concatenate them. Moviepy

My goal is to add a text overlay to a series of clips at a given timestamp and then concatenate them all to make a single video. Currently, the video that is output as 'movie.mp4' only plays the first text overlay and none of the others. I have…
Alejandro
  • 73
  • 7
0
votes
1 answer

Automated timer video output

I am trying to make a python script that can use a given background video and apply a time countdown overlay, making a countdown video. This is like the automated reedit videos we see on TikTok. Here is an example of what I am aiming to make it look…
0
votes
1 answer

Unable to allocate 47.5 MiB for an array with shape (1080, 1920, 3) and data type float64

Iam try to create a large video(longer than 3h)by CompositeVideoClip using moviepy. The problem is it take too much ram (i have 32gb ram).It takes the whole ram (99%) by create a bunch of ffmpeg-win64-v4.2.2.exe ffmpeg-win64-v4.2.2.exe after it a…
eragon
  • 13
  • 3
0
votes
3 answers

How can I split a string into a list by sentences, but keep the \n?

I want to split text into sentences but keep the \n such as: Civility vicinity graceful is it at. Improve up at to on mention perhaps raising. Way building not get formerly her peculiar. Arrived totally in as between private. Favour of so as on…
0
votes
1 answer

MoviePy Output Video crazy distortion

Heyy guys, I just used MoviePy for the first time and at the beginning it worked totally fine. But then after the third clip (sec 34) I observed a weird disruption. I have no words for it but please take a look at it and the code below. Each of the…