Skip to content
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

Error with VideoFileClip(filePath) #868

Closed
jonnekaunisto opened this issue Nov 9, 2018 · 1 comment
Closed

Error with VideoFileClip(filePath) #868

jonnekaunisto opened this issue Nov 9, 2018 · 1 comment
Labels
video Related to VideoClip and related classes, or handling of video in general.

Comments

@jonnekaunisto
Copy link
Contributor

jonnekaunisto commented Nov 9, 2018

Code:

import os
from os import listdir
from os.path import isfile, join
from moviepy.editor import *
from pathlib import Path


filePath = os.getcwd() + "/1g.mp4"
my_file = Path(filePath)
print(filePath)
print(my_file.is_file())

VideoFileClip(filePath)

Error:

Traceback (most recent call last):
  File "movie.py", line 13, in <module>
    VideoFileClip(filePath)
  File "/usr/local/lib/python3.6/dist-packages/moviepy/video/io/VideoFileClip.py", line 91, in __init__
    fps_source=fps_source)
  File "/usr/local/lib/python3.6/dist-packages/moviepy/video/io/ffmpeg_reader.py", line 33, in __init__
    fps_source)
  File "/usr/local/lib/python3.6/dist-packages/moviepy/video/io/ffmpeg_reader.py", line 259, in ffmpeg_parse_infos
    proc.terminate()
  File "/usr/lib/python3.6/subprocess.py", line 1585, in terminate
    self.send_signal(signal.SIGTERM)
  File "/usr/lib/python3.6/subprocess.py", line 1580, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process

I'm not able to make a path of a video file into a VideoClipFile and I am unable to debug my error. I have checked that my video file is valid and my path is too.
Any fix for this?
I am running Python 3.6

@keikoro keikoro added the video Related to VideoClip and related classes, or handling of video in general. label Dec 16, 2018
@pida0
Copy link

pida0 commented Jul 10, 2023

I have met the same error, can you share how did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
video Related to VideoClip and related classes, or handling of video in general.
Projects
None yet
Development

No branches or pull requests

3 participants