Extension to manipulate movie in PHP