Tag: #ffmpeg
31 articles
MKV to MP4: The Complete Remux Guide — Zero Quality Loss with -c copy
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.
Fit Any Video Under Discord's 10 MB / 25 MB / 500 MB Cap — 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.
Complete Guide to AV1 Encoding with FFmpeg — libsvtav1 / libaom-av1
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 Multiple Files — Shell Script, GNU Parallel, and 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.
Live Streaming with FFmpeg via RTMP — YouTube Live, Twitch & More
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.
FFmpeg Join Videos — concat demuxer and concat filter Complete Guide
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.
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 Compress Video (MP4) — CRF, Bitrate, and Preset Selection 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%.
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 Extract Audio from Video — MP3, AAC, WAV, and FLAC Commands
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 Change Frame Rate — -r vs fps Filter: Which to Use and When
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 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 Error Reference — 10 Common Errors Fixed with Root Cause Analysis
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.
Extracting Thumbnails from Video — -vframes and the thumbnail Filter
Extract video thumbnails with FFmpeg: -vframes for a specific timestamp, thumbnail filter for best-frame selection, resolution scaling, and PNG vs JPG output.
HLS Segmenting — Generate Segments and Playlists for Web Streaming
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.
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.
FFmpeg Convert Video to GIF — High-Quality, Small File Size with palettegen + paletteuse
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.
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 iPhone Portrait Mode and 90° / 180° Rotation
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.
Changing Resolution and Preserving Aspect Ratio — Complete Guide to the scale Filter
Resize video with FFmpeg scale filter: aspect ratio auto-preservation (-1/-2), relative scaling, max resolution capping, and letterboxing with the pad filter.
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 Burn Subtitles Into Video — SRT / ASS Hard Sub Complete Guide
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.
Creating Video from Sequential Images — How to Make Slideshows and Timelapses
Create video slideshows and timelapses with FFmpeg: sequential PNG/JPG to video, single image looping, frame-drop timelapse, and pix_fmt yuv420p compatibility.
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.
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.
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.
Add Watermark and Logo Overlay to Video — FFmpeg overlay Filter Complete 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? Free Tool for Video Conversion, Compression, and More — 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.