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 images slideshow with moving camera

Code below works well except one thing. While zooming out it start from the original image size and scale it down so there is black space on the edges. How to implement zooming out effect without "black space"? from moviepy.editor import * def…
Alex T
  • 4,331
  • 3
  • 29
  • 47
0
votes
1 answer

TypeError when using MoviePy

In trying to learn a little about MoviePy, I copied some sample code (which I modified slightly) that cuts a 10 second section out of a movie file, overlays text on it, and writes it as a different file. The code works perfectly...only for certain…
Ghoti
  • 121
  • 1
  • 10
0
votes
2 answers

Cannot resize videos using moviepy on aws lambda

I partially created an aws lambda function that utilize moviepy to concatenate images and videos in a single video file. For example, I have “img1.jpeg”, “img2.jpeg”, “video1.mp4” and “video2.mp4”. After processing the above files the final clip…
user734094
0
votes
0 answers

AttributeError: ImageClip instance has no attribute 'mode'

I am trying to extract frames from a video based on time, plot some x and y coordinate value data on each frame and combine the frames into a video again using moviepy. I used this question as a reference for plotting data on the extracted frames. I…
rsnaveen
  • 323
  • 1
  • 4
  • 15
0
votes
1 answer

Accelerate or decelerate a movie clip

I am trying to accelerate and/or decelerate a movie clip with the help of Python's moviepy module, but I can't seem to work it out properly. The script runs quite smoothly, and without any errors, but I do not see any effects. Might be my script is…
Anay Bose
  • 880
  • 1
  • 14
  • 24
0
votes
2 answers

moviepy not finding ImageMagick on win

On a Anaconda3 4.1.1 distribution on Windows 7 64bit I installed moviepy 0.2.2.11 by using pip install moviepy. Now I want to test some examples with animated text which demands ImageMagick. So I downloaded and installed…
MrCyclophil
  • 162
  • 3
  • 13
0
votes
2 answers

How to show a frame of a video file (image) with tkinter in python

I am trying to show video frames (not from a stream) with tkinter. The next step are buttons which allow the user to get a frame backward or forward in the video. I have to say that I am quite new in programming with python. So first I read the…
meyc
  • 1
  • 1
  • 2
0
votes
1 answer

Python - Console closes after the code has been frozen

I wrote an app in Python 2.7 that retrieves the length of media files using moviepy. If I run it from the command line, everything works fine; but after freezing the code, when I run it the console window closes immediately. I've tried cx_freeze,…
Simon TheChain
  • 277
  • 1
  • 16
0
votes
1 answer

Psychopy MovieStim3: pausing errors

I am trying to follow the MovieStim3 pausing example as outlined here: MoviePause.py I am using the same code as this example, except I am using my own movie file. print('orig movie size=' + str(mov.size)) print('duration=%.2fs' %…
0
votes
0 answers

Moviepy doesn't work after py2exe

I create an app with pyside and moviepy. It works sucessfully from console (python app.py). When I create exe with py2exe , The app throws that error: File "app.py", line 33, in run File "moviepy\editor.pyc", line 22, in File…
Alexander
  • 1,720
  • 4
  • 22
  • 40
0
votes
0 answers

Why am I getting a no attribute error in my python script but not in my python interpreter?

I'm trying to write a program that edits a video using the moviepy module in python. I have this #!/usr/bin/env python import os import math import moviepy as mp import mediainfo class Editor: OFFSET = 2 #seconds def __init__(self,…
guribe94
  • 1,551
  • 3
  • 15
  • 29
0
votes
0 answers

Russian Letters in Python

I am using moviepy to make some videos. I am using Beautifulsoup to scrape the text. I need a Russian text clip to appear on the screen with the video. My code works fine for languages like English and Esperanto. How can I solve this…
user2806040
0
votes
1 answer

using moviepy give error [Errno 13] Permission denied

video file upload def upload_video( video ): video_name = "%d&&%s%s" % (int(round(time.time() * 1000)), "uservideo", os.path.splitext( video.name )[1]) image_path = '%s/%s' % (DATA_ROOT, video_name) full_path = '%s%s' % (BASE_DIR,…
장민석
  • 5
  • 4
0
votes
0 answers

Error message when trying to run PIP

When I try to install moviepy with: sudo pip install moviepy I get the following error message: ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File…
0
votes
1 answer

Moviepy generating GIFs from the same point

I have tried to generate a simple GIF file from this video. My code is below: from moviepy.editor import * clip = (VideoFileClip("Mighty Kungfu Panda 'Skadoosh'.mp4").subclip((0,0.18),(0,0.21)).resize(0.3)) clip.write_gif("skadoosh2.gif") But GIF…
ni8mr
  • 1,725
  • 3
  • 31
  • 58