No, you would have to use FFmpeg no matter what. Laravel Process
could replace calling exec
directly and File
could replace using unlink
and rename
directly.
Yeah, it might not be available in the CentOS package manager. In that case, just download the executable directly from FFmpeg - Download FFmpeg. You would want a Linux Static build. I do this for one of my applications.
Once extracted, I run the following command:
cp -f ffmpeg/ffmpeg ffmpeg/ffprobe /usr/local/bin
Putting it in /usr/local/bin
allows it to be called like any other executable. This assumes that location exists on CentOS too