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

How to put a function inside VideoFileClip ()?

In my current directory I have a file.mp4. Problem: I want to search the name of that file and then put file.mp4 in the VideoFileClip('file.mp4'). How can I do that? I get an error when I run the code below, because VideoFileClip() accepts only…
0
votes
0 answers

Django generate thumbnail with MoviePy, problem with Path

How to get the absolute path to a video, that works in development (Windows) and production (Ubuntu), ive tried almost everything, here is the closest I've gotten to a solution, I am trying to generate a thumbnail for a video when its posted. ` from…
MrLonely
  • 23
  • 1
  • 5
0
votes
0 answers

MoviePy, How to add blank left padding to TextClip?

I am working on my free time on a project that uses: MoviePy latest release (1.0.3) ImageMagick 7.1.0-53 Python >=3.8,<4 Windows 10 My goal is to concatenate clips and for each, I want to show a text at the top left of the screen. textclip:…
0
votes
0 answers

MoviePy TextClip set_position not working

I am working on my free time on a project that uses: MoviePy latest release (1.0.3) ImageMagick 7.1.0-53 Python >=3.8,<4 Windows 10 The goal is to concatenate clips and for each, I want to show a text at the top left of the screen. But none of my…
0
votes
0 answers

how to merge video and audio without cmd?

hi I want combine video and audio together I tested packages ffmpeg-python and pymkvbut both use cmd and I dont want that. from host I don't have permission to use cmd also I used moviepy, it's worked but it's very slow and I can't use that. Do you…
Judge
  • 1
  • 2
0
votes
0 answers

Video concatenation using ffmpeg. Output video length is longer than inputs length

I have a problem with video mp4 concatenation using ffmpeg. I have two the same videos and I want to concatenate them. I created file inputs.txt and then used command: ffmpeg -f concat -i inputs.txt -c copy mergedVideo.mp4 Output: ffmpeg -f concat…
0
votes
0 answers

Error in the extraction of the moviepy subclip function

I am doing a project in which I need to extract the audio from a video and then transcribe that audio using google speech recognizer. The problem comes that when extracting the audio from the video, instead of extracting the piece that I want to…
Letie18
  • 1
  • 1
0
votes
1 answer

Video generated from a picture and one auido file has no sound using moviepy

I am trying to make a video with one image and one auido file using the following code: from moviepy.editor import * audio = AudioFileClip("/users/qingzhou/downloads/Taylor.wav") image =…
Qing Zhou
  • 5
  • 3
0
votes
1 answer

How can i resize image in moviepy so that it perfectly fits in 1980x1080?

So I'm trying to resize an image and maintain its ratio so that it perfectly fits in 1980x1080 in the moviepy library. Currently, I'm doing this with a function like this: def FitClip(size): #size is basicly clip.size clipRes = size …
Slimesus
  • 31
  • 2
0
votes
0 answers

What would the path to my font file (.ttf) be in an AWS Lambda thats hosted via an Image?

This is where the problem Lies: txt_clip = TextClip(author, font='/var/task/RubikVinyl.ttf', fontsize = 35, color='white') It does not use the font, despite me passing the entire font path. I've tried different formats, saving the font file to…
0
votes
1 answer

How do I give moviepy access to custom installed fonts on Windows?

I have been looking through the depths of the internet and still cannot find anything. When I execute print(TextClip.list("font")) My custom-installed fonts are not available. After some research, I thought it could be possible that it has to do…
eaglehuntt
  • 53
  • 6
0
votes
1 answer

Can't write video using moviepy. output format error

I'm trying to concatenate videos in each folder so that I get one video in each folder instead of multiple short ones. This is an external USB drive if that matters. My code seems to iterate over the files as expected, but I keep getting this error…
Ronnie Kisor
  • 121
  • 1
  • 2
  • 8
0
votes
0 answers

Trying to download a video then convert the video to an mp3, I end up getting a Attribute error

I get a 'streams has no endswith attribute' # Download function MP3 def download(): try: mp3_file = "audio.mp3" url = YouTube(str(link.get())) video = url.streams.first() VideoClip = VideoFileClip(video) …
Ibos
  • 1
  • 1
0
votes
0 answers

I am getting FileNotFoundError when that file does exist in moviepy

code: from moviepy.editor import * import os Pictures = [] Path = 'Pictures_To_Use' #Adding Pics to the Pictures arrray for pics in os.listdir(Path): clips = ImageClip(pics).set_duration(5) Pictures.append(Path + "/" + pics) …
0
votes
0 answers

moviepy alters video aspect ratio

I got a simple code that cuts a video into multiple clips based on given frame numbers but the video always gets altered (images attached) If someone could provide me with some insight I would really appreciate it Result Original video og_clip =…
Shahar
  • 1
  • 1