Install
openclaw skills install boxed-ffmpegAudio/video information extraction, format conversion, and audio extraction using FFmpeg WASM sandbox.
openclaw skills install boxed-ffmpegRun FFmpeg commands safely within a WASM sandbox for audio/video processing.
Use this skill when the user says:
This skill requires the openclaw-wasm-sandbox plugin version >= 0.2.0.
openclaw plugins install clawhub:openclaw-wasm-sandbox
openclaw plugins update openclaw-wasm-sandbox
openclaw gateway restart
If the WASM file does not exist, download it first:
wasm-sandbox-download({
url: "https://raw.githubusercontent.com/guyoung/wasm-sandbox-openclaw-skills/main/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
output: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
resume: false,
timeout: 120000
})
wasm-sandbox-run({
wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
workDir: "<input-file-directory>",
args: ["<COMMAND>", "<INPUT>", "<OUTPUT>"]
})
Important:
workDir must be set to the directory containing the input file| Command | Description | Arguments |
|---|---|---|
info | Get media file information | <INPUT> |
convert | Convert video format | <INPUT> <OUTPUT> |
extract-audio | Extract audio from video | <INPUT> <OUTPUT> |
User says: "Get info about video.mp4" (file in workspace root)
wasm-sandbox-run({
wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
workDir: "/home/user/.openclaw/workspace",
args: ["info", "video.mp4"]
})
User says: "Convert video.mp4 to AVI" (file in workspace root)
wasm-sandbox-run({
wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
workDir: "/home/user/.openclaw/workspace",
args: ["convert", "video.mp4", "video.avi"]
})
User says: "Extract audio from video.mp4 as mp3" (file in workspace root)
wasm-sandbox-run({
wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
workDir: "/home/user/.openclaw/workspace",
args: ["extract-audio", "video.mp4", "audio.mp3"]
})
User says: "Convert videos/input.mp4 to videos/output.avi"
wasm-sandbox-run({
wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
workDir: "/home/user/.openclaw/workspace/videos",
args: ["convert", "input.mp4", "output.avi"]
})