Generalized some functionality from ffmpeg and YUV video to FileFideo.