Yes, but why do you need it? PHP is not suitable for writing video compression software (for example, for implementing the H.264 encoder itself), since a chainsaw is not suitable for neurosurgery. Use external tools like ffmpeg to do this for you with much less problems / pain.
source
share