Impossible to get the bit depth value of an audio-file with ffprobe

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Impossible to get the bit depth value of an audio-file with ffprobe

ILJA SHEBALIN
Hello,

This is, in effect, relates to the similar topic raised in January 2018 no this forum (“Sample types 's32 (24 bit)' and 's16 (24 bit)' are confusing to me”).  In it, the user was given a very contradicting response to the concern that ff-utilities couldn’t discern between 32 and 16-bit on one side and 24-bit on the other, talking about RAW audio whose source was digitized analogue audio. THe responder claimed that it was both a bug and intended behaviour and not a bug which looks confusing at the very least.
I faced the same issue today with regard to non-RAW audio made from the 32bit RAW source. I know that the bit depth is 24bit. MediaInfo displays the same value, despite that ffprobe lists the downscaled file as s32p as the value of the sample_fmt subentry of the stream entry. I need a precise bit depth and sample rate value, but so far I was only able to get the sample rate one. I wonder where should I look up for the bit depth parameter in the same way that MediaInfo does to retrieve the correct value?

macOS Mojave
ffprobe version info
[PROGRAM_VERSION]
version=N-98600-gbe3c10d
copyright=Copyright (c) 2007-2020 the FFmpeg developers
compiler_ident=Apple LLVM version 10.0.1 (clang-1001.0.46.4)
[/PROGRAM_VERSION]

Regards,
~~
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

Carl Eugen Hoyos-2


> Am 04.08.2020 um 02:57 schrieb scrutinizer <[hidden email]>:
>
> This is, in effect, relates to the similar topic raised in January 2018 no this forum (“Sample types 's32 (24 bit)' and 's16 (24 bit)' are confusing to me”).

There are „links“ nowadays, have you ever used them?

> In it, the user was given a very contradicting response to the concern that ff-utilities couldn’t discern between 32 and 16-bit on one side and 24-bit on the other

(Still) true and will not change.

> talking about RAW audio whose source was digitized analogue audio.

This is misleading.

> THe responder claimed that it was both a bug and intended behaviour and not a bug which looks confusing at the very least.

This interpretation is ridiculous:
The OP mentioned two „issues“ (you mentioned them in your summary above), one was a bug that was fixed long ago (back then), one is a technical detail about internal properties of libavcodec that do not lead to limitations in the output files.

> I faced the same issue today

Command line and complete, uncut console output missing. If you want me to guess: mp3, aac, ac3 and friends do not have a „bit depth“, they store coefficients.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

ILJA SHEBALIN
First of all, thank you for your clear cut response. Now, instead of nitpicking every word and being an edgy asshole full of yourself, do you possess any relevant knowledge on how to get the bit depth value with ffprobe? That was my main point of asking the question, in the first place, in case you were “missing”.

Thank you.

> On 4 Aug 2020, at 09:11, Carl Eugen Hoyos <[hidden email]> wrote:
>
>
>
>> Am 04.08.2020 um 02:57 schrieb scrutinizer <[hidden email]>:
>>
>> This is, in effect, relates to the similar topic raised in January 2018 no this forum (“Sample types 's32 (24 bit)' and 's16 (24 bit)' are confusing to me”).
>
> There are „links“ nowadays, have you ever used them?

Not necessary, since it seems you were
>
>> In it, the user was given a very contradicting response to the concern that ff-utilities couldn’t discern between 32 and 16-bit on one side and 24-bit on the other
>
> (Still) true and will not change.
>
>> talking about RAW audio whose source was digitized analogue audio.
>
> This is misleading.

In what way? An answer as blunt as yours, that's misleading. The output the user provided showed the audio created from an LP. But that’s not what my question was about, so we move on.
>
>> THe responder claimed that it was both a bug and intended behaviour and not a bug which looks confusing at the very least.
>
> This interpretation is ridiculous:
> The OP mentioned two „issues“ (you mentioned them in your summary above), one was a bug that was fixed long ago (back then), one is a technical detail about internal properties of libavcodec that do not lead to limitations in the output files.

If that was misunderstanding then it’s on your quite disrespectful, rude and brazen way of communicating your thoughts. Something to think about. Or is it a common trait of tech people - to treat people like scam and unidentified blocks of corrupt data?
>
>> I faced the same issue today
>
> Command line and complete, uncut console output missing. If you want me to guess: mp3, aac, ac3 and friends do not have a „bit depth“, they store coefficients.
>
Mr. Car Eugen, if you pretend to be in possession of the fullest expert-level knowledge then you don’t need a log for what should be a commonly used option - retrieving the value.  I’m asking once again: is it possible to retrieve the bit depth value of an audio-file like the application I mentioned in my OP with ffprobe or another ff-utility? Yes, no. If yes - how. Nothing more required.
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

Carl Eugen Hoyos-2


> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>
> is it possible to retrieve the bit depth value of an audio-file

Depends on the file.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

ILJA SHEBALIN
The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply “24").

> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos <[hidden email]> wrote:
>
>
>
>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>
>> is it possible to retrieve the bit depth value of an audio-file
>
> Depends on the file.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

FFmpeg-users mailing list
Off ffmpeg topic but a solution…

For another project I use SoXI to achieve same desired result
https://linux.die.net/man/1/soxi

e.g. soxi -r audiofile.wav

Hope that helps.

Thanks,
Paul


> On 5 Aug 2020, at 03:20, scrutinizer <[hidden email]> wrote:
>
> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply “24").
>
>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos <[hidden email]> wrote:
>>
>>
>>
>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>>
>>> is it possible to retrieve the bit depth value of an audio-file
>>
>> Depends on the file.
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

Paul B Mahol
In reply to this post by ILJA SHEBALIN
On 8/5/20, scrutinizer <[hidden email]> 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 <[hidden email]> wrote:
>>
>>
>>
>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>>
>>> is it possible to retrieve the bit depth value of an audio-file
>>
>> Depends on the file.
>>
>> Carl Eugen
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

Paul B Mahol
In reply to this post by FFmpeg-users mailing list
On 8/5/20, Paul Blakeman via ffmpeg-user <[hidden email]> wrote:
> Off ffmpeg topic but a solution…
>
> For another project I use SoXI to achieve same desired result
> https://linux.die.net/man/1/soxi
>
> e.g. soxi -r audiofile.wav


That is non-solution.

>
> Hope that helps.
>
> Thanks,
> Paul
>
>
>> On 5 Aug 2020, at 03:20, scrutinizer <[hidden email]> wrote:
>>
>> The file is AIFF, 24bit/96kHz. I want to get the “24bit” part (or simply
>> “24").
>>
>>> On 5 Aug 2020, at 03:39, Carl Eugen Hoyos <[hidden email]> wrote:
>>>
>>>
>>>
>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>>>
>>>> is it possible to retrieve the bit depth value of an audio-file
>>>
>>> Depends on the file.
>>>
>>> Carl Eugen
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

FFmpeg-users mailing list
In reply to this post by Paul B Mahol


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 <[hidden email]> wrote:
>
> On 8/5/20, scrutinizer <[hidden email]> 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 <[hidden email]> wrote:
>>>
>>>
>>>
>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>>>
>>>> is it possible to retrieve the bit depth value of an audio-file
>>>
>>> Depends on the file.
>>>
>>> Carl Eugen
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

ILJA SHEBALIN
If the option in question indeed is available then it’s undocumented. The ffprobe help reveals the following usage:

Global options (affect whole program instead of just one file):
-loglevel loglevel  set logging level
-v loglevel         set logging level
-report             generate a report
-max_alloc bytes    set maximum size of a single allocated block
-y                  overwrite output files
-n                  never overwrite output files
-ignore_unknown     Ignore unknown stream types
-filter_threads     number of non-complex filter threads
-filter_complex_threads  number of threads for -filter_complex
-stats              print progress report during encoding
-max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success.
-bits_per_raw_sample number  set the number of bits per raw sample
-vol volume         change audio volume (256=normal)


There’s bits_per_raw_sample but no bits_per_sample. And the same is true for the video options - no bits_per_sample.
 

> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user <[hidden email]> wrote:
>
>
>
> 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 <[hidden email]> wrote:
>>
>> On 8/5/20, scrutinizer <[hidden email]> 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 <[hidden email]> wrote:
>>>>
>>>>
>>>>
>>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]>:
>>>>>
>>>>> is it possible to retrieve the bit depth value of an audio-file
>>>>
>>>> Depends on the file.
>>>>
>>>> Carl Eugen
>>>> _______________________________________________
>>>> ffmpeg-user mailing list
>>>> [hidden email]
>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>
>>>> To unsubscribe, visit link above, or email
>>>> [hidden email] with subject "unsubscribe".
>>>
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

ILJA SHEBALIN
To add more practical usage examples where bits_per_sample is useless. Here’s an APE file on which MediaInfo reports 24 bit depth. And here’s the output of the ffprobe:

'/Users/Me/Music/For Batch Conversion/Judas Priest - Stained Class - 1978.Ape':
  Duration: 00:43:21.00, Start: 0.000000, Bitrate: 3039 Kb/S
    Stream #0:0: Audio: Ape (Ape  / 0X20455041), 96000 Hz, Stereo, S32P
Bits_Per_Sample=0
Bits_Per_Raw_Sample=N/A

Bits per sample is 0? It’s not. Any form of the ffprobe command - be it show_streams, select_stream, show_formats - returns the identically incorrect result.

> On 5 Aug 2020, at 20:18, scrutinizer <[hidden email]> wrote:
>
> If the option in question indeed is available then it’s undocumented. The ffprobe help reveals the following usage:
>
> Global options (affect whole program instead of just one file):
> -loglevel loglevel  set logging level
> -v loglevel         set logging level
> -report             generate a report
> -max_alloc bytes    set maximum size of a single allocated block
> -y                  overwrite output files
> -n                  never overwrite output files
> -ignore_unknown     Ignore unknown stream types
> -filter_threads     number of non-complex filter threads
> -filter_complex_threads  number of threads for -filter_complex
> -stats              print progress report during encoding
> -max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success.
> -bits_per_raw_sample number  set the number of bits per raw sample
> -vol volume         change audio volume (256=normal)
>
>
> There’s bits_per_raw_sample but no bits_per_sample. And the same is true for the video options - no bits_per_sample.
>  
>> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user <[hidden email] <mailto:[hidden email]>> wrote:
>>
>>
>>
>> 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 <[hidden email] <mailto:[hidden email]>> wrote:
>>>
>>> On 8/5/20, scrutinizer <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email] <mailto:[hidden email]>>:
>>>>>>
>>>>>> is it possible to retrieve the bit depth value of an audio-file
>>>>>
>>>>> Depends on the file.
>>>>>
>>>>> Carl Eugen
>>>>> _______________________________________________
>>>>> ffmpeg-user mailing list
>>>>> [hidden email] <mailto:[hidden email]>
>>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>>
>>>>> To unsubscribe, visit link above, or email
>>>>> [hidden email] with subject "unsubscribe".
>>>>
>>>> _______________________________________________
>>>> ffmpeg-user mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>
>>>> To unsubscribe, visit link above, or email
>>>> [hidden email] with subject "unsubscribe".
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email] <mailto:[hidden email]>
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email] <mailto:[hidden email]>
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] with subject "unsubscribe".
>

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Impossible to get the bit depth value of an audio-file with ffprobe

Paul B Mahol
On 8/5/20, scrutinizer <[hidden email]> wrote:

> To add more practical usage examples where bits_per_sample is useless.
> Here’s an APE file on which MediaInfo reports 24 bit depth. And here’s the
> output of the ffprobe:
>
> '/Users/Me/Music/For Batch Conversion/Judas Priest - Stained Class -
> 1978.Ape':
>   Duration: 00:43:21.00, Start: 0.000000, Bitrate: 3039 Kb/S
>     Stream #0:0: Audio: Ape (Ape  / 0X20455041), 96000 Hz, Stereo, S32P
> Bits_Per_Sample=0
> Bits_Per_Raw_Sample=N/A
>
> Bits per sample is 0? It’s not. Any form of the ffprobe command - be it
> show_streams, select_stream, show_formats - returns the identically
> incorrect result.

This is obvious bug, bits_per_raw_sample should report 24.

>
>> On 5 Aug 2020, at 20:18, scrutinizer <[hidden email]> wrote:
>>
>> If the option in question indeed is available then it’s undocumented. The
>> ffprobe help reveals the following usage:
>>
>> Global options (affect whole program instead of just one file):
>> -loglevel loglevel  set logging level
>> -v loglevel         set logging level
>> -report             generate a report
>> -max_alloc bytes    set maximum size of a single allocated block
>> -y                  overwrite output files
>> -n                  never overwrite output files
>> -ignore_unknown     Ignore unknown stream types
>> -filter_threads     number of non-complex filter threads
>> -filter_complex_threads  number of threads for -filter_complex
>> -stats              print progress report during encoding
>> -max_error_rate maximum error rate  ratio of errors (0.0: no errors, 1.0:
>> 100% errors) above which ffmpeg returns an error instead of success.
>> -bits_per_raw_sample number  set the number of bits per raw sample
>> -vol volume         change audio volume (256=normal)
>>
>>
>> There’s bits_per_raw_sample but no bits_per_sample. And the same is true
>> for the video options - no bits_per_sample.
>>
>>> On 5 Aug 2020, at 12:08, Paul Blakeman via ffmpeg-user
>>> <[hidden email] <mailto:[hidden email]>> wrote:
>>>
>>>
>>>
>>> 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 <[hidden email]
>>>> <mailto:[hidden email]>> wrote:
>>>>
>>>> On 8/5/20, scrutinizer <[hidden email]
>>>> <mailto:[hidden email]>> 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 <[hidden email]
>>>>>> <mailto:[hidden email]>> wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Am 04.08.2020 um 16:56 schrieb scrutinizer <[hidden email]
>>>>>>> <mailto:[hidden email]>>:
>>>>>>>
>>>>>>> is it possible to retrieve the bit depth value of an audio-file
>>>>>>
>>>>>> Depends on the file.
>>>>>>
>>>>>> Carl Eugen
>>>>>> _______________________________________________
>>>>>> ffmpeg-user mailing list
>>>>>> [hidden email] <mailto:[hidden email]>
>>>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>>>
>>>>>> To unsubscribe, visit link above, or email
>>>>>> [hidden email] with subject "unsubscribe".
>>>>>
>>>>> _______________________________________________
>>>>> ffmpeg-user mailing list
>>>>> [hidden email] <mailto:[hidden email]>
>>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>>
>>>>> To unsubscribe, visit link above, or email
>>>>> [hidden email] with subject "unsubscribe".
>>>> _______________________________________________
>>>> ffmpeg-user mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>
>>>> To unsubscribe, visit link above, or email
>>>> [hidden email] with subject "unsubscribe".
>>>
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email] <mailto:[hidden email]>
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> [hidden email] with subject "unsubscribe".
>>
>
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".