Media 标志

Media

组织
dcc-mcp
media

基础设施技能 — 通过已安装的 FFmpeg 探测媒体、转码、生成缩略图、提取帧,以及将图像序列转换为 MP4,且不依赖特定 DCC。适用于智能体预检、检查或分享媒体输出。不适用于任意 shell 或 vx 执行;请仅使用类型化媒体工具。

Add to TypingMind

概览

发布者dcc-mcp
代码仓库dcc-mcp-core
技能名称media
星标数
74
复刻数
7
附带文件
15
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 15 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 dcc-mcp 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Media AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/dcc-mcp/dcc-mcp-core/tree/main/python/dcc_mcp_core/skills/media
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dcc-mcp/dcc-mcp-core.git /tmp/dcc-mcp-core
mkdir -p .claude/skills
cp -r /tmp/dcc-mcp-core/python/dcc_mcp_core/skills/media .claude/skills/media
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Media,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Media。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Media 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Media

DCC-agnostic media utilities for render, playblast, flipbook, and review artifacts. FFmpeg and matching FFprobe are external, operator-approved prerequisites, not bundled with Core. Every media tool uses only installed binaries; none installs vx, downloads FFmpeg, or invokes a launcher that might bootstrap dependencies. A missing runtime is an actionable preflight failure.

Use media__check_runtime before expensive render/export work. Prefer native DCC skills for creating the render output, then use media__probe, media__sequence_to_mp4, media__thumbnail, media__transcode, media__transcode_audio, or media__extract_frames to inspect or repackage files already on disk. Discover the capability, follow the returned load or describe step, and call the returned tool slug with typed arguments. Do not guess gateway slugs or replace the tool with arbitrary shell commands.

Safety Contract

This skill intentionally exposes typed media operations, not a generic vx <command> runner. Every tool builds a fixed argument vector for the resolved FFmpeg or FFprobe executable without shell=True, validates paths and enum fields, rejects option-like paths, and requires explicit overwrite intent before replacing outputs. Verified audio-only output is stricter: its destination must be fresh and cannot be overwritten.

Runtime selection and preparation

FFmpeg selection follows this priority:

  1. DCC_MCP_MEDIA_FFMPEG_BIN, if set to an absolute executable path.
  2. An already-installed FFmpeg in the local vx store (VX_HOME, or ~/.vx by default), discovered from local files without executing vx.
  3. ffmpeg on the server process's system PATH if there is no installed vx runtime.

The vx lookup checks the vx 0.9.37 provider layouts under <vx-root>/store/ffmpeg/<version>, with at most 128 entries and the highest numeric stable version first. It does not require a vx launcher, consult vx.toml or vx.lock, or select preview/custom version names. Pin a version or use an unsupported layout through explicit executable overrides instead.

DCC_MCP_MEDIA_FFPROBE_BIN may specify the matching probe's absolute executable path. Otherwise, resolve FFprobe only as a sibling of the resolved FFmpeg binary, never from an unrelated PATH entry. FFmpeg and FFprobe must have matching release/build identities. An invalid explicit override fails; it is not permission to switch installations or silently choose another codec. Override values are executable paths, not command names, shell fragments, or arguments. Only native ELF, PE, or Mach-O executables are accepted; scripts and known vx shim directories are rejected. Native wrappers cannot be identified reliably from file headers. Spaces in paths are supported. Configure these variables in the media server's environment, not only the agent's shell.

DCC_MCP_MEDIA_VX_BIN and DCC_MCP_MEDIA_AUTO_INSTALL_VX no longer control media execution. Migrate an old pinned vx launcher to the FFmpeg/FFprobe executable overrides. VX_INSTALL_DIR is not a media runtime selector, and no installer configuration enables media-tool downloads.

Before an approved online setup, ask the user for permission to install or download dependencies. Use an existing vx installation with vx install ffmpeg@8.1, or the operating system's package manager, to obtain FFmpeg and FFprobe together. If vx needs installation, download its official installer to a local file, inspect it, and execute it only after approval; never pipe an installer directly into a shell. Prepare approved binaries and required shared libraries before an offline workload. Core's MIT license does not replace FFmpeg's build-dependent LGPL/GPL license; review the selected distribution's terms before redistribution.

Use absolute paths where possible. Relative paths are resolved by the process running the DCC-MCP server, which may not be the same working directory as the agent. Runtime overrides always require absolute paths.

Read-only runtime preflight

Discover and call media__check_runtime before scheduling media work. Its optional required_encoders array defaults to pcm_s16le, libvorbis, and pcm_f32le; request the encoders needed for the intended workflow. timeout_secs is bounded to 60 seconds. This check creates no media output and performs no installation. The resolver itself starts no package manager or network request; preflight executes the selected local binaries for version and capability checks, so they remain operator-trusted code rather than a sandboxed guarantee against arbitrary binary behavior.

Review the selected source, resolved absolute executable paths, versions, SHA-256 hashes, and required encoder availability. Keep this evidence with the job, and stop on missing binaries, build mismatches, or missing capabilities. Selection priority is not a trust attestation: a local vx installation or system path is an operator-trusted prerequisite, and a hash only identifies the executable bytes. Preflight does not replace native codec, output, or playback qualification. A later operation resolves and validates its own runtime; an earlier successful check is not a guarantee that files or the environment have remained unchanged.

Verified audio-only encoding

Use media__transcode_audio for a fresh .wav/pcm_s16le or .ogg/libvorbis output. Container and codec are explicit; incompatible pairs are rejected before launch. Optional audio_quality is Vorbis-only (-1 to 10, default 5). No resampling, channel conversion, overwrite, padding, trimming, or codec fallback is exposed. The first audio stream is selected explicitly; video, subtitle, data and inherited metadata are excluded. Source sample rate and channel count are preserved, and a known source channel layout must match.

OGG output uses fixed -page_duration 1 muxer pagination to keep the priming packet off the final EOS page. This avoids the documented FFmpeg single-page Vorbis duration-accounting issue without padding, trimming, resampling, or changing compressed audio packets. See the upstream diagnosis. More pages add container overhead; the full-decode sample-count gate is still mandatory, including for very short clips. This is not a codec fallback.

This operation uses the same already installed FFmpeg/FFprobe selection policy as preflight; it does not install anything. The selected executables are operator-trusted prerequisites, not a supply-chain attestation. The tool pins their resolved absolute paths and records each executable's version, SHA-256 and resolution basis. Hashes identify the bytes used; neither a hash nor the discovery source independently authenticates those bytes. Requested encoder and pcm_f32le verification-encoder capabilities are checked before encoding; a missing encoder fails without silently choosing another build.

Input is limited to 128 MiB, 8–192 kHz and 1–8 channels. Full f32le PCM decode is streamed, never saved, with a 256 MiB cap for each source/output decode. Text stdout has a 1 MiB cap; stderr has a 4 MiB total cap and retains only a 4 KiB diagnostic tail. Crossing a stream cap stops the owned process. Output uses FFmpeg's -fs limit, owner-thread size monitoring, and a strict 64 MiB pre-publication acceptance gate. FFmpeg can slightly overshoot -fs; this is not an OS disk quota. Limits and the shared operation timeout appear in receipts. Hashing also checks cancellation, time and byte budgets.

Encoding writes only to a private staging directory beside the destination. The final pathname is published through an atomic no-replace hard link only after complete validation. Filesystems without that operation fail closed; there is no copy/replace fallback. Failed operations retain diagnostic staging artifacts, never publish them or retry automatically. Successful publication is the commit point; a late cancellation does not retract a published file.

Receipts bind source/output hashes, actual codec/container/rate/channels, full-decode sample-frame counts and PCM hashes, resolved executable evidence, exact argv, Core-owned job identity when present, and cleanup state. Counts come from decoder PCM (including its codec-delay/skip handling), not container duration or packet count. A count change is a failure, never repaired. Lossy waveform quality, independent decoder/loop-boundary checks and browser playback remain separate qualification; matching counts alone do not prove quality. Lossy Vorbis can change very short signals substantially: preserving one sample is not a promise to reproduce that sample's amplitude. Do not waive fidelity requirements, pad/trim samples, or treat count acceptance as a quality score.

The existing Core async job lifecycle supplies job identity and cancellation. The owner thread checks check_dcc_cancelled() at most 50 ms between process polls, and during hashing and before publication. Cancellation and timeout stop the owned group and retain the original reason/receipt. Poll the Core job to terminal state; admission is not artifact acceptance. POSIX processes run in owned groups. Windows uses taskkill /T /F and launcher reaping; failure or an already-exited launcher leaves cleanup unknown. Windows live cancellation, real Core transport cancellation and native codec qualification remain separate from host-free/POSIX subprocess tests. Cleanup has a separate bounded grace period; an uncertain cleanup never grants permission to retry.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Media AI 技能有什么作用?

基础设施技能 — 通过已安装的 FFmpeg 探测媒体、转码、生成缩略图、提取帧,以及将图像序列转换为 MP4,且不依赖特定 DCC。适用于智能体预检、检查或分享媒体输出。不适用于任意 shell 或 vx 执行;请仅使用类型化媒体工具。

为什么在 TypingMind 中使用 Media?

因为您只需安装一次,就能搭配任何模型使用。Media 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Media?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/dcc-mcp/dcc-mcp-core/tree/main/python/dcc_mcp_core/skills/media。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Media?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Media 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Media 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Media AI 技能免费吗?

是的。dcc-mcp 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇