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
2 answers

ModuleNotFoundError: No module named 'moviepy' in Django although installed

I have installed MoviePy within the virtual environment like this: (env)$: sudo pip install ez_setup Requirement already satisfied: ez_setup in /usr/local/lib/python2.7/dist-packages (env)$: sudo pip install moviepy Requirement already satisfied:…
ebeninki
  • 909
  • 1
  • 12
  • 34
0
votes
2 answers

Stream video frames directly to youtube in python

Hey guys I programmatically created a video using Moviepy and Gizeh. Right now it saves the final video as a mp4 file. Is it possible to upload that video frame by frame to youtube (livestream) without saving it on my computer ?
0
votes
1 answer

Load entire AudioFileClip in moviepy

I am making a video in moviepy where I have several ImageClip "slides" with accompanying audio. All of the audio clips are generated at runtime and written to a file on the disk. with open("audio_buffer.mp3", "wb") as tempFile: …
Simon Shkolnik
  • 368
  • 3
  • 12
0
votes
1 answer

Moviepy.editor import error "ImportError: cannot import name 'system'"

Hi so I'm trying to run this code to convert youtube videos into mp3 and download them using pytube and moviepy but I'm running into this: File "C:/Users/KIIT/AppData/Local/Programs/Python/Python36/ydl2.py", line 2, in from…
GFTW
  • 145
  • 1
  • 1
  • 14
0
votes
1 answer

VideoFileClip from moviepy generated multiple frames in the output video

import cv2 from moviepy.video.io.VideoFileClip import VideoFileClip def process_image(img): out = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) return out video_output = 'output_videos/Entry_02.mp4' video_input =…
user1569341
  • 333
  • 1
  • 6
  • 17
0
votes
1 answer

python write_videofile results in a black screen video

Code: clip = ImageSequenceClip(new_frames, fps=fps1) clip.write_videofile("out.mp4", fps=fps1) TL;DR: This code produces a black screen video. where fps1 is from the original video I stitch on I am trying to stitch a video using frames from many…
Gil Gvirts
  • 46
  • 3
0
votes
1 answer

Asyncio create_subprocess_exec FileNotFoundError: [Errno 2] No such file or directory:

I'm trying to create a async pipe that can be used to interface with a sub-process that I create. I'm having trouble with a file not found error when trying to create the process. As you can see in the code below I'm able to create the sub-process…
ben.weller
  • 33
  • 6
0
votes
0 answers

AttributeError: 'AudioFileClip' object has no attribute 'reader'

when i tried to run this code, i got the "AttributeError" but idk why? please help me. import os import random from moviepy.editor import * List_image = os.listdir("müzik\kapaklar") kapak_num =…
rknksy
  • 21
  • 5
0
votes
1 answer

Moviepy concatenate_videoclips(method='compose') AttributeError: 'NoneType' object has no attribute 'stdout'

I am writing a script to merge short clips into a video, but these videos contain different sizes and frame rates. When I ran the code below, the output video was full of glitches from the second clip. from moviepy.editor import * clips = […
0
votes
1 answer

Saving files on google colab

I am processing videos stored on my google drive on google colab using moviepy. I want to save the trimmed video in my current working directory on gogle drive, but I am unable to do so. Below is the code I am using (IIUC targetname is where I…
connor449
  • 1,549
  • 2
  • 18
  • 49
0
votes
1 answer

How can I add moviepy preview window inside PySide2 widget

This is very straight forward question. I'm generating a video using moviepy and finally I have video clip to be previewed inside PySide2 widget. But when I try to run videoClip.preview(), It just creates a new window and previewing it. Can we do…
0
votes
2 answers

KeyError: 'video_fps' with moviepy ffmpeg

I am writing a Python script to convert a video (.MP4) into an audio file (.MP3) on a Django server. To achieve this, I am using the Moviepy library but when I run the script, I get the following error: Internal Server Error: /test/ Traceback (most…
Ethan Shoe
  • 466
  • 1
  • 7
  • 20
0
votes
1 answer

how to show only the final output on jupyter notebook

How can I only display the final output and not the entire stdout on a notebook? I'm using moviepy and the stdout takes 80% of the screen.
Lincoln
  • 880
  • 14
  • 25
0
votes
1 answer

Moviepy clip alters dimensions?

When I save a clip using Moviepy it changes the aspect ratio or dimensions - the result is distorted. Here is the code: from moviepy.editor import * video =…
kentonpalmer
  • 255
  • 2
  • 16
0
votes
1 answer

Moviepy v1.0.1 and v1.0.0 not able to open unicode file name on Ubuntu. But Mac works

Tried to open file with unicode name on moviepy v1.0.0 and v1.0.1. Ubuntu does not work. Mac works. Ubuntu: Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:51:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help",…
user3792705
  • 577
  • 3
  • 18