Python Prompts Free Prompt

Python Script to Extract Audio from Video

Create a Python script that extracts audio from video files using moviepy
☆ Save
Prompt
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.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.