yenchenlin / nerf-pytorch

A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
MIT License
5.53k stars 1.07k forks source link

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

Open HkDzl opened 1 year ago

HkDzl commented 1 year ago

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

zzz-11 commented 1 year ago

i also have the problem

HkDzl commented 1 year ago

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

zzz-11 commented 1 year ago

Did you solve the problem with opencv

HkDzl commented 1 year ago

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 commented 1 year ago

thank you

ivanpuhachov commented 1 year ago

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 ...