NB Streams is the number of streams inside a media file. NB is short for number, so a value of 2 means that the file holds 2 streams. The field NB Frames uses the same short form for the number of frames in one stream.
A media file is a container that stores one or more streams together with metadata. In this field, a stream is not an online video or a live broadcast. A stream is one part of the content, such as the picture or the sound.
What counts as a stream
The field comes from FFmpeg, a software project that reads and writes media files. FFmpeg knows 5 types of stream, and NB Streams counts all of them together:
video: moving pictures, and still pictures such as cover artaudio: sound, for example a second language or a commentarysubtitle: text for the viewer, such as subtitles in one languagedata: other information that is not picture, sound, or subtitlesattachment: a whole file in the container, such as a font for the subtitles
NB Streams does not name the types. To see the type of each stream, look at its Codec Type.
What the values look like
The value is a whole number with no unit. The ffprobe file reader of the FFmpeg project prints a line such as nb_streams=3. The number depends on what the file holds:
1: one stream only, such as a FLAC song with no picture2: a video with one picture stream and one sound stream, or a song with one attached picture3or more: a video with extra sound streams, subtitle streams, or attached files
Each stream also has an index number, starting at 0. So a file with 3 streams has the indexes 0, 1, and 2.
The file format can limit the number and the types of streams. For example, FFmpeg writes exactly 1 audio stream to a FLAC file, and it can add pictures. In contrast, the MKV specification shows an example file with 7 audio streams, which it calls tracks.
Which files carry it
You see NB Streams in audio and video files that FFmpeg can open, such as MP4, MOV, AVI, MKV, MP3, FLAC, and WAV. The ffprobe reader also opens image files. FFmpeg normally treats one image as one video stream, so ffprobe prints 1.
For some photos, ffprobe prints more than 1 stream. A HEIC photo can store its picture as a grid of separate tiles. FFmpeg can list each tile as a stream, so a grid of 2 by 2 tiles counts as at least 4 streams.
FFmpeg has no reader for document formats such as PDF and DOCX. So documents normally do not report this field.
Where the value comes from
The file itself does not contain a field called NB Streams. FFmpeg opens the file, finds each stream, and adds the stream to a list. NB Streams is the number of items on that list.
Why it matters
NB Streams gives you a quick check of what a file holds. A video file with a value of 1 normally lacks either the picture or the sound.
A value higher than you expect can point to extra languages, subtitles, pictures, or attached files. A player normally selects only some of these streams, so you may not notice the others during playback.
The value can also change when you convert a file. Without extra options, the ffmpeg program picks 1 stream of each type and skips data and attachment streams. So a lower value can mean that a stream is gone.