Saltar al contenido
Skillpedia
Edición de video75 mil · #3074

video-optimization

Qué hace

Esta skill revisa los archivos de video de un sitio web y sugiere cómo hacerlos más pequeños. Es para dueños de sitios y desarrolladores cuyas páginas cargan lento por los videos.

Cuándo usarla

  • ✓Cuando una página carga un video grande que ralentiza su primera vista.
  • ✓Cuando un sitio web sirve un video 4K a pantallas pequeñas de teléfono.
  • ✓Cuando un video de fondo silencioso incluye una pista de audio que no necesita.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-optimization/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Mi página de inicio tiene un video de fondo y pesa mucho. ¿Cómo puedo hacer que cargue más rápido?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente comprueba la resolución, el códec, el audio y el tamaño de archivo de cada video según el lugar donde aparece. Luego sugiere recodificar y servir versiones más pequeñas para las pantallas más pequeñas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de 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

Preguntas frecuentes

¿Qué formatos de video son mejores?

La skill prefiere códecs modernos como VP9, AV1 o HEVC cuando son compatibles, en lugar de H.264 básico siempre que sea posible.

¿Por qué ofrecer varias resoluciones?

Para que los teléfonos no descarguen un archivo grande pensado para pantallas grandes. La página sirve la versión más pequeña que cabe en el reproductor.

¿Un video silencioso debe conservar el audio?

No. La skill indica que hay que quitar el audio de los videos silenciosos de fondo o en bucle.

Detalles

Descripción original del 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

Popularidad

Estrellas en GitHub
75 mil
Posición en el ranking
#3074
Licencia
MIT
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas