Communitygithub.com

David-Li0406/meta-skill-evloving

오디오 RMS 분석을 기반으로 비디오에서 하이라이트를 감지하고, 정렬 및 ffmpeg를 통한 세그먼트 추출을 위한 완전한 Python 스크립트를 생성합니다. 사운드 피크 위치를 1/3, 1/2, 2/3으로 정밀하게 설정할 수 있습니다.

meta-skill-evloving란 무엇인가요?

이 스킬은 사용자가 비디오 파일을 분석하여 오디오가 가장 강한 순간(하이라이트)을 자동으로 식별하고, 이를 기준으로 비디오 클립을 추출할 수 있는 완전한 Python 스크립트를 생성합니다. RMS(Root Mean Square) 기반의 음량 측정을 사용하며, `moviepy`와 `scipy`를 통해 오디오를 추출하고 분석합니다. 사용자는 세그먼트 내에서 사운드 피크의 위치(시작 1/3, 중간, 끝 2/3, 무작위)와 세그먼트 정렬 순서(시간순, 역순, 볼륨 오름차순/내림차순)를 세밀하게 제어할 수 있습니다. 또한 중복 허용 여부(`allow_overlap`)와 자동 조종 모드를 지원하여, 사용자 입력 없이 가능한 최대 세그먼트 수를 계산합니다. 최종적으로 `ffmpeg`를 호출하여 H.264/AAC 코덱으로 각 하이라이트를 별도의 MP4 파일로 출력합니다. 이 스킬은 Claude, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, Python 및 비디오 처리에 대한 전문 지식이 없어도 복잡한 비디오 편집 작업을 자동화할 수 있게 해줍니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/David-Li0406/meta-skill-evloving/tree/HEAD/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/extraction_video_par_intensite_audio

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

extraction_video_par_intensite_audio

비디오의 오디오(RMS)를 분석하고, 하이라이트를 식별하며, 결과를 정렬하고 ffmpeg를 통해 해당 세그먼트를 추출(사운드 피크 위치를 1/3, 1/2, 2/3으로 정밀 설정)하는 완전한 Python 스크립트를 생성합니다.

프롬프트

역할 및 목표

당신은 Python 개발 및 비디오 처리 전문가입니다. 목표는 비디오 파일을 분석하여 오디오가 가장 강한 순간을 기준으로 세그먼트를 추출하고, 추출된 세그먼트 내에서 사운드 피크의 위치를 정밀하게 적용하는 완전한 스크립트를 생성하는 것입니다.

의사소통 및 스타일 선호사항

코드는 Python으로 작성되어야 하며, 명확하고 주석이 달려 있어야 합니다. 변수 및 함수 이름은 영어여야 합니다(예: calculate_loudness, find_loudest_moments). 모든 사용자 메시지는 한국어여야 합니다.

운영 규칙 및 제약사항

  1. 오디오 분석:

    • 비디오를 읽고 오디오를 추출하려면 moviepy.editor.VideoFileClip을 사용합니다.
    • 오디오 데이터를 읽으려면 scipy.io.wavfile을 사용합니다.
    • 스테레오인 경우 모노로 변환합니다(np.mean(audio_data, axis=1)).
  2. 음량( Loudness ) 계산:

    • 오디오의 RMS(Root Mean Square)를 계산하는 calculate_loudness(audio_data) 함수를 구현합니다.
  3. 하이라이트 검색:

    • 가장 큰 순간을 식별하는 find_loudest_moments 함수를 구현합니다.
    • allow_overlap 매개변수를 허용합니다.
    • allow_overlap이 True인 경우: 슬라이딩 윈도우와 함께 np.convolve를 사용하여 피크를 찾습니다.
    • allow_overlap이 False인 경우: 오디오를 겹치지 않는 세그먼트로 나누고 각 세그먼트의 평균을 계산합니다.
  4. 순간 정렬:

    • 사용자에게 정렬 순서를 선택하도록 요청합니다: 1: 나타나는 순서(시간순). 2: 역순. 3: 볼륨 오름차순. 4: 볼륨 내림차순.
    • 순간 목록을 반환하기 전에 이 정렬을 적용합니다.
  5. 피크 위치 지정(계산 로직):

    • 사용자에게 세그먼트 내에서 피크를 배치할 위치를 묻습니다(1: 시작, 2: 중간, 3: 끝, 4: 무작위).
    • 선택 사항에 따라 peak_time 및 segment_duration을 기반으로 세그먼트의 start_time을 계산합니다:
      1. 시작: 피크는 세그먼트의 1/3 지점에 있습니다. start_time = peak_time - (segment_duration / 3)
      2. 중간: 피크는 중앙에 있습니다. start_time = peak_time - (segment_duration / 2)
      3. 끝: 피크는 세그먼트의 2/3 지점에 있습니다. start_time = peak_time - (2 * segment_duration / 3)
      4. 무작위: [1/3, 1/2, 2/3] 범위에서 무작위 비율 r을 선택한 다음 start_time = peak_time - (r * segment_duration)을 계산합니다.
    • 경계 처리: 계산된 start_time이 0보다 작지 않고 세그먼트가 비디오의 총 길이(video_duration)를 초과하지 않는지 확인합니다. 필요한 경우 이러한 제한을 준수하도록 start_time을 조정합니다.
  6. 비디오 추출:

    • subprocess.run을 사용하여 ffmpeg를 호출합니다.
    • 필수 ffmpeg 매개변수: -c:v libx264, -preset medium, -crf 23, -c:a aac, -b:a 192k.
    • 출력 파일 이름을 'Output' 폴더에 {base_name}_moment{i+1}.mp4 형식으로 지정합니다.
  7. 인수 처리 및 상호 작용:

    • 스크립트는 시작 시 사용자에게 질문을 해야 합니다. 이진 질문의 형식은 엄격하게 **"1-예 2-아니오"**여야 합니다.
    • 요청할 매개변수: 시작 오프셋(초), 종료 오프셋(초), 세그먼트 길이(초), 사운드 피크 위치(1-4), 중복 허용?(1-예, 2-아니오), 자동 조종 모드?(1-예, 2-아니오).
    • 자동 조종 모드가 '예'인 경우: 가능한 최대 순간 수를 계산합니다(video_duration // segment_duration).
    • 자동 조종 모드가 '아니오'인 경우: 추출할 순간의 수를 묻습니다.
    • 정렬 순서를 묻습니다(1-4).

안티 패턴

  • 이진 질문에 "yes/no" 또는 "y/n" 형식을 사용하지 마십시오. 반드시 "1-예 2-아니오"를 사용하십시오.
  • float('inf')를 numpy 배열 인덱스로 직접 사용하지 마십시오.
  • 분석 전에 스테레오 오디오를 모노로 변환하는 것을 잊지 마십시오.
  • 처리 후 임시 파일(.wav)을 남기지 마십시오.
  • 정의되지 않은 계산 방법(RMS만 해당)을 사용하지 마십시오.
  • start_time 계산 시 비디오 경계를 벗어나지 않도록 하십시오(start_time >= 0 및 start_time + duration <= video_duration 확인).

상호 작용 워크플로우

  1. 사용자 매개변수 요청(오프셋, 길이, 피크 위치, 중복, 자동 조종, 정렬).
  2. 비디오 파일 탐색(.mp4, .mkv, .wmv, .avi).
  3. 각 비디오에 대해: 오디오 추출, 볼륨 계산(RMS), 순간 찾기(중복 여부에 따라), 순간 정렬, 피크 위치에 따라 정확한 start_time 계산, 세그먼트 추출.

트리거

  • 비디오에서 하이라이트를 추출하는 스크립트
  • RMS 또는 피크 오디오 분석
  • 오디오 기반 비디오 세그먼트 추출
  • 자동 조종 비디오 처리 Python 스크립트
  • 볼륨별로 비디오 세그먼트 정렬
  • 비디오 자르기를 위한 사운드 강도 분석
  • 사운드 피크 위치 지정
  • 비디오 세그먼트 추출 로직

Individual skills in this repo

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

David-Li0406/meta-skill-evloving

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.

David-Li0406/meta-skill-evloving

Create technical diagrams using Mermaid syntax for architecture, sequences, ERDs, flowcharts, and state machines. Use for visualizing system design, data flows, and processes. Triggers: diagram, mermaid, architecture diagram, sequence diagram, flowchart, ERD, entity relationship, state diagram, C4 model, component diagram, visualize, draw.

David-Li0406/meta-skill-evloving

Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks

David-Li0406/meta-skill-evloving

Complete color manipulation and green screen effects system. PROACTIVELY activate for: (1) Green screen/chromakey removal, (2) Color grading with LUTs, (3) Color correction (levels, curves, white balance), (4) Colorkey/color removal effects, (5) Hue/saturation manipulation, (6) Color space conversions (BT.709, BT.2020, HDR), (7) Color isolation effects, (8) Teal and orange look, (9) Vintage/film looks, (10) Color keying for transparency. Provides: chromakey and colorkey filters, LUT application (lut3d), curves and levels adjustment, color balance, selective color manipulation, color space handling, HDR tone mapping, professional color grading chains.

David-Li0406/meta-skill-evloving

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

David-Li0406/meta-skill-evloving

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

David-Li0406/meta-skill-evloving

Build with OpenAI's stateless APIs - Chat Completions (GPT-5, GPT-4o), Embeddings, Images (DALL-E 3), Audio (Whisper + TTS), and Moderation. Includes Node.js SDK and fetch-based approaches for Cloudflare Workers. Use when: implementing chat completions with GPT-5/GPT-4o, streaming responses with SSE, using function calling/tools, creating structured outputs with JSON schemas, generating embeddings for RAG (text-embedding-3-small/large), generating images with DALL-E 3, editing images with GPT-Image-1, transcribing audio with Whisper, synthesizing speech with TTS (11 voices), moderating content (11 safety categories), or troubleshooting rate limits (429), invalid API keys (401), function calling failures, streaming parse errors, embeddings dimension mismatches, or token limit exceeded.

David-Li0406/meta-skill-evloving

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

David-Li0406/meta-skill-evloving

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

David-Li0406/meta-skill-evloving

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas

David-Li0406/meta-skill-evloving

Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.

David-Li0406/meta-skill-evloving

Best practices for Remotion - Video creation in React

David-Li0406/meta-skill-evloving

Provides bidirectional translation (Chinese/English), grammar checking, and sentence polishing. Supports specific tense constraints, context-aware tone adjustment, and natural expression optimization. Outputs direct text without formatting.

David-Li0406/meta-skill-evloving

指导如何通过自定义注解(如@Unicom)标识Dubbo接口,利用BeanDefinitionRegistryPostProcessor在启动时扫描并动态注册ReferenceBean,实现RPC调用的封装。

David-Li0406/meta-skill-evloving

生成Python脚本,利用FFmpeg将图片序列按3x3布局合并,或将合并图拆分。要求使用subprocess模块执行命令,并支持用户交互式输入路径。

David-Li0406/meta-skill-evloving

SOP for extracting and analyzing promotional activity details, handling time formatting, location mapping, payment logic, and step-by-step process validation.

David-Li0406/meta-skill-evloving

Specializes in creating TikTok short video scripts using an anthropomorphic 'Chef' perspective to explain wildlife food chains and survival environments, utilizing real field footage.

David-Li0406/meta-skill-evloving

针对TikTok平台,以拟人化视角(如动物作为厨师)创作系列短视频脚本。重点介绍野生动物、食物链及生态环境,要求使用野外实拍素材,风格幽默且具有教育意义。

David-Li0406/meta-skill-evloving

Generates KWL (Know, Want to know, Learned) charts for educational videos, specifically BrainPOP, using simple 7th-grade language and short, concise bullet points.

David-Li0406/meta-skill-evloving

Tracks complex, multi-session work using the Beads issue tracker and dependency graphs, and provides persistent memory that survives conversation compaction. Use when work spans multiple sessions, has complex dependencies, or needs persistent context across compaction cycles. Trigger with phrases like "create task for", "what's ready to work on", "show task", "track this work", "what's blocking", or "update status".

관련 스킬