universal encoder decoder based on ffmpeg