I think you have to install ffmpeg-python Python package. So I recommend adding a line
pip3 install --no-cache-dir ffmpeg-python
into your dockerfile.
I also see that there exist a bunch of different ffmpeg packages and we never specified which one should be used. We’ll try to improve that in the future.
Thanks but I already tried this and it does not work.
The error is : [Errno 2] No such file or directory: ‘ffmpeg’.
And also from the container terminal ffmpeg is missing, that is why I thought it should be added to the docker file, and I listed my attempts.
Maybe it should be compiled from source?
I tried it myself and it works. I started running a docker container from sentinelhub/eolearn:latest-examples, inside I installed the package and imported it:
This shows that the package can be simply installed without any extra system dependencies. It should also work if you add it to your docker file and create a new docker image on top of the one from eo-learn.
It turned out the problem was that self.out_dir didn’t exist. So I had to add a line:
os.makedirs(self.out_dir, exist_ok=True)
before the problematic line. Then it successfully created a video and a gif.
Overall, the notebooks that are just in the eo-learn repository but not used for the official documentation are not that frequently maintained and can have such minor reproducibility issues. Thank you for pointing out this issue.