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

Errno32 during MoviePy-FFMPEG write_videofile

During write_videofile i get Errno32 inside Errno32 def creating_video(files, title): fragments = [] for file in files: print(file) clip = VideoFileClip(file).subclip() fragments.append(clip) video =…
Krest
  • 1
0
votes
1 answer

Error 'VideoFileClip is not defined'...? (moviepy, Python 3.x)

I am trying to use moviepy in Python to edit some videos, however I can't get basic code to run. The moviepy library installs just fine, and I have ffmpeg installed. I tried running the following example code from moviepy, just replacing the initial…
0
votes
0 answers

Python: How to reduce/optimize the numbers of processes started by MoviePy to convert MP4 to MP3

I have to convert video files (MP4) to audio only (MP3, but M4A is also acceptable) and for that I am using this code: import moviepy.editor as mp def convert_video_to_mp3(video_file): try: file_mp4 = f'{video_file}_video.mp4' …
Nanno
  • 71
  • 1
  • 7
0
votes
0 answers

Creating a varying sized image object in moviepy

I am looking to create a visual effect in python which will relate the output of an audio file (WAV) to the size of an object, similar to how many chat platforms will show a ring around a profile pic of the person you are chatting with which will…
0
votes
0 answers

Saving video on the drive created by moviepy

I have a code that gets a picture and some text and creates a video. Everything looks fine until the last line which is supposed to save the video created on the local drive. Here is the code: from moviepy.editor import * # set up the video…
0
votes
0 answers

moviepy zoom in and out: slight twitching

I'm trying to create a zoom in and out effect for an image using moviepy. I found this solution: Moviepy zooming effects need tweaking import os from moviepy.editor import * def resize_func(t): if t < 4: return 1 + 0.2*t # Zoom-in. …
0
votes
1 answer

moviepy / imagemagick not reading images/fonts in docker image

Running macOS, python3.10.8 Currently attempting my first app transition to a docker file. During operation of my app, i am returned the following errors: convert-im6.q16: unable to read font `Avenir-Next-Condensed-Bold' @…
0
votes
0 answers

How to fix broken pipe error running .exe python script?

Creating an app to download audio/video from youtube and I want it to be an executable. Everything works fine running the python version, but when I create an .exe file I get this error: File…
UnRealPro
  • 13
  • 1
0
votes
0 answers

Need to create a longer version of a video by looping it, all while keeping the frame rate, bitrate, and audio quality. not to mention the resolution

I have this 5 minute long 24fps video, and I need to extend it's length by a factor of some integer number, something like 12, though preferably 24. I need to keep the frame rate the same, which I have achieved through moviepy, but the bit rate has…
0
votes
0 answers

ValueError: cannot reshape array of size 777600 into shape (720,1080,5)

The following lines: currentImageClip = ImageClip(r'path/to/image') imageClipWithCaption = CompositeVideoClip([ColorClip(size=(1080, 720), color='black'), currentImageClip]) gives me the following error: Traceback (most recent call last): File…
0
votes
1 answer

How can i set an audio file for video clip with moviepy without re encoding

So far i tried: from moviepy.editor import * videoclip = VideoFileClip("filename.mp4") audioclip = AudioFileClip("audioname.mp3") new_audioclip = CompositeAudioClip([audioclip]) videoclip.audio =…
not me
  • 1
0
votes
1 answer

Combine image and audio together using moviepy in python

I been trying this for a long time, but doesn't seem to work, I have tried using multiple codes, this is one of them that i'm currently using but doesn't seem to work: from moviepy.editor import * image = ImageClip("image.jpg") audio =…
0
votes
0 answers

Moviepy's TextClip displays gibberish

What I am trying to do is to add a short text at specific timeframe of a mp4 video. I have this code: # Import everything needed to edit video clips from moviepy.editor import * # loading video dsa gfg intro video clip =…
0
votes
1 answer

Moviepy bugs out when concatenating in a for loop

I want to concatenate 4 clips of the same videoclip, Fimage, for a certain duration of time. The print tests and logic tests say that this should work, but it generates a 7 second clip with half of it bugging out. My suspicion is that the…
Electro
  • 17
  • 8
0
votes
1 answer

Can't save a file in moviepy python

I have seen a few questions about this here, but none of them solved the issue for me, so maybe my case is different in some way. I am trying to achieve a simple result: read a file and write it. Here is the code: import…
user9102437
  • 600
  • 1
  • 10
  • 24