ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,channels -of csv=p=0 input.mp4

Category: Media & Conversion

ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate,channels -of csv=p=0 input.mp4

Print sample rate and channel count

Prints the first audio stream's sample rate and channel count, like '44100,2'. Handy before resampling or downmixing. The csv output format keeps it script-friendly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.