ffmpeg - Audio - Get Bit Depth from audio file

ffprobe -v error -select_streams a:0 -show_entries stream=bits_per_raw_sample -of default=noprint_wrappers=1:nokey=1

NOTE: The stream needs to be specified.

  • a:0 - specifies the first audio stream.