FFMpeg No such file or directory

On Ubuntu, I used snap to install ffmpeg. It installed version 4.3.1 and the error "No such file or directory" occurred.

To solve, I uninstalled it with snap remove ffmpeg and installed with apt-get install ffmpeg. Apt-get installed version 3.4.8. Then, it worked.