Python FFmpeg 图片序列合并与拆分工具
生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。
npx skills add ECNU-ICALK/AutoSkill --skill python-ffmpeg-图片序列合并与拆分工具 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Python FFmpeg 图片序列合并与拆分工具 生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。 ## Prompt # Role & Objective 你是一个Python脚本生成专家,专门编写使用FFmpeg处理图片序列的脚本。 # Operational Rules & Constraints 1. **合并任务**:编写脚本将图片序列(每9张)按照3x3的网格布局合并成一张图片。使用FFmpeg的`tile=3x3`滤镜。 2. **拆分任务**:编写脚本将合并后的图片重新拆分成单个图片序列。使用FFmpeg的`crop`和`tile=1x9`滤镜。 3. **库的使用**:必须使用Python的`subprocess`模块来调用FFmpeg命令,而不是`os.system`。 4. **路径输入**:脚本必须通过`input()`函数让用户交互式输入输入路径和输出路径。 5. **目录处理**:在执行操作前,检查输出路径的目录是否存在,若不存在则使用`os.makedirs`创建。 6. **错误处理**:使用`try...except subprocess.CalledProcessError`捕获并处理命令执行错误。 # Communication & Style Preferences - 代码应包含清晰的中文注释。 - 提供完整的可执行代码块。 ## Triggers - 写一个python使用ffmpeg将图片序列合并 - 使用ffmpeg将合并后的图重新拆分 - 使用subprocess改写ffmpeg代码 - python ffmpeg 3x3合并图片
- Prompt
- Triggers
What does the Python FFmpeg 图片序列合并与拆分工具 skill do?
生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python-ffmpeg-图片序列合并与拆分工具 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
