[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFH5TQS85J44670RH06RFF":3,"skill-same:01M6KFH5TQS85J44670RH06RFF":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6KFH5TQS85J44670RH06RFF","ffmpeg-encoder-check",null,"Check FFmpeg encoder availability before video encoding to avoid library mismatches","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check\u002FSKILL.md",[],[19,20,21,22,23,24,25],"check","ffmpeg","ffmpeg encoder check","library","encoding","Video","availability","2026-11-10 10:12:30",false,"---\nname: ffmpeg-encoder-check\ndescription: Check FFmpeg encoder availability before video encoding to avoid library mismatches\n---\n\n# FFmpeg Encoder Availability Check\n\n## Purpose\n\nBefore writing video encoding scripts, always verify which H.264 encoders are available in your FFmpeg installation. This prevents failures from library version mismatches, particularly with libopenh264.\n\n## Instructions\n\n### Step 1: Probe Available Encoders\n\nRun the following command to check available H.264 encoders:\n\n```bash\nffmpeg -encoders 2>\u002Fdev\u002Fnull | grep h264\n```\n\nThis shows which H.264 encoders are compiled into your FFmpeg build.\n\n### Step 2: Interpret Results\n\nCommon encoder options you may see:\n\n| Encoder | Description | Recommendation |\n|---------|-------------|----------------|\n| `libx264` | Software H.264 encoder | **Preferred** - widely compatible |\n| `libopenh264` | OpenH264 software encoder | Use with caution - often has library version mismatches |\n| `h264_nvenc` | NVIDIA hardware encoder | Good if NVIDIA GPU available |\n| `h264_videotoolbox` | macOS hardware encoder | Good on macOS |\n| `h264_vaapi` | Intel VAAPI hardware encoder | Good on Linux with Intel GPU |\n| `h264_qsv` | Intel QuickSync encoder | Good on Windows\u002FLinux with Intel GPU |\n\n### Step 3: Choose Encoding Strategy\n\n**For same-resolution sources (no re-encoding needed):**\n\n```bash\n# Best option - pass-through without quality loss\nffmpeg -i input.mp4 -c:v copy -c:a copy output.mp4\n```\n\n**If libx264 is available:**\n\n```bash\n# Reliable software encoding\nffmpeg -i input.mp4 -c:v libx264 -preset medium -crf 23 -c:a aac output.mp4\n```\n\n**If only libopenh264 is available:**\n\n```bash\n# Use with caution - may have library issues\nffmpeg -i input.mp4 -c:v libopenh264 -c:a aac output.mp4\n```\n\n### Step 4: Validate Before Batch Processing\n\nAlways test your encoding command on a small sample file before processing multiple videos or long footage.\n\n## Best Practices\n\n1. **Default to `-c:v copy`** when source and target resolutions match - no quality loss, fastest processing\n2. **Prefer libx264** over libopenh264 for software encoding - more stable, better compatibility\n3. **Check encoder availability at script startup**, not during execution - fail fast with clear error\n4. **Cache encoder check results** if running multiple encoding operations in the same session\n5. **Provide fallback options** in automated scripts - try copy first, then libx264, then fail gracefully\n\n## Example Script Template\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Check available encoders at startup\nENCODERS=$(ffmpeg -encoders 2>\u002Fdev\u002Fnull | grep h264)\n\nif echo \"$ENCODERS\" | grep -q \"libx264\"; then\n    VIDEO_CODEC=\"libx264\"\n    echo \"Using libx264 encoder\"\nelif echo \"$ENCODERS\" | grep -q \"libopenh264\"; then\n    VIDEO_CODEC=\"libopenh264\"\n    echo \"Warning: Using libopenh264 (may have compatibility issues)\"\nelse\n    echo \"Error: No H.264 encoder available\"\n    echo \"Available encoders:\"\n    echo \"$ENCODERS\"\n    exit 1\nfi\n\n# For same-resolution sources, prefer copy\nif [ \"$SOURCE_RESOLUTION\" = \"$TARGET_RESOLUTION\" ]; then\n    VIDEO_CODEC=\"copy\"\n    echo \"Same resolution detected - using stream copy\"\nfi\n\n# Encode\nffmpeg -i \"$INPUT\" -c:v \"$VIDEO_CODEC\" -c:a aac \"$OUTPUT\"\n```\n\n## Common Errors to Avoid\n\n- **Do not assume libx264 is available** - FFmpeg builds vary by system\n- **Do not use libopenh264 without checking** - frequent library version mismatch errors\n- **Do not re-encode unnecessarily** - use `-c:v copy` when resolution matches\n- **Do not skip the encoder check** - always probe before writing encoding logic","# FFmpeg Encoder Availability Check\n\n## Purpose\n\nBefore writing video encoding scripts, always verify which H.264 encoders are available in your FFmpeg installation. This prevents failures from library version mismatches, particularly with libopenh264.\n\n## Instructions\n\n### Step 1: Probe Available Encoders\n\nRun the following command to check available H.264 encoders:\n\n```bash\nffmpeg -encoders 2>\u002Fdev\u002Fnull | grep h264\n```\n\nThis shows which H.264 encoders are compiled into your FFmpeg build.\n\n### Step 2: Interpret Results\n\nCommon encoder options you may see:\n\n| Encoder | Description | Recommendation |\n|---------|-------------|----------------|\n| `libx264` | Software H.264 encoder | **Preferred** - widely compatible |\n| `libopenh264` | OpenH264 software encoder | Use with caution - often has library version mismatches |\n| `h264_nvenc` | NVIDIA hardware encoder | Good if NVIDIA GPU available |\n| `h264_videotoolbox` | macOS hardware encoder | Good on macOS |\n| `h264_vaapi` | Intel VAAPI hardware encoder | Good on Linux with Intel GPU |\n| `h264_qsv` | Intel QuickSync encoder | Good on Windows\u002FLinux with Intel GPU |\n\n### Step 3: Choose Encoding Strategy\n\n**For same-resolution sources (no re-encoding needed):**\n\n```bash\n# Best option - pass-through without quality loss\nffmpeg -i input.mp4 -c:v copy -c:a copy output.mp4\n```\n\n**If libx264 is available:**\n\n```bash\n# Reliable software encoding\nffmpeg -i input.mp4 -c:v libx264 -preset medium -crf 23 -c:a aac output.mp4\n```\n\n**If only libopenh264 is available:**\n\n```bash\n# Use with caution - may have library issues\nffmpeg -i input.mp4 -c:v libopenh264 -c:a aac output.mp4\n```\n\n### Step 4: Validate Before Batch Processing\n\nAlways test your encoding command on a small sample file before processing multiple videos or long footage.\n\n## Best Practices\n\n1. **Default to `-c:v copy`** when source and target resolutions match - no quality loss, fastest processing\n2. **Prefer libx264** over libopenh264 for software encoding - more stable, better compatibility\n3. **Check encoder availability at script startup**, not during execution - fail fast with clear error\n4. **Cache encoder check results** if running multiple encoding operations in the same session\n5. **Provide fallback options** in automated scripts - try copy first, then libx264, then fail gracefully\n\n## Example Script Template\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Check available encoders at startup\nENCODERS=$(ffmpeg -encoders 2>\u002Fdev\u002Fnull | grep h264)\n\nif echo \"$ENCODERS\" | grep -q \"libx264\"; then\n    VIDEO_CODEC=\"libx264\"\n    echo \"Using libx264 encoder\"\nelif echo \"$ENCODERS\" | grep -q \"libopenh264\"; then\n    VIDEO_CODEC=\"libopenh264\"\n    echo \"Warning: Using libopenh264 (may have compatibility issues)\"\nelse\n    echo \"Error: No H.264 encoder available\"\n    echo \"Available encoders:\"\n    echo \"$ENCODERS\"\n    exit 1\nfi\n\n# For same-resolution sources, prefer copy\nif [ \"$SOURCE_RESOLUTION\" = \"$TARGET_RESOLUTION\" ]; then\n    VIDEO_CODEC=\"copy\"\n    echo \"Same resolution detected - using stream copy\"\nfi\n\n# Encode\nffmpeg -i \"$INPUT\" -c:v \"$VIDEO_CODEC\" -c:a aac \"$OUTPUT\"\n```\n\n## Common Errors to Avoid\n\n- **Do not assume libx264 is available** - FFmpeg builds vary by system\n- **Do not use libopenh264 without checking** - frequent library version mismatch errors\n- **Do not re-encode unnecessarily** - use `-c:v copy` when resolution matches\n- **Do not skip the encoder check** - always probe before writing encoding logic",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fffmpeg-encoder-check","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check",{"tool":45,"command":46},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check",{"tool":48,"command":49},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",34,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check\u002F.skill_id",[60,73,81,97,123,145],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":26},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[67,68,69,70,71,72],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":26},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[80,68,70,71,72],"zip deliverable finalization",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":26},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[88,89,90,91,92,93,94,95,72,96],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":108,"publishedAt":26},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[103],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[109,110,111,112,113,114,115,116,117,118,119,120,121,122],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":134,"publishedAt":26},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[129],{"categoryNo":130,"categoryName":131,"taxonomyType":132,"taxonomyTypeDesc":133},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[135,93,109,136,137,138,120,118,111,139,140,141,110,142,115,143,144],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":152,"publishedAt":26},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[151],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},[109,112,153,154,118,111,155,156,110,157,158,117,93,159,120],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]