[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJYAAG621DCWBD0W5FPN3T":3,"skill-same:01M6KJYAAG621DCWBD0W5FPN3T":58},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":13,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M6KJYAAG621DCWBD0W5FPN3T","safe-video-concat-workflow",null,"Two-pass video concatenation workflow that avoids encoder compatibility issues by separating concat and audio mixing","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\u002Fsafe-video-concat-workflow\u002FSKILL.md",[],[18,19,20,21,22,23,24,25],"safe","workflow","Video","safe video concat workflow","issues","Audio","compatibility","mixing","2026-11-10 10:12:30",false,"---\nname: safe-video-concat-workflow\ndescription: Two-pass video concatenation workflow that avoids encoder compatibility issues by separating concat and audio mixing\n---\n\n# Safe Video Concatenation Workflow\n\nThis workflow prevents encoder compatibility failures when creating video showreels or compilations by using a two-pass approach: concatenate video clips first, then add music\u002FSFX in a separate pass.\n\n## When to Use\n\n- Creating video showreels from multiple source clips\n- Adding background music or sound effects to concatenated videos\n- Avoiding encoder errors when combining clips with audio mixing\n\n## Step 1: Probe Source Videos\n\nBefore processing, verify resolution and duration of all source clips using ffprobe:\n\n```bash\n# Get video resolution\nffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 clip.mp4\n\n# Get video duration\nffprobe -v error -show_entries format=duration -of csv=p=0 clip.mp4\n```\n\nRecord the resolution (e.g., 1920x1080) to determine if stream copy is safe.\n\n## Step 2: Use Stream Copy When Resolution Matches\n\nIf source clips already match your target resolution, use `-c:v copy` to avoid re-encoding:\n\n```bash\n# Good: avoids encoder issues when resolution matches\n-c:v copy\n\n# Only re-encode if resolution conversion is needed\n-c:v libx264 -s 1920x1080\n```\n\nThis prevents encoder compatibility failures that can occur with complex filter chains.\n\n## Step 3: Build Concat List with Bare Filenames\n\nCreate the concat list file with **bare filenames only** (no directory prefixes):\n\n```\nfile 'clip1.mp4'\nfile 'clip2.mp4'\nfile 'clip3.mp4'\n```\n\n**Important:** Run ffmpeg from the same directory as the video clips, or the concat demuxer may fail to find files.\n\n```bash\ncd \u002Fpath\u002Fto\u002Fclips\nffmpeg -f concat -safe 0 -i file_list.txt ...\n```\n\n## Step 4: Two-Pass Processing\n\n### Pass 1: Concatenate Video Clips\n\nConcatenate all clips first into an intermediate file:\n\n```bash\nffmpeg -f concat -safe 0 -i file_list.txt -c:v copy -c:a aac -y interim.mp4\n```\n\n### Pass 2: Add Music\u002FSFX with Complex Filter\n\nApply audio mixing or other complex filters in a separate pass:\n\n```bash\nffmpeg -i interim.mp4 -i background_music.mp3 \\\n  -filter_complex \"[0:a][1:a]amix=inputs=2:duration=first:dropout_transition=3\" \\\n  -c:v copy -c:a aac -y final_output.mp4\n```\n\n## Why Two Passes?\n\nCombining concatenation and audio mixing in a single command can cause:\n- Encoder compatibility failures\n- Resource exhaustion\n- Complex filter chain errors\n\nThe two-pass approach isolates concerns and ensures each operation completes successfully.\n\n## Quick Reference Commands\n\n```bash\n# Probe resolution\nffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 VIDEO.mp4\n\n# Create concat list (bare filenames, run from clip directory)\necho \"file 'clip1.mp4'\" > concat_list.txt\necho \"file 'clip2.mp4'\" >> concat_list.txt\n\n# Pass 1: Concatenate\nffmpeg -f concat -safe 0 -i concat_list.txt -c:v copy -c:a aac -y interim.mp4\n\n# Pass 2: Add audio\nffmpeg -i interim.mp4 -i music.mp3 -filter_complex \"[0:a][1:a]amix=inputs=2\" -c:v copy -y output.mp4\n```","# Safe Video Concatenation Workflow\n\nThis workflow prevents encoder compatibility failures when creating video showreels or compilations by using a two-pass approach: concatenate video clips first, then add music\u002FSFX in a separate pass.\n\n## When to Use\n\n- Creating video showreels from multiple source clips\n- Adding background music or sound effects to concatenated videos\n- Avoiding encoder errors when combining clips with audio mixing\n\n## Step 1: Probe Source Videos\n\nBefore processing, verify resolution and duration of all source clips using ffprobe:\n\n```bash\n# Get video resolution\nffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 clip.mp4\n\n# Get video duration\nffprobe -v error -show_entries format=duration -of csv=p=0 clip.mp4\n```\n\nRecord the resolution (e.g., 1920x1080) to determine if stream copy is safe.\n\n## Step 2: Use Stream Copy When Resolution Matches\n\nIf source clips already match your target resolution, use `-c:v copy` to avoid re-encoding:\n\n```bash\n# Good: avoids encoder issues when resolution matches\n-c:v copy\n\n# Only re-encode if resolution conversion is needed\n-c:v libx264 -s 1920x1080\n```\n\nThis prevents encoder compatibility failures that can occur with complex filter chains.\n\n## Step 3: Build Concat List with Bare Filenames\n\nCreate the concat list file with **bare filenames only** (no directory prefixes):\n\n```\nfile 'clip1.mp4'\nfile 'clip2.mp4'\nfile 'clip3.mp4'\n```\n\n**Important:** Run ffmpeg from the same directory as the video clips, or the concat demuxer may fail to find files.\n\n```bash\ncd \u002Fpath\u002Fto\u002Fclips\nffmpeg -f concat -safe 0 -i file_list.txt ...\n```\n\n## Step 4: Two-Pass Processing\n\n### Pass 1: Concatenate Video Clips\n\nConcatenate all clips first into an intermediate file:\n\n```bash\nffmpeg -f concat -safe 0 -i file_list.txt -c:v copy -c:a aac -y interim.mp4\n```\n\n### Pass 2: Add Music\u002FSFX with Complex Filter\n\nApply audio mixing or other complex filters in a separate pass:\n\n```bash\nffmpeg -i interim.mp4 -i background_music.mp3 \\\n  -filter_complex \"[0:a][1:a]amix=inputs=2:duration=first:dropout_transition=3\" \\\n  -c:v copy -c:a aac -y final_output.mp4\n```\n\n## Why Two Passes?\n\nCombining concatenation and audio mixing in a single command can cause:\n- Encoder compatibility failures\n- Resource exhaustion\n- Complex filter chain errors\n\nThe two-pass approach isolates concerns and ensures each operation completes successfully.\n\n## Quick Reference Commands\n\n```bash\n# Probe resolution\nffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 VIDEO.mp4\n\n# Create concat list (bare filenames, run from clip directory)\necho \"file 'clip1.mp4'\" > concat_list.txt\necho \"file 'clip2.mp4'\" >> concat_list.txt\n\n# Pass 1: Concatenate\nffmpeg -f concat -safe 0 -i concat_list.txt -c:v copy -c:a aac -y interim.mp4\n\n# Pass 2: Add audio\nffmpeg -i interim.mp4 -i music.mp3 -filter_complex \"[0:a][1:a]amix=inputs=2\" -c:v copy -y output.mp4\n```",{"name":5,"description":7},"main","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fsafe-video-concat-workflow","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":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add AG064\u002FOpenSpace --skill safe-video-concat-workflow",{"tool":44,"command":45},"bunx","bunx skills add AG064\u002FOpenSpace --skill safe-video-concat-workflow",{"tool":47,"command":48},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill safe-video-concat-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsafe-video-concat-workflow\u002FSKILL.md",true,[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},".skill_id","OTHER","其他",40,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsafe-video-concat-workflow\u002F.skill_id",[59,83,100,109,134,150],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":26},"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",[],[66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],"write special chars ts check","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":26},"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,94,95,96,97,98,72,74,99],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":26},"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,107,81,72,96,79,108,80,74],"write special chars heredoc","shell",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":26},"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",[],[116,117,118,119,82,120,121,122,123,124,72,125,126,127,128,129,130,131,132,133],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":26},"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",[],[141,142,143,144,72,145,99,146,147,148,149],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":26},"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",[],[157,158,159,160,161,162,80,22,163,164],"directory","verify","structure","verify directory structure","access","first","diagnose","file access"]