[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBMM2VJ7WPCHZEYZT0H3HF":3,"skill-same:01M6XBMM2VJ7WPCHZEYZT0H3HF":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":13,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":37,"install":38,"resources":51},"01M6XBMM2VJ7WPCHZEYZT0H3HF","ffmpeg-encoder-check-4855c0",null,"Check available FFmpeg encoders before writing encoding scripts to avoid library version mismatches","UF-gzj\u002Fopenspace-claude-evolution","UF-gzj","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272393507?v=4","01M6XBCZB755P01VVYGQWPYZY3","01M6XBCZFJA5AREA17WGETA3FW",0,"MIT","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26],"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","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution","https:\u002F\u002Fgithub.com\u002FUF-gzj","2026-04-16 09:31:03",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill ffmpeg-encoder-check-4855c0",{"tool":44,"command":45},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill ffmpeg-encoder-check-4855c0",{"tool":47,"command":48},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill ffmpeg-encoder-check-4855c0","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002FSKILL.md",true,[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},".skill_id","OTHER","其他",41,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002F.skill_id",[59,83,99,108,133,149],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":27},"01M6XCCXD3NCM2YKR3WNGBASPC","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[18,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],"write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":27},"01M6XCCT7E3J922Q345PBGSHPN","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[90,91,66,81,92,82,93,94,26,95,96,80,97,98,70,73,75],"readback","write special chars readback","helper","post","via","cleanup","read","verification","with",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":27},"01M6XCCMQX1R8B6FECWB3P63T7","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[106,66,70,107,75,94,80,81,82,73],"write special chars heredoc","shell",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":27},"01M6XCCG41M994JJEX6VN52PEP","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[115,116,117,118,119,68,120,121,122,123,124,73,125,126,127,128,129,130,131,132],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":27},"01M6XCCCHWNKG2W4VH9E6A10HF","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[140,141,142,143,73,144,98,145,146,147,148],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":27},"01M6XCC7X8PKMR2DEW91XGHYSV","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[156,157,158,159,160,161,81,162,163,164],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]