Pular para o conteúdo
Skillpedia
Edição de vídeo75 mil · #3074

video-optimization

O que ela faz

Esta skill revisa arquivos de vídeo de um site e sugere formas de deixá-los menores. Ela é para donos de sites e desenvolvedores cujas páginas carregam devagar por causa de vídeos.

Quando usar

  • ✓Quando uma página carrega um vídeo grande que atrasa a primeira visualização.
  • ✓Quando um site serve um vídeo 4K para telas pequenas de celular.
  • ✓Quando um vídeo de fundo silencioso inclui uma faixa de áudio que não precisa ter.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-optimization/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“A página inicial do meu site tem um vídeo de fundo e ele é muito pesado. Como posso fazê-lo carregar mais rápido?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente verifica a resolução, o codec, o áudio e o tamanho do arquivo de cada vídeo em relação ao lugar onde ele aparece. Depois sugere recodificar e servir versões menores para telas menores.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Quais formatos de vídeo são melhores?

A skill prefere codecs modernos, como VP9, AV1 ou HEVC onde houver suporte, em vez do H.264 básico sempre que possível.

Por que oferecer várias resoluções?

Para que celulares não baixem um arquivo grande pensado para telas grandes. A página serve a menor versão que cabe no player.

Um vídeo silencioso deve manter o áudio?

Não. A skill diz para remover o áudio de vídeos de fundo silenciosos ou em loop.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
75 mil
Posição no ranking
#3074
Licença
MIT
Atualizada em
31/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas