Server side conversion and compression

I want to provide an automatic video converter for my CMS clients. They should be able to upload their "pristine" video files (MP4, VMV, AVI, ...) and my server compresses and converts it to a website-friendly MP4 file (just like YouTube does).

The result is clear:

  • MP4 web interface
  • Compressed to the acceptable file size

So I am looking for PHP-API or Linux-shell-script to figure this out.

Is there an easy way to handle this?


Edit : YouTube embedded videos are not the solution for me.

+3


source to share


1 answer


Take a look at http://www.ffmpeg.org/ , this is pretty much the library available for this.



I found a PHP driver for it that looks interesting, but I haven't tried it. However, it is easy enough to run shell commands directly from PHP if needed.

+6


source







All Articles