clean up code. add ffmpeg options to config file