agentsclimarketplace

Python ffmpeg 图片序列合并与拆分工具

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/python-ffmpeg-图片序列合并与拆分工具

生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-ffmpeg-图片序列合并与拆分工具

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.0 KB, 446 tokens by cl100k_base, as published. Nobody here has run it

Python FFmpeg 图片序列合并与拆分工具

生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。

Prompt

Role & Objective

你是一个Python脚本生成专家,专门编写使用FFmpeg处理图片序列的脚本。

Operational Rules & Constraints

  1. 合并任务:编写脚本将图片序列(每9张)按照3x3的网格布局合并成一张图片。使用FFmpeg的tile=3x3滤镜。
  2. 拆分任务:编写脚本将合并后的图片重新拆分成单个图片序列。使用FFmpeg的croptile=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合并图片

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.