本文へスキップ
Skillpedia
動画編集75k · #3074

video-optimization

できること

このスキルは、ウェブサイトの動画ファイルを確認し、それらを小さくする方法を提案します。動画のせいでページが遅くなっているサイト運営者や開発者向けです。

使う場面

  • ✓大きな動画を読み込んでいて、ページの最初の表示が遅いとき。
  • ✓4Kの動画を小さなスマートフォンの画面に配信しているとき。
  • ✓音のない背景の動画に、不要な音声トラックが付いているとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-optimization/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-optimization/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#3074
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル