refactoring FFmpeg command code to make it easier to add stuff