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

Movie.py Error file not found on given path

I am currently working on a project in django where i had to extract frames from some part of the video by cropping the video first. Here is the sample code [crop and frames extraction code][1] def saveFrame(request): clip =…
0
votes
1 answer

i tried to make video editor which takes videos from pc using moviepy python but i am facing some issues and i am new to this

def open_file(): b_text.set("Loading") files = askopenfile(initialdir = ".",parent=root ,title="choose a video",filetype=[("Video Files","*.mp4")]) if files: print("File was loaded") files.without_audio().preview()…
0
votes
3 answers

Determine video bitrate Python

I have a video downloaded from Telegram and I need to determine its bitrate. I have moviepy (pip install moviepy, not the developer version). Also, I have ffmpeg, but I don't know how to use it in python. Also, any other library would work for me.
Thunderssucks
  • 29
  • 1
  • 8
0
votes
1 answer

How to reverse a video and audio clip with moviepy?

I've been trying to reverse a mp4 file so that it outputs another mp4 file but in reverse. The problem I've been having is that I can only get it to reverse the video by exporting each of the frames as pngs then reimporting them in reverse order,…
Yo Su
  • 1
0
votes
1 answer

ImageClip.set_duration() does not works in moviepy

I'd like to make video file from image and audio. However I can't export video. I got this error. ValueError: Attribute 'duration' not set. I set duration on image clip. like this. image_path = 'img/opening.png' audio_path =…
Nori
  • 2,340
  • 1
  • 18
  • 41
0
votes
3 answers

No Audio in output video when using MoviePy

I am trying to use MoviePy to do basic video editing. Problem is that, when I save the video, there is no sound attached to it. Here's the basic code. Any help super appreciated - thanks! from moviepy.editor import * clip…
Marco
  • 1
  • 1
0
votes
1 answer

MoviePy preview showing besides screen blit

I've got a problem. I'm creating the Game Menu which i want to be: background as video file (using MoviePy) buttons on the video The problem is video is showing, but the button1 not. Please help... from moviepy.editor import * import pygame from…
Hajp
  • 1
  • 1
0
votes
0 answers

use moviepy to convert legacy quicktime files

I have some old quicktime files (screen caps, I think) in a weird format, that I'd like to convert via moviepy into something that plays in modern Quicktime (for example, in safari). The old format is: Codec: Apple QuickTime RLE Video…
DavidS
  • 1
0
votes
1 answer

I am getting a 'permission denied' error when I try to upload files directly to my Django app on Elastic beanstalk with a newly attached volume

I recently deployed a django app to AWS elastic beanstalk. I have used boto3 to enable storing my videos to the s3 bucket. But i need to convert the video files on the local storage before storing it on S3. I use moviepy and ffmpeg to convert the…
0
votes
0 answers

put text in video with moviepy.editor gets error

I tried this code from tutorial in the internet but its didnt work the error is: OSError: MoviePy Error: creation of None failed because of the following error: [WinError 2] The system cannot find the file specified. .This error can be due to the…
ZONEX
  • 23
  • 6
0
votes
1 answer

moviepy libunwind: pc not in table, pc=0xFFFFFFFFFFFFFFFF

Inside msys mingw 64 I run this: Χρήστος@Chris-pc MINGW64 /c/Python/Scripts/Papinhio player/src/main/python_files $ python Python 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] on wi n32 Type "help", "copyright", "credits" or…
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
0 answers

Record camera live stream using MoviePy

I'm trying to build an application where I need to show live camera streams to a user, as well as record those streams. I need to do it for multiple cameras (currently I'm starting with one only). I'm able to achieve this requirement using opencv…
Goku
  • 23
  • 7
0
votes
1 answer

AttributeError: 'str' object has no attribute 'duration'

I am trying to edit my video using moviepy. And when I want to cut a part of it I get error: AttributeError: 'str' object has no attribute 'duration' Why ? from moviepy.editor import * clip0 = VideoFileClip('08.mkv') clip0 =…
finch11111
  • 11
  • 3
0
votes
1 answer

Read video with ffmpeg using moviepy

I have a video with variable frame rate, as I found out, moviepy does not support this. I know that ffmpeg has this functionality: ffmpeg-i - filter:v fps=30 , but this is an inefficient method because I have to render the same video…
finch11111
  • 11
  • 3
0
votes
0 answers

How to cut out certain times from a video in MoviePy

I am making a program that cuts out certain parts of a video in MoviePy. I have a list like this: myList = [[3, 7], [11, 15]] and want to remove those times from the video - so it would remove the 3-7 second, and the 11-15 second, etc. This list…