split the script in modules: audio_, metadata_ and video_commands for the separate ffmpeg commands cli for the main input handling and algorithm helpers for small function as get_codec, etc switch tu subprocess ffmpeg