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

Python Moviepy module: output video?

So basically, my code is supposed to edit the videos in a given directory for the first 15 seconds, the middle 15 seconds, and the last 15 seconds. I'm on python 2.7 and i'm using the moviepy module. import moviepy.editor as mp from moviepy.editor…
lesley2958
  • 2,538
  • 4
  • 15
  • 15
0
votes
0 answers

Convert pictures to live video using ffmpeg and python

I'm trying to record a live video (using H.264 codec) from a series of pictures that i receive by socket using python. I tried to use the MoviePy package (documentation here : github.com/Zulko/moviepy) on python to do that but i didn't figured it…
zerzer
  • 613
  • 2
  • 8
  • 20
-1
votes
0 answers

Can someone please help me resolve this error I m facing using MoviePy module of python. My aim is to create a picture to action AI avatar

File "c:\Users\mohit\OneDrive\Desktop\viveka\testcode.py", line 49, in animation_clip = CompositeVideoClip(frames,audio.duration_seconds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File…
-1
votes
1 answer

splitting and merging video and audio results in shifted audio / loss of sync

I split video and audio from an mp4 using ffmpeg -i orig.mp4 -an -c copy orig_video.mp4 ffmpeg -i orig.mp4 -vn -c copy orig_audio.aac I subsequently merge again using ffmpeg -i orig_video.mp4 -i orig_audio.aac -c copy orig_rejoined.mp4 The problem…
herrzinter
  • 171
  • 7
-1
votes
1 answer

Can't play video generated by moviepy

I am using Moviepy to generate a new video from Python code. The purpose is to create a video that combines two TextClip objects, each displaying a different piece of text. Once executed, the code indeed produces an mp4 file. However, I am…
-1
votes
1 answer

How to extract multiple short video clips from a long video using python?

How to extract multiple smaller video clips from a long video using some python package, I need it as part of my video preprocessing for my project. ffmpeg is a method but its too complex. Any other method would be really helpful. I tried using…
-1
votes
1 answer

Python not running shell command

I am trying to download a youtube video using yt-dlp. The python file uses yt-dlp to download a youtube video by passing a URL of the video manually into python script using the subprocess.Open function. import subprocess from moviepy.editor import…
-1
votes
1 answer

ImportError: cannot import name 'find_objects' why?

*when import find_objects from moviepy.video.tools.segmenting i get in the result * ImportError: cannot import name 'find_objects' from 'moviepy.video.tools.segmenting' when follow documentation first i check if method is found by dir() get…
ismail
  • 175
  • 2
  • 6
-1
votes
1 answer

Add Image/thumbnail in my python dataframe

I am working on a project where I need to create a movie database. I have created my database and imported the links from IMDB that redirect you to the webpage. I would like to add also, the main image/thumbnail of each movie so that I can use then…
-1
votes
1 answer

convert all image into separate video using moviepy python

I have 10 images in a folder under current directory of where my python script is stored. I want to convert all my 10 images into 10 videos with the same file name (or) existing filename+suffix(somename).mp4 . The problem is the below script is…
-1
votes
1 answer

write_gif is automatically changing the resolution of the resultant gif as compared to the supplied video(mp4) file? How to avoid that?

Please see the code below and the result. How can we get the gif in the original dimensions. The moviepy documentation doesn't seem to say much. from moviepy.editor import * import os os.chdir(r'G:\') clip = VideoFileClip("VID.mp4").subclip(6*60,…
-1
votes
1 answer

How to fast forward folder of videos through multiple threads dynamically using moviePy in python?

I have a folder of videos which I want to fast forward using multiple threads using moviePy. How do I Fetch the videos from the folder dynamically instead of giving their paths statically? Here is my code : from moviepy.editor import * import…
-1
votes
2 answers

MoviePy Not Properly Installed (Linux Mint 20)

I have run pip3 install moviepy simply to get the software installed. However I am unable to use it. On a second run of pip I get: Requirement already satisfied: moviepy in /usr/local/lib/python3.8/dist-packages (1.0.3) but I have no access to the…
-1
votes
1 answer

Fix import moviepy.editor

Until 2 days ago, everything worked. But today i have the following error: C:\Users\Χρήστος\Desktop\Papinhio player\project\main>python Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 Type "help",…
Chris P
  • 2,059
  • 4
  • 34
  • 68
-1
votes
1 answer

How to use base64 encoded image with moviepy

I have an image as base64 encoded data (in memory, not a file), how to pass base64 data directly to moviepy ImageClip instead of a file?
Stéphane Busso
  • 135
  • 2
  • 12
1 2 3
50
51