[FFmpeg-user] Impossible to get the bit depth value of an audio-file with ffprobe

Paul Blakeman blakeyman at mac.com
Wed Aug 5 12:08:09 EEST 2020



Input #0, wav, from 'Lee.wav':
  Metadata:
    encoded_by      : Pro Tools
    originator_reference: 7iGQ3S9p7mlaaaGk
    date            : 2020-07-23
    creation_time   : 14:05:55
    time_reference  : 158865370
  Duration: 00:04:15.83, bitrate: 1422 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
bits_per_sample=16
bits_per_raw_sample=N/A


When I try on an audio file created with ProTools 

ffprobe -show_streams -show_format Lee.wav | grep bits

On an audio file “bits_per_sample” is what you are after


> On 5 Aug 2020, at 08:41, Paul B Mahol <onemda at gmail.com> wrote:
> 
> On 8/5/20, scrutinizer <iljashebalin2 at gmail.com> wrote:
>> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
>> “24").
> 
> See bits per raw sample field.
> 
>> 
>>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>>> 
>>> 
>>> 
>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <iljashebalin2 at gmail.com>:
>>>> 
>>>> is it possible to retrieve the bit depth value of an audio-file
>>> 
>>> Depends on the file.
>>> 
>>> Carl Eugen
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list