ffmpeg

Convert, resize, compress, and trim video and audio files with FFmpeg commands.

1|Updated Aug 28, 2026
One-click install
npx skills add https://github.com/mooch10/mochiptos --skill ffmpeg-mooch10
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ffmpeg
Source: https://github.com/mooch10/mochiptos/tree/main/frontend/.agents/ffmpeg
Command: npx skills add https://github.com/mooch10/mochiptos --skill ffmpeg-mooch10

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Media files often arrive in the wrong format, size, or duration for web playback, Remotion compositions, or social platform uploads, and manually figuring out FFmpeg flags is error-prone. ## Core Features & Use Cases - Format Conversion & Compression: Convert GIF to MP4, transcode audio between MP3/M4A/WAV, and compress video with CRF and preset controls. - Editing Operations: Trim, concatenate, speed up or slow down footage, add fades, and extract audio tracks. - Remotion & Platform Export: Prepare 1080p/30fps Remotion-ready assets and export optimized variants for YouTube, Twitter/X, LinkedIn, and web embeds. - Use Case: You recorded a 60-second product demo that must fit a 20-second Remotion scene; use the speed-adjustment commands to pre-process it to 3x with synced audio, then export platform-specific versions. ## Quick Start Ask the assistant to convert your GIF screen recording into a Remotion-compatible MP4 and compress it for web playback.

Frequently Asked Questions about ffmpeg

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

FAQPage Schema
How do I convert a GIF to MP4 for web playback?▼

Use ffmpeg with -movflags faststart, -pix_fmt yuv420p, and a scale filter forcing even dimensions: scale=trunc(iw/2)*2:trunc(ih/2)*2. This produces an H.264-compatible MP4 that streams in browsers and works with Remotion.

How to speed up a video with FFmpeg without losing audio sync?▼

Use filter_complex combining setpts for video and atempo for audio, for example setpts=0.5*PTS with atempo=2.0 for 2x speed. For speeds above 2x, chain multiple atempo filters since each is limited to the 0.5-2.0 range.

When should I use FFmpeg instead of Remotion playbackRate?▼

Use FFmpeg for extreme speeds above 4x or below 0.25x, variable speed changes over time, or when perfect audio sync is required. Remotion playbackRate only supports constant speed and evaluates frames independently.

Why does FFmpeg fail with height not divisible by 2?▼

The H.264 codec requires even dimensions, so odd-width or odd-height sources fail. Fix it by adding a scale filter that truncates to even values: scale=trunc(iw/2)*2:trunc(ih/2)*2.

What CRF value should I use for video compression?▼

CRF 18 suits archive masters, 20-22 fits production use, 23 is the default for general delivery, and 28 or higher works for quick drafts. Lower CRF means better quality and larger files.