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

ffmpeg_extract_subclip function and moviepy string output error

I have been developing this small application to download and cut Youtube videos. It works fine but an error or misformatted message is the issue I have not fixed. When it comes to the cutting process, the function ffmpeg_extract_subclip is used and…
João Victor
  • 65
  • 1
  • 1
  • 5
0
votes
1 answer

Python moviepy ImageClip() generates corrupt files

I have a script that combines a background and a sentence into 1 image and then creates a 10second clip from just that image. However, even though the images get created correctly, about 20% of the created clips are corrupted. Here is the code I…
Thomas Smeman
  • 175
  • 11
0
votes
4 answers

How to combine 2 audio mp3s in moviepy?

I have a mp3 with a voice over "speech" and one with the background music "back_mus", and I want to combine them into one mp3 file. I tried running the code bellow, but I get this error "AttributeError: 'CompositeAudioClip' object has no attribute…
Bambi2k21
  • 15
  • 7
0
votes
0 answers

How to fast forward all the videos ( mp4 format ) of a folder and store the fast forwarded videos in another folder using python

I have a folder called "Videos" consisting of 7 videos of mp4 format. I want to fast forward all the 7 videos and store them in another folder. The issue is that only the 7th video is fast forwarded and stored in another folder. The rest 6 videos…
0
votes
1 answer

Is there a way to review past error messages?

I have a Python script that I use through Spyder to combine video files into one. I've used it quite a few times before. I do make minor changes to it now and then, but nothing that should have cause a major malfunction. It does however hog most of…
0
votes
1 answer

How to get the speech from a video into a text file in text?

Can anyone guide me on how to get the speech from a video into a text file in text? I tried but I am getting this error- "raise RequestError("recognition request failed: {}".format(e.reason)) speech_recognition.RequestError: recognition request…
0
votes
0 answers

Lags at the junction of the connection between two videos in moviepy

After the video is merged, there is a slight duplication of the last second clip1 delay between the two merged videos. Tell me what could be the reason? The code: clip1 = VideoFileClip("../1.mp4") clip2 = VideoFileClip("../2.mp4") final_clip =…
0
votes
1 answer

Django Custom Filter to get video duration using MoviePy not working

I am trying to use a custom filter to find the video duration using moviepy however the function is not able to access the files even though it seems the correct video path is being passed into the function in the custom filter. I'm getting the…
0
votes
1 answer

Unhandle exception in script: module "moviepy.audio.fx.all"

I have converted py file to exe. But I have this problem even though in the code I don't use the moviepy module. Please help me. Error in here Here is my code
KhangThai
  • 1
  • 1
0
votes
1 answer

How to Concatenate bunch of videos using python?

So, I have over 5000 small clips that I need to combine. To apply various custom filter over their names, I want to do it with python. I have the following code: import os from moviepy.editor import * os.chdir('D:/videos') list1, list2 =…
0
votes
1 answer

Moviepy - audio gets corrupted when extracted from video

a simple code like this is creating a corrupted audio file for some reasons: from moviepy import * clip = VideoFileClip("cut.mp4") audio = clip.audio audio.to_audiofile('temp-audio.mp3') Expected Behavior Audio should be the same as the audio in…
NotSoShabby
  • 3,316
  • 9
  • 32
  • 56
0
votes
1 answer

ImageMagick Installation in Docker container with External fonts for MoviePy

How to install ImageMagick in a docker container and also install external fonts for usage in MoviePy.
Shreyesh Desai
  • 569
  • 4
  • 19
0
votes
0 answers

Trying to stop pygame but it can't because of interrupt

So I want it so when you click the x button on the top it stops the whole process but there is this "interrupt" error I keep getting and I tried multiple ways to stop the video, pygame or audio and none of them work. It just keeps printing in…
BlueFire02
  • 45
  • 6
0
votes
1 answer

Is it possible to write video or audio file in current directory using moviepy in Azure Functions as azure functions have read only access

Is it possible to write video or audio file in current directory using moviepy in Azure Functions as azure functions have read only access? I want to use moviepy to concatenate videos in azure functions, even though it is running locally but after…
0
votes
1 answer

Matplotlib Barh transitions smooth

I'm a noob when it comes to Matplotlib and visualization in general. I've been following this tutorial: https://thecleverprogrammer.com/2020/06/23/bar-chart-race-tutorial-in-python-with-matplotlib/ Which provides a good base for solving my problems…
Alexa
  • 798
  • 7
  • 11