ffmpeg

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

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill ffmpeg-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ffmpeg
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/ffmpeg
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill ffmpeg-zamansepeti43

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Preparing video and audio assets for Remotion projects and social platforms requires many precise FFmpeg commands, and getting flags wrong leads to broken playback, odd dimensions, or oversized files. ## Core Features & Use Cases - Format Conversion & Compression: Convert GIF to MP4, transcode audio formats, and compress video with CRF and preset controls. - Editing Operations: Trim, concatenate, speed up or slow down footage, add fades, and extract audio tracks. - Platform-Ready Exports: Generate optimized outputs for YouTube, Twitter/X, LinkedIn, and web embeds from a Remotion master render. - Use Case: You recorded a 60-second product demo that must fit a 20-second Remotion scene. Use this Skill to compute the 3x speed factor and produce a properly encoded MP4 with synced audio. ## Quick Start Use the ffmpeg skill to convert my screen recording into a 1080p 30fps MP4 ready for Remotion.

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 Remotion?

Run 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 plays reliably in browsers and Remotion compositions.

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, variable speed changes over time, or when a demo must fit exact voiceover timing. Remotion playbackRate only supports constant rates and cannot interpolate speed across frames.

Why does FFmpeg fail with height not divisible by 2?

H.264 encoding requires even dimensions, so odd-width or odd-height sources fail. Fix it by adding the scale filter scale=trunc(iw/2)*2:trunc(ih/2)*2, which rounds both dimensions down to the nearest even number.

What CRF value should I use for web video compression?

CRF 23 is the default balance of quality and size. Use 18-20 for production masters, 23-25 for web delivery, and 28 or higher for quick drafts, pairing with a faster preset when encoding speed matters.