Media Processor logo

Media Processor

CommunityPopular
anbeime
media-processor

影片与视频编辑及自媒体创作者在处理多媒体素材时,当需批量转换音视频或图像格式、调整分辨率及压缩文件时必用。一键调用底层工具自动完成转换与压缩,高效输出符合预期的媒体文件,大幅节省手动处理时间。

Overview

Publisheranbeime
Repositoryskill
Skill namemedia-processor
Stars
6.9K
Forks
645
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by anbeime on GitHub. Read the source before you install it.

Installation

Install the Media Processor AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anbeime/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/skills/media-processor/media-processor .claude/skills/media-processor
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Media Processor in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Media Processor on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Media Processor is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Media Processor

任务目标

  • 本 Skill 用于:处理视频和图像文件,进行格式转换、分辨率调整、压缩等操作
  • 能力包含:
    • 视频格式转换(MP4/AVI/MOV/MKV 等)
    • 视频分辨率调整和压缩
    • 图像格式转换(JPG/PNG/GIF/WebP 等)
    • 图像分辨率调整和压缩
    • 批量处理支持
  • 触发条件:当用户需要处理视频或图像文件时触发

前置准备

  • 依赖说明:本 Skill 依赖以下系统工具
    • FFmpeg:视频处理工具
    • ImageMagick:图像处理工具
  • 系统依赖安装:Skill 首次使用时将自动安装系统依赖
    bash
    apt-get update && apt-get install -y ffmpeg imagemagick

操作步骤

标准流程

  1. 需求分析

    • 识别输入文件类型(视频/图像)
    • 确定目标格式、分辨率、质量要求
    • 评估是否需要批量处理
  2. 选择处理方式

    • 视频处理:调用 scripts/ 中的视频处理脚本
    • 图像处理:调用 scripts/ 中的图像处理脚本
  3. 执行处理

    • 对于简单操作(如单一格式转换):直接调用相应脚本
    • 对于复杂操作(如多步骤处理):智能体将调用多个脚本组合使用
  4. 结果验证

    • 检查输出文件是否生成
    • 验证文件格式和参数是否符合预期

常见操作指南

视频格式转换
  • 调用 scripts/video_convert.py
  • 参数:input_path(输入路径)、output_path(输出路径)、output_format(目标格式)
  • 示例:将 AVI 转换为 MP4
视频压缩
  • 调用 scripts/video_compress.py
  • 参数:input_path、output_path、bitrate(目标码率)、crf(质量控制系数)
  • 示例:压缩视频到 2Mbps
视频分辨率调整
  • 调用 scripts/video_scale.py
  • 参数:input_path、output_path、width、height
  • 示例:调整到 1920x1080
图像格式转换
  • 调用 scripts/image_convert.py
  • 参数:input_path、output_path、output_format、quality
  • 示例:将 PNG 转换为 JPG
图像缩放
  • 调用 scripts/image_scale.py
  • 参数:input_path、output_path、width、height、maintain_aspect
  • 示例:等比缩放到 1024x768
图像压缩
  • 调用 scripts/image_compress.py
  • 参数:input_path、output_path、quality、method(压缩方法)
  • 示例:质量设置为 85%

批量处理

  • 当需要处理多个文件时,智能体将循环调用相应脚本
  • 使用通配符模式匹配文件(如 *.aviimages/*.png
  • 为每个文件生成对应的输出路径

资源索引

注意事项

  • 确保输入文件路径正确,使用相对路径(./ 开头)
  • 输出路径需要包含完整文件名和扩展名
  • 质量参数范围:图像质量 1-100,视频 CRF 18-28(数值越小质量越高)
  • 处理大文件时请耐心等待,智能体会持续监控执行状态
  • 如果需要自定义参数(如编码器、帧率等),请参考相应参考文档

使用示例

示例1:视频格式转换

python
# 将 video.avi 转换为 video.mp4
python scripts/video_convert.py \
  --input ./video.avi \
  --output ./video.mp4 \
  --format mp4

示例2:图像批量转换

python
# 将所有 PNG 转换为 JPG
for file in ./images/*.png; do
  output="${file%.png}.jpg"
  python scripts/image_convert.py \
    --input "$file" \
    --output "$output" \
    --format jpg \
    --quality 85
done

示例3:视频压缩与缩放

python
# 先缩放再压缩
python scripts/video_scale.py \
  --input ./input.mp4 \
  --output ./temp.mp4 \
  --width 1280 \
  --height 720

python scripts/video_compress.py \
  --input ./temp.mp4 \
  --output ./output.mp4 \
  --bitrate 2M

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Media Processor AI skill do?

影片与视频编辑及自媒体创作者在处理多媒体素材时,当需批量转换音视频或图像格式、调整分辨率及压缩文件时必用。一键调用底层工具自动完成转换与压缩,高效输出符合预期的媒体文件,大幅节省手动处理时间。

Why use Media Processor on TypingMind?

Because you install it once and use it with any model. Media Processor is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Media Processor in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anbeime/skill/tree/main/skills/media-processor/media-processor. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Media Processor?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Media Processor?

As many as you like. As long as a model supports skills, you can use Media Processor with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Media Processor AI skill free?

It is published on GitHub by anbeime. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇