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

TypeError: 'ImageClip' object is not callable

I am trying to combine image files and audio files to create videos. Libraries used: from gtts import gTTS from pydub import AudioSegment import pandas as pd from moviepy.editor import AudioFileClip, ImageClip, VideoClip from PIL import Image,…
AutumnRain
  • 25
  • 4
0
votes
1 answer

Is there an issue with moviepy's concatenate_videoclips() function, or is my implementation introducing this effect?

I am using moviepy to make a video of images. My code is below, and clip_path_list is a list of integers referring to the line number of the image (e.g [1,2,3,4]). These are all stored in a directory called genned_images. When I run this code, there…
Westsi
  • 142
  • 2
  • 10
0
votes
0 answers

How can I apply audio compression to an MP4 file?

I am using moviepy to generate MP4 files from sets of shorter clips, each with their own audio. The problem is that the resulting MP4 often has a very high dynamic range from one clip to the next and I would like to apply audio compression to make…
0
votes
0 answers

What does movieStim3 show on frame time -0.04

I am using movieStim3 to play videos in Psychopy and use getCurrentFrameTime() to record the time of each frame. My video's fps is 25 Hz so every frame will display for 0.04 seconds. I notice that there are always several flips of the screen that…
0
votes
1 answer

AttributeError: 'tuple' object has no attribute 'end' in python Moviepy

I am a beginner in python I had this error when I try to write multiple videos for the final video this is the code from moviepy.editor import * # getting video files video_1 =…
MrShakila
  • 874
  • 1
  • 4
  • 19
0
votes
1 answer

Moviepy concatenated videoclip exports way slower than clips themselves

I have a list of 4 moviepy ImageClips that I want to concatenate and then export. I notice that when I export the concatenated videoclip, it starts exporting at ~60 it/s but it quickly drops to ~6 after a couple seconds. I suspect that the drop is…
Thomas Smeman
  • 175
  • 11
0
votes
0 answers

How do I make multiple videos of individual images at once using images in a folder? Moviepy -Python

Soooo, I have no clue how to do this and am completely new to python however, I would like to select all images in a folder and turn them into 10 second individual videos for each image using MoviePy. but instead of combining all the images together…
Emossauce
  • 3
  • 3
0
votes
0 answers

No identifiable expectation during counting in python

I want to count the number of scenes(videos_files). I download many videos and cut them by the scene I count the number of videos(scenes) example: video 1 has 10 scenes video 2 has 15 scenes so the count is 25. I have an issue that it is working…
ALex Break
  • 59
  • 10
0
votes
0 answers

How to combine mp3 and avi file with moviepy

How can I combine .mp3 and .avi file with moviepy? moviepy gives error. Moviepy gives codec error about avi.
0
votes
0 answers

Is there a way to add a .gif or .mp4 before each image, MoviePy -Python

I'm pretty new to Python and trying to add a .gif file or .mp4 file before every image inserted into an .mp4 video file using MoviePy. The code below is adding .jpg files from a folder and putting them together into an .mp4 video that shows each…
Emossauce
  • 3
  • 3
0
votes
0 answers

Python - .mp3 duration doesn't match the duration of actual audio

I had a folder with 2 ".mp3" files which takes and image from separate folder and renders it to an .mp4 video. Problem - If the duration of actual audio is 4 mins, I get the .mp4 file of duration 4 mins but the audio completes at 2.10 seconds and…
0
votes
1 answer

Python - Adding image to mp3 files in folder

I have a folder with 10 ".mp3" songs, I want to add an image to those songs and render all files in mp4 format, but I am getting an error : AttributeError: 'WindowsPath' object has no attribute 'endswith' Code: from moviepy.editor import * from…
0
votes
0 answers

Using hwaccel ffmpeg option with moviepy library

I am trying to add the hwaccel option of ffmpeg to a script I am working on in Python, based on the moviepy library, by passing the options via the ffmpeg_params parameter: from moviepy.editor import VideoFileClip ASSETS_FOLDER =…
Nicola Lepetit
  • 756
  • 8
  • 25
0
votes
1 answer

How do I select all images from a folder? -MoviePy, Python

I'm pretty new in python and trying to make a python script to put images together into a video(.mp4) using MoviePy. However, I have multiple files and would like to be more efficient by sort of.... naming the folder and selecting all images within…
Emossauce
  • 3
  • 3
0
votes
1 answer

Using MoviePy to find fps of any video file

I'm new to python and as part of my project I need to find the fps of any video file. Below is the code that I have so far that doesn't work. filen = input(' Please enter the exact file name of the video, eg: video.mp4 ') filename =…