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

Python moviepy's generating a weird video

I'm trying to add an audio track to a video track with Moviepy. Here's the code : videoClip = mp.VideoFileClip(os.path.join("VIDEOS", filename)) audioClip = mp.AudioFileClip(audio_file) final =…
Ldvlpr
  • 33
  • 1
  • 6
0
votes
1 answer

PyGame OR Moviepy - Show a video with transparency

I have a pretty weird situation but i will try hard to explain everything the best i can. So im coding a game using PyGame. I used moviepy to show a video on the surface. Now im doing a combatscreen and i want to animate the attacks. Ill show a…
user14074797
0
votes
0 answers

Index is out of bounds MoviePy exporting

So I am trying to export my video in moviepy. All other videos export fine (with write_videofile()) but for some reason this one isn't. It exports fine until frame 7423 - where it throws this error: IndexError: index -239606 is out of bounds for…
0
votes
1 answer

trying to make a video using moviepy

Having a issue with my code. I'm getting a list index out of range index error import os import moviepy.video.io.ImageSequenceClip image_folder= r'C:\Users\Porsche\OneDrive - Imperial College London\Documents\plates' fps=1 image_files =…
0
votes
1 answer

How to save a moviepy VideoClip to a file

So I am trying to pickle.dump() a dictionary in python. Here is the general structure of my dictionary: {"key": [tkinter.Button, moviepy.VideoFileClip, int]} etc. Now I am not able to run the pickle.dump() on the moviepy.VideoFileClip object - it…
0
votes
2 answers

Unable to use moviepy library

I am writing a program to convert video to audio using moviepy library. Problem is that I have installed this library import moviepy.editor as mp but when I run my program I am facing an error as follows: PS D:\MPhil CS\Semester 2\Multimedia…
0
votes
0 answers

How to pixelate image in moviepy?

I want to make a pixelate image in moviepy, I have reference the following Doc: Moviepy: https://zulko.github.io/moviepy/ref/videofx/moviepy.video.fx.all.resize.html And tried the following: clip =…
Ng Sek Long
  • 4,233
  • 2
  • 31
  • 38
0
votes
1 answer

Code works on Pycharm but gets blocked in the console

I've coded a python Youtube to MP3 tool to download youtube mp3s using a keystroke, here's my code: from pytube import YouTube from moviepy.editor import * import os, shutil import keyboard as kb def keyboard(): if kb.is_pressed("ctrl+i"): …
Hasaroda
  • 3
  • 2
0
votes
1 answer

Use moviepy library to merge 2 Videos together Simple Question! Where is the output?

I use https://github.com/Zulko/moviepy library to merge two videos with python import moviepy clip1 = VideoFileClip("C:/folder/1.mp4",audio=True) clip2 = VideoFileClip("C:/folder/2.mp4",audio=True) final_clip =…
0
votes
1 answer

FFmpeg - Turn a 1280x720 video into 720x1280 video and add blur

I've searched around and found multiple solutions. I've found one that works well, but the final video ends up being too big which makes the rendering slow. I'm giving it a 1280x720 video and want it to turn out like shown here with 720x1280 as the…
offish
  • 3
  • 4
0
votes
1 answer

Can moviepy handle aiff audio?

I have a python script that pulls random audio clips from a hard drive. It finds wav and mp3 files and moviepy deals with them fine. When I added the aiff extensions to the search query I get this from moviepy... codec =…
Woolwit
  • 89
  • 8
0
votes
2 answers

Creating main process for a for loop

This program returns the resolution of the video but since I need for a large scale project I need multiprocessing. I have tried using and parallel processing using a different function but that would just run it multiple times not making it…
0
votes
0 answers

Merging clips together with moviepy

I'm trying to download clips online and merge them into one video, but I get this error, not sure why this is happening: Traceback (most recent call last): File "C:/Users/myalt/OneDrive/Desktop/pythonProject1/main.py", line 78, in…
8auuuuuer
  • 51
  • 5
0
votes
1 answer

moviepy clip merging with python

Iam trying to put each clip inside a file into one clip using moviepy library from moviepy.editor import VideoFileClip, concatenate_videoclips import os import cv2 clips = [] for filename in os.listdir(r'clips//'): …
8auuuuuer
  • 51
  • 5
0
votes
1 answer

Choosing an output directory for MoviePy

So I'm walking a directory that has clips that need to be concatenated. I'm having a problem where my output (final_clip) is being written to the directory where the script is stored. How can I change this? I looked in the documentation but…
Frank Fiumara
  • 120
  • 1
  • 15