{
  "schemaVersion": "1.0",
  "item": {
    "slug": "ffmpeg",
    "name": "FFmpeg",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/ivangdavila/ffmpeg",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/ffmpeg",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/ffmpeg",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ffmpeg",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "ffmpeg",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T10:47:28.321Z",
      "expiresAt": "2026-05-08T10:47:28.321Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ffmpeg",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=ffmpeg",
        "contentDisposition": "attachment; filename=\"ffmpeg-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "ffmpeg"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/ffmpeg"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/ffmpeg",
    "agentPageUrl": "https://openagent3.xyz/skills/ffmpeg/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ffmpeg/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ffmpeg/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Input Seeking (Major Difference)",
        "body": "-ss BEFORE -i: fast seek, may be inaccurate—starts from nearest keyframe\n-ss AFTER -i: frame-accurate but slow—decodes from start\nCombine both: -ss 00:30:00 -i input.mp4 -ss 00:00:05—fast seek then accurate trim\nFor cutting, add -avoid_negative_ts make_zero to fix timestamp issues"
      },
      {
        "title": "Stream Selection",
        "body": "Default: first video + first audio—may not be what you want\nExplicit selection: -map 0:v:0 -map 0:a:1—first video, second audio\nAll streams of type: -map 0:a—all audio streams\nCopy specific: -map 0 -c copy—all streams, no re-encoding\nExclude: -map 0 -map -0:s—all except subtitles"
      },
      {
        "title": "Encoding Quality",
        "body": "CRF (Constant Rate Factor): lower = better quality, larger file—18-23 typical for H.264\n-preset: ultrafast to veryslow—slower = smaller file at same quality\nTwo-pass for target bitrate: first pass analyzes, second pass encodes\n-crf and -b:v mutually exclusive—use one or the other"
      },
      {
        "title": "Container vs Codec",
        "body": "Container (MP4, MKV, WebM): wrapper format holding streams\nCodec (H.264, VP9, AAC): compression algorithm for stream\nNot all codecs fit all containers—H.264 in MP4/MKV, not WebM; VP9 in WebM/MKV, not MP4\nCopy codec to new container: -c copy—fast, no quality loss"
      },
      {
        "title": "Filter Syntax",
        "body": "Simple: -vf \"scale=1280:720\"—single filter chain\nComplex: -filter_complex \"[0:v]scale=1280:720[scaled]\"—named outputs for routing\nChain filters: -vf \"scale=1280:720,fps=30\"—comma-separated\nFilter order matters—scale before crop gives different result than crop before scale"
      },
      {
        "title": "Common Filters",
        "body": "Scale: scale=1280:720 or scale=-1:720 for auto-width maintaining aspect\nCrop: crop=640:480:100:50—width:height:x:y from top-left\nFPS: fps=30—change framerate\nTrim: trim=start=10:end=20,setpts=PTS-STARTPTS—setpts resets timestamps\nOverlay: overlay=10:10—position from top-left"
      },
      {
        "title": "Audio Processing",
        "body": "Sample rate: -ar 48000—standard for video\nChannels: -ac 2—stereo\nAudio codec: -c:a aac -b:a 192k—AAC at 192kbps\nNormalize: -filter:a loudnorm—EBU R128 loudness normalization\nExtract audio: -vn -c:a copy output.m4a—no video, copy audio"
      },
      {
        "title": "Concatenation",
        "body": "Same codec/params: concat demuxer—-f concat -safe 0 -i list.txt -c copy\nDifferent formats: concat filter—-filter_complex \"[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1\"\nlist.txt format: file 'video1.mp4' per line—escape special characters\nDifferent resolutions: scale/pad to match before concat filter"
      },
      {
        "title": "Subtitles",
        "body": "Burn-in (hardcode): -vf \"subtitles=subs.srt\"—cannot be turned off\nMux as stream: -c:s mov_text (MP4) or -c:s srt (MKV)—user toggleable\nFrom input: -map 0:s—include subtitle streams\nExtract: -map 0:s:0 subs.srt—first subtitle to file"
      },
      {
        "title": "Hardware Acceleration",
        "body": "Decode: -hwaccel cuda or -hwaccel videotoolbox (macOS)\nEncode: -c:v h264_nvenc (NVIDIA), -c:v h264_videotoolbox (macOS)\nNot always faster—setup overhead; benefits show on long videos\nQuality may differ—software encoding often produces better quality"
      },
      {
        "title": "Common Mistakes",
        "body": "Forgetting -c copy when not re-encoding—defaults to re-encode, slow and lossy\n-ss after -i for long videos—takes forever seeking\nAudio desync after cutting—use -async 1 or -af aresample=async=1\nFilter on stream copy—filters require re-encoding; -c copy + -vf = error\nOutput extension doesn't set codec—output.mp4 without -c:v uses default, may not be H.264"
      }
    ],
    "body": "Input Seeking (Major Difference)\n-ss BEFORE -i: fast seek, may be inaccurate—starts from nearest keyframe\n-ss AFTER -i: frame-accurate but slow—decodes from start\nCombine both: -ss 00:30:00 -i input.mp4 -ss 00:00:05—fast seek then accurate trim\nFor cutting, add -avoid_negative_ts make_zero to fix timestamp issues\nStream Selection\nDefault: first video + first audio—may not be what you want\nExplicit selection: -map 0:v:0 -map 0:a:1—first video, second audio\nAll streams of type: -map 0:a—all audio streams\nCopy specific: -map 0 -c copy—all streams, no re-encoding\nExclude: -map 0 -map -0:s—all except subtitles\nEncoding Quality\nCRF (Constant Rate Factor): lower = better quality, larger file—18-23 typical for H.264\n-preset: ultrafast to veryslow—slower = smaller file at same quality\nTwo-pass for target bitrate: first pass analyzes, second pass encodes\n-crf and -b:v mutually exclusive—use one or the other\nContainer vs Codec\nContainer (MP4, MKV, WebM): wrapper format holding streams\nCodec (H.264, VP9, AAC): compression algorithm for stream\nNot all codecs fit all containers—H.264 in MP4/MKV, not WebM; VP9 in WebM/MKV, not MP4\nCopy codec to new container: -c copy—fast, no quality loss\nFilter Syntax\nSimple: -vf \"scale=1280:720\"—single filter chain\nComplex: -filter_complex \"[0:v]scale=1280:720[scaled]\"—named outputs for routing\nChain filters: -vf \"scale=1280:720,fps=30\"—comma-separated\nFilter order matters—scale before crop gives different result than crop before scale\nCommon Filters\nScale: scale=1280:720 or scale=-1:720 for auto-width maintaining aspect\nCrop: crop=640:480:100:50—width:height:x:y from top-left\nFPS: fps=30—change framerate\nTrim: trim=start=10:end=20,setpts=PTS-STARTPTS—setpts resets timestamps\nOverlay: overlay=10:10—position from top-left\nAudio Processing\nSample rate: -ar 48000—standard for video\nChannels: -ac 2—stereo\nAudio codec: -c:a aac -b:a 192k—AAC at 192kbps\nNormalize: -filter:a loudnorm—EBU R128 loudness normalization\nExtract audio: -vn -c:a copy output.m4a—no video, copy audio\nConcatenation\nSame codec/params: concat demuxer—-f concat -safe 0 -i list.txt -c copy\nDifferent formats: concat filter—-filter_complex \"[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1\"\nlist.txt format: file 'video1.mp4' per line—escape special characters\nDifferent resolutions: scale/pad to match before concat filter\nSubtitles\nBurn-in (hardcode): -vf \"subtitles=subs.srt\"—cannot be turned off\nMux as stream: -c:s mov_text (MP4) or -c:s srt (MKV)—user toggleable\nFrom input: -map 0:s—include subtitle streams\nExtract: -map 0:s:0 subs.srt—first subtitle to file\nHardware Acceleration\nDecode: -hwaccel cuda or -hwaccel videotoolbox (macOS)\nEncode: -c:v h264_nvenc (NVIDIA), -c:v h264_videotoolbox (macOS)\nNot always faster—setup overhead; benefits show on long videos\nQuality may differ—software encoding often produces better quality\nCommon Mistakes\nForgetting -c copy when not re-encoding—defaults to re-encode, slow and lossy\n-ss after -i for long videos—takes forever seeking\nAudio desync after cutting—use -async 1 or -af aresample=async=1\nFilter on stream copy—filters require re-encoding; -c copy + -vf = error\nOutput extension doesn't set codec—output.mp4 without -c:v uses default, may not be H.264"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/ffmpeg",
    "publisherUrl": "https://clawhub.ai/ivangdavila/ffmpeg",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/ffmpeg",
    "downloadUrl": "https://openagent3.xyz/downloads/ffmpeg",
    "agentUrl": "https://openagent3.xyz/skills/ffmpeg/agent",
    "manifestUrl": "https://openagent3.xyz/skills/ffmpeg/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/ffmpeg/agent.md"
  }
}