← 返回 Skills 市场
325
总下载
0
收藏
0
当前安装
8
版本数
在 OpenClaw 中安装
/install mp4-to-mp3-extractor
功能描述
批量将指定目录下的 .mp4 视频文件提取音频转为 .mp3。 支持指定源目录和输出目录,未指定输出时默认创建 [源目录]_audio 文件夹。 自动管理 Python 虚拟环境,保持文件夹层级结构,兼容 python3 和 python。 高频触发词:mp4转mp3、视频转音频、批量提取音频、mp4 to mp...
安全使用建议
What to consider before installing/running:
- The code will run pip commands automatically and, on import, will forcibly reinstall setuptools/wheel into the Python interpreter you use to run the script. To avoid surprising changes to your system Python, run the skill inside an isolated environment (container, disposable VM, or a dedicated Python interpreter you can afford to modify).
- The virtualenv path (VENV_DIR) is set to a shared location one level above the skill (e.g., ~/.openclaw/skills/venv). That means the skill may create and reuse a venv that could affect other skills. If you install, consider editing scripts/config.py to point VENV_DIR to a skill-local directory (inside the skill folder) before first run.
- The skill will auto-download ffmpeg binaries from external hosts via ffmpeg-downloader if ffmpeg is not available. If you prefer to avoid external downloads, install ffmpeg system-wide first and ensure it is on PATH.
- The README and SKILL.md mention downloading videos from URLs, but the main extract.py contains no URL-download implementation — do not assume URL downloading is supported unless you verify/extend the code yourself.
- If you still want to use it: review and, if appropriate, remove or modify the call to fix_setuptools_for_legacy_packages(), change VENV_DIR to a local path, and run the script in an isolated test environment first. Monitor network activity and inspect the created venv/logs after a run.
- Overall: the code is not clearly malicious, but it performs invasive environment changes and external downloads that are disproportionate for a simple MP4→MP3 converter; treat it with caution.
功能分析
Type: OpenClaw Skill
Name: mp4-to-mp3-extractor
Version: 1.1.6
The skill is a functional utility designed to batch convert MP4 files to MP3. It employs a robust self-bootstrapping process in `env_manager.py` and `ensure_package.py` to manage a Python virtual environment, install dependencies (such as PyTorch and pydub), and automatically download the FFmpeg binary via `ffmpeg-downloader` if it is not present on the system. While the script performs high-risk operations like runtime package installation and binary execution, these actions are transparently documented and strictly aligned with the stated purpose of media processing. No evidence of data exfiltration, malicious prompt injection, or unauthorized persistence was found.
能力评估
Purpose & Capability
名字和主要功能(批量从 .mp4 提取为 .mp3)与代码匹配,但代码包含与目的不成比例的能力:ensure_package 会强制降级/重装 setuptools/wheel 在当前 Python 环境(在导入时立即执行),并且 env_manager 指向并创建一个位于全局 skills 目录(.../skills/venv)的共享虚拟环境,这可能影响其它技能或系统 Python。脚本中还包含(注释或代码)与 ML/torch 相关的逻辑(audio-separator、PyTorch 等),这对单纯的 ffmpeg 转码并非必需。
Instruction Scope
SKILL.md 指示仅调用 scripts/extract.py,但实际运行时导入 ensure_package 会在导入阶段立即执行 fix_setuptools_for_legacy_packages(对当前解释器进行 pip install --force-reinstall),并且 env_manager.setup_venv 会创建/切换到共享 venv 并重启脚本。SKILL.md 提到“从视频 URL 下载再处理”,但 extract.py 并未实现 URL 下载逻辑 — 文档与实现不完全一致.
Install Mechanism
技能为 instruction-only(无 install spec),但运行时会用 pip 自动安装依赖(通过 ensure_package.pip / pip_v),并调用 ffmpeg-downloader 在运行时从外部站点(例如 gyan.dev、johnvansickle、evermeet 等)下载 ffmpeg 可执行文件。动态从第三方二进制站点下载、以及在非隔离环境下用 pip 修改当前解释器,属于较高风险的安装行为。
Credentials
manifest 未声明任何环境变量或凭据(这本身合理),但脚本会在导入时修改当前 Python 环境(强制 reinstall setuptools<=81.2.0), 并将虚拟环境创建在上级的全局 skills/venv 路径,可能导致跨技能影响或修改主机 Python 环境,这超出一个文件处理工具应有的权限范围。
Persistence & Privilege
技能没有设置 always:true,也不会修改其他技能的配置。但它会 create/write 到技能目录外的共享 venv(VENV_DIR 指向 .../skills/venv),并在技能目录下创建 logs/、models/ 等目录与文件。长期存在的副作用(共享 venv、已下载 ffmpeg 二进制)会在主机上留下可被其他进程利用的持久化文件。
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mp4-to-mp3-extractor - 安装完成后,直接呼叫该 Skill 的名称或使用
/mp4-to-mp3-extractor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.6
Version 1.1.6 of mp4-to-mp3-extractor
- No file or documentation changes detected in this version.
v1.1.5
No changes detected in this version.
- Version 1.1.5 is identical to the previous release, with no updates or modifications.
v1.1.4
- Expanded and clarified the description, including new supported scenarios and trigger phrases.
- Made the skill user-invocable by adding the relevant metadata.
- Provided more detailed instructions and typical use cases in the documentation.
- Kept technical usage steps concise, updated command example for clarity.
- No code or logic changes—documentation and metadata improvements only.
v1.1.3
- Updated documentation: command example paths now exclude the ./skills/mp4-to-mp3-extractor/ prefix for simplicity.
- No code or functionality changes.
v1.1.2
Version 1.1.2 of mp4-to-mp3-extractor
- No code or documentation changes detected in this version.
- The skill continues to support batch extraction of .mp4 video files to .mp3 audio, with automatic virtual environment management and folder structure preservation.
v1.1.1
- No changes detected in this version.
- Functionality and documentation remain the same as the previous release.
v1.1.0
- Updated documentation to correct placeholder formatting in the example command.
- No changes to code or functionality in this release.
v1.0.0
mp4-to-mp3-extractor 1.0.0
- Initial release of batch mp4 to mp3 extraction.
- Automatically manages Python virtual environments.
- Retains full folder structure during conversion.
- Defaults output to `[source]_audio` if not specified.
- Compatible with both python3 and python commands.
元数据
常见问题
mp4-to-mp3-extractor 是什么?
批量将指定目录下的 .mp4 视频文件提取音频转为 .mp3。 支持指定源目录和输出目录,未指定输出时默认创建 [源目录]_audio 文件夹。 自动管理 Python 虚拟环境,保持文件夹层级结构,兼容 python3 和 python。 高频触发词:mp4转mp3、视频转音频、批量提取音频、mp4 to mp... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 325 次。
如何安装 mp4-to-mp3-extractor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mp4-to-mp3-extractor」即可一键安装,无需额外配置。
mp4-to-mp3-extractor 是免费的吗?
是的,mp4-to-mp3-extractor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
mp4-to-mp3-extractor 支持哪些平台?
mp4-to-mp3-extractor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 mp4-to-mp3-extractor?
由 顶尖王牌程序员(@wangminrui2022)开发并维护,当前版本 v1.1.6。
推荐 Skills