Fixed mistakes in YUV and ffmpeg video and generalized these two under new class FileVideo.