video-optimization
하는 일
이 스킬은 웹사이트의 영상 파일을 검토하고, 더 작게 만드는 방법을 제안합니다. 영상 때문에 페이지가 느려지는 사이트 운영자와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓큰 영상이 있어서 처음 보는 화면이 느려지는 페이지가 있을 때.
- ✓작은 휴대폰 화면에 4K 영상을 제공하는 웹사이트가 있을 때.
- ✓무음 배경 영상에 필요 없는 오디오 트랙이 들어 있을 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-optimization/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“홈페이지의 배경 영상이 너무 무겁습니다. 더 빨리 로드되게 하려면 어떻게 해야 하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 각 영상의 해상도, 코덱, 오디오, 파일 크기를 그것이 표시되는 위치에 비추어 확인합니다. 그다음 다시 인코딩하고, 작은 화면에는 더 작은 버전을 제공하도록 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Optimize and compress web videos
Unoptimized video is frequently the single heaviest asset on a page—an uncompressed or oversized video can dwarf every image and script combined, delaying Largest Contentful Paint and burning mobile data budgets.
Quick Reference
- Re-encode source video instead of shipping raw camera/screen-recorder output
- Serve multiple resolutions so mobile doesn't download a 4K file
- Prefer modern codecs: AV1/VP9/HEVC over baseline H.264 where supported
- Strip audio tracks from silent background/looping videos
Check
Scan this codebase for <video> elements and video asset references. For each one, verify: 1) The served resolution is appropriate for the rendered player size and device (no 4K video in a 400px player). 2) The codec/container is efficient (H.264 baseline is acceptable but VP9/AV1/HEVC is preferred when available). 3) Audio is stripped from silent background/looping videos. 4) A poster attribute or lightweight thumbnail is present. 5) File size is reasonable for its duration and placement (hero/background videos under a few MB). Report issues grouped by severity with file paths.
Fix
For each video optimization issue found: 1) Re-encode to multiple resolutions (e.g. 480p/720p/1080p) and serve the smallest one that fits the player via <source> or JS-based selection. 2) Convert to an efficient codec (VP9 or AV1 in WebM, or HEVC/H.264 in MP4) with a reasonable CRF/ quality setting rather than default encoder settings. 3) Remove the audio track from muted background/looping videos. 4) Add a poster attribute pointing to a compressed thumbnail. 5) Add preload="metadata" (or "none") instead of "auto" for below-the-fold videos. Show the corrected <video> markup and encoding command.
Explain
Explain why video is often the largest asset on a page and how it affects Largest Contentful Paint and mobile data usage. Cover the tradeoffs between H.264, HEVC, VP9, and AV1 (compression efficiency vs browser/ device support and encode time), how resolution and bitrate should scale to the rendered player size and viewport, and why muted background video should have its audio track stripped entirely rather than just muted in markup.
Code Review
Review video assets, <video>/<source> markup, and any encoding or CDN transform pipeline related to Optimize and compress web videos. Flag exact files or components where resolution, codec, bitrate, or loading behavior violates the rule, and describe how to confirm the fix in DevTools' Network and Media panels.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/performance/video-optimization
자주 묻는 질문
어떤 영상 형식이 더 좋나요?
스킬은 가능한 경우 기본 H.264보다 지원되는 최신 코덱인 VP9, AV1, HEVC를 선호합니다.
해상도를 여러 개 제공하는 이유는 무엇인가요?
휴대폰이 큰 화면용 대용량 파일을 내려받지 않도록 하기 위해서입니다. 페이지는 플레이어에 맞는 가장 작은 버전을 제공합니다.
무음 영상도 오디오를 유지해야 하나요?
아닙니다. 스킬은 무음 배경이나 반복 재생 영상에서는 오디오를 제거하라고 말합니다.
상세 정보
작성자의 원본 설명
Use when reviewing <video> elements, background/hero video, or embedded media assets. Check encoded bitrate, resolution relative to the rendered player size, codec/container choice, and whether a poster/thumbnail avoids blocking on the first frame.
인기도
- GitHub 스타
- 75k
- 순위
- #3074
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
taste-application
280k특정 스타일의 영상을 에이전트가 만들도록 돕습니다. 참고 영상의 편집 리듬을 살려 새 장면과 색을 더하고 영상을 편집합니다.
taste-distillation
280k영상을 분석해 스타일 팩을 만들도록 에이전트를 돕습니다. 색, 컷 리듬, 시각 요소를 포함하며 같은 느낌의 새 영상을 만드는 데 재사용할 수 있습니다.
ui-demo
280k에이전트가 완성도 높은 UI 데모 영상을 녹화하도록 돕습니다. 튜토리얼을 만들거나 웹 앱의 작동 방식을 보여 줄 때 유용합니다.