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 can't add arabic subtitles python

I am having an issue where i am unable to add arabic subtitles to an mp4 video. My old laptop running Ubuntu 20.04 can export video with arabic subtitles just fine. But on a new PC running Ubuntu 20.04 i cant't seem to do the same thing. Please have…
Salman.S
  • 76
  • 2
  • 9
0
votes
0 answers

Automatic text clip wrap on end of screen

How to automatically wrap text with moviepy? Basically if text goes to end of screen it makes \n. Tried searching it, nothing found :( Please help me, and if it's impossible, tell me other ways please.
0
votes
1 answer

Displaying gif VideoClips on a half circle path with moviepy

I am trying to compose a collection of about 6 to 7 gif aniated clips on top of a base video. These animated icons are shown on along a half circle at the center of the video. I am figuring out the best way to write this logic, but stuck at this for…
stooicrealism
  • 548
  • 2
  • 9
  • 29
0
votes
0 answers

OSError: cannot write mode P as JPEG

Hi i'm trying to setup this Youtube automaiton https://github.com/ClarityCoders/AutoTube. I have deleted the Ghostscript format types in ImageMagik-6. I'm running it on A linux Ubuntu Server and i get the Error. Traceback (most recent call last): …
Bitpoke
  • 1
  • 2
0
votes
1 answer

ValueError could not broadcast input array from shape (1080,1920,3) into shape (1080,1920) [moviepy]

WHAT I'M TRYING TO DO: Concatenate a few dozen videos from a directory to form one large video. The videos don't have the same size or aspect ratio, so I'd like for the videos to fit (without stretching) in a 1080x1920 frame and just have the…
0
votes
0 answers

How to include moviepy in a PyQt media player?

I am developing a video editor in python 3 and PyQt5. I would like to use the QMediaPlayer widget and QVideoWidget together with moviepy. I tried with the following line of code to play a video: self.mediaPlayer = QMediaPlayer(None,…
0
votes
0 answers

ffmpeg error when trying to convert mp4 to mp3 in python

from pytube import YouTube from moviepy.editor import * with open('test.txt') as f: lines = f.readlines() for x in lines: yt = YouTube(x) yt.streams.filter(file_extension='mp4').first().download() mp4_file = f"{yt.title}.mp4" …
0
votes
1 answer

Adding music to `VideoClip` doesn't work - moviepy

I am concatenating 1 ImageClip with 2 VideoClips and my goal is to add the music to the concatenated video, but the music might be different length as the video, so I use subclip to cut the music, and add a little fade out at end. But, my problem…
U13-Forward
  • 69,221
  • 14
  • 89
  • 114
0
votes
1 answer

Moviepy swap text mid video

I want to write text to a video and have it change mid playback, this is what I've tried but it overlays each text on eachother and only displays the text for 5 seconds? def generateVideo(initial_text, secondary_text, tertiary_text): text_clip =…
0
votes
0 answers

ValueError in moviepy

When I execute the following code the pygame window opens and displays the first frame of my video and then I get this error message: ValueError: Array depth must match number of mixer channels. Is there a mistake in the code? Or is something wrong…
0
votes
0 answers

ModuleNotFoundError: No module named 'decorator' when using moviepy

I'm trying to use moviepy to edit a video with the following code. However, I ran into an error ModuleNotFoundError: No module named 'decorator'. I was wondering if anyone can help me out to get rid of this error. Thanks! import pandas as pd from…
jbae42
  • 17
  • 1
  • 3
0
votes
1 answer

MoviePy - video freezes after set_duration

I'm trying to make a video the same duration as audio clips This kinda works, but after 2 seconds (subclip duration), the image just freezes as the audio continues I was trying to achieve the same behavior as in this tutorial, where it seems that…
nanquim
  • 1,786
  • 7
  • 32
  • 50
0
votes
0 answers

How do I set up Cloud9 to use ffmpeg?

I have a local python script using moviepy that stitches together images to make a movie. I'd like to move this into a lambda function. My approach has been to use AWS Cloud9 IDE to create the lambda. But I am stuck getting ffmpeg to work. …
ScottieB
  • 3,958
  • 6
  • 42
  • 60
0
votes
0 answers

django + apache + moviepy - MoviePy error: FFMPEG encountered the following error while writing file

I am trying to extract audio from a video uploaded using moviepy. The code works well during development but i keep getting error after deploying the django app. def extract_audio(object_id): """This function extracts audio from video""" # Get the…
0
votes
1 answer

write_videofile taking too much time (stuck) sometimes moviepy python

I am writing video after concatenating different clips using moviepy. On writing that video file it takes too much time to write that and sometimes it stuck on writing. I have also used options like threads, bitrate, fps, logger but still facing…
Hunzla Ali
  • 383
  • 2
  • 5
  • 22