Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Przegląd i audyt

video-optimization

/video-optimization

Sprawdza elementy wideo na stronie: bitrate, rozdzielczość względem odtwarzacza, kodek i to, czy poster nie blokuje startu.

Licencja
MIT
Ostatnia zmiana repozytorium
06.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 06.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Sprawdza elementy wideo na stronie: bitrate, rozdzielczość względem odtwarzacza, kodek i to, czy poster nie blokuje startu.

Oryginalny opis (EN)

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.

Jak działa

  1. Quick Reference
  2. Check
  3. Fix
  4. Explain
  5. Code Review
Sekcje z nagłówków SKILL.md, w oryginale · 35 linii, 402 słów
Podgląd SKILL.md
---
name: video-optimization
description: "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."
metadata:
  category: performance
  priority: high
  difficulty: intermediate
  estimatedTime: "20"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/performance/video-optimization
---

# 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
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/rule.md 5 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · thedaviddias/front-end-checklist100MIT
kostja94/marketing-skills100MIT
unempyd/revenueos100MIT

Migawka bazy z 13.11.2026 · wersja paczki 58343221ee33 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100video-thumbnail
    Sprawdza atrybut poster w elementach video w HTML, czy pokazuje obraz przed startem i nie powoduje przesunięć układu.
  • 100create-render-profile
    Buduje nazwany, wielokrotnego użytku profil renderowania (kodek, rozdzielczość, bitrate lub QP, kontener), stroi go na 30-sekundowym klipie testowym i zapisuje do render-profiles.json.
  • 100ffmpeg-probe
    Bada pliki multimedialne przez ffprobe: format, strumienie, kodeki, czas trwania, bitrate, rozdzielczość, klatki, przestrzeń kolorów i metadane, z wyjściem JSON, CSV lub XML.
  • 90video-master-export
    Przygotowuje wersje główne filmów dla platform z określonym kodekiem, bitrate, kolorem i ustawieniami dźwięku.
  • 98living-ui-video
    Tworzy krótkie zapętlone wideo motion graphics w HTML i osadza je w stronie React lub Next.js, nie spowalniając jej.
  • 100video-spec-sheet
    Podaje specyfikacje wyjściowe wideo dla platform (TikTok, Reels, Shorts, YouTube, X, LinkedIn, Pinterest): proporcje, limity długości, kodek, bitrate, napisy, strefy bezpieczne i presety ffmpeg.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.