FFmpeg Cookbook
HandBrake Alternative — Compress Video Online Without Installing
Compare HandBrake with FFmpeg Cookbook's browser-based video compressor. Same H.264/H.265 quality, no install, no upload, free forever — plus learn the equivalent FFmpeg commands behind every setting.
Add Background Music with FFmpeg ? amix BGM Guide
How to add BGM to a video with FFmpeg. Covers amix mixing, volume balance, length adjustment (apad/aloop), fade in/out, and auto-ducking with copy-paste commands and primary sources.
Change Video Speed with FFmpeg ? Audio Sync Guide
Speed up or slow down video with FFmpeg using setpts and atempo. Covers 0.25x–10x ratios, audio-sync without drift, pitch-preserving rubberband, variable-speed sections, and smooth slow-mo via minterpolate.
Remove Black Bars with FFmpeg ? cropdetect Guide
Auto-detect black bars with FFmpeg cropdetect, then strip them with the crop filter. Covers letterbox, pillarbox, even-dimension fixes, non-pure-black bars, and the reverse pad workflow.
Blur Faces in Video with FFmpeg ? Mosaic Area Guide
Apply mosaic or blur to a specific region of a video with FFmpeg. Covers crop+overlay sandwich pattern, multi-region, animated tracking, face/license-plate privacy, and quality preservation.
FFmpeg Screen Recording ? Windows, macOS, Linux
How to record your desktop screen with FFmpeg on every OS. Covers Windows gdigrab/ddagrab, macOS avfoundation, Linux x11grab, capturing system audio, and file-size optimization with working commands.
FFmpeg: Lossless Concatenation with the concat Demuxer
Concatenate multiple video files losslessly using FFmpeg's concat demuxer. Learn how to build concat.txt, the same-codec requirement, audio concatenation, and integrity checks — with links to primary sources.
Color Correction with FFmpeg — curves / eq / colorbalance Filters
Correct brightness, contrast, saturation, and color casts in video with FFmpeg's curves, eq, and colorbalance filters. Covers when to pick each filter, exposure tweaks, and white-balance adjustments.
Low-Latency HLS with FFmpeg ? LL-HLS Setup
Generate Apple-spec low-latency HLS streams with FFmpeg. Covers hls_time, hls_flags, partial segments, EXT-X-SERVER-CONTROL, player compatibility, and measured latency — with working commands and a glass-to-glass latency comparison table.
Discord Video Compression with FFmpeg ? Bitrate Math
Compress video to fit Discord's upload cap (Free 10 MB, Nitro Basic 25 MB, Boost Lv2 50 MB, Nitro 500 MB). Includes the bitrate reverse-calc formula, 2-pass encoding, resolution trade-offs, and a Windows drag-and-drop .bat.
iPhone MOV to MP4 — The Complete Guide with the hvc1 Tag Fix
Make iPhone-captured HEVC .mov files play on Windows, Discord, Twitter, and the rest of the world. Lossless remux, hvc1 tag explained, H.264 re-encode for older players, batch conversion, and iPhone camera-format settings — covered with FFmpeg.
MKV to MP4 Remux ? No Quality Loss with FFmpeg
Convert MKV to MP4 the fast, lossless way using FFmpeg remux. Remux vs. re-encode compared, the three typical failure modes (subtitle format, non-standard audio, AV1/VP9), movflags +faststart explained, and a practical audio-only re-encode recipe.
TS to MP4 with FFmpeg ? Lossless Remux and CM Cuts
Convert TS/m2ts files from Japanese terrestrial TV recordings to MP4 with FFmpeg. Lossless remuxing with -c copy, PCR wraparound fixes, CM cutting, ARIB subtitle handling, BDAV extraction, and AACS errors explained. A practical guide for PT3/TVTest users.
Green-Screen Compositing with the FFmpeg chromakey Filter
Use FFmpeg's chromakey filter to composite green-screen or blue-screen footage. Covers key color, similarity, and blend tuning, compositing over a background video, and spill suppression.
Applying Box Blur with the FFmpeg boxblur Filter
Learn how to apply a uniform box blur to video with FFmpeg's boxblur filter. Covers radius and iteration count, independent control of luma and chroma, and privacy-masking techniques.
FFmpeg No Sound Output ? Stream Mapping Fixes
All the reasons your FFmpeg-converted video or audio plays silent — missing audio streams, -an, incompatible codecs, sample-rate and channel-count issues — with diagnostics and fixes for each.
FFmpeg Beginner's Guide: Installation and Basic Commands
A beginner-friendly introduction to FFmpeg — what it is, how to install it, and the basic command syntax. Includes task-oriented links to conversion, audio extraction, and GIF creation tools.
FFmpeg Codec Errors ? Unknown Encoder Fixes
Fix FFmpeg errors like 'Unknown encoder', 'Encoder not found', and 'codec not currently supported'. Covers build flags, alternative codecs, and licensing issues.
FFmpeg H.265/HEVC Errors ? libx265 Fixes
Fix H.265/HEVC encoding failures in FFmpeg. Covers alternatives when libx265 is unavailable, profile and level settings, the hvc1 tag for Apple Silicon, and explicit Main profile specification.
FFmpeg No Such File Error ? Paths and Spaces
Fix FFmpeg's 'No such file or directory' error. Covers the four common causes — path spaces, relative paths, extension mismatches, and glob expansion — with quick commands and verification steps.
MP4 vs WebM vs MOV vs MKV ? Format Guide
A side-by-side comparison of MP4, WebM, MOV, and MKV — characteristics, use cases, and codec support. Includes FFmpeg conversion commands and recommended formats by scenario.
FFmpeg YouTube Encoding Settings ? 2026 Guide
Optimal FFmpeg encoding settings for YouTube uploads. A complete guide to CRF, bitrate, resolution, frame rate, and audio settings for H.264 and H.265.
ffmpeg.wasm SharedArrayBuffer Error ? COOP/COEP Fix
Fix 'SharedArrayBuffer is not defined' and 'Cannot use SharedArrayBuffer' errors when using ffmpeg.wasm. Covers COOP/COEP headers, coi-serviceworker, and configurations for common servers.
Detect Black Frames — Find Scene Boundaries with blackdetect
Use FFmpeg's blackdetect filter to locate runs of black frames in a video. Covers black_min_duration and luminance thresholds, plus applications to commercial breaks and chapter detection.
AV1 Encoding with FFmpeg ? SVT-AV1 and libaom Guide
Learn how to encode AV1 video with FFmpeg. Covers libsvtav1 (fast) vs libaom-av1, CRF mode, 2-pass encoding, comparison with H.264/H.265, and browser compatibility.
FFmpeg Batch Convert ? Scripts, Parallel, Error Handling
Automate FFmpeg batch conversions: for loops, skip-already-converted logic, separate output directories, GNU parallel for multi-core processing, xargs, structured error handling with logs, Windows batch files, five error fixes, and five FAQ answers.
Convert HDR to SDR with FFmpeg — Tone Mapping Complete Guide
Learn how to convert HDR (HDR10/HLG) video to SDR with FFmpeg. Covers zscale tone mapping, color space conversion (BT.2020→BT.709), pixel format conversion, and YouTube upload settings.
FFmpeg RTMP Live Streaming ? YouTube and Twitch
How to stream live video with FFmpeg using RTMP. Covers pushing to YouTube Live and Twitch, encoding settings, looping a file for broadcast, low-latency settings, and common errors.
Audio Fade-In and Fade-Out with the afade Filter
Create smooth audio fades in FFmpeg with the afade filter. Covers start time, duration, curve types, applying fades to video audio tracks, and combining fade-in with fade-out in one command.
Automatically Duck BGM Under Narration with sidechaincompress
Implement audio ducking in FFmpeg with the sidechaincompress filter. Automatically lower background music whenever narration plays, with tunable threshold, ratio, attack, and release.
Fix Audio Delay Manually with adelay and -itsoffset
Fix audio/video sync by applying a manual offset in FFmpeg. Add audio delay with the adelay filter, shift video or audio timestamps with -itsoffset, and measure the delay with ffprobe.
FFmpeg Noise Gate ? Remove Background Noise with agate
Use FFmpeg's agate filter to apply a noise gate that removes background hum and tape hiss during silence. Covers threshold, attack, release, and range parameters, plus practical podcast and voice-over settings.
FFmpeg astats ? Measure RMS, Peak, and DC Offset
Learn how to measure audio statistics with FFmpeg's astats filter — RMS and peak levels, DC offset, dynamic range, per-channel measurements, log output, and how it compares to volumedetect.
Audio Format Conversion — WAV, MP3, AAC, and FLAC
Convert audio formats with FFmpeg: WAV, MP3, AAC, FLAC. Covers -c:a encoder, -b:a vs -q:a quality control, and -ar sample rate conversion.
FFmpeg Fix Audio Sync — -itsoffset, adelay, and -async Explained
Fix audio-video sync drift (lip sync issues) with FFmpeg: -itsoffset for lossless timestamp shift, adelay filter for millisecond-precise audio delay, -async for auto-correction, measuring drift with ffprobe, five error fixes, and five FAQ answers.
FFmpeg Command Basic Syntax — Input, Filter, and Output Order
Master FFmpeg command syntax: global options, -i input, -c:v/-c:a stream selection, automatic format detection, and how to avoid common ordering mistakes.
FFmpeg Frame Rate ? -r vs fps Filter Guide
Change video frame rates with FFmpeg: fps filter vs -r option comparison and when each is correct, checking fps with ffprobe, 60→30→24fps conversion examples, timelapse creation, VFR handling, five error fixes, and five FAQ answers.
FFmpeg Error Reference ? 10 Common Fixes
Fix common FFmpeg errors fast: Unknown encoder, moov atom not found, height not divisible by 2, Invalid data found when processing input, and more. Each error entry shows the exact message, root cause, and the fix command — searchable quick reference.
FFmpeg Compress Video ? CRF, Bitrate, Preset Guide
Compress MP4 and MOV video with FFmpeg: CRF mode vs bitrate mode explained, H.264 vs H.265 comparison table, preset speed/size benchmarks, resolution downscaling, audio compression, and 2-pass encoding. Reduce file size by 50–80%.
MPEG-DASH Segmenting with FFmpeg — Build Adaptive Streaming
Generate MPEG-DASH segment files and MPD manifests with FFmpeg. Covers multi-bitrate adaptive streaming (ABR), segment duration, and the difference between live and VOD — with primary sources.
FFmpeg Deinterlace Video ? yadif Guide
Use FFmpeg's yadif filter to convert interlaced (combed) video to progressive scan. Covers yadif's mode and parity options, comparison with fieldmatch/decimate, and tips for TV recordings and DV camera footage.
FFmpeg Join Videos ? concat Demuxer vs Filter
Join and concatenate videos with FFmpeg: concat demuxer for fast no-re-encode merging of same-format files, concat filter for different formats and resolutions. concat.txt syntax, filter_complex approach, audio track alignment, and five common error fixes.
FFmpeg Extract Audio ? MP3, AAC, WAV, FLAC
Extract audio from video with FFmpeg: lossless copy (-c:a copy) vs re-encoding and when to use each, MP3/AAC/FLAC/WAV format-specific commands, multi-track selection with -map, time-range extraction, batch processing, and five common error fixes.
FFmpeg Extract Thumbnails ? vframes and thumbnail
Extract video thumbnails with FFmpeg: -vframes for a specific timestamp, thumbnail filter for best-frame selection, resolution scaling, and PNG vs JPG output.
FFmpeg Video to GIF ? palettegen Quality Guide
Convert video to high-quality GIF with FFmpeg's two-pass palettegen + paletteuse pipeline. Covers fps/resolution/dithering comparison tables, file size optimization, trimming a clip before GIF conversion, batch processing, and five common error fixes.
FFmpeg HLS Segmenting ? Web Streaming Guide
Generate HLS segments and m3u8 playlists with FFmpeg for HTTP Live Streaming. Covers hls_time, hls_list_size, hls_segment_filename, and adaptive bitrate basics.
The Difference and Role of ffmpeg / ffprobe / ffplay
Understand the three FFmpeg CLI tools: ffprobe for media inspection, ffmpeg for conversion and encoding, ffplay for playback and testing. When to use each.
FFmpeg Installation Guide for Windows / macOS / Linux
Install FFmpeg on Windows, macOS, and Linux: gyan.dev builds, Homebrew, apt/dnf. Configure PATH and verify with ffmpeg -version. Official sources only — get started in minutes.
Loudness Normalization — EBU R128 with the loudnorm Filter
Normalize audio to EBU R128 standard with FFmpeg loudnorm filter. Single-pass and two-pass measurement modes. Key parameters: I (integrated LUFS), TP, and LRA.
FFmpeg Rotate Video ? Fix Phone Orientation
Rotate and flip video with FFmpeg: transpose filter values (0–3), hflip/vflip for mirror effects, fixing iPhone and Android portrait-mode videos that appear sideways, metadata-only rotation vs re-encoding comparison, five error fixes, and five FAQ answers.
FFmpeg Scale Filter ? Resize Without Distortion
Resize video with FFmpeg scale filter: aspect ratio auto-preservation (-1/-2), relative scaling, max resolution capping, and letterboxing with the pad filter.
FFmpeg Scene Detection ? Find Cuts Automatically
Detect scene changes in video using FFmpeg's scdet and select filters. Covers tuning the detection threshold, reading scene-change timestamps, and extracting thumbnails at every cut.
FFmpeg Image Sequence to Video ? Slideshow Guide
Create video slideshows and timelapses with FFmpeg: sequential PNG/JPG to video, single image looping, frame-drop timelapse, and pix_fmt yuv420p compatibility.
FFmpeg Subtitles ? Burn SRT/ASS into Video
Burn subtitles permanently into video with FFmpeg: subtitles filter for SRT/VTT, ass filter for styled ASS/SSA, font and position customization, hard sub vs soft sub comparison, libass installation, and five common error fixes.
How to Trim and Cut Video with FFmpeg — Complete -ss/-to/-t Guide
Trim video precisely with FFmpeg. Learn -ss/-to/-t options, input-side vs output-side -ss trade-offs, stream-copy fast cutting, frame-accurate re-encoding, batch trim scripts, and how to fix the keyframe artifact problem.
Two-Pass Encoding — Precise Bitrate and File Size Control
FFmpeg two-pass encoding for precise bitrate and file size control. Covers pass 1 analysis, pass 2 encoding, passlogfile option, and H.264/H.265 examples.
Video Format Conversion Basics (MP4, MKV, WebM, MOV)
Convert video formats MP4, MKV, WebM, MOV with FFmpeg: container vs codec differences, when -c copy works vs fails, and ffprobe for codec inspection.
Video Stabilization — vidstabdetect and vidstabtransform
Stabilize shaky video with FFmpeg vidstab filters: vidstabdetect + vidstabtransform two-pass pipeline, smoothing strength, crop modes, and libvidstab setup.
FFmpeg Watermark Overlay ? Logo and Text Guide
Add watermarks and logos to video with FFmpeg's overlay filter. Covers position variables, transparent PNG alpha support, opacity control, time-limited display, scrolling animation, multiple logos, and five common error fixes.
What Is FFmpeg? Video Conversion Tool Explained
Beginner's guide to FFmpeg: what it does, codec vs container differences, video conversion, compression, audio extraction, GIF creation, subtitle burning, the ffmpeg/ffprobe/ffplay tools, libav* libraries, and five FAQ answers.