0

I was needing help with the command to turn a 24 bit flac to 16 bit alac.

To turn 24 bit flac to 16 bit flac:

ffmpeg -i input.flac -sample_fmt s16 -ar 48000 output.flac

To turn flac to alac:

ffmpeg -i input.flac -vn -acodec alac output.m4a

I could try to pipe, but was wondering if there was anyway to marry these together into wedded bliss?

1 Answer 1

0

Use:

ffmpeg input.flac -sample_fmt s16p -ar 48000 -c:a alac output.m4a

ALAC requires a planar sample format (s16p) in which each channel data is in its own plane, instead of the regular, packed s16 format.

When you run the two commands separately, ffmpeg will helpfully convert s16 to s16p for you.

2
  • Thanks for pointing me in the right direction! I was getting errors with your command, but found if I ran ffmpeg -i input.flac -sample_fmt s16p -ar 48000 -vn -acodec alac output.m4a I was getting the result I wanted. Thanks again!
    – phimius
    Commented Nov 11, 2021 at 17:36
  • Does your input contain album art? If so you may need -vn. Next time please always include the full, uncut command line output you got when running your ffmpeg command.
    – slhck
    Commented Nov 11, 2021 at 19:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .