[FFmpeg-user] Auto transcode audio to PCM but match source sample bits?

Peter B. pb at das-werkstatt.com
Mon May 6 10:53:57 EEST 2019

Hi everyone :)

I would like to transcode a bunch of files from different sources, with
different audio encoding properties to uncompressed PCM, **but: maintain
the source bit depth**.

Since "-c:a" includes the bit-depth of the audio samples "pcm_s16le,
pcm_s24le, etc", I was wondering if there's a nice way to tell FFmpeg:
Convert any source audio format to PCM - but keep the same bits as the
source file had?

Currently I'm pre-sorting files manually in 16 or 24 bit and then
hardcoding "-c:a" accordingly...

Thank you very much in advance,
Peter B.

More information about the ffmpeg-user mailing list