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 3.7 - Moviepy trim the audio to the length of the video

So I have 7 .mp3 audio files concatenated together audioFiles = [a for a in glob.glob(audioPath + "**/*.mp3", recursive=True)] audios = [] for audio in audioFiles: audios.append(AudioFileClip(audio)) audioClip = concatenate_audioclips([audio…
Marci
  • 129
  • 1
  • 13
0
votes
2 answers

issue in python (moviepy)

I'm using Moviepy to convert Video, Error occurs while doing that try to change the file location on every drive but still the issue presists import moviepy.editor as mp clip = mp.AudioFileClip("C:\Galaxy S10-…
0
votes
0 answers

Why can I not access the google-storage url from inside Docker with moviepy?

I have a docker instance setup from which I am using moviepy.editor.VideoFileClip to edit urls that come from a google cloud instance. Locally, I have no problem doing this at all and can run: from moviepy.editor import VideoFileClip vfc =…
user592419
  • 5,103
  • 9
  • 42
  • 67
0
votes
1 answer

MoviePY lum_contrast

Maybe someone know how to use moviepy.video.fx.all.lum_contrast? I try to use it like stabdart crop and resize: clip = VideoFileClip("clip.mp4") clip2 = clip.lum_contrast(1, 1, 126) clip2.write_videofile("clip_changed.mp4") But I get some errors: …
Adam
  • 3
  • 2
0
votes
1 answer

I am facing a problem with the cutout() tool in the moviepy library. The cutout() tool delet audio from the end of the video

I am facing a problem with the cutout() tool in the moviepy library. The problem is when i use cutout() it cuts the audio from the end of the video. for example: if I do this clip1 =…
0
votes
1 answer

Moviepy waiting for resource

I am using moviepy to insert a text into different parts of the video in my Django project. Here is my code. from moviepy.editor import VideoFileClip, TextClip, CompositeVideoClip txt = TextClip('Hello', font="Tox-Typewriter") video =…
Sandeep Balagopal
  • 1,943
  • 18
  • 28
0
votes
0 answers

Nginx with uwsgi taking n*loading time with Moviepy

I am using Moviepy to edit a video and insert text into it in my web application. The page takes 10 seconds to load, that is alright for my client. The issue is when i host my project to a server. Say i send 5 requests simultaneously to the server,…
Sandeep Balagopal
  • 1,943
  • 18
  • 28
0
votes
1 answer

How to add a new method to an existing import in python? Specifically moviepy

For whatever reason, Python is not allowing me to access a custom method I created in moviepy's preview.py file. I just want to know how to correctly implement it into the file. For reference, before I changed the name of the method, it was working…
0
votes
1 answer

Where can I find documentation for the preview() and show() function for VideoClips?

I just want to see how exactly they work, and I can't seem to find them in either moviepy or pygame's websites. Basically I just want to see at what time a user presses a specific key during a clip, and record that time/possibly insert an image at…
0
votes
4 answers

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'

I'm trying to run the Lane-detection Project from here with the Jupiter notebook. I get this Runtime-Error: Picture of the Error When I try to run this code: # Import everything needed to edit/save/watch video clips from moviepy.editor import…
Dan Beri
  • 53
  • 1
  • 1
  • 4
0
votes
0 answers

video.supersample does not exist

Im writing a program to slow and supersample a video and I've gotten the video to slow down, but when I try to use the same method to supersample it from moviepy.editor import * from moviepy.video.fx.all import * video = VideoFileClip("People -…
0
votes
0 answers

I get 'str' object is not callable when converting mp4 to mp3

I wanted to make my program that takes Youtube video, downloads and then converts mp4 video to mp3 audio. When it gets to converting part it gives a TypeError: 'str' object is not callable. I've tried different libraries but decided to use…
Redlik
  • 439
  • 1
  • 4
  • 6
0
votes
1 answer

Pyinstaller - How to hidden import moviepy?

I want to convert my script to an .exe and have tried it with pyinstaller. The problem is that moviepy is not imported. I imported moviepy as import moviepy.editor as me (in script.py). So i tried the hidden import. The command was: pyinstaller…
yil98
  • 33
  • 1
  • 8
0
votes
0 answers

Moviepy creating videos with create date = 0

I am creating a video using moviepy CompositeVideoClip. After creation when I check its exif data it gives me Create Date of the video as 0000:00:00 00:00:00. Is there a parameter to set the created date?
Rakshita Jain
  • 149
  • 2
  • 9
0
votes
1 answer

Moviepy: no audio in written videofile when running on heroku

I am making videos with moviepy. Created locally, the final videofile has audio. When I run the same code on heroku, the final video has no audio. First, I thought not using the /tmp directory on heroku might be the issue. I also followed advice to…