Communitygithub.com

Cody-W-Tucker/skills

使用 ffmpeg 自動化處理影片檔案。適用場景:壓縮影片以便上傳;從影片中擷取音訊;調整尺寸以符合社群平台格式;裁切片段;合併多部影片;產生縮圖。

skills 是什麼?

此技能利用業界標準工具 FFmpeg 自動化影片編輯任務,FFmpeg 被 YouTube、Netflix 等主流平台廣泛採用。它提供一組 CLI 指令來處理常見影片操作,包括壓縮(支援目標大小或 CRF 參數)、音訊擷取(MP3/WAV 格式)、社群媒體尺寸調整(Instagram、TikTok、YouTube、LinkedIn 等預設解析度)、時間點裁切以及多個片段合併。使用者可以透過 Python 指令執行所有操作,並可選用 GPU 加速來提升效能。此技能特別適合內容創作者、社群媒體經理、播客製作人,以及需要批次處理大量影片素材的開發人員。它明確區分了自動化可以處理的技術性工作(如工作流程結構化、技術建議)與需要人類判斷的創意決策。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Cody-W-Tucker/skills/tree/HEAD/skills/video-processing

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

影片處理

使用 FFmpeg 自動化重複的影片編輯任務——這是支撐 YouTube、Netflix 及大多數影片平台的業界標準工具。

何時使用此技能

  • 社群媒體最佳化 - 調整影片尺寸以符合 Instagram (9:16)、TikTok、LinkedIn 等平台
  • 上傳前準備 - 壓縮大型影片以符合平台大小限制
  • 音訊擷取 - 從網路研討會、訪談中擷取音訊,供播客使用
  • 內容裁切 - 擷取精彩片段、引言或分段
  • 批次處理 - 對多個影片套用相同操作

Claude 的任務 vs 你的決定

Claude 的任務你的決定
建構製作工作流程最終創意方向
建議技術方法設備和工具選擇
建立範本與檢查清單品質標準
識別最佳實務品牌/聲音決策
產生腳本大綱最終腳本核准

依賴項目

pip install ffmpeg-python moviepy click
# 亦需在系統上安裝 ffmpeg
# macOS: brew install ffmpeg
# Ubuntu: sudo apt install ffmpeg

指令

壓縮影片

python scripts/main.py compress video.mp4 --target-mb 10
python scripts/main.py compress video.mp4 --crf 28 --output compressed.mp4

擷取音訊

python scripts/main.py extract-audio video.mp4 --format mp3
python scripts/main.py extract-audio video.mp4 --format wav --output audio.wav

調整尺寸(社群平台專用)

python scripts/main.py resize video.mp4 --format instagram  # 1080x1920 (9:16)
python scripts/main.py resize video.mp4 --format youtube    # 1920x1080 (16:9)
python scripts/main.py resize video.mp4 --format square     # 1080x1080 (1:1)
python scripts/main.py resize video.mp4 --width 1280 --height 720

裁切片段

python scripts/main.py clip video.mp4 --start 00:30 --end 01:45
python scripts/main.py clip video.mp4 --start 00:30 --duration 60

合併多個影片

python scripts/main.py concat video1.mp4 video2.mp4 --output merged.mp4
python scripts/main.py concat ./clips/ --output compilation.mp4

產生縮圖

python scripts/main.py thumbnail video.mp4 --time 00:30
python scripts/main.py thumbnail video.mp4 --best  # 自動選取最佳畫面

範例

範例 1:為 Instagram Reels 準備影片

# 原始:4K 橫向影片,500MB
python scripts/main.py resize long-video.mp4 --format instagram
python scripts/main.py compress long-video_instagram.mp4 --target-mb 50

# 輸出:long-video_instagram_compressed.mp4 (1080x1920, <50MB)

範例 2:從網路研討會擷取播客

# 擷取音軌
python scripts/main.py extract-audio webinar-recording.mp4 --format mp3 --bitrate 192k

# 輸出:webinar-recording.mp3 (已準備好上傳至播客平台)

範例 3:建立精華片段

# 擷取多個片段
python scripts/main.py clip interview.mp4 --start 05:30 --end 06:15 --output clip1.mp4
python scripts/main.py clip interview.mp4 --start 12:00 --end 12:45 --output clip2.mp4
python scripts/main.py clip interview.mp4 --start 28:30 --end 29:00 --output clip3.mp4

# 合併為精華影片
python scripts/main.py concat clip1.mp4 clip2.mp4 clip3.mp4 --output highlights.mp4

社群媒體格式參考

平台格式解析度最大大小最長時長
Instagram Reels9:161080x19204GB90秒
Instagram 動態1:11080x10804GB60秒
TikTok9:161080x1920287MB10分鐘
YouTube Shorts9:161080x1920-60秒
YouTube16:91920x1080256GB12小時
LinkedIn1:1/16:91920x10805GB10分鐘
Twitter/X16:91920x1080512MB2分20秒

效能建議

  1. GPU 加速 - 當硬體編碼可用時(NVENC、VideoToolbox),FFmpeg 會使用硬體編碼
  2. CRF 數值 - 數值越低,品質越好,檔案越大。典型範圍為 18-28
  3. 預設選擇 - 草稿使用 ultrafast,最終匯出使用 slow
  4. 兩次編碼 - 目標位元率可獲得更好的品質

技能邊界

此技能擅長

  • 建構音訊製作工作流程
  • 提供技術指導
  • 建立品質檢查清單
  • 建議創意方法

此技能無法做到

  • 取代音訊工程專業知識
  • 做出主觀的創意決定
  • 直接存取或編輯音訊檔案
  • 保證商業成功

相關技能

技能中繼資料

  • 模式:半自動 (cyborg)
category: automation
subcategory: video-processing
dependencies: [ffmpeg-python, moviepy]
difficulty: beginner
time_saved: 5+ hours/week

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Cody-W-Tucker/skills

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust signals, form optimization, and conversion rate potential. Use when user says landing page, post-click experience, landing page audit, conversion rate, or landing page optimization.

Cody-W-Tucker/skills

TikTok Ads deep analysis covering creative quality, tracking, bidding, campaign structure, and TikTok Shop. Evaluates 28 checks with emphasis on creative-first strategy, safe zone compliance, and Smart+ campaigns. Use when user says TikTok Ads, TikTok marketing, TikTok Shop, Spark Ads, Smart+, or TikTok campaign.

Cody-W-Tucker/skills

YouTube Ads specific analysis covering campaign types, creative quality, audience targeting, and measurement. Evaluates video ad performance across skippable, non-skippable, bumper, Shorts, Demand Gen, and Connected TV formats. Covers VAC→Demand Gen migration, Shorts creative requirements, and CTV shoppable ads. Use when user says YouTube Ads, video ads, pre-roll, bumper ads, YouTube campaign, Shorts ads, or CTV ads.

Cody-W-Tucker/skills

Craft the story that makes investors say \"I want in.\" Master the narrative structure that Reid Hoffman, Sequoia, and top founders use to raise capital. Use when: **Preparing to fundraise** to develop your story before the deck; **Investor meetings** to structure conversations that convert; **Pitch practice** to refine your narrative arc; **Cold outreach** to write compelling investor emails; **Pivoting** to reframe your story after a change

Cody-W-Tucker/skills

Identify the best GTM motions and tools across 7 motion types: Inbound, Outbound, Paid Digital, Community, Partners, ABM, and PLG. Use when selecting marketing channels, choosing between inbound and outbound strategy, or planning cross-channel campaigns.

Cody-W-Tucker/skills

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

Cody-W-Tucker/skills

Optimize landing pages for maximum conversions using proven frameworks from Unbounce and Oli Gardner—apply the \"one goal, one message, one action\" principle with data-driven design, copy, and CTA best practices. Use when: **Create a new landing page** for a campaign; **Optimize an existing landing page** that isn't converting; **Review landing page design** before launch; **Improve form conversion rates** on lead gen pages; **A/B test landing page elements** systematically

Cody-W-Tucker/skills

Advanced motion patterns for React / Next.js — drag & drop, gestures, text animations, SVG path drawing, custom hooks, imperative sequences (useAnimate), loaders, and the full API decision tree. Requires motion-foundations.

Cody-W-Tucker/skills

Motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React / Next.js using motion/react. Foundation layer — all other motion skills depend on this.

Cody-W-Tucker/skills

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video poster", "title card", or pairs Open Claude Design with HyperFrames for a kinetic export.

Cody-W-Tucker/skills

Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.

Cody-W-Tucker/skills

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

Cody-W-Tucker/skills

Produce a single-file slide deck in the Atelier Zero visual language (warm-paper background, italic-serif emphasis spans, coral terminating dots, surreal collage plates) — Open Design's brand deck recipe. The deck uses **horizontal magazine-style swipe pagination** (←/→, wheel, swipe), a per-slide chrome strip with brand mark and slide counter, an ESC overview grid, a coral progress bar, and inherits the canonical stylesheet + 16-slot image library from the sister `open-design-landing` skill.

Cody-W-Tucker/skills

Produce a world-class single-page editorial landing site in the Atelier Zero visual language (Monocle / Apartamento / Études editorial collage) — the same aesthetic Open Design uses for its own marketing surface. The agent fills a typed `inputs.json` from a brand brief, optionally generates 16 collage assets via gpt-image-2, then runs a pure-function composer that emits a self-contained HTML file; a separate path can mirror the Astro marketing site in `apps/landing-page/`. Drop-in scroll-reveal motion and a Headroom-style sticky nav are wired automatically.

Cody-W-Tucker/skills

Best practices for Remotion - Video creation in React. 29 domain-specific rules covering 3D, animations, audio, captions, charts, transitions, and more.

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Single-page SaaS landing with hero, features, social proof, pricing, and CTA. Respects the active DESIGN.md color/typography/layout tokens. Trigger keywords: "saas landing", "marketing page", "product landing".

Cody-W-Tucker/skills

Master April Dunford's 8-step sales narrative from \"Sales Pitch\" (2023). Transform your positioning into a compelling story that wins enterprise deals. Use when: Structuring B2B sales presentations and demos; Creating pitch decks for complex products; Training sales teams on narrative-driven selling; Converting positioning strategy into sales conversations; Winning against entrenched competitors

Cody-W-Tucker/skills

Swiss-style user-research narrative template in warm-paper editorial aesthetics. Use when users ask for a premium research deck or story-first live artifact with minimalist typography, high-clarity layout, subtle motion, donut breakdowns, and keyboard/click navigation across slides in a single HTML file.

Cody-W-Tucker/skills

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

相關技能