[FFmpeg-user] How to downscale an audio-file to 24bit?

Ilja iljashebalin2 at gmail.com
Fri Sep 4 15:18:52 EEST 2020


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 <barsnick at gmx.net> 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
> 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