🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Boxed FFmpeg

by @guyoung

Audio/video information extraction, format conversion, and audio extraction using FFmpeg WASM sandbox.

Versionv1.0.0
Downloads768
TERMINAL
clawhub install boxed-ffmpeg

πŸ“– About This Skill


name: boxed-ffmpeg description: Audio/video information extraction, format conversion, and audio extraction using FFmpeg WASM sandbox.

Boxed FFmpeg Skill

Run FFmpeg commands safely within a WASM sandbox for audio/video processing.

Triggering

Use this skill when the user says:

  • "ffmpeg", "media info", "get video information"
  • "convert video", "change video format", "格式转捒"
  • "extract audio", "audio from video", "ζε–ιŸ³ι’‘"
  • "boxed-ffmpeg"
  • ⚠️ Required Plugin

    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
    

    ⚠️ WASM File Required

    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
    })
    

    Tool: wasm-sandbox-run

    wasm-sandbox-run({
      wasmFile: "~/.openclaw/skills/boxed-ffmpeg/files/boxed-ffmpeg-component.wasm",
      workDir: "",
      args: ["", "", ""]
    })
    

    Important:

  • workDir must be set to the directory containing the input file
  • Input/output arguments are filenames only (no directory paths)
  • Commands

    | Command | Description | Arguments | |---------|-------------|-----------| | info | Get media file information | | | convert | Convert video format | | | extract-audio | Extract audio from video | |

    Examples

    Get Media Information

    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"]
    })
    

    Convert Video Format

    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"]
    })
    

    Extract Audio from Video

    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"]
    })
    

    Convert with Subdirectory

    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"]
    })
    

    Important Notes

  • workDir is required β€” must be the directory of the input file
  • Input/output are filenames only β€” no paths, just names
  • Output file appears in workDir after successful execution
  • No network access needed β€” all processing is local
  • πŸ’‘ Examples

    Get Media Information

    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"]
    })
    

    Convert Video Format

    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"]
    })
    

    Extract Audio from Video

    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"]
    })
    

    Convert with Subdirectory

    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"]
    })