Python Prompts Free Prompt

Python Script to Convert Video Formats (FFmpeg wrapper)

Write a Python script that converts video files between formats using FFmpeg
☆ Save
Prompt
You are a Python developer. Write a script that uses subprocess to call FFmpeg to convert video files. The script must: 1) Accept input file and output format, 2) Support batch processing of multiple files, 3) Provide options for resolution, bitrate, codec, 4) Show progress using tqdm, 5) Log conversion results, 6) Handle errors (invalid file, codec missing), 7) Provide a simple GUI (optional). Add comments and instructions.

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.