Improve ffmpeg module (add Media class for inputs/outputs)