Media processor

From anbeime/skill · View interactive version

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

How to use this skill

Skill file

Media Processor

任务目标

前置准备

```bash

apt-get update && apt-get install -y ffmpeg imagemagick

```

操作步骤

标准流程

  1. 需求分析
  1. 选择处理方式
  1. 执行处理
  1. 结果验证

常见操作指南

视频格式转换
视频压缩
视频分辨率调整
图像格式转换
图像缩放
图像压缩

批量处理

资源索引

注意事项

使用示例

示例1:视频格式转换

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

示例2:图像批量转换

# 将所有 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 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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.