video-to-webp

Convert video files to animated WebP with ffmpeg and img2webp.

34|1|Updated Apr 16, 2012
One-click install
npx skills add https://github.com/meowgorithm/dotfiles --skill video-to-webp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: video-to-webp
Source: https://github.com/meowgorithm/dotfiles/tree/main/crush/skills/video-to-webp
Command: npx skills add https://github.com/meowgorithm/dotfiles --skill video-to-webp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ffmpeg, libwebp, and includes scripts (resource) components.

What problem does it solve?

This Skill converts video files to animated WebP format, offering control over frames per second, size, quality, loop count, and trimming, which is useful when creating lightweight demos, replacing GIFs with smaller WebPs, or extracting short clips.

Core Features & Use Cases

  • Video to WebP Conversion: Converts a variety of video formats (MP4, MOV, WebM, GIF, MKV, AVI, etc.) into animated WebP images.
  • Customization Options: Allows for customization of frames per second, size, quality, loop count, and trimming.
  • Use Case: If you have a long video and you only need a short loop or demo for presentation, this Skill can help you create that efficiently.

Quick Start

Convert a video file 'demo.mp4' to an animated WebP with 24 frames per second, constrained to 800 pixels width: scripts/to-webp.sh -f 24 -w 800 demo.mp4 demo.webp

Frequently Asked Questions about video-to-webp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert an MP4 video to an animated WebP file?

To convert an MP4 video to an animated WebP, use a script that leverages ffmpeg for video decoding and img2webp for image creation, allowing you to set parameters like frames per second, width, and quality for the output WebP.

Can I trim a video and set a specific frame rate when converting to WebP?

Yes, you can trim a video and set a specific frame rate when converting to WebP. The conversion process allows customization of frames per second, size, quality, loop count, and trimming to create short loops or demos efficiently.

Does converting video to WebP require installing ffmpeg and libwebp?

Yes, converting video to WebP requires installing ffmpeg and libwebp. These tools are utilized by the conversion script to decode the input video file and encode the output into an animated WebP image format.

What is the best way to replace GIFs with smaller animated WebP files?

The best way to replace GIFs with smaller animated WebP files is converting your source video into an animated WebP. This process produces a compact, lossy image format that significantly reduces file size for lightweight demos and short clips.

What video formats can be converted to animated WebP using ffmpeg?

You can convert a variety of video formats to animated WebP using ffmpeg, including MP4, MOV, WebM, GIF, MKV, and AVI. This allows you to transform existing video assets into compact WebP images for web presentation.

Why use an animated WebP instead of a video format for web demos?

You should use an animated WebP instead of a video format for web demos to achieve a smaller file size. The animated WebP provides a compact, lossy image format that efficiently loads short clips and lightweight presentations on the web.