How to downscale an audio-file to 24bit?

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

How to downscale an audio-file to 24bit?

ILJA SHEBALIN
Hi,
I need to downscale 32-bit audio to 24-bit one. How do you do this with ffmpeg? I didn’t find any 24-bit option.




Sincerely Yours,

I.S.



_______________________________________________
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: How to downscale an audio-file to 24bit?

Moritz Barsnick
On Fri, Sep 04, 2020 at 05:27:04 +0300, Ilja wrote:
> I need to downscale 32-bit audio to 24-bit one. How do you do this
> with ffmpeg? I didn’t find any 24-bit option.

What format and codec were you thinking of?
Probably PCM audio. For that, ffmpeg (or at least my build) has these
specific encoders:

 A..... pcm_s24be            PCM signed 24-bit big-endian
 A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
 A..... pcm_s24le            PCM signed 24-bit little-endian
 A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
 A..... pcm_u24be            PCM unsigned 24-bit big-endian
 A..... pcm_u24le            PCM unsigned 24-bit little-endian

Cheers,
Moritz
_______________________________________________
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: How to downscale an audio-file to 24bit?

ILJA SHEBALIN
The audio was transcoded as a 32-bit AIFF. I need to re-encode it as a 24-bit depth leaving the format intact.  According to FFMPEG (N-98498-gfa8345c) man page for -sample_fmts I can choose from the following options:

name   depth
u8        8
s16      16
s32      32
flt      32
dbl      64
u8p       8
s16p     16
s32p     32
fltp     32
dblp     64
s64      64
s64p     64


On 04 Sep 2020, at 13:27, Moritz Barsnick <[hidden email]> wrote:

> On Fri, Sep 04, 2020 at 05:27:04 +0300, Ilja wrote:
>> I need to downscale 32-bit audio to 24-bit one. How do you do this
>> with ffmpeg? I didn’t find any 24-bit option.
>
> What format and codec were you thinking of?
> Probably PCM audio. For that, ffmpeg (or at least my build) has these
> specific encoders:
>
> A..... pcm_s24be            PCM signed 24-bit big-endian
> A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
> A..... pcm_s24le            PCM signed 24-bit little-endian
> A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
> A..... pcm_u24be            PCM unsigned 24-bit big-endian
> A..... pcm_u24le            PCM unsigned 24-bit little-endian
>
> Cheers,
> Moritz
> _______________________________________________
> 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: How to downscale an audio-file to 24bit?

ILJA SHEBALIN
In reply to this post by Moritz Barsnick
Ah, so I need to set a correct encoder. If that’s the case then, indeed, ffmpeg -encoders | grep 24 showed a bunch of those. I thought it’s as simple as supplying the -sample_fmt option.
On 04 Sep 2020, at 13:27, Moritz Barsnick <[hidden email]> wrote:

> On Fri, Sep 04, 2020 at 05:27:04 +0300, Ilja wrote:
>> I need to downscale 32-bit audio to 24-bit one. How do you do this
>> with ffmpeg? I didn’t find any 24-bit option.
>
> What format and codec were you thinking of?
> Probably PCM audio. For that, ffmpeg (or at least my build) has these
> specific encoders:
>
> A..... pcm_s24be            PCM signed 24-bit big-endian
> A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
> A..... pcm_s24le            PCM signed 24-bit little-endian
> A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
> A..... pcm_u24be            PCM unsigned 24-bit big-endian
> A..... pcm_u24le            PCM unsigned 24-bit little-endian
>
> Cheers,
> Moritz
> _______________________________________________
> 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".