[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJ5JFA8YME8M8XKVB211NH":3,"skill-same:01M6KJ5JFA8YME8M8XKVB211NH":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":37,"updatedAt":38,"install":39,"resources":52},"01M6KJ5JFA8YME8M8XKVB211NH","ffmpeg-encoder-check-4855c0",null,"Check available FFmpeg encoders before writing encoding scripts to avoid library version mismatches","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\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","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add AG064\u002FOpenSpace --skill ffmpeg-encoder-check-4855c0",{"tool":45,"command":46},"bunx","bunx skills add AG064\u002FOpenSpace --skill ffmpeg-encoder-check-4855c0",{"tool":48,"command":49},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill ffmpeg-encoder-check-4855c0","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",41,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fffmpeg-encoder-check-4855c0\u002F.skill_id",[60,83,99,108,138,154],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":27},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[67,18,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],"write special chars ts check","write","filters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python","typescript",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":27},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[90,91,68,79,92,93,80,81,26,94,95,96,97,72,74,98],"readback","write special chars readback","cleanup","read","verification","via","post","helper","with",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":27},"01M6KKMEGX9M9NC105J0W3Q5B9","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[68,106,81,72,95,79,107,80,74],"write special chars heredoc","shell",{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":119,"publishedAt":27},"01M6KKM8EJ2AATVHZBNB916WT0","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[114],{"categoryNo":115,"categoryName":116,"taxonomyType":117,"taxonomyTypeDesc":118},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[120,121,122,123,82,124,125,126,127,128,72,129,130,131,132,133,134,135,136,137],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":27},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[145,146,147,148,72,149,98,150,151,152,153],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":160,"publishedAt":27},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[161,162,163,164,165,166,80,167,168,169],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]