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

MoviePy - proper way to position text

I'go got a fullhd (1980x1080) movie clip with background image and two text lines all lines are horizontally centered one line should be vertically centered in first half of image and second line in the bottom half of image. like that: Here is the…
Yuretz
  • 49
  • 8
0
votes
1 answer

python, pyside6, and moviepy issue invalid or missing encoding declaration pywintypes38.dll

description hello guys I have a python project with the following import statement the project used to work just fine but after sometime the following line of code from moviepy.editor import concatenate_videoclips, VideoFileClip causes below error,…
0
votes
1 answer

Issue Adding Subtitles to MoviePy Video

I've been trying to use Movie Py to create a .srt file, and add the subtitles to a video. The first video without captions, made in _match_audio_duration(), exports sucessfully. The captions file is also created sucessfully, and appears to be in the…
Wyatt
  • 1
0
votes
1 answer

'TemporaryUploadedFile' object has no attribute 'get'

I'm getting this error every time I'm trying to upload video file, and I think the problem is come from the moviepy library that I'm using to cut every video that are higher than 10 minute. the error: AttributeError at /CreateVideo…
0
votes
1 answer

How Movie Py write_videofile can use whole CPU while render

I've got a macbook with M1 processor (arm64) While MoviePy renders video file CPU Usage doesn't grows more than one core and the same for ffmpeg. But i've got 8 core and wanna to use all of them to that. How it can be solved?
Yuretz
  • 49
  • 8
0
votes
0 answers

I have a problem with imagemagick when I try to create automatic subtitles with moviepy and speech_recognition

I'm coding something to edit video automatically but when I wanted to create automatic subtitles there was a problem with image magick As I told you I did something to add automatic subtitles but image magick gave me this…
0
votes
1 answer

Making moviepy concatenations faster

I'm adding clips to a main clip: final_clip = VideoFileClip('video.mp4') secondary_clip = VideoFileClip('video2.mp4') for tr in time_ranges: clip = secondary_clip.subclip(tr['start'], tr['end']).set_position((0, 0)) final_clip =…
funerr
  • 7,212
  • 14
  • 81
  • 129
0
votes
0 answers

Text Alignment Not Centered MoviePy

I want to create a subtitleclip that's position on the video is little right to the center but, the text should be aligned to the center. So here's my code generator = lambda txt, font_size: TextClip(txt, font='Arial-Rounded-MT-Bold',…
Bucky
  • 1,116
  • 2
  • 18
  • 34
0
votes
0 answers

Making all image clips the same size in MoviePy

All of the images in the final clip come out as static except for the first one. from assigning import images, text from moviepy.editor import * from moviepy.video.fx.resize import resize clips = [] for i in range(len(text)): audio_clip =…
0
votes
0 answers

How to place movie clips of different aspect ratios into moviepy?

I have mp4 clips of 2400x1080, but i want to composite them into a clip of 1920x1080 by laying them side by side on a stage of 1920x1080. I've done autodetection to rotate them in moviepy, so they present in the correct orientation. But, moviepy…
placid chat
  • 179
  • 10
0
votes
1 answer

Join multiple videos with moviepy. I.e. join the videos one after another, NOT merge those video together

As suggested, concatenate_videoclips joins the videos, but I want a different way. It looks like concatenate_videoclips merges 2 videos together so that they are played simultaneously. What I want from moviepy is to join 3 videos A, B and C, as a…
0
votes
0 answers

Python moviepy bug, 'ri' disappears from animated text

In my trials to make animated text using Python moviepy package, I have found a possible bug for which I don't have a solution as of now. Issue/Observation: if I animate text 'TrI' {notice the capital I}, it works with animated text of 'TrI'; if the…
N V
  • 83
  • 2
  • 12
0
votes
0 answers

How to prevent video from getting messed up when concatenating via moviepy with method set to chain?

I have a few clips that I want to combine to one video. Here's the code for that: final = concatenate_videoclips(clips, "chain") final.write_videofile("output-chain.mp4") However, the output file is a bit messed up. The first clip was merged fine,…
U. Watt
  • 533
  • 1
  • 5
  • 27
0
votes
0 answers

How to modify this script that it can utilize GPU instead of CPU - moviepy > VideoFileClip

I have the following script to split video into chunks and get certain number of chunks. It works good but uses cpu instead of my RTX 3090 GPU How can I make it use GPU in the final render? Thank you so much for answers import math import…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
0
votes
1 answer

Make a clip as long as a sound using moviepy

My clip is 14 minutes long. The sound sometimes can last up to an hour or more. I don't want to make the clip an hour long for example. When I have to make that clip.set_duration(audio.duration) it's easy, but how can I make that when the original…