[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFGZH675XRKX6DN22KWV44":3,"skill-same:01M6KFGZH675XRKX6DN22KWV44":61},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6KFGZH675XRKX6DN22KWV44","ffmpeg-encoder-check-4855c0",null,"Check available FFmpeg encoders before writing encoding scripts to avoid library version 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-4855c0\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27],"check","ffmpeg","ffmpeg encoder check 4855c0","ffmpeg encoder check","writing","library","encoding","version","scripts","2026-11-10 10:12:30",false,"---\nname: ffmpeg-encoder-check-4855c0\ndescription: Check available FFmpeg encoders before writing encoding scripts to avoid library version mismatches\n---\n\n# FFmpeg Encoder Availability Check\n\n## Purpose\n\nBefore writing any FFmpeg encoding script, always probe the system for available encoders. This prevents failures from missing or incompatible codec libraries (especially libopenh264 which frequently has version mismatches).\n\n## Core Pattern\n\n### Step 1: Probe Available Encoders\n\nAlways run this command before deciding on encoding parameters:\n\n```bash\nffmpeg -encoders | grep h264\n```\n\nThis shows which H.264 encoders are available on the system.\n\n### Step 2: Choose Encoder Based on Availability\n\n**Priority order for H.264 encoding:**\n\n1. **`-c:v copy`** - If source and target resolution\u002Fformat match, copy the stream without re-encoding (fastest, no quality loss)\n\n2. **`-c:v libx264`** - If available, this is the most reliable and widely-compatible H.264 encoder\n\n3. **`-c:v h264`** - Hardware acceleration if available (varies by system)\n\n4. **Avoid `libopenh264`** - This encoder frequently has library version mismatches causing runtime failures\n\n### Step 3: Verify Before Execution\n\nAfter choosing an encoder, verify it works with a short test:\n\n```bash\nffmpeg -t 5 -i input.mp4 -c:v libx264 -preset fast -crf 23 -c:a copy test_output.mp4\n```\n\n## Example Decision Flow\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Check available encoders\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 \"h264\"; then\n    VIDEO_CODEC=\"h264\"\n    echo \"Using h264 encoder\"\nelse\n    VIDEO_CODEC=\"copy\"\n    echo \"No H.264 encoder available, using stream copy\"\nfi\n\n# Use $VIDEO_CODEC in your ffmpeg command\nffmpeg -i input.mp4 -c:v $VIDEO_CODEC output.mp4\n```\n\n## When to Use Stream Copy\n\nUse `-c:v copy` when:\n- Source and target resolution are identical\n- Source codec is already H.264\n- You only need to change container format or audio\n- Speed is critical and re-encoding is unnecessary\n\n## Common Pitfalls\n\n- **Don't assume encoder availability** - Different systems have different FFmpeg builds\n- **Don't hardcode libopenh264** - High failure rate due to library mismatches\n- **Always test encoding** - Run a short segment test before processing full files\n- **Check both video and audio codecs** - Audio encoder availability matters too","# FFmpeg Encoder Availability Check\n\n## Purpose\n\nBefore writing any FFmpeg encoding script, always probe the system for available encoders. This prevents failures from missing or incompatible codec libraries (especially libopenh264 which frequently has version mismatches).\n\n## Core Pattern\n\n### Step 1: Probe Available Encoders\n\nAlways run this command before deciding on encoding parameters:\n\n```bash\nffmpeg -encoders | grep h264\n```\n\nThis shows which H.264 encoders are available on the system.\n\n### Step 2: Choose Encoder Based on Availability\n\n**Priority order for H.264 encoding:**\n\n1. **`-c:v copy`** - If source and target resolution\u002Fformat match, copy the stream without re-encoding (fastest, no quality loss)\n\n2. **`-c:v libx264`** - If available, this is the most reliable and widely-compatible H.264 encoder\n\n3. **`-c:v h264`** - Hardware acceleration if available (varies by system)\n\n4. **Avoid `libopenh264`** - This encoder frequently has library version mismatches causing runtime failures\n\n### Step 3: Verify Before Execution\n\nAfter choosing an encoder, verify it works with a short test:\n\n```bash\nffmpeg -t 5 -i input.mp4 -c:v libx264 -preset fast -crf 23 -c:a copy test_output.mp4\n```\n\n## Example Decision Flow\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Check available encoders\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 \"h264\"; then\n    VIDEO_CODEC=\"h264\"\n    echo \"Using h264 encoder\"\nelse\n    VIDEO_CODEC=\"copy\"\n    echo \"No H.264 encoder available, using stream copy\"\nfi\n\n# Use $VIDEO_CODEC in your ffmpeg command\nffmpeg -i input.mp4 -c:v $VIDEO_CODEC output.mp4\n```\n\n## When to Use Stream Copy\n\nUse `-c:v copy` when:\n- Source and target resolution are identical\n- Source codec is already H.264\n- You only need to change container format or audio\n- Speed is critical and re-encoding is unnecessary\n\n## Common Pitfalls\n\n- **Don't assume encoder availability** - Different systems have different FFmpeg builds\n- **Don't hardcode libopenh264** - High failure rate due to library mismatches\n- **Always test encoding** - Run a short segment test before processing full files\n- **Check both video and audio codecs** - Audio encoder availability matters too",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0","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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check-4855c0",{"tool":47,"command":48},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check-4855c0",{"tool":50,"command":51},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill ffmpeg-encoder-check-4855c0","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},".skill_id","OTHER","其他",41,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002F.skill_id",[62,75,83,99,125,147],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":28},"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",[],[69,70,71,72,73,74],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":28},"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",[],[82,70,72,73,74],"zip deliverable finalization",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":28},"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",[],[90,91,92,93,94,95,96,97,74,98],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":110,"publishedAt":28},"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",[105],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[111,112,113,114,115,116,117,118,119,120,121,122,123,124],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":136,"publishedAt":28},"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",[131],{"categoryNo":132,"categoryName":133,"taxonomyType":134,"taxonomyTypeDesc":135},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[137,95,111,138,139,140,122,120,113,141,142,143,112,144,117,145,146],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":154,"publishedAt":28},"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",[153],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},[111,114,155,156,120,113,157,158,112,159,160,119,95,161,122],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]