ffmpegProcess video and audio with correct codec selection, filtering, and encoding settings.
Install via ClawdBot CLI:
clawdbot install ivangdavila/ffmpegRequires:
-ss BEFORE -i: fast seek, may be inaccurate—starts from nearest keyframe-ss AFTER -i: frame-accurate but slow—decodes from start-ss 00:30:00 -i input.mp4 -ss 00:00:05—fast seek then accurate trim-avoid_negative_ts make_zero to fix timestamp issues-map 0:v:0 -map 0:a:1—first video, second audio-map 0:a—all audio streams-map 0 -c copy—all streams, no re-encoding-map 0 -map -0:s—all except subtitles-preset: ultrafast to veryslow—slower = smaller file at same quality-crf and -b:v mutually exclusive—use one or the other-c copy—fast, no quality loss-vf "scale=1280:720"—single filter chain-filter_complex "[0:v]scale=1280:720[scaled]"—named outputs for routing-vf "scale=1280:720,fps=30"—comma-separatedscale=1280:720 or scale=-1:720 for auto-width maintaining aspectcrop=640:480:100:50—width:height:x:y from top-leftfps=30—change frameratetrim=start=10:end=20,setpts=PTS-STARTPTS—setpts resets timestampsoverlay=10:10—position from top-left-ar 48000—standard for video-ac 2—stereo-c:a aac -b:a 192k—AAC at 192kbps-filter:a loudnorm—EBU R128 loudness normalization-vn -c:a copy output.m4a—no video, copy audio-f concat -safe 0 -i list.txt -c copy-filter_complex "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1"file 'video1.mp4' per line—escape special characters-vf "subtitles=subs.srt"—cannot be turned off-c:s mov_text (MP4) or -c:s srt (MKV)—user toggleable-map 0:s—include subtitle streams-map 0:s:0 subs.srt—first subtitle to file-hwaccel cuda or -hwaccel videotoolbox (macOS)-c:v h264_nvenc (NVIDIA), -c:v h264_videotoolbox (macOS)-c copy when not re-encoding—defaults to re-encode, slow and lossy-ss after -i for long videos—takes forever seeking-async 1 or -af aresample=async=1-c copy + -vf = erroroutput.mp4 without -c:v uses default, may not be H.264Generated Mar 1, 2026
Content creators need to quickly trim, resize, and re-encode videos for platforms like TikTok, Instagram, and YouTube. This involves using fast seeking for rough cuts, scaling to platform-specific resolutions, and encoding with optimal quality/size balance using CRF settings.
Training departments produce long-form videos that require precise editing, such as cutting specific segments, adding subtitles for accessibility, and concatenating multiple modules. Accurate seeking and subtitle muxing are essential for professional results.
Media companies need to digitize and archive legacy video footage by converting formats, extracting audio tracks, and applying normalization filters. This requires handling various codecs and containers while preserving quality through copy operations.
Educational platforms create courses by combining screen recordings, webcam footage, and audio narration. This involves concatenating different video sources, syncing audio with video using async settings, and encoding for streaming delivery.
Independent filmmakers use advanced filtering for color grading, cropping to aspect ratios, and applying complex overlays. They leverage filter chains and hardware acceleration for efficient processing of high-resolution footage.
Offer a cloud-based service where users upload videos and apply FFmpeg operations through a web interface. Monetize via subscription tiers based on processing minutes, output quality, and advanced features like batch processing.
Provide an API that wraps FFmpeg functionality for integration into other applications like CMS platforms or mobile apps. Charge based on API call volume, with custom pricing for enterprise clients needing high-throughput processing.
Develop a user-friendly desktop app that simplifies complex FFmpeg commands through presets and visual workflows. Use a freemium model where basic features are free, but advanced options like hardware acceleration or batch processing require a one-time purchase or subscription.
đź’¬ Integration Tip
Integrate by exposing common operations as simple API endpoints or GUI buttons, while allowing advanced users to input raw FFmpeg commands for flexibility. Always validate command syntax to prevent errors.
Generate spectrograms and feature-panel visualizations from audio with the songsee CLI.
Best practices for Remotion - Video creation in React
Best practices for Remotion - Video creation in React
Long-form AI video production: the frontier of multi-agent coordination. CellCog orchestrates 6-7 foundation models to produce up to 4-minute videos from a single prompt — scripted, filmed, voiced, lipsync'd, scored, and edited automatically. Create marketing videos, product demos, explainer videos, educational content, spokesperson videos, training materials, UGC content, news reports.
HeyGen AI video creation API. Use when: (1) Using Video Agent for one-shot prompt-to-video generation, (2) Generating AI avatar videos with /v2/video/generat...
Complete toolkit for programmatic video creation with Remotion + React. Covers animations, timing, rendering (CLI/Node.js/Lambda/Cloud Run), captions, 3D, charts, text effects, transitions, and media handling. Use when writing Remotion code, building video generation pipelines, or creating data-driven video templates.