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

Adding audio to the clip

I have the following code and receiving no sound in the video output. I'm using MoviePy package. from moviepy.editor import * picture = VideoFileClip("/Users/name/Desktop/trial.jpg", audio=False).set_duration(50) txt_clip =…
bodyanyash
  • 35
  • 4
0
votes
0 answers

Multiple TextClips in one Video moviepy

How can I add the watermarks into the video. positions = [("right", "top"), ("left", "top"), ("right", "bottom"), ("left", "bottom")] watermarks = [] video = VideoFileClip( clip) duration = video.duration/4 for i in range(1,5): watermark =…
Timo
  • 11
  • 1
  • 4
0
votes
1 answer

How would you add multiple textclips to a video at diffrent timestamps using moviepy in python?

Say I have textOne, textTwo, and textThree. Each varible is 10 seconds long, and have to be inserted every 15 seconds. For example, you have textOne starting at 00:00, and finishing at 00:10. Then you wait 5 seconds and textTwo is inserted for…
Eden Gibson
  • 126
  • 1
  • 11
0
votes
2 answers

Increase movie duration n times

I recorded a movie with my celphone and I want to increase the movie duration n times. Ex.: If the duration of the movie is 5 seconds, the output movie should have n x 5 seconds of duration, it should be repeated. My goal is to get a 5 seconds movie…
figura
  • 9
  • 2
0
votes
0 answers

"Unused import os from wildcard import"

I'm trying to do this code, but when I want to run it, the Visual code shows me this "Unused import os from wildcard import". The problem is at the time of import moviepy however I don't know how to fix It. I would appreciate if someone can help…
0
votes
1 answer

Unable to import moviepy module

So I'm trying to import moviepy.editor and I keep getting errors, I'm new to python so if the answer is obvious I'm sorry for wasting your time. Here's my code: import os from moviepy.editor import VideoFileClip,…
rabbibillclinton
  • 410
  • 4
  • 17
0
votes
0 answers

Showing error when joining video and audio using moviepy library in python

I want to join video and audio with using python but when i am running the code it is showing error in my code.Please tell me. My code: import moviepy.editor as…
Lucky Yadav
  • 59
  • 1
  • 10
0
votes
0 answers

Increase Memory Usage in Docker (Linux)

I am currently running a docker image on Linux, where I am supposed to compose videos together thanks to moviepy. Because I work with lots of videos, the process becomes quickly quite heavy to bear. I came to a point where it did not work anymore,…
Lucien David
  • 310
  • 2
  • 9
0
votes
1 answer

How can I use Tkinter input with Moviepy?

I made a terminal mp4 to mp3 converter. I am trying to make a UI version to it, but it doesn't work. I made a tkinter input, so you put the video's name into the input, and it should convert it. But to make a UI input I have to use tkinter, but if I…
mGz1337
  • 27
  • 4
0
votes
1 answer

Function resize() from module moviepy isn't working

I'm trying to write a small program and in it I want to resize a clip but the function ain't working for some reason. import easygui from moviepy.editor import VideoFileClip from moviepy.video.fx.resize import resize pygame.init() window =…
0
votes
2 answers

Unresolved attribute reference 'resize' for class 'VideoFileClip'

I'm trying to create a program that concatenates clips into one compilation and rescales them all to fill the full height of the frame (1920x1080). The concatenation part works fine, and the program has no trouble making a compilation when given…
Coski
  • 43
  • 2
  • 8
0
votes
1 answer

Error with the output when using moviepy module to concatenate video files

I am trying to use moviepy to join some video clips together, I get the output, with the files joined as expected. When watching the final video, clip1 looks as expected but clip2 has an error, see image. All resources I have looked at show that…
Daniel Norfolk
  • 13
  • 1
  • 10
0
votes
1 answer

MoviePy - Error when appending Clips to List with VideoFileClip

I am currently trying to create a script that combines all videos with a specific ending from a folder. import os from moviepy.editor import * project_name = "manhattan4" clips = [] for filename in os.listdir('renderings/'): if…
nucky
  • 348
  • 5
  • 15
0
votes
1 answer

PyQt5 shows black window without widgets while moviepy is concatenating videos

When concatenating two video files, the PyQt window is completely black with no widgets. The background color changes to grey and the widget shows up only after the videos have been concatenated. I would like to see a grey window and my widget while…
makerws
  • 15
  • 4
0
votes
0 answers

Convert a video to mp3 in python without ffmpeg

I have some problems when I tryed to convert a video to music in python with moviepy and the prompt given me a error, because this library need ffmepg, so I can't install ffmepg, because now only have the x64 version to download, and now I have this…
Pierre de Fermat
  • 41
  • 1
  • 1
  • 6