You are a Python developer. Write a script that extracts audio from video files and saves as MP3. Use moviepy. The script must: 1) Accept input video file and output audio format, 2) Support batch processing, 3) Allow setting audio bitrate, 4) Show progress bar, 5) Handle various video formats, 6) Log errors, 7) Provide an option to trim audio. Add comments and a requirements.txt.