Python Prompts Free Prompt

Python Script to Convert Video to GIF

Create a Python script that converts a video clip to GIF using moviepy
☆ Save
Prompt
You are a Python developer. Write a script that extracts a segment from a video and converts it to GIF. Use moviepy. The script must: 1) Accept input video, start time, end time, 2) Generate GIF, 3) Allow setting frame rate and size, 4) Support batch processing, 5) Show progress, 6) Handle various video formats, 7) Log errors. Add comments.

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.