mp4-to-mp3-extractor — 技能工具
v1.1.4批量将指定目录下的 .mp4 视频文件提取音频转为 .mp3。 支持指定源目录和输出目录,未指定输出时默认创建 [源目录]_audio 文件夹。 自动管理 Python 虚拟环境,保持文件夹层级结构,兼容 python3 和 python。 高频触发词:mp4转mp3、视频转音频、批量提取音频、mp4 to mp...
0· 207·0 当前·0 累计
安全扫描
OpenClaw
可疑
medium confidenceThe skill's code mostly matches an MP4→MP3 extractor, but there are surprising mismatches (strict Python version, shared venv location, references to model/PyTorch and URL downloading that don't match the description) that warrant caution before installing.
评估建议
This skill largely implements MP4→MP3 extraction, but there are several red flags to consider before installing or running it: 1) env_manager enforces Python 3.10–3.12 even though docs claim broader compatibility — make sure your system Python matches. 2) The code creates a virtualenv at a shared path (VENV_DIR = ../..../venv) rather than an isolated per-skill venv; if you run it, it may alter a shared environment used by other skills. 3) The code contains commented-out logic to auto-install PyT...详细分析 ▾
⚠ 用途与能力
Name/description: batch MP4→MP3 extraction. Code: does perform recursive extraction via ffmpeg/pydub. Concerns: config/env code exposes MODEL_DIR and logic for PyTorch/audio-separator (even if commented), and ProjectPaths sets VENV_DIR to a shared skills/venv (parent.parent.parent/venv) rather than an isolated per-skill venv as the README claims. These suggest copied/over-broad infrastructure not strictly needed for a simple extractor.
⚠ 指令范围
SKILL.md and README claim the skill can download videos from URLs before processing, but extract.py does not implement URL downloading. SKILL.md states compatibility with 'python3 and python' but env_manager enforces Python 3.10–3.12 and will exit otherwise. env_manager also probes system GPU/tools (nvidia-smi) and may attempt large package installs — behaviors beyond a minimal extractor.
ℹ 安装机制
No platform install spec (instruction-only), which lowers install risk. The runtime code will call pip to install packages (via ensure_package and venv setup) and may auto-download a portable ffmpeg using ffmpeg-downloader. Auto pip installs and remote ffmpeg downloads are normal for this project but require network access and may fetch large binaries (ffmpeg, possibly PyTorch if uncommented).
⚠ 凭证需求
No credentials or env vars declared, which is appropriate. However, the skill will create/consume a virtualenv at a shared path (VENV_DIR = skills/venv) that could be shared across skills and modify that environment. It scans system paths (nvidia-smi) and may install heavy libs (torch, audio-separator) — disproportionate to a simple ffmpeg-based extractor. The strict Python 3.10–3.12 requirement also contradicts user-facing compatibility text.
ℹ 持久化与权限
always:false and no declared special privileges. The skill creates persistent artifacts (venv/, logs/, possibly models/) under SKILL_ROOT and, importantly, a venv at a higher-level shared path (skills/venv), which gives it persistent filesystem presence that could affect other skills. It does not modify other skills' configs in the provided code.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv1.1.42026/3/22
- 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.
● 无害
安装命令 点击复制
官方npx clawhub@latest install mp4-to-mp3-extractor
镜像加速npx clawhub@latest install mp4-to-mp3-extractor --registry https://cn.clawhub-mirror.com
技能文档
# MP4 to MP3 Extractor Skill
技能简介
本技能专门批量从 .mp4 视频文件中提取音频并保存为 .mp3 格式。 脚本自动创建并管理 Python 虚拟环境,无需手动安装依赖,环境隔离且安全。什么时候使用本技能
用户提到以下任意相关需求时,优先调用本技能:- 把文件夹里的所有 mp4 转为 mp3 音频
- 批量提取视频音频 / 视频转音频
- mp4 转 mp3
- 提取网课音频、听视频、把视频里的声音抠出来
- 下载的视频转成音频文件
- 先下载视频再提取音频
执行步骤
- 解析用户输入:识别源目录路径(如
F:\命理学、~/Videos等),或从提供的视频 URL 中先下载再处理。 - 确定目标目录:用户未指定时,默认使用
[源目录]_audio(例如F:\命理学_audio)。 - 执行转换:使用以下兼容命令启动脚本:
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制