The format name is the short name of the container format of a media file. It tells you what the FFmpeg software calls the format of your file. A container is a file format that holds one or more audio or video streams and metadata, so they can be played back together.
The Format Long Name is a second field that describes the same format in easier words. The FFmpeg program ffprobe reports the 2 fields as format_name and format_long_name.
What the values look like
FFmpeg reads each kind of file with a part called a demuxer. The format name is the short name of that demuxer, and the long name is its description. One demuxer can read several related formats, so the format name can be a list separated by commas.
These pairs come from the FFmpeg source code, with the format name first:
mov,mp4,m4a,3gp,3g2,mj2andQuickTime / MOVfor MP4, MOV, and M4A filesmatroska,webmandMatroska / WebMfor MKV and WebM filesmp3andMP2/3 (MPEG audio layer 2/3)for MP3 audiowavandWAV / WAVE (Waveform Audio)for WAV audiompegandMPEG-PS (MPEG-2 Program Stream)for an MPEG-2 program stream, which can end in .mpgpng_pipeandpiped png sequencefor a PNG image
Some FFmpeg builds leave out the long names. The long name can then show as unknown or be missing.
Where the value comes from
The file does not store its format name. FFmpeg reads the start of the file and gives each format it knows a score. It picks the format with the highest score, and the probe score field shows that score.
The file extension matters only when this test gives a weak answer or when a format has no test. The FFmpeg documentation warns that guessing a format from the extension is not reliable enough.
Why an MP4 file can show QuickTime
An MP4 file shows the format name mov,mp4,m4a,3gp,3g2,mj2 and the long name QuickTime / MOV. This is normal and does not mean that the file is a MOV file. FFmpeg uses one demuxer for 6 related formats, so the same values appear on MOV, MP4, M4A, 3GP, 3G2, and MJ2 files.
These formats are related because MP4 comes from the ISO base media file format, and that format comes from the QuickTime file format. MP4 and QuickTime are related, but they have differences, so one cannot always replace the other.
These files can also have a major_brand tag. FFmpeg treats the value qt as a QuickTime file and other values as an ISO base media file.
Which files carry it
The format name appears on files that FFmpeg can open as media: video, audio, and many image formats. If ffprobe cannot recognize a file as a multimedia file, it returns an error and there is no format name. For these files, look at the File Type field instead.
FFmpeg also gives a format name to files without a conventional container. An MP3 file, for example, is a stream of audio frames, often with ID3 tags.
Why it matters for your file
A high score takes priority over the file name, so the format name usually shows the container that the file really uses. If a file name ends in .mp3 and the format name is wav, the file starts with a WAV header. The file name then does not fit the content.
The format name does not always tell you which codecs the file uses. The Codec Long Name describes how one stream inside the container is encoded, so each stream has its own.
An MP4 file, for example, can hold video in AVC (H.264), AV1, or VP9, and audio in AAC, FLAC, or Opus. The same format name can therefore appear on files with different codecs.