The world's shortest FFmpeg command
Format conversion is so common that FFmpeg has an absurdly forgiving default behavior: hand it an input and an output, and it'll guess sensible codecs based on the output extension. ffmpeg -i input.mov output.mp4 just works. The output extension drives container choice; the container drives default codec choice.
What FFmpeg picks when you don't specify
For an .mp4 output, default video is H.264 (libx264) and default audio is AAC. For .webm, defaults are VP9 + Opus. For .mkv, FFmpeg copies whatever the source had if compatible, otherwise re-encodes to the same defaults as MP4. The defaults are reasonable. They are not optimal. If you care about file size or quality, pass explicit codec/quality flags — Track 3 covers all of them.
Common conversions that come up weekly
MOV → MP4 (Final Cut export to web-safe), MKV → MP4 (Plex source to phone), WebM → MP4 (yt-dlp output to a file your editor opens), AVI → MP4 (decade-old footage to modern container). All of these are one line.