FFmpeg Cookbook
Remove Audio from Video with FFmpeg — Mute a Track Losslessly
Strip or mute the audio track of a video with FFmpeg. Use -an to drop sound while copying video losslessly, the -map approach to keep specific streams, and learn how this differs from extracting audio. Practical guide with troubleshooting and FAQ.
Replace Audio in a Video with FFmpeg — Swap the Soundtrack
Replace a video's audio with a new audio file using FFmpeg. Map video from one input and audio from another, keep the video lossless, use -shortest to match lengths, and handle the remove-then-add workflow. Practical guide with troubleshooting and FAQ.
Stream Mapping with -map — Selecting Video, Audio, and Subtitle Streams
How to explicitly select streams with FFmpeg's -map option. Practical commands for extracting multiple audio tracks, subtitles, and specific streams, plus negative mapping and metadata copying.
Add, Select, and Remove Multiple Audio Tracks — Managing Multilingual Audio with FFmpeg
How to create and edit video files with multiple audio tracks using FFmpeg. Learn to add, select, and remove audio tracks, set language metadata, mark a default track, and understand the differences between MKV and MP4.