Common audio surgery
Three operations come up constantly: pull the audio out of a video as MP3/AAC, strip audio entirely (silent video), and replace audio with a different track.
Extract — to MP3, M4A, or WAV
For lossy podcast-style use, -c:a libmp3lame -q:a 2 gives a high-quality VBR MP3 (~190 kbps). For lossless archive use, copy if the source audio is already AAC/MP3 (-c copy) — no quality loss. For WAV (uncompressed, big), -c:a pcm_s16le.
Remove — silent video
-an drops the audio stream entirely. Useful for stock footage, overlay clips, or when you'll add new audio in an editor.
Replace — overdub
Take video from one file, audio from another. Two inputs, two -maps. Common for tutorial videos where you record screen capture silent then dub voiceover.