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

Possible errors when preprocessing the videos #4

Closed
HenryHZY opened this issue Jun 9, 2024 · 1 comment
Closed

Possible errors when preprocessing the videos #4

HenryHZY opened this issue Jun 9, 2024 · 1 comment

Comments

@HenryHZY
Copy link
Contributor

HenryHZY commented Jun 9, 2024

Hi @llyx97 , thanks for your great projects.

I encounter an error when processing these videos:

OSError: MoviePy error: failed to read the first frame of video file ../videos/1100319395.mp4. That might mean that the
file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance
the version in the repos is deprecated. Please update to a recent version from the website.
OSError: MoviePy error: failed to read the first frame of video file ../videos/1056433484.mp4. That might mean that the
file is corrupted. That may also mean that you are using a deprecated version of FFMPEG. On Ubuntu/Debian for instance
the version in the repos is deprecated. Please update to a recent version from the website.

How to fix it:

As mentioned in: Zulko/moviepy#1078, comment the following commands at: /path/to/site-packages/moviepy/video/io/ffmpeg_reader.py

def close(self):
        if self.proc:
            self.proc.terminate()
            self.proc.stdout.close()
            self.proc.stderr.close()
            self.proc.wait()
            self.proc = None
        #if hasattr(self, 'lastread'):
        #    del self.lastread 

Actually, I am not sure whether it will affect the results. I think it would be better if you could provide the downloading link of the full video dataset after processing as an alternative:)

404M ./videos
275M ./videos_before_process

@llyx97
Copy link
Owner

llyx97 commented Jun 10, 2024

Thanks a lot for pointing out this issue and for the great suggestion!
The processed videos can be found in this link.

@llyx97 llyx97 closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants