How to Configure a Server for Efficient Online Video and Audio Merging, Similar to Fluidapk?

I want to create a PHP website with features like a converter, and trimmer, similar to FluidAPK. Could you help me understand which libraries I can use in PHP to achieve this?

(I moved this from “Server Configuration” to PHP because it seemed to be more of a question about choosing PHP libraries than configuring servers.)