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

Changing save location of moviepy audioClip

anyone can help me with changing save location of a mp3 file created via moviepy? from pytube import YouTube from pytube import Playlist from moviepy.editor import * url = input() ytd = YouTube(url) stream = ytd.streams.first().download() name =…
tuto108
  • 25
  • 1
  • 7
0
votes
1 answer

How would I trim an image to fit an audio - Moviepy

I am trying to show an image while audio is playing, and when the audio is done playing the image disappears. This is as far as I got: image1 = mpy.ImageClip(image1_path).set_audio(mpy.AudioFileClip(audio1_path)) The problem with the above code is…
mrr67man
  • 85
  • 2
  • 8
0
votes
1 answer

Video is much faster than audio moviepy

I am trying to merge audio with video using MoviePy. Audio has larger duration than video, so I've changed it to the duration of video. This is my code: from moviepy.editor import AudioFileClip, VideoFileClip video = 'youtube.mp4' audio =…
Vaibhav Madan
  • 35
  • 1
  • 7
0
votes
3 answers

I am trying to convert an video mp4 file to Audio mp3 format by using MoviePy module but it is showing me Nonetype error

def download_audio(): #try: b2.config(text="Please wait...") b2.config(state=DISABLED) stream = yt.streams.filter(res="480p") path = filedialog.askdirectory() if path == None: return stream[0].download(path) for i…
SagarRawat
  • 135
  • 2
  • 10
0
votes
1 answer

Best way to concatenate videos that have different resolution (generally 1080 or 720)

from command line or python would be best. and i am trying to concatenate around 15 clips of 45 seconds. preferably easy to automate with different number of videos and of different length.
jap101
  • 1
  • 2
0
votes
1 answer

Concatenate mp4 files

I want to concatenate around 15 45 second clips together end on end. These clips can be of different resolution (most are 1080 or 720) but are all mp4 files. i have tried…
jap101
  • 1
  • 2
0
votes
1 answer

Count the audio tracks in a movie file with python

I'm trying to get the number of audio tracks in a video file. The video have multiple tracks (like different, selectable languages for the same movie.) So if there are three optional languages for the video, i'd like to get the number 3 in the end,…
0
votes
1 answer

Moviepy Rendered Video File Doesn't Have any Sound

I have just taken a simple video clip and made a rendered video of it using moviepy. This is my code : import moviepy.editor as mpe video_clip = mpe.VideoFileClip("video.mp4") audio_clip =…
0
votes
1 answer

'map' object is not subscriptable

I am trying to execute the codes from this link https://zulko.github.io/blog/2014/06/21/some-more-videogreping-with-python/ import re # module for regular expressions def convert_time(timestring): """ Converts a string into seconds """ nums…
VGB
  • 447
  • 6
  • 21
0
votes
1 answer

How to "naturally sort" files that end with a number (png0 to png188) via Python's natsort?

I have a folder that has plots in PNGs like earthquake0, earthquake1, earthquake2, and so on. These photos are converted to GIF via moviepy but Python's sorting results to 1, 10, 100 instead of 1, 2, 3. Here's the moviepy code import…
BallpenMan
  • 185
  • 1
  • 12
0
votes
1 answer

moviepy progress bar in wxPython statusbar

Running on Python 3.x on Windows 10 I'm working on a script to help automate compiling a .tiff image sequence into a video. I'm using wxPython to build the GUI. First I create the window class and set a global variable for the window. global…
Pyrometheous
  • 65
  • 2
  • 14
0
votes
2 answers

Creating a web app in django that creates a video (with moviepy) and plays it: Where to start?

I would like to make a web application where a user can: click a button on a webpage to create a **random video (with moviepy) play that video back on the webpage click the button again to create a new **random video that replaces the existing…
flexkwando
  • 53
  • 1
  • 7
0
votes
1 answer

Python video has no sound when sent from whatsapp

I have a specific problem while sending my videos from Whatsapp on an iPhone (everything else works: android, web app on windows and mac). Below you can see my code, every time I send my video from the Whatsapp app on iPhone it appears to be without…
0
votes
1 answer

How to rename Files in python from a text file

I am on a project that trims video at specific time ,then converts it to an audio file and save it. But the problem is i cannot get every Newly created audio file with a specific name that is stored inside a .txt file Here's the Code from…
Arjun
  • 139
  • 1
  • 8
0
votes
0 answers

Django on Elastic Beanstalk, How can I save output files of edited videos into S3 bucket

For starters, I am running the Django service on AWS Elastic Beanstalk and I am trying to trim a video's length with moviepy's ffmpeg_extract_subclip method then save it into the linked S3 bucket. media_storage = S3Boto3Storage() #used…