Converting media files using ffmpeg in php