FFmpeg Cookbook
JA
Video Won't Play or Has No Sound on Windows
Why an MP4 won't play on Windows, or plays with sound only, and how to fix it. Checked by running 18 clips in different formats through Windows' playback system and Edge.
Convert HEVC/H.265 to H.264 with FFmpeg — Compatibility
Convert HEVC (H.265) video to H.264 with FFmpeg for old players, video editors, and Windows. CRF quality control, 10-bit to 8-bit yuv420p fixes, copy-audio shortcut, and why H.264 plays everywhere.
AVI to MP4 with FFmpeg — DivX/Xvid/MJPEG to H.264/AAC
Convert old AVI files (DivX, Xvid, MJPEG, MP3 audio) to MP4 with FFmpeg. Re-encode to H.264/AAC with CRF, learn when stream-copy works versus when you must re-encode, add faststart for web playback, plus troubleshooting and FAQ.
FFmpeg: Unknown encoder 'libx264' — Causes and Fixes
Fix the FFmpeg error "Unknown encoder 'libx264'". Learn why a build ships without libx264, how to confirm with ffmpeg -encoders and -codecs, how to install a full build per OS, and which alternative encoders to use when x264 is unavailable.
WebM to MP4 with FFmpeg — VP8/VP9 + Opus to H.264/AAC
Convert WebM (VP8/VP9 video, Opus/Vorbis audio) to MP4 with FFmpeg. Re-encode to H.264/AAC with CRF, when VP9 stream-copy is possible, faststart for web playback, quality/size trade-offs, and a full troubleshooting and FAQ section.
VideoToolbox Hardware Encoding (macOS / Apple Silicon) — GPU Transcoding with FFmpeg
How to do GPU hardware encoding with FFmpeg using macOS VideoToolbox. Covers the basics of h264_videotoolbox and hevc_videotoolbox, Apple Silicon support, bitrate and quality options, and how to fix common errors.
VAAPI Hardware Encoding on Linux — Accelerate FFmpeg with Intel and AMD GPUs
How to do GPU hardware encoding in FFmpeg using VAAPI on Linux. Covers the basic setup for Intel iGPUs and AMD GPUs, h264_vaapi / hevc_vaapi / av1_vaapi command examples, prerequisites, and common pitfalls.
NVENC (NVIDIA GPU) Hardware Encoding — Fast GPU Conversion with FFmpeg
How to perform GPU hardware encoding with NVIDIA NVENC in FFmpeg. Covers h264_nvenc and hevc_nvenc basics, preset and quality options, CPU comparison, and error fixes.
HandBrake or Browser Video Compression? Choose by the Job
Decide whether a browser compressor is enough or HandBrake better fits your workflow. Compare batch handling, output formats and practical limits, then check quality and file size using your own short source.
Size a Video for Discord with FFmpeg: MB Math and Output Checks
Calculate a video bitrate from the limit shown in Discord. Understand decimal MB, audio overhead, a 90-second example, two-pass encoding and what to check when a smaller file still will not send.
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.
Complete Guide to Converting Video to MP4 (H.264/AAC) with FFmpeg
Convert any video to MP4 with FFmpeg: H.264 (libx264) + AAC, best CRF settings, -preset guide, stream copy shortcut. The complete ffmpeg video-to-mp4 command reference.