immamdouhaboammar/motion-graphics-skills

opencv-fast-renderer

Render 2.5D motion graphics programmatically using Python, NumPy, Pillow, OpenCV, and FFmpeg.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/immamdouhaboammar/motion-graphics-skills --skill opencv-fast-renderer

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

OpenCV Fast 2.5D Renderer

A lightweight programmatic motion graphics pipeline built on Python, NumPy, Pillow, and OpenCV, streaming directly into FFmpeg.

Why Headless Python Rendering

Browser-based renderers (such as Puppeteer or Chromium frame captures) provide high design flexibility but require heavy browser runtimes and significant memory overhead. For algorithmic particle effects, procedural data visualization, mathematical curves, or serverless execution, the Python OpenCV pipeline renders up to 5 times faster with zero browser dependencies.

Architecture Pipeline

  1. Procedural Geometry (NumPy): Generate and interpolate 2.5D vector vertices, Bezier control paths, and camera matrices.
  2. Typography and Antialiasing (Pillow): Render clean subpixel text layers using TrueType or OpenType font files.
  3. Compositing and Motion Blur (OpenCV): Blend multi-layer frame buffers with alpha channels, apply directional box blur or Gaussian motion blur, and grade color.
  4. Direct FFmpeg Pipe: Stream raw RGB frame bytes directly to an FFmpeg subprocess via stdin pipe, avoiding intermediate disk writes.

Streaming Execution Pattern

python
import subprocess
import cv2
import numpy as np

width, height, fps = 1920, 1080, 60
cmd = [
    "ffmpeg", "-y", "-f", "rawvideo", "-vcodec", "rawvideo",
    "-s", f"{width}x{height}", "-pix_fmt", "bgr24", "-r", str(fps),
    "-i", "-", "-c:v", "libx264", "-pix_fmt", "yuv420p", "-crf", "18", "output.mp4"
]

proc = subprocess.Popen(cmd, stdin=subprocess.PIPE)

for frame_idx in range(fps * 10):
    frame = np.zeros((height, width, 3), dtype=np.uint8)
    # Render procedural scene
    proc.stdin.write(frame.tobytes())

proc.stdin.close()
proc.wait()

Further Reading

같은 저장소의 Skills

더 많은 Skills

모든 Skills
immamdouhaboammar
커뮤니티

animated-chart

Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code. Bars that become a line, a number that counts up, a before and after. Every value stays exactly as given. Use when someone says "animate my chart", "animated graph", "make my results move", "stat animation" or wants a data graphic that loops.

1시간 설치 수
1
GitHub Stars
45
업데이트
11월 1일
immamdouhaboammar
커뮤니티

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says "Apple-style launch", "Mac launch video", "notch animation", "make it look like an Apple keynote", "macOS UI launch film" or wants a product launch that looks like native Mac interface.

1시간 설치 수
1
GitHub Stars
45
업데이트
11월 1일
immamdouhaboammar
커뮤니티

assetseeker

Search free commercial-use creative assets across multiple online sources - photos, illustrations, icons, video footage, music, sound effects, and fonts. Use when the user needs to find assets for videos, PPTs, articles, or any content creation. Trigger on phrases like "find me a photo of", "search for icons", "I need background music", "find video footage", "search fonts", "找一张图片", "搜素材", "帮我找图标/视频/音乐/字体". Covers Pexels, Unsplash, Pixabay, Iconify, Freesound, Google Fonts and more - with API-ba

1시간 설치 수
1
GitHub Stars
45
업데이트
11월 1일
immamdouhaboammar
커뮤니티

audio-mastering-mixer

Mix and master voiceover, sound effects, and music stems to professional broadcast loudness standards. Use when adding SFX cues, balancing audio stems, mastering to minus 14 LUFS, ducking music under voice, or eliminating harsh whooshes.

1시간 설치 수
1
GitHub Stars
45
업데이트
11월 1일