ffprobe -v error -show_entries stream=codec_name,codec_type -of csv=p=0 input.mp4

Category: Media & Conversion

ffprobe -v error -show_entries stream=codec_name,codec_type -of csv=p=0 input.mp4

List each stream's codec and type

Lists each stream's codec name and type, for example h264 and video, or aac and audio. -of csv=p=0 keeps the output terse for scripting. Add -show_entries stream=index to include stream numbers.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.