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:
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.
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