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

MoviePy - getting progress bar values

I am running a python script which converts a video file to an audio clip using moviepy. def convert(mp3_file,mp4_file): videoclip = VideoFileClip(mp4_file) audioclip = videoclip.audio audioclip.write_audiofile(mp3_file) …
sokar
  • 1
  • 3
0
votes
2 answers

Python concatenate_videoclips, strange audio and video glitches

I concatenated video clips with: clip1=VideoFileClip('cutclip35.mp4') clip2=VideoFileClip('cutclip165.mp4') clip3=VideoFileClip('cutclip24.mp4') final_clip =…
holistic
  • 103
  • 6
0
votes
0 answers

reduce moviepy processing time

I'm adding image & text to a video at a particular time only, this is the only change I'm doing to the video. But in the moviepy progress bar I can see that it goes over the rest of the frames in video even after the specified timeline. Probably…
Mahesh
  • 43
  • 1
  • 7
0
votes
2 answers

python moviepy not working after converting to EXE

My script is not working after converting to EXE, it says failed to execute script, it has some external files in the same directory but it works as script but not as exe. It started give me this error since I Added a video with moviepy to the…
0
votes
0 answers

Converter from video to audio in python

I try to make a converter application, that can download a video from youtube in .3gpp format and convert it in mp3 but i have some issue about privillages, i dont really now about windows and python privillages. import pytube import moviepy.editor…
0
votes
0 answers

PsychoPy Video Task Freezes After Several Iterations of For Loop

EDIT: I've since taken a different approach with my task such that the solution to this isn't necessary anymore, but I'm leaving the question up for posterity. Because of this post (Manual pyglet loop freezes after a few iterations) describing a…
0
votes
1 answer

Pims.open Throws "UnkownFormat Error" with "Invalid Argument" On One Machine But Not on Another

I'm trying to do some video processing for a physics experiment, and I want to do it on my much more powerful Windows desktop computer as opposed to my Mac laptop. The following code works like a dream when run as a Jupyter notebook on my…
0
votes
0 answers

moviepy: extracting audio from a video and using it in another video

I'm trying to visually manipulate a video by taking the following steps: Breaking the video into frames (using CV2) Editing each frame (using PIL) Compiling the frames back into a new video (using moviepy) I'd like to use the audio of the original…
Sefi_k
  • 87
  • 8
0
votes
1 answer

why changing the font in Textclip may not work?

There is a function that adds text to a video clip. But when you specify the font style parameter, it does not change. What could be the problem? Cod: vid = VideoFileClip(name_video) text1 = TextClip(text_for_video, fontsize=size, font='Courier',…
0
votes
0 answers

Winerror 2 the system cannot find the fiel specified

I'm currently trying top download some clips and then merge them into one video. However, for some reason im getting the following error: Traceback (most recent call last): File "F:\tarkovYoutubeAutomation\main.py", line 223, in
lolnoob lolnooa
  • 59
  • 1
  • 3
  • 8
0
votes
0 answers

How to print subtitles while video is playing (on sync) using python?

I'm trying to print a text in parallel to video playing like the meaning of the subtitles. I stuck at how to print the subtitles while the video is playing. Actually based on the video frame it's printing but I need to print the respective text like…
5war00p
  • 368
  • 1
  • 5
  • 15
0
votes
1 answer

Trouble finding path to mp4 file

I started a project a day ago where you can choose to download any Youtube video using the pytube library, problem is that it does not support mp3 files, so I tried using moviepy and it was not successful. Here's my code, def download_video(): …
0
votes
1 answer

Load video from url in moviepy and save frame

from moviepy.editor import * clip = ( VideoFileClip("https://filelink/file.mp4")) clip.save_frame("frame.png", t = 3) I am able to load video using moviepy but its loading complete video and then saving the frame. Is it possible not to load the…
Kanav Raina
  • 43
  • 1
  • 9
0
votes
0 answers

MoviePY write_videofile creating corrupted videos

I'm attempting to write a program that lets you crop videos by drawing a ROI (Region of Interest) using the MoviePY and CV2 packages. The cropping and everything works fine, the problem is saving the newly cropped video. The video ends up created,…
LC303
  • 1
  • 1
0
votes
1 answer

4K Clip Editing with moviepy

I hope to zoom a 4k video. The reason is simply I don't have a high resolution monitor. from moviepy.editor import VideoFileClip import moviepy.video.fx.all as vfx clip = VideoFileClip(file_name) resized_clip = clip .crop(clip, x1=0, y1=0, x2=1920,…
Yong
  • 35
  • 1
  • 5