====== ffprobe - Streams - Get stream fields ====== ===== Get all fields ===== ffprobe -v 0 -select_streams a -show_entries stream file returns: [STREAM] index=1 codec_name=ac3 codec_long_name=ATSC A/52A (AC-3) profile=unknown codec_type=audio ... TAG:language=eng ... [/STREAM] **NOTE:** * **-select_streams a**: This queries all audio streams. * Change the **a** for **a:0** or **a:1** to specify a specific stream. ffprobe -v 0 -select_streams a:0 -show_entries stream file Be aware that the result will not returned in the order specified in the command. * It is in the order that the metadata is in the file. ---- ===== Get selected fields ===== ffprobe -v 0 -select_streams a -show_entries stream=index,codec_name,channels:stream_tags=language -of default=nk=1:nw=1 a.mkv returns: 1 ac3 6 rus 2 ac3 6 eng