Charlie227 Charlie227 - 7 months ago 48
PHP Question

How to use ffmpeg without root access

I've successfully installed ffmpeg using ssh, as root, on my dedicated server (CentOS 7).

ffmpeg works fine - but now I need to use it without root access.

When i try to use ffmpeg without root access, I get the following error :

ffmpeg: error while loading shared libraries:
cannot open shared object file: No such file or directory

The final goal is to be able to use ffmpeg inside my PHP scripts which do not root access.

Any help is appreciated.


The easiest solution is to download an already compiled ffmpeg binary and point your script to it.

You can use shell_exec() as shown in FFmpeg Wiki: PHP and provide the full path to the downloaded binary.