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

RuntimeError: No valid H.264 encoder was found with the ffmpeg installation #108

Open
HkDzl opened this issue Feb 23, 2023 · 6 comments
Open

Comments

@HkDzl
Copy link

HkDzl commented Feb 23, 2023

Does anyone know how to solve this problem? Thank you very much!

@zzz-11
Copy link

zzz-11 commented Mar 28, 2023

i also have the problem

@HkDzl
Copy link
Author

HkDzl commented Mar 28, 2023

Maybe you can use other image processing APIs to rewrite it, such as opencv.

@zzz-11
Copy link

zzz-11 commented Mar 28, 2023

Did you solve the problem with opencv

@HkDzl
Copy link
Author

HkDzl commented Mar 28, 2023

Oh, I just used it to splice the output image into a video. I think it should be modifiable but I have not try. I just test the pretrained model.

@zzz-11
Copy link

zzz-11 commented Mar 28, 2023

thank you

@ivanpuhachov
Copy link

ivanpuhachov commented Oct 19, 2023

I fixed it on Ubuntu 22.04 as follows:

  1. remove ffmpeg installed with conda: conda remove --force ffmpeg
  2. sudo apt install libx264-dev
  3. sudo apt-get install ffmpeg
  4. verify that ffmpeg has this codec installed: ffmpeg -codecs | grep 264 will output DEV.LS h264 ...

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

3 participants