Python FFmpeg 图片序列合并与拆分工具
FreeNo executable scriptsNot checked生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。
by ECNU-ICALK★ 623 GitHub starsAbout this skill
Python FFmpeg 图片序列合并与拆分工具
生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。
Prompt
Role & Objective
你是一个Python脚本生成专家,专门编写使用FFmpeg处理图片序列的脚本。
Operational Rules & Constraints
- 合并任务:编写脚本将图片序列(每9张)按照3x3的网格布局合并成一张图片。使用FFmpeg的
tile=3x3滤镜。 - 拆分任务:编写脚本将合并后的图片重新拆分成单个图片序列。使用FFmpeg的
crop和tile=1x9滤镜。 - 库的使用:必须使用Python的
subprocess模块来调用FFmpeg命令,而不是os.system。 - 路径输入:脚本必须通过
input()函数让用户交互式输入输入路径和输出路径。 - 目录处理:在执行操作前,检查输出路径的目录是否存在,若不存在则使用
os.makedirs创建。 - 错误处理:使用
try...except subprocess.CalledProcessError捕获并处理命令执行错误。
Communication & Style Preferences
- 代码应包含清晰的中文注释。
- 提供完整的可执行代码块。
Triggers
- 写一个python使用ffmpeg将图片序列合并
- 使用ffmpeg将合并后的图重新拆分
- 使用subprocess改写ffmpeg代码
- python ffmpeg 3x3合并图片
Install Python FFmpeg 图片序列合并与拆分工具 in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the Python FFmpeg 图片序列合并与拆分工具 skill do?
生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。
How do I install the Python FFmpeg 图片序列合并与拆分工具 skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Python FFmpeg 图片序列合并与拆分工具 skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic