[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77R8DG6ETXX4W6VE3ES3MBY":3,"skill-same:01M77R8DG6ETXX4W6VE3ES3MBY":54},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M77R8DG6ETXX4W6VE3ES3MBY","video-bgm",null,"Analyze a video's mood and add AI-generated BGM. Optionally speed up\u002Fslow down. Uses Gemini for video analysis and fal.ai Lyria2 for music generation. Triggers on \"add bgm\", \"add music to video\", \"video bgm\", or any request to add background music to a video file.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fphy-video-bgm\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: video-bgm\ndescription: Analyze a video's mood and add AI-generated BGM. Optionally speed up\u002Fslow down. Uses Gemini for video analysis and fal.ai Lyria2 for music generation. Triggers on \"add bgm\", \"add music to video\", \"video bgm\", or any request to add background music to a video file.\nhomepage: https:\u002F\u002Fcanlah.ai\nmetadata: {\"openclaw\": {\"emoji\": \"🎵\", \"os\": [\"darwin\", \"linux\"]}}\n---\n\n# Video BGM Skill\n\nAnalyze a video's content and mood, generate matching BGM via AI, and mix it in.\n\n---\n\n## Pipeline\n\n```\nInput Video → Gemini Analysis → Lyria2 BGM → FFmpeg Mix → Output\n                (mood\u002Fstyle)     (generate)    (speed + volume + fade)\n```\n\n## Dependencies\n\n- **Python**: `python3` (or activate your project venv if available)\n- **Gemini API**: `GOOGLE_GENAI_API_KEY` (video understanding)\n- **fal.ai**: `FAL_API_KEY` (Lyria2 music generation)\n- **FFmpeg**: system install\n\n## Setup\n\n```bash\n# Install required packages\npip install google-generativeai httpx\n\n# Set API keys via environment variables\nexport GOOGLE_GENAI_API_KEY=\"your_google_api_key\"\nexport FAL_API_KEY=\"your_fal_api_key\"\n```\n\n## Usage\n\n```\n\u002Fvideo-bgm \u003Cpath-to-video>\n\u002Fvideo-bgm \u003Cpath-to-video> --speed 1.1\n\u002Fvideo-bgm \u003Cpath-to-video> --speed 1.1 --volume 5\n\u002Fvideo-bgm \u003Cpath-to-video> --style \"lo-fi chill\"\n```\n\n## Arguments\n\n| Arg | Default | Description |\n|-----|---------|-------------|\n| `path` | (required) | Path to input video file |\n| `--speed` | `1.0` | Speed multiplier (e.g. 1.1 = 10% faster) |\n| `--volume` | `5.0` | BGM volume multiplier (Lyria2 output is quiet) |\n| `--fade-in` | `1.5` | Fade in duration in seconds |\n| `--fade-out` | `3.0` | Fade out duration in seconds |\n| `--style` | (auto) | Override music style (skip Gemini analysis) |\n\n## Step-by-Step Process\n\n### Step 1: Analyze Video with Gemini\n\nUpload video to Gemini 2.0 Flash and get deep mood analysis.\n\n```python\nimport google.generativeai as genai\nimport os\n\nGOOGLE_API_KEY = os.environ.get(\"GOOGLE_GENAI_API_KEY\")\ngenai.configure(api_key=GOOGLE_API_KEY)\n```\n\nUse this analysis prompt (acts as music supervisor, not generic):\n\n```\nWatch this video very carefully. You are a music supervisor for commercials.\n\nTell me:\n1. What BRAND POSITIONING does this video convey? (luxury? affordable? aspirational?)\n2. What is the EMOTIONAL JOURNEY of the viewer? Be specific at each moment.\n3. What REAL commercial music references would fit? Name specific ad styles\n   (Four Seasons resort? Apple reveal? Volvo? Pottery Barn? Nike?)\n4. What is the ENERGY LEVEL? Contemplative\u002Fstill or forward momentum?\n5. What tempo, instruments, and production style would ACTUALLY work?\n   Be honest - classical piano is often too stuffy. Consider modern alternatives.\n\nThen provide a SINGLE music generation prompt (2-3 sentences) that captures\nthe ideal BGM. Focus on: instruments, tempo BPM, mood adjectives, production style.\nFormat: MUSIC_PROMPT: \u003Cyour prompt here>\n```\n\n### Step 2: Extract the MUSIC_PROMPT\n\nParse the Gemini response to find the `MUSIC_PROMPT:` line. This becomes the Lyria2 prompt.\n\nAlways APPEND these constraints to any Lyria2 prompt:\n```\nNo vocals, no drums, no percussion hits, no sound effects.\n```\n\n### Step 3: Generate BGM via fal.ai Lyria2\n\n```python\nimport httpx\nimport os\n\nFAL_API_KEY = os.environ.get(\"FAL_API_KEY\")\n\nresp = httpx.post(\n    \"https:\u002F\u002Ffal.run\u002Ffal-ai\u002Flyria2\",\n    headers={\n        \"Authorization\": f\"Key {FAL_API_KEY}\",\n        \"Content-Type\": \"application\u002Fjson\",\n    },\n    json={\"prompt\": music_prompt},\n    timeout=120.0,\n)\naudio_url = resp.json()[\"audio\"][\"url\"]\n```\n\nLyria2 generates ~32s of audio. Output is WAV, 48kHz stereo.\n\n### Step 4: FFmpeg — Speed + Strip Audio + Mix BGM\n\n```bash\n# Step 4a: Speed up video (if requested) and strip any existing audio\nffmpeg -y -i INPUT.mp4 \\\n  -filter:v \"setpts=PTS\u002F{speed}\" \\\n  -an \\\n  -c:v libx264 -preset medium -crf 18 \\\n  OUTPUT_speedup.mp4\n\n# Step 4b: Get sped-up duration\nDURATION=$(ffprobe -v quiet -show_entries format=duration -of csv=p=0 OUTPUT_speedup.mp4)\n\n# Step 4c: Mix BGM with volume boost, fade in\u002Fout, trim to video length\nffmpeg -y \\\n  -i OUTPUT_speedup.mp4 \\\n  -i bgm.wav \\\n  -filter_complex \"[1:a]volume={volume},atrim=0:{duration},afade=t=in:st=0:d={fade_in},afade=t=out:st={duration-fade_out}:d={fade_out}[a]\" \\\n  -map 0:v -map \"[a]\" \\\n  -c:v copy -c:a aac -b:a 192k \\\n  -shortest \\\n  OUTPUT_final.mp4\n```\n\n### Step 5: Open Result\n\nOpen the final video for user review. Also open the BGM separately so they can evaluate the music alone.\n\n## Key Learnings\n\n- **Lyria2 output is VERY QUIET** — always use volume multiplier (default 5.0)\n- **Don't over-specify the Lyria2 prompt** — \"three acts\" style prompts produce chaotic results. Keep it to instruments + tempo + mood + style reference.\n- **Let Gemini act as music supervisor** — it gives much better style recommendations than generic \"relaxing piano\" defaults\n- **Always strip existing audio first** (`-an`) — some videos have unwanted audio tracks\n- **Classical piano is usually wrong** — for luxury\u002Flifestyle, modern minimalist (Rhodes, guitar, cello) works better\n\n## Output Files\n\nAll files are saved next to the input video:\n```\ninput_video.mp4          → original\ninput_video_speedup.mp4  → sped up, no audio\ninput_video_bgm.wav      → generated BGM\ninput_video_final.mp4    → final output with BGM\n```\n\n## Examples\n\n```bash\n# Basic: analyze and add BGM\n\u002Fvideo-bgm ~\u002FDesktop\u002Fproduct_video.mp4\n\n# Speed up 10% and add BGM\n\u002Fvideo-bgm ~\u002FDesktop\u002Fproduct_video.mp4 --speed 1.1\n\n# Override style (skip Gemini analysis)\n\u002Fvideo-bgm ~\u002FDesktop\u002Fad.mp4 --style \"upbeat modern pop, synth pads, 100 BPM\"\n\n# Adjust volume\n\u002Fvideo-bgm ~\u002FDesktop\u002Fquiet_video.mp4 --volume 8\n```\n\n---\n\n## Author\n\n**[Canlah AI](https:\u002F\u002Fcanlah.ai)** — Run performance marketing without breaking your brand.\n\n- GitHub: [github.com\u002FPHY041](https:\u002F\u002Fgithub.com\u002FPHY041)\n- All Skills: [clawhub.ai\u002FPHY041](https:\u002F\u002Fclawhub.ai\u002FPHY041)\n","# Video BGM Skill\n\nAnalyze a video's content and mood, generate matching BGM via AI, and mix it in.\n\n---\n\n## Pipeline\n\n```\nInput Video → Gemini Analysis → Lyria2 BGM → FFmpeg Mix → Output\n                (mood\u002Fstyle)     (generate)    (speed + volume + fade)\n```\n\n## Dependencies\n\n- **Python**: `python3` (or activate your project venv if available)\n- **Gemini API**: `GOOGLE_GENAI_API_KEY` (video understanding)\n- **fal.ai**: `FAL_API_KEY` (Lyria2 music generation)\n- **FFmpeg**: system install\n\n## Setup\n\n```bash\n# Install required packages\npip install google-generativeai httpx\n\n# Set API keys via environment variables\nexport GOOGLE_GENAI_API_KEY=\"your_google_api_key\"\nexport FAL_API_KEY=\"your_fal_api_key\"\n```\n\n## Usage\n\n```\n\u002Fvideo-bgm \u003Cpath-to-video>\n\u002Fvideo-bgm \u003Cpath-to-video> --speed 1.1\n\u002Fvideo-bgm \u003Cpath-to-video> --speed 1.1 --volume 5\n\u002Fvideo-bgm \u003Cpath-to-video> --style \"lo-fi chill\"\n```\n\n## Arguments\n\n| Arg | Default | Description |\n|-----|---------|-------------|\n| `path` | (required) | Path to input video file |\n| `--speed` | `1.0` | Speed multiplier (e.g. 1.1 = 10% faster) |\n| `--volume` | `5.0` | BGM volume multiplier (Lyria2 output is quiet) |\n| `--fade-in` | `1.5` | Fade in duration in seconds |\n| `--fade-out` | `3.0` | Fade out duration in seconds |\n| `--style` | (auto) | Override music style (skip Gemini analysis) |\n\n## Step-by-Step Process\n\n### Step 1: Analyze Video with Gemini\n\nUpload video to Gemini 2.0 Flash and get deep mood analysis.\n\n```python\nimport google.generativeai as genai\nimport os\n\nGOOGLE_API_KEY = os.environ.get(\"GOOGLE_GENAI_API_KEY\")\ngenai.configure(api_key=GOOGLE_API_KEY)\n```\n\nUse this analysis prompt (acts as music supervisor, not generic):\n\n```\nWatch this video very carefully. You are a music supervisor for commercials.\n\nTell me:\n1. What BRAND POSITIONING does this video convey? (luxury? affordable? aspirational?)\n2. What is the EMOTIONAL JOURNEY of the viewer? Be specific at each moment.\n3. What REAL commercial music references would fit? Name specific ad styles\n   (Four Seasons resort? Apple reveal? Volvo? Pottery Barn? Nike?)\n4. What is the ENERGY LEVEL? Contemplative\u002Fstill or forward momentum?\n5. What tempo, instruments, and production style would ACTUALLY work?\n   Be honest - classical piano is often too stuffy. Consider modern alternatives.\n\nThen provide a SINGLE music generation prompt (2-3 sentences) that captures\nthe ideal BGM. Focus on: instruments, tempo BPM, mood adjectives, production style.\nFormat: MUSIC_PROMPT: \u003Cyour prompt here>\n```\n\n### Step 2: Extract the MUSIC_PROMPT\n\nParse the Gemini response to find the `MUSIC_PROMPT:` line. This becomes the Lyria2 prompt.\n\nAlways APPEND these constraints to any Lyria2 prompt:\n```\nNo vocals, no drums, no percussion hits, no sound effects.\n```\n\n### Step 3: Generate BGM via fal.ai Lyria2\n\n```python\nimport httpx\nimport os\n\nFAL_API_KEY = os.environ.get(\"FAL_API_KEY\")\n\nresp = httpx.post(\n    \"https:\u002F\u002Ffal.run\u002Ffal-ai\u002Flyria2\",\n    headers={\n        \"Authorization\": f\"Key {FAL_API_KEY}\",\n        \"Content-Type\": \"application\u002Fjson\",\n    },\n    json={\"prompt\": music_prompt},\n    timeout=120.0,\n)\naudio_url = resp.json()[\"audio\"][\"url\"]\n```\n\nLyria2 generates ~32s of audio. Output is WAV, 48kHz stereo.\n\n### Step 4: FFmpeg — Speed + Strip Audio + Mix BGM\n\n```bash\n# Step 4a: Speed up video (if requested) and strip any existing audio\nffmpeg -y -i INPUT.mp4 \\\n  -filter:v \"setpts=PTS\u002F{speed}\" \\\n  -an \\\n  -c:v libx264 -preset medium -crf 18 \\\n  OUTPUT_speedup.mp4\n\n# Step 4b: Get sped-up duration\nDURATION=$(ffprobe -v quiet -show_entries format=duration -of csv=p=0 OUTPUT_speedup.mp4)\n\n# Step 4c: Mix BGM with volume boost, fade in\u002Fout, trim to video length\nffmpeg -y \\\n  -i OUTPUT_speedup.mp4 \\\n  -i bgm.wav \\\n  -filter_complex \"[1:a]volume={volume},atrim=0:{duration},afade=t=in:st=0:d={fade_in},afade=t=out:st={duration-fade_out}:d={fade_out}[a]\" \\\n  -map 0:v -map \"[a]\" \\\n  -c:v copy -c:a aac -b:a 192k \\\n  -shortest \\\n  OUTPUT_final.mp4\n```\n\n### Step 5: Open Result\n\nOpen the final video for user review. Also open the BGM separately so they can evaluate the music alone.\n\n## Key Learnings\n\n- **Lyria2 output is VERY QUIET** — always use volume multiplier (default 5.0)\n- **Don't over-specify the Lyria2 prompt** — \"three acts\" style prompts produce chaotic results. Keep it to instruments + tempo + mood + style reference.\n- **Let Gemini act as music supervisor** — it gives much better style recommendations than generic \"relaxing piano\" defaults\n- **Always strip existing audio first** (`-an`) — some videos have unwanted audio tracks\n- **Classical piano is usually wrong** — for luxury\u002Flifestyle, modern minimalist (Rhodes, guitar, cello) works better\n\n## Output Files\n\nAll files are saved next to the input video:\n```\ninput_video.mp4          → original\ninput_video_speedup.mp4  → sped up, no audio\ninput_video_bgm.wav      → generated BGM\ninput_video_final.mp4    → final output with BGM\n```\n\n## Examples\n\n```bash\n# Basic: analyze and add BGM\n\u002Fvideo-bgm ~\u002FDesktop\u002Fproduct_video.mp4\n\n# Speed up 10% and add BGM\n\u002Fvideo-bgm ~\u002FDesktop\u002Fproduct_video.mp4 --speed 1.1\n\n# Override style (skip Gemini analysis)\n\u002Fvideo-bgm ~\u002FDesktop\u002Fad.mp4 --style \"upbeat modern pop, synth pads, 100 BPM\"\n\n# Adjust volume\n\u002Fvideo-bgm ~\u002FDesktop\u002Fquiet_video.mp4 --volume 8\n```\n\n---\n\n## Author\n\n**[Canlah AI](https:\u002F\u002Fcanlah.ai)** — Run performance marketing without breaking your brand.\n\n- GitHub: [github.com\u002FPHY041](https:\u002F\u002Fgithub.com\u002FPHY041)\n- All Skills: [clawhub.ai\u002FPHY041](https:\u002F\u002Fclawhub.ai\u002FPHY041)\n",{"name":5,"homepage":24,"metadata":25,"description":7},"https:\u002F\u002Fcanlah.ai",{"openclaw":26},{"os":27,"emoji":30},[28,29],"darwin","linux","🎵","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fphy-video-bgm",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill video-bgm",{"tool":46,"command":47},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill video-bgm",{"tool":49,"command":50},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill video-bgm","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fphy-video-bgm\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"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":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"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":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]