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
1 answer

Moviepy : Mix multiple audio files

I want to mix multiple audio files and export single audio file, to demonstrate, here's a example timeline; audio1 : ----------------------------------------------------------------------- audio2 : =============== audio3 : …
soroushamdg
  • 191
  • 1
  • 2
  • 14
0
votes
1 answer

MoviePy making pyqt5 progress bar

Using moviepy module i want a callback function to display % audio export. I have done that changes in module: a) Call audio.write_audiofile("../disket box/mp3…
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
1 answer

Python: Direct conversion from download to mp3 without saving files (requests/moviepy)

I need to convert a MP4 downloaded with the Requests module, into a MP3 with the Moviepy module. The 2 operations work perfectly. However, in order to convert the MP4 into MP3 (using the moviepy audio.write_audiofile() method), I need to save the…
Bibelo
  • 221
  • 2
  • 8
0
votes
1 answer

MoviePy ImageClip randomly producing grey videos

I am trying to create a simple video of one image with audio with MoviePy. Working with the same code, sometimes MoviePy randomly produces greyed out and glitched videos like this: (opened with VLC Media Player) The audio works fine in the final…
kakasuarez
  • 62
  • 9
0
votes
0 answers

Using moviepy, how can I splice up long videos into 8-second bits?

relatively new python user here. I'm trying to use moviepy to splice up 5 min long videos into 8-second bits. I used the code in this thread to extract subclips and it works. I did the following to make it a loop that covers the whole video, but I…
0
votes
1 answer

How to merge mp3 and mp4 in python / Mute a mp4 file and add a mp3 file on it

I want to merge an mp3 and an mp4 in python, if possible with the moviepy library. But my mp4 video got some sound in it, so i want to delete this sound before.
Madar
  • 196
  • 2
  • 15
0
votes
1 answer

i want to make video 2x speed using moviepy but its making videos zoom in,enlarge

I'm new to moviepy my requirement is to make a normal video into 2x. All the videos are recorded on the phone and the videos which are not required any rotations are working fine. By the videos which are needed to be rotated even, I apply rotation…
Education 4Fun
  • 176
  • 3
  • 16
0
votes
2 answers

Moviepy Error: the file *** cannot be found

I am trying to use MoviePy to convert an mp4 video to mp3 audio. In the below 'convertToMP3' function I pass in episode which is an RSS entry object that has a "title" attribute. I've already downloaded an mp4 video that shares the episode title…
Caleb V.
  • 1
  • 2
0
votes
1 answer

Using glob.glob to pick random files gives weird errors

I'm using this method to pick random files of a certain type from a folder a user inputs, and then concentate them together in MoviePy: filename = glob.glob(input +"/*.mp3") sdofjsodfj =…
queddd
  • 1
0
votes
1 answer

Text Effect with Background Image Using Moviepy

I need to add text effect with a background image using Moviepy but for some reason its not working. I am using moviepy and have a jpg background image file. It is resulting in black background video. here is the code import numpy as np from…
0
votes
1 answer

Not able to merge several audio files using moviepy

I have around 245 .webm files in my directory. I want to merge all of those 245 files into one single file called output.webm. I am using python's 'moviepy' module to achieve this. This is what I have done so far : import os from moviepy.editor…
S M
  • 111
  • 11
0
votes
0 answers

I want to mix 4 audio files and add the final mixed audio files to a video in moviepy. Is that possible?

I am trying to edit videos from moviepy and from moviepy I want to add 4 different audio files. I didn't find any documentation. I guess. Is this possible? I tried a lot but can't figure it out. from moviepy.editor import…
0
votes
1 answer

Audio problems when resizing video - moviepy

I am resizing an mp4 video with this code (moviepy): video_clip = VideoFileClip(url) resized = video_clip.resize(width=720) d = tempfile.mkdtemp() video_path = os.path.join(d, 'output.mp4') resized.write_videofile(video_path) The resized clip's…
Jordan
  • 1,422
  • 1
  • 11
  • 21
0
votes
1 answer

MoviePy - Set audio length to clip

Can anyone help me to trim the audio file to match the video length? At the moment the video finishes at 8 seconds but it plays for 2min+ clip = VideoFileClip("video.mp4") clip_duration = clip.duration audioclip =…
squidg
  • 451
  • 6
  • 17
0
votes
1 answer

Mirrored Arabic Letters using TextClip Moviepy

I am trying to render the video which contains arabic letters. let's use مرحبا for the example. After video rendered the result is mirrored. background = mp.ColorClip(mobile_size, (255, 255, 255), duration=0.5) #float(audiolength.info.length) text1…
Sam
  • 557
  • 1
  • 4
  • 19