-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: MoviePy error: failed to read the duration of file #1993
Comments
Closing this issue as it's missing information for reproducability, like useful code samples or properly formatted error logs. Please use code-formatted text for code and logs, not screenshots. We can reopen the issue once you've updated it. Please be aware you should always try to work with the latest master of MoviePy where possible, not the last PyPI release, which is quite old. |
thanks i will update in proper format |
please open my issue again i did formating stuff |
I am also having a similar issue. snippet that causes error:
Expected output:to write a video file plays normally first half and plays in reverse in second in 2nd half Actual behavior:
Specifications:
|
Hello, @keikoro did u get any solution for that ? |
Sorry, I didn't look into the issue, I only went through our tickets to tag them and pointed out missing info in the process. |
@nikhiltree Pass the file path, not the URL of the video in |
if we want to pass the local path then we need to download the video from s3 bucket and we have kubernets so if we download it then it will create too much load in our instance |
please here any body run this code on minkube and help me out to solve this error @keikoro |
But in order to run this code you need to pass file path, it won’t work if you pass url of the video, you can download your video using Additionally if you’re hosting your videos on s3 bucket and downloading videos will increase load, so why are you using s3 bucket when you can’t even download a video? |
suppose if i have one user and user have the 1 video xyz.mp4 and i am creating 500 video from this xyz.mp4. |
our concerns is why this library can't load video from s3 link that's right direction to think i guess |
@nikhiltree I am facing same issue while working with EC2 (Ubuntu). The code works fine for Windows but I am not able to read video from URL in EC2. Any suggestions? |
@nikhiltree, @qaixerabbas I am also facing a similar issue. What's stranger for me is that in my dev environment, I can create the VideoClip from an S3 URL. But in my production environment, I see the following error:
Does anyone have any workarounds for this? |
Firstly Sorry For Late Reply.
|
`from future import division import logging import numpy as np from moviepy.compat import DEVNULL, PY3 is_GIF = False if is_GIF: popen_params = {"bufsize": 10**5,"stdout": sp.PIPE,"stderr": sp.PIPE,"stdin": DEVNULL} proc = sp.Popen(cmd, **popen_params) |
Hi, thank you for the response! I tried running the script on my prod environment in Heroku. I ensured ffmpeg was installed via build pack. However, the duration doesn't show up in production. The duration DOES appear in my local dev environment. I tried setting the environment variable as well. Any other tips as to what could be going on here? |
I see am currently you are facing an issue with a piece of code. If it's convenient for you, could we possibly arrange a meeting to discuss the problem in more detail? My availability is flexible, and I believe that a brief collaboration session would greatly expedite the resolution process. If sharing the actual code poses any confidentiality concerns, you can certainly describe the relevant code snippets to provide context. Your insights would be valuable in helping me identify and rectify the issue. |
hey @ashankv I downloaded the video and then use MoviePy for further processing. I used pythons's wget module to temporarily download video on server and then do processing. In my case I wrote a backend service on Linux so downloading the video was better option for me which is working perfectly fine. In my previous task I was writing a FastAPI application so I tried to read file from URL and I was not successful in production environment on Linux (EC2 Ubuntu). |
Hi all, did anyone get any further with this? I am experiencing the same or a similar issue. When I run moviepy code locally in my virtual environment, it will happily create an Does anyone know why this could be happening? Thanks Repo: https://github.com/alifhughes/moviepy-example EDIT: I believe it is soemthing to do with the different compiled versions of ffmpeg from Apple to Debian on the docker image. The easier way around it is to do, like everyone else, download the video and then process it. Curious to see if anyone can resolve it though |
I have faced same issue. @alifhughes said downloading the video and then processing it can solve this issue and I am using firebase functions How can I download In that environment? |
Any update on this, facing the same issue @alifhughes @ashankv @nikhiltree @qaixerabbas |
FYI: There is a question on StackOverflow with a very similar issue. |
Problem : Reading video in local and docker-compose file works fine but in minikube below issue occured
Expected Behavior
Actual Behavior
Specifications
Requirement.txt
The text was updated successfully, but these errors were encountered: