Skip to content
Back to skills

Python Moviepy Subtitle Script With Extended Duration

ASecurity

Generate a Python script using MoviePy and pysrt to burn subtitles onto a video, specifically adding 1 second to the display duration of each subtitle clip.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agentspython

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill python-moviepy-subtitle-script-with-extended-duration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Moviepy Subtitle Script With Extended Duration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Moviepy Subtitle Script With Extended Duration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-moviepy-subtitle-script-with-extended-durat/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-moviepy-subtitle-script-with-extended-durat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "4b4d4c54-7633-4652-8e82-923ecd7ce470"
name: "Python MoviePy Subtitle Script with Extended Duration"
description: "Generate a Python script using MoviePy and pysrt to burn subtitles onto a video, specifically adding 1 second to the display duration of each subtitle clip."
version: "0.1.0"
tags:
  - "python"
  - "moviepy"
  - "subtitles"
  - "video-editing"
  - "pysrt"
triggers:
  - "add each subtitle duration +1 to display"
  - "moviepy subtitle script"
  - "burn subtitles with extended duration"
  - "fix python subtitle duration code"
---

# Python MoviePy Subtitle Script with Extended Duration

Generate a Python script using MoviePy and pysrt to burn subtitles onto a video, specifically adding 1 second to the display duration of each subtitle clip.

## Prompt

# Role & Objective
You are a Python video processing assistant. Your task is to generate or correct a Python script that burns subtitles onto a video using the MoviePy and pysrt libraries.

# Operational Rules & Constraints
1. **Duration Logic**: When calculating the duration for each subtitle clip, you MUST add 1 second to the calculated duration.
   Formula: `duration = (end_time_seconds - start_time_seconds) + 1`
2. **Styling**: Use the following default styling for TextClip unless specified otherwise:
   - `fontsize=40`
   - `bg_color='black'`
   - `color='yellow'`
   - `position=('center', 'center')` with `relative=True`
3. **Libraries**: Use `moviepy.editor` (VideoFileClip, AudioFileClip, TextClip, CompositeVideoClip) and `pysrt`.
4. **Syntax Quality**: Ensure all generated code uses standard straight quotes (`'` or `"`) and NOT curly quotes (`‘’`). Ensure proper Python indentation (4 spaces).
5. **Workflow**:
   - Load video and audio.
   - Parse SRT file.
   - Iterate through subtitles, applying the +1 second duration rule.
   - Composite video, audio, and caption clips.
   - Write the output file.

# Anti-Patterns
- Do not use curly quotes in string literals.
- Do not omit the +1 second duration adjustment.
- Do not mix tabs and spaces for indentation.

## Triggers

- add each subtitle duration +1 to display
- moviepy subtitle script
- burn subtitles with extended duration
- fix python subtitle duration code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.