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

Moviepy Making a CompositeVideoClip of two concatenate_videoclips

Working with the Moviepy lib and I've been beating my head off a wall with this last step for a while. GifClips = concatenate_videoclips(TheGIFs, method='compose') TextClips = concatenate_videoclips(TheTexts, method='compose') I've written both of…
Max Better
  • 61
  • 10
0
votes
1 answer

Script asks for a file path but gives back error

I have a Python script that asks me to select the input folder. I am running it on OSX. The issue is that when I try to write the input path it gives me back an error. Let's say that the input folder is "Documents", here what it…
Andrew
  • 77
  • 2
  • 2
  • 5
0
votes
1 answer

Trim video using MoviePy in flask project

@bp_video.route('/upload', methods=['GET','POST']) def create(): my_file = Path(app.root_path + '/' + app.config['UPLOAD_FOLDER'] + '/videos') if not my_file.exists(): os.makedirs(app.root_path + '/' + app.config['UPLOAD_FOLDER'] +…
villo
  • 54
  • 7
0
votes
0 answers

moviepy: How to define the ending part backwards for cut?

To this question I am referring to the example from http://zulko.github.io/blog/2014/01/23/making-animated-gifs-from-video-files-with-python/ To be exactly, to these codes I refer. from moviepy.editor import * clip =…
Rt Rtt
  • 595
  • 2
  • 13
  • 33
0
votes
1 answer

Choose where to save the image when you call save_frame() in MoviePy

I'm using MoviePy to save a frame from an uploaded video (the specific function in MoviePy is save_frame() source). This works successfully, however I want the image to save in my media folder (Django's conventional folder for saving uploaded…
Zorgan
  • 8,227
  • 23
  • 106
  • 207
0
votes
2 answers

why does moviepy's write_videofile function get slower and slower as it processes each frame? And how to improve/fix it?

My script takes two movie files as an input, and writes a 2x1 array movie output (stereoscopic Side-by-Side Half-Width). The input video clips are of equal resolution (1280x720), frame rate (60), number of frames (23,899), format (mp4)... When the…
denis1226
  • 1
  • 2
0
votes
2 answers

MoviePY UTF8 Error

I looked around before posting but the solution given here doesn't work : moviepy stackOF solution I use python 2.7.13 with ImageMagick-7.0.6-Q16 My code is like this : # -*- coding: utf-8 -*- #Installation de FFMPG.EXE s'il n'est pas déja installé …
Garbez François
  • 327
  • 3
  • 13
0
votes
1 answer

MoviePy Error: The system cannot find the file specified

I'm getting the error in the title when trying to run the example code below on Windows 10/Python 3.6.1/Sublime Text Editor 3. I made sure to set my MAGICK_HOME environment variable to point to where I manually installed ImageMagick. I made sure to…
JohnSmithy1266
  • 407
  • 1
  • 6
  • 15
0
votes
0 answers

What can cause the CPU usage drop in the script moviepy FFMPEG

What would cause the exporting rate to drop or cpu usage to drop between these 2 scripts This one exports with a rate of 15bit/s clip1 = VideoFileClip("C:/TBD/TBD/#Frikkie/T1234567/Export/01.mp4") clip2 =…
0
votes
0 answers

Python Moviepy dropping CPU used FFMPEG

Would there be any specific reason why my CPU used will drop from 96%-100% to like 30% on average when running this script. I want it to run @ 100% if possible to process the videos faster. Any help will do thanks in advance. import moviepy.editor…
0
votes
1 answer

Drawing a circle with changing radius

Here is a very simple function where I am trying to draw a circle with changing radius upon a gif image. I can successfully draw a static red circle with my test_clip function, but I need clues how to incorporate the make_frame(t) function in order…
Anay Bose
  • 880
  • 1
  • 14
  • 24
0
votes
1 answer

moviepy Gif that doesn't loop

I'm using moviepy.VideoClip.write_gif to produce some animated graphs over a varying parameter. I would like the gif to play once and then stop on the final frame. I've tried loop=1 and loop=False, both run without error but are still producing…
FatyP33
  • 13
  • 5
0
votes
0 answers

How to display VideoFileClip in canvas Tkinter

I want to display the video in canvas instead opening in a new window. And I want to know how to stop and pause the video. import pygame from Tkinter import * def movie(): from moviepy.editor import * pygame.display.set_caption('Hello…
0
votes
1 answer

Running into OSError when I use MoviePy

I wrote a program to convert all videos in a particular folder to 15 second gifs. It takes each video, makes subclips of various lengths and concatenates the subclips to make a 15 second video file However, I run into some error when processing…
Shashank
  • 25
  • 8
0
votes
0 answers

issue with movie.py with renaming script

I have a lot of videos stored in different subfolders. All the videos have weird file names like f4vd5sd1b5dsd41s415d. And I have a text file where there are the correct file names of each file. To know which video goes with which title, I added the…
frosta
  • 3
  • 4