video-edit

Edits videos locally with ffmpeg commands for trimming, resizing, compressing, and converting.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Performing common video editing tasks like trimming clips, resizing for social platforms, or compressing large files normally requires heavy GUI software or memorizing complex ffmpeg syntax. This Skill provides ready-to-run ffmpeg and ffprobe commands for the most frequent video operations. ## Core Features & Use Cases - Trim, Concat & Speed Control: Cut segments, join multiple clips, and adjust playback speed with stream copy or re-encoding options. - Platform-Ready Resizing: Built-in scale and pad presets for TikTok, YouTube, Instagram, Square, and Twitter/X aspect ratios. - Audio & Overlay Operations: Extract or replace audio tracks, mix audio, and add image watermarks with position and opacity control. - Compress & Convert: CRF-based or target-size compression, plus format conversion including high-quality two-pass GIF creation. - Use Case: You recorded a 10-minute screen capture and need a 60-second vertical clip for TikTok with a logo watermark. Use this Skill to trim the segment, resize to 1080x1920 with padding, and overlay your logo in one workflow. ## Quick Start Use the video-edit skill to trim my recording.mp4 from 30 seconds to 90 seconds and resize it for TikTok.

Frequently Asked Questions about video-edit

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

FAQPage Schema
How do I trim a video with ffmpeg without re-encoding?

Use ffmpeg with -ss and -to before the input and -c copy to cut segments via stream copy, which is very fast. Note that cuts land on keyframes, so for frame-accurate trimming re-encode with -c:v libx264 instead.

How to resize a video for TikTok or Instagram with ffmpeg?

Use the scale filter with force_original_aspect_ratio=decrease followed by pad to reach exact dimensions like 1080x1920 for TikTok or 1080x1350 for Instagram. This preserves aspect ratio and adds centered black bars.

Does ffmpeg speed change work beyond 2x or below 0.5x?

The atempo audio filter only supports values between 0.5 and 2.0. For factors outside that range, chain multiple atempo filters such as atempo=2.0,atempo=2.0 for 4x speed, while setpts handles any video factor.

Why does ffmpeg concat fail or produce broken output?

Concat with -c copy requires all input clips to share the same codec, resolution, and frame rate. If clips differ, re-encode during concatenation with -c:v libx264 -c:a aac to normalize them.

How do I compress a video to a specific file size with ffmpeg?

Calculate the target video bitrate as (target_MB * 8 * 1024) / duration_seconds minus the audio bitrate, then encode with -b:v, -maxrate, and -bufsize. For simpler quality-based compression, use -crf 23 with a preset.