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

problem with mp4 #2

Closed
saebragani opened this issue Apr 22, 2020 · 3 comments
Closed

problem with mp4 #2

saebragani opened this issue Apr 22, 2020 · 3 comments

Comments

@saebragani
Copy link

saebragani commented Apr 22, 2020

This is a great tool, thanks for the good work!

However, while I am able to use it to deface videos (mp4) on my local machine (Windows 10), it only works for images but not videos when I try to use it remotely on a Linux-based super-computing cluster. I get the following error when I try it on a video named "cut.mp4":
"Could not open file cut.mp4 as a video file with imageio. Skipping file..."
I have tried updating numpy, imageio, scikit-image, tqdm, and imageio-ffmpeg and it still did not work. I appreciate it if you could help me figure this out. Thanks!

@mdraw
Copy link
Member

mdraw commented Apr 22, 2020

Does this error also happen if you just run the following command in the directory of cut.mp4?

python3 -c "import imageio; next(iter(imageio.get_reader('cut.mp4')))"

If this produces the same error, it's not an issue with deface but there is either something wrong with your imageio installation or with the video itself. I'd try checking the video file for strange properties with ffprobe and maybe re-encoding it. Hope this helps!

@mdraw
Copy link
Member

mdraw commented Apr 22, 2020

If this works fine on Windows but not on a Linux-based cluster, I'd also check if there are restrictions to non-free codecs in the Linux distribution (most MP4s use "non-free" codecs AFAIK). You might have to install imageio-ffmpeg differently in that case, see https://github.com/imageio/imageio-ffmpeg#installation.

@saebragani
Copy link
Author

I upgraded imageio and installed ffmpeg and it worked. Thank you very much!

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