transloadit-media-processing
它能做什么
这个工具可以修改和转换视频、音频、图片和文档等媒体文件。它使用一个名为 Transloadit 的服务来完成这些操作。
适用场景
- ✓当你需要更改视频的格式时。
- ✓当你想生成视频缩略图或调整图片尺寸时。
- ✓当你需要从扫描文档中提取文字(OCR)时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/transloadit-media-processing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“把这个视频转换成 HLS 格式,并生成 5 张缩略图。”
每周 5 个新技能,1 分钟读完。
工作原理
你需要指定要处理的文件以及想要的转换操作。工具会把文件发送给 Transloadit,由它完成处理并返回结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Transloadit Media Processing
Process, transform, and encode media files using Transloadit's cloud infrastructure. Supports video, audio, images, and documents with 86+ specialized processing robots.
When to Use This Skill
Use this skill when you need to:
- Encode video to HLS, MP4, WebM, or other formats
- Generate thumbnails or animated GIFs from video
- Resize, crop, watermark, or optimize images
- Convert between image formats (JPEG, PNG, WebP, AVIF, HEIF)
- Extract or transcode audio (MP3, AAC, FLAC, WAV)
- Concatenate video or audio clips
- Add subtitles or overlay text on video
- OCR documents (PDF, scanned images)
- Run speech-to-text or text-to-speech
- Apply AI-based content moderation or object detection
- Build multi-step media pipelines that chain operations together
Setup
Option A: MCP Server (recommended for Copilot)
Add the Transloadit MCP server to your IDE config. This gives the agent direct access
to Transloadit tools (create_template, create_assembly, list_assembly_notifications, etc.).
VS Code / GitHub Copilot (.vscode/mcp.json or user settings):
{
"servers": {
"transloadit": {
"command": "npx",
"args": ["-y", "@transloadit/mcp-server", "stdio"],
"env": {
"TRANSLOADIT_KEY": "YOUR_AUTH_KEY",
"TRANSLOADIT_SECRET": "YOUR_AUTH_SECRET"
}
}
}
}
Get your API credentials at https://transloadit.com/c/-/api-credentials
Option B: CLI
If you prefer running commands directly:
npx -y @transloadit/node assemblies create \
--steps '{"encoded": {"robot": "/video/encode", "use": ":original", "preset": "hls-1080p"}}' \
--wait \
--input ./my-video.mp4
Core Workflows
Encode Video to HLS (Adaptive Streaming)
{
"steps": {
"encoded": {
"robot": "/video/encode",
"use": ":original",
"preset": "hls-1080p"
}
}
}
Generate Thumbnails from Video
{
"steps": {
"thumbnails": {
"robot": "/video/thumbs",
"use": ":original",
"count": 8,
"width": 320,
"height": 240
}
}
}
Resize and Watermark Images
{
"steps": {
"resized": {
"robot": "/image/resize",
"use": ":original",
"width": 1200,
"height": 800,
"resize_strategy": "fit"
},
"watermarked": {
"robot": "/image/resize",
"use": "resized",
"watermark_url": "https://example.com/logo.png",
"watermark_position": "bottom-right",
"watermark_size": "15%"
}
}
}
OCR a Document
{
"steps": {
"recognized": {
"robot": "/document/ocr",
"use": ":original",
"provider": "aws",
"format": "text"
}
}
}
Concatenate Audio Clips
{
"steps": {
"imported": {
"robot": "/http/import",
"url": ["https://example.com/clip1.mp3", "https://example.com/clip2.mp3"]
},
"concatenated": {
"robot": "/audio/concat",
"use": "imported",
"preset": "mp3"
}
}
}
Multi-Step Pipelines
Steps can be chained using the "use" field. Each step references a previous step's output:
{
"steps": {
"resized": {
"robot": "/image/resize",
"use": ":original",
"width": 1920
},
"optimized": {
"robot": "/image/optimize",
"use": "resized"
},
"exported": {
"robot": "/s3/store",
"use": "optimized",
"bucket": "my-bucket",
"path": "processed/${file.name}"
}
}
}
Key Concepts
- Assembly: A single processing job. Created via
create_assembly(MCP) orassemblies create(CLI). - Template: A reusable set of steps stored on Transloadit. Created via
create_template(MCP) ortemplates create(CLI). - Robot: A processing unit (e.g.,
/video/encode,/image/resize). See full list at https://transloadit.com/docs/transcoding/ - Steps: JSON object defining the pipeline. Each key is a step name, each value configures a robot.
:original: Refers to the uploaded input file.
Tips
- Use
--waitwith the CLI to block until processing completes. - Use
presetvalues (e.g.,"hls-1080p","mp3","webp") for common format targets instead of specifying every parameter. - Chain
"use": "step_name"to build multi-step pipelines without intermediate downloads. - For batch processing, use
/http/importto pull files from URLs, S3, GCS, Azure, FTP, or Dropbox.
…
常见问题
什么是 Transloadit?
它是一项在线服务,可以自动处理和转换媒体文件。
什么是“robots”?
“Robots”是 Transloadit 中的小型处理单元,负责执行具体任务,比如调整图片尺寸或转换视频。
什么是“pipeline”?
“Pipeline”(流水线)是你设定的一系列任务,会按顺序依次作用于文件。
详情
作者的原始描述
Process media files (video, audio, images, documents) using Transloadit. Use when asked to encode video to HLS/MP4, generate thumbnails, resize or watermark images, extract audio, concatenate clips, add subtitles, OCR documents, or run any media processing pipeline. Covers 86+ processing robots for file transformation at scale.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7454
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。