refactored video format config and fix'ed FFmpeg conversion