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 - How to trim black boarder from video (top, bottom, sides)

If I have a .mp4 video file with black boarders on the top, bottom, and/or sides, How can I trim these boarders off with python? I do not want to replace the boarders with anything, I just want to trim the video. For example, if I run…
perry_the_python
  • 385
  • 5
  • 14
0
votes
0 answers

moviepy slideshow with transitions, stuck at adding crossfade transition

Making a slideshow in moviepy works without issue but i just cant figure out how to add a crossfade transition between each frame. I'm very new to python and moviepy and could really use some help. Thanks img_clips = [] path_list = [] for image in…
0
votes
2 answers

I try to install moviepy external module in the terminal but something is wrong

I have a problem. I tried to install moviepy in the terminal in the Visual Studio Code (moviepy is an external module). But something is wrong and I dont't what. Here is a screen with terminal error: (https://i.stack.imgur.com/VOekq.png) I tried to…
0
votes
1 answer

how to concatenate video files in moviepy when all video file paths are written in a list

im writing a code which takes inputs from user to get paths of video files the user want to concatenate. now if the user has 5 videos which they want to concatenate and make one file out of them, my program does a good job getting all the videofile…
ali abid
  • 11
  • 2
0
votes
0 answers

Moviepy is stretching cell phone videos when shot in portrait

Whenever I shoot a video with my cell phone in portrait mode, the listed resolution on the file information ends up as 1920x1080, even though when you play the video on a media player, it displays as 1080x1920. When I read the video into moviepy…
0
votes
3 answers

Download Youtube playlist as mp3 in Python

I'm trying to download my video playlist and convert it to mp3 extension using pytube,moviepy,re. Everything works but when it hits a number it stops working. How can I fix this? from pytube import YouTube from pytube import Playlist import…
Mert K.
  • 3
  • 2
0
votes
1 answer

Pygame-2.1.3.dev8 release not working with moviepy

I tried installing pygame with pip install pygame --pre but that release(Pygame-2.1.3.dev8) of pygame seems to not be compatible with the moviepy library. Does anyone know if there is some kind of workaround to get this to work? Error: Traceback…
0
votes
1 answer

I want to insert an audio at a certain time on the video using moviepy.editor

I want to insert an audio at a certain time on the video using moviepy.editor, how do I do it?, or do you have another way? please show me. Examples like this:enter image description here I was expecting someone to answer me, because I searched for…
0
votes
0 answers

Generate video with MoviePy from fragments

To avoid using external dependencies like ffmpeg, I'm using MoviePy to generate and edit videos. However, I'm not sure how to concat efficiently a video from thousands of downloaded video fragments. At this moment, I use this code: from…
0
votes
0 answers

moviepy save_frame ignores time information

I want to use moviepy to open a mp4 file and save a png. Unfortunately it is only saving the first frame, no matter what time information I provide. Here is my code: def video_create_thumbnail(filename): from moviepy.editor import…
David
  • 646
  • 1
  • 7
  • 27
0
votes
0 answers

MoviePy error: failed to read the duration of file

I am making a proyect that i need to take one video and extract its audio. after extracting the audio, we use this audio to transcribe and put it in a txt file. Below i put the code i have been using. This evening i get an error i have never…
0
votes
1 answer

Get rid of annoying output

I'm working with the following function: from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip if ffmpeg_extract_subclip("c:\\users\\samuel\\desktop\\VideosYT\\randomvideo.mp4", 0, 10, targetname="test.mp4"): print("") which is giving…
0
votes
1 answer

Mixing sound with text on movie.py

Trying to get something basic to work on movie.py Just want to display some text and play some music. The text displays but the music does not Here is my code from moviepy.editor import…
Tommie Jones
  • 957
  • 1
  • 16
  • 37
0
votes
0 answers

How to make text background blur in moviepy

I am using moviepy to overlay text on a video but to make it clearly visible I want background blur only behind the text and the only option that I find is to color the background and adjust its opacity but that is not i want current result result…
0
votes
1 answer

moviepy mp4 to mp3 converter

I am trying to use python to convert files from mp4 to mp3. After some research most places recommend moviepy. I used the command pip install moviepy and it seemed to go off without a hitch. I go to VS Code and enter what a youtube video told me to…
Enspist
  • 11
  • 3