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
2 answers

Error on AWS Lambda with moviepy and numpy

I've been trying to package my python app for lambda that uses moviepy but I keep getting this error: Original error was: No module named 'numpy.core._multiarray_umath' I've been trying different ways to package my python 3.7 app for lambda but I…
Sidhanth Tuli
  • 21
  • 1
  • 4
0
votes
3 answers

Concatenate Movies from Python List using MoviePy or FFmpeg

I have about 10,000 short videos that I am trying to make several longer videos from. I've created these videos using MoviePy, but keep getting memory errors when trying to concatenate them back together. In my code I have an outer loop going…
Programming_Learner_DK
  • 1,509
  • 4
  • 23
  • 49
0
votes
1 answer

Moviepy set ImageClip duration not working and duplicate clips beeing removed?

I am setting the duration of a imageClip, but it doesnt seem to care. I am setting the duration of a imageClip, but it doesnt seem to care. When i try to add duplicate clips it doesnt register. Any help would be appreciated! img =…
user9611261
0
votes
1 answer

moviepy error, "cannot collect memory" or "memory leak" or "memory overflow"

I encountered this question, but sadly no good answers online, so I want to put the final solutions here. Here it is: You should never give too many videos files(.mp4) to moviepy at once. But you can give it a parent video Then split it to…
yingshao xo
  • 244
  • 7
  • 11
0
votes
1 answer

send file to user when file created

I'm using moviepy to create a new movie when the user click a button on a html page. I'd like to return the new movie to user. But movie creation takes time. What can I do to send_file only when the file is created? @app.route('/createVideo',…
dt dino
  • 1,194
  • 6
  • 19
0
votes
0 answers

How to get exact time of image on video?

i'm working with moviepy library trying to solve this thing. I have an image of that video in a random time, now I need to process the video and get the time where that image is, because i need to make a clip a few seconds before that time. It's…
Axel Vazquez
  • 9
  • 1
  • 5
0
votes
1 answer

Permission error with moviepy

I am trying to convert an mp4 video into an mp3 audio using moviepy then delete the video, the code is as follows: import moviepy.editor as mp #converting mp4 to mp3 clip =…
Essam Gouda
  • 125
  • 1
  • 12
0
votes
1 answer

Fonts not found

I am trying to add simple text to a mp4 file. I have the mp4 file and I am using moviepy to add the text clip, however, I am continually running into errors. My code: import moviepy.editor as mpy video_name='Test.mp4' video =…
cpe28
  • 1
  • 1
0
votes
1 answer

How do I convert a file to mp3 before saving django?

I found some information on extending and changing the save() method on my model, but a few other people mentioned that it was bad practice to do that, and one should instead modify the admin form. Extracting the audio from a mp4 is easy using…
0
votes
0 answers

PYTHON, OSError: [WinError 193] %1 is not a valid Win32 application

I am doing a project for vehicle detection and lane detection using yolo, but this error is occurring while executing the code. Loading complete! Traceback (most recent call last): File "main.py", line 47, in clip1 =…
0
votes
1 answer

Using OpenCV to detect two near-similar videos

I have a directory of clips, some of which are very similar. By this I mean that they may share 30 seconds of the same footage, but may differ at the start/end of the video. Specifically, they're clips from streams on twitch.tv. As such, if 2 people…
RJM
  • 33
  • 6
0
votes
0 answers

Very basic Moviepy script failing to run

So, I have this very basic script that concatenates two videos, and adds a background sound. def intro(): voiceoverIntro = AudioFileClip(audio[3]) #get path for intro.mp3 introVideo = [] temp = p1vid + p2vid + p3vid for x in…
cem akbulut
  • 185
  • 1
  • 3
  • 12
0
votes
0 answers

Error when creating TextClip with moviepy

I'm trying create a textclip. But it's giving me this error: >>> from moviepy.editor import * >>> text = (TextClip("asdasda",color='white').set_pos((20,190))) [MoviePy] This command returned an error !Traceback (most recent call last): File…
Vinicius Morais
  • 565
  • 1
  • 5
  • 22
0
votes
1 answer

Youtube Upload within Python Script

Is it possible to upload a video from another running python script using youtube-upload? I have a script which creates a video in moviepy and would like to upload that created video to youtube. How can I go about doing this? e.g. from…
user2975192
  • 317
  • 2
  • 6
  • 18
0
votes
1 answer

MoviePy swelling effect trembling

I tried to use moviepy to create a swelling effect. But the result looks trembling. You may test my code on your machine and watch the swelling effect. Remember to set the size to your test image when CompositeVideoClip. from moviepy.editor import…
陈羽飞
  • 61
  • 5